On Fri, Apr 1, 2016 at 12:31 PM, John Baldwin <j...@freebsd.org> wrote:
> Sorry, I mapped PCIe registers to the PCI-e config space register set. I
> not sure exactly how libpciaccess handles register access (perhaps it reads
> raw bars and maps them via /dev/mem)? However, it would not be hard to a
> new ioctl to /dev/pci to allow one to mmap a specific BAR of a given
That is actually a really good question. I know that with some recent
BIOSes if I enabled allocating 64-bit addresses to BARs, the BAR would
actually be mapped outside of the range of /dev/mem. From a quick glance
at libpciaccess, I don't think that it handles this case. A specific
mechanism for allowing mmaping of BARs would be useful, I think.
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"