* Pran Joseph <[EMAIL PROTECTED]> [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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to