PCI Express and drivers
Daniel O'Connor
doconnor at gsoft.com.au
Mon Jul 5 22:55:36 UTC 2010
On 06/07/2010, at 5:32, Christopher Bowman wrote:
> If I could, let me ask another question. My device could potential have up to 6 BARs, that would be mapped into user space. Should I simply bundle them together in my driver into one contiguous space or should I make the user perform multiple mmap calls? If I go the multiple mmap route, how do I match a mmap call to a particular BAR? Do I use the size of the allocation?
Yes, I think you just key off the requested address in the mmap() call.
--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
-- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
More information about the freebsd-hackers
mailing list