Subject: Re: CVS commit: syssrc
To: None <mrg@netbsd.org>
From: Paul Kranenburg <pk@cs.few.eur.nl>
List: source-changes
Date: 05/18/2000 17:15:14
> Modified Files:
> 	syssrc/sys/dev/ic: hme.c
> 
> Log Message:
> rearrange the order of bus_dma operations to be more like many other
> drivers, at the suggestion of fvdl.  also, use bus_dmamap_load() not
> load_raw().

You're headed for trouble with this change. According to bus_dma(9),
memory allocated with bus_dmamem_alloc() should be loaded with
bus_dmamap_load_raw().

The sparc and sparc64 implementations depend on this, since both the
`alignment' and `boundary' argument to bus_dmamem_alloc() cannot be
dealt with until actual DMA resources are allocated. Those values
are saved in the segments returned for later use in bus_dmamap_load_raw().

-pk