Date: Sun, 13 Aug 2006 15:03:48 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: nike_d@cytexbg.com Cc: freebsd-hackers@freebsd.org Subject: Re: linux ioremap equivalent on freebsd Message-ID: <20060813.150348.535841747.imp@bsdimp.com> In-Reply-To: <200608071735.43462.nike_d@cytexbg.com> References: <44D735E5.4030809@FreeBSD.org> <200608071628.15316.nike_d@cytexbg.com> <200608071735.43462.nike_d@cytexbg.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <200608071735.43462.nike_d@cytexbg.com> Niki Denev <nike_d@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060813.150348.535841747.imp>