From owner-freebsd-hackers Tue Aug 22 4:44:35 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id 57E5937B424 for ; Tue, 22 Aug 2000 04:44:32 -0700 (PDT) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e7MBiLD27083; Tue, 22 Aug 2000 04:44:21 -0700 (PDT) Date: Tue, 22 Aug 2000 04:44:21 -0700 From: Alfred Perlstein To: Pran Joseph Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: Memory Mapping Message-ID: <20000822044421.Q4854@fw.wintelcom.net> References: <39A2664F.3337A741@procsys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <39A2664F.3337A741@procsys.com>; from pran@procsys.com on Tue, Aug 22, 2000 at 05:08:55PM +0530 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * Pran Joseph [000822 04:36] wrote: > Hi, > > I am trying to write a PCI ethernet driver for FreeBSD 3.4 release . I > am new to the driver stuff. > > I want to allocate some memory for device buffer using malloc > function. I also want the physical address of allocated memory block > so that I can initialize the device registers. > > Can any one of you please explain me how I can convert address > returned by > malloc to Physical address. VTOPHYS or vtophys. -Alfred To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message