From owner-freebsd-hackers Fri Aug 25 9:50: 0 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from rover.village.org (rover.village.org [204.144.255.49]) by hub.freebsd.org (Postfix) with ESMTP id 733A737B422 for ; Fri, 25 Aug 2000 09:49:56 -0700 (PDT) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.9.3/8.9.3) with ESMTP id KAA75934; Fri, 25 Aug 2000 10:49:53 -0600 (MDT) (envelope-from imp@harmony.village.org) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.9.3/8.8.3) with ESMTP id KAA17846; Fri, 25 Aug 2000 10:49:46 -0600 (MDT) Message-Id: <200008251649.KAA17846@harmony.village.org> To: pran@procsys.com Subject: Re: Memory Mapping -2 Cc: freebsd-hackers@FreeBSD.ORG In-reply-to: Your message of "Fri, 25 Aug 2000 12:44:18 +0530." <39A61CCA.2DB82AFF@procsys.com> References: <39A61CCA.2DB82AFF@procsys.com> Date: Fri, 25 Aug 2000 10:49:46 -0600 From: Warner Losh Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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