Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 2000 04:44:21 -0700
From:      Alfred Perlstein <bright@wintelcom.net>
To:        Pran Joseph <pran@procsys.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: Memory Mapping
Message-ID:  <20000822044421.Q4854@fw.wintelcom.net>
In-Reply-To: <39A2664F.3337A741@procsys.com>; from pran@procsys.com on Tue, Aug 22, 2000 at 05:08:55PM %2B0530
References:  <39A2664F.3337A741@procsys.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Pran Joseph <pran@procsys.com> [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




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