Date: Tue, 19 Aug 2003 00:18:15 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: mcgovern@beta.com Cc: hackers@freebsd.org Subject: Re: Allocating memory from PCI bus... Message-ID: <20030819.001815.118795363.imp@bsdimp.com> In-Reply-To: <200308190347.h7J3l6X7073480@spoon.beta.com> References: <200308190347.h7J3l6X7073480@spoon.beta.com>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <200308190347.h7J3l6X7073480@spoon.beta.com> "Brian J. McGovern" <mcgovern@beta.com> writes: : In 5.x, it appears that you call bus_alloc_resource() with the rid (BAR) of : the memory resource to actually obtain a resource structure to the memory. : Would you then call rman_get_virtual() to obtain the virtual address? How about : the physical address (use vtophys(rman_get_virtual()) ? Typically you'd use bus_space to access things via 'memory' mapping, and bus_dma for physical stuff. Warner
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030819.001815.118795363.imp>