On 31 July 2012 08:22, Venkat Duvvuru <venkatduvvuru...@gmail.com> wrote:
> Hi John,
> Thanks for your response.
> Is there an alternative to mmap the PCI BARs, I mean without implementing
> an mmap method in the driver, something like a pci subsystem mmap in Linux.
> Linux allows to mmap PCI BARs without any change in the device driver.

I guess someone could implement a sysctl API to access PCI BAR
registers, rather than mapping /dev/pci or however pciconf -r works.

That way you'd implement it once and all devices would have their BAR
registers show up in a userland-friendly way.

2c,


Adrian
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to