Subject: Re: Mapping Virtual memory to physical memory
To: None <milligan.rts@home.com>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: port-powerpc
Date: 08/20/2001 09:02:49
On Mon, Aug 20, 2001 at 08:41:41AM -0700, Mark Milligan wrote:
> Ive read the man pages on bus_dma, uvm, kvm and looked thru the pmap.c code and
> the closest thing ive found is the pmap_extract() function but it seems like a
> internal (to pmap) functon only and dosent seem very usefull. I could write a
> wraper to go around this function but I am hopeing there is a better way.
>
> I know there are a couple of other people ho have worked on 8260 ports out
> there, how have you handled this problem?
The bus_dma routines are in fact what you want. If your port does
not already have them, then you need to implement them. You can
see how this is done in other PowerPC ports -- take a look at
sys/arch/powerpc/powerpc/bus_dma.c
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>