PCI memory alloc..!
M. Warner Losh
imp at bsdimp.com
Tue Jun 29 09:10:27 PDT 2004
In message: <BAY22-F21n8P5o7P6um0003a4ff at hotmail.com>
"Auge Mike" <tobe_better at hotmail.com> writes:
: While I was trying to track to find out how a device alloc a new memory
: resource, I have been little confused on finding out how the new PCI device
: can deal with a case when the activation calls pmap_mapdev????
:
: What I need to understand that what will happen if pmap_mapdev allocated a
: new space that dose not match what is expected by the device and determined
: by r_start and r_end ??
The pci bus deals with allocating and mapping the memory. Getting the
bus handle and bus tags will let you access it via the bus_space
routines or the bus_dma routines. pmap_mamdev is done under the
covers and you'll not need to worry about such things.
Warner
More information about the freebsd-hackers
mailing list