PCI BAR mmap

2012-07-31 Thread Venkat Duvvuru
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? /Venkat ___ freebsd-questions@freebsd.org mailing list

Re: PCI BAR mmap

2012-07-31 Thread Wojciech Puchar
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