Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: syssrc



> 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



Home | Main Index | Thread Index | Old Index