Subject: Re: Mapping Virtual memory to physical memory
To: None <>
From: Tad Hunt <>
List: port-powerpc
Date: 08/20/2001 09:52:26
In message <01082008521900.22230@huhhot>, you said:
;A quick question:
;Is there a function or api call to get the physical address from a virtua=
;address?  I am helping port netbsd to an 8260 powerpc and the internal
;communications controler cannot handle virtual addresses, it bypassess th=
;address translation for DMA etc.  So I would like to be able to take the
;virtual address of a destination buffer and convert it to a physical addr=
;for the DMA controler.

Check out vtophys() in sys/arch/powerpc/include/pmap.h