Date: Tue, 15 Feb 2005 16:15:38 -0500 (EST) From: Andrew Gallatin <gallatin@cs.duke.edu> To: Scott Long <scottl@samsco.org> Cc: freebsd-hackers@freebsd.org Subject: Re: mapping small parts of a pci card to conserve KVA Message-ID: <16914.26234.495305.432871@grasshopper.cs.duke.edu> In-Reply-To: <42126390.5020804@samsco.org> References: <16914.22016.593790.719399@grasshopper.cs.duke.edu> <42126390.5020804@samsco.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Scott Long writes: > > You can use pmap_mapdev() to create a KVA mapping of an arbitrary > physaddr+len. In fact, this is exactly what newbus uses to create the > PCI MEMIO resources when bus_alloc_resource() is called. I'm not sure > if the range is mapped and activated before the driver makes that call, > Warner or John might know for sure. Thanks.. But since this is an out of tree driver, I want to stick as much as I can to the normal driver APIs. If the KVA wastage becomes a huge problem, I'll explore pmap_mapdev(), but for now its not a big deal. Thanks again, Drew
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?16914.26234.495305.432871>