Subject: Re: how to do without function bus_dmamap_load_uio() ?
To: Esha <esha@sharada.ncore.soft.net>
From: Zdenek Salvet <salvet@ics.muni.cz>
List: tech-kern
Date: 01/06/1999 16:13:02
> If  the bus_dmamap_load_uio() is not there in 1.3.3 then is the
> following way correct ?
> 
> call bus_dmamem_alloc()
> 
> call bus_dmamem_map()
> 
> pass the dma-safe address to the user through mmap entry point.
> 
> 
> Is the above idea correct ?

No, just load uio.uio_iov members with bus_dmamap_load calls.
Look at -current bus_dmamap_load_uio implementation
(e.g. /usr/src/sys/arch/i386/i386/machdep.c).

-- 
Zdenek Salvet                                              salvet@ics.muni.cz 
Ustav vypocetni techniky Masarykovy univerzity, Brno
tel.: ++420-5-41 512 257                           Fax: ++420-5-41 212 747
----------------------------------------------------------------------------
           If God had meant for us to be in the Army,
         we would have been born with green, baggy skin.