Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2002 21:18:01 -0700 (MST)
From:      "M. Warner Losh" <imp@village.org>
To:        mike.varga@cavium.com
Cc:        msmith@FreeBSD.ORG, freebsd-arch@FreeBSD.ORG
Subject:   Re: reverse vtophys() 
Message-ID:  <20020219.211801.45873766.imp@village.org>
In-Reply-To: <004f01c1b96b$a37d1f50$b210a8c0@netscreen5>
References:  <200202170813.g1H8DAV01750@mass.dis.org> <004f01c1b96b$a37d1f50$b210a8c0@netscreen5>

next in thread | previous in thread | raw e-mail | index | archive | help
In message: <004f01c1b96b$a37d1f50$b210a8c0@netscreen5>
            "mike varga" <mike.varga@cavium.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020219.211801.45873766.imp>