From owner-freebsd-hackers Tue Aug 22 4:35:39 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from procsys.com (PPP-180-142.bng.vsnl.net.in [203.197.180.142]) by hub.freebsd.org (Postfix) with SMTP id EF29437B43C for ; Tue, 22 Aug 2000 04:35:27 -0700 (PDT) Received: from procsys.com ([192.168.1.115]) by procsys.com with SMTP; Tue, 22 Aug 2000 17:08:10 +0800 Message-ID: <39A2664F.3337A741@procsys.com> Date: Tue, 22 Aug 2000 17:08:55 +0530 From: Pran Joseph Reply-To: pran@procsys.com Organization: Processor Systems (India) Pvt. Ltd X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: Memory Mapping Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. Thanks -Pran To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message