linux ioremap equivalent on freebsd
M. Warner Losh
imp at bsdimp.com
Sun Aug 13 21:04:16 UTC 2006
In message: <200608071735.43462.nike_d at cytexbg.com>
Niki Denev <nike_d at cytexbg.com> writes:
: On Monday 07 August 2006 16:28, Niki Denev wrote:
: > On Monday 07 August 2006 15:45, Suleiman Souhlal wrote:
: > >
: > > I think the equivalent of linux's ioremap() in FreeBSD is pmap_mapdev().
: > >
: > > -- Suleiman
: >
: > Thanks!
: >
: > Is there a reason that there is no manual page about pmap_mapdev, and it's
: > not mentioned in the other pmap_* man pages?
: >
:
: As far as i understand, there is no need for pmap_mapdev to be used for
: reading memory from pci device, because it returns the same address as
: pmap_get_virtual() ? (at least here :) ) Is this right?
Unless you are mapping very large areas, bus_alloc_resource +
rman_get_virtual is the right answer here.
Warner
More information about the freebsd-hackers
mailing list