From owner-freebsd-arch Tue Feb 19 20:18:21 2002 Delivered-To: freebsd-arch@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 9898D37B405; Tue, 19 Feb 2002 20:18:15 -0800 (PST) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g1K4IEi91800; Tue, 19 Feb 2002 21:18:14 -0700 (MST) (envelope-from imp@village.org) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g1K4IDL76005; Tue, 19 Feb 2002 21:18:13 -0700 (MST) (envelope-from imp@village.org) Date: Tue, 19 Feb 2002 21:18:01 -0700 (MST) Message-Id: <20020219.211801.45873766.imp@village.org> To: mike.varga@cavium.com Cc: msmith@FreeBSD.ORG, freebsd-arch@FreeBSD.ORG Subject: Re: reverse vtophys() From: "M. Warner Losh" In-Reply-To: <004f01c1b96b$a37d1f50$b210a8c0@netscreen5> References: <200202170813.g1H8DAV01750@mass.dis.org> <004f01c1b96b$a37d1f50$b210a8c0@netscreen5> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <004f01c1b96b$a37d1f50$b210a8c0@netscreen5> "mike varga" writes: : The concept is valid in Linux, : there is a function that does : what I am asking. : bus_to_virtual(). : : The page is locked : in memory. : Therefor there is one valid page : backed by the physical : address that corresponds : to the virtual address that : I am interested in retrieving? If you have used the bus_space functions, you could use rman_get_virtual(r), where r is a struct resource * that you got back from bus_alloc_resource(). Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message