PCI BAR mmap

Wojciech Puchar wojtek at wojtek.tensor.gdynia.pl
Tue Jul 31 17:42:09 UTC 2012

> Hi,
> How to mmap PCI  BARs from userland in freebsd?
> In Linux the PCI BAR appears as a file in the sysfs file system. How can I
> access PCI BAR as a file in freebsd to mmap it?
if you know the adress (pciconf tool, or by system call i think) then map 
portion of /dev/mem

/dev/mem equals to physical addresses.

More information about the freebsd-questions mailing list