Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Aug 2000 10:49:46 -0600
From:      Warner Losh <imp@village.org>
To:        pran@procsys.com
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Memory Mapping -2 
Message-ID:  <200008251649.KAA17846@harmony.village.org>
In-Reply-To: Your message of "Fri, 25 Aug 2000 12:44:18 %2B0530." <39A61CCA.2DB82AFF@procsys.com> 
References:  <39A61CCA.2DB82AFF@procsys.com>  

next in thread | previous in thread | raw e-mail | index | archive | help
In message <39A61CCA.2DB82AFF@procsys.com> Pran Joseph writes:
:  1. How can I convert physical address to virtual address . What I want
: is to read the physical address from the device register  and to copy it
: to host memory. From my earlier post  I found that I can use vtopys
: macro to convert virtual to physical address. Now I want to do the
: reverse.
: 
: 2. What are things should I do if I want the driver to work on alpha
: platform also.

Use the bus space macros.  These will generally obviate the need to to
the vtophys and ptovirt sorts of things.  I don't think FreeBSD has a
ptovirt these days.

Warner


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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