Subject: Re: Mapping Virtual memory to physical memory
To: None <milligan.rts@home.com>
From: Tad Hunt <tad@entrisphere.com>
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=
;l
;address? I am helping port netbsd to an 8260 powerpc and the internal
;communications controler cannot handle virtual addresses, it bypassess th=
;e
;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=
;ess
;for the DMA controler.
Check out vtophys() in sys/arch/powerpc/include/pmap.h
-Tad