Hi,
Following is the whole DMA code cleanup on top of the work
already done by Becky Bruce. It includes removing __dma_sync
and __dma_sync_page that got replaced by dma_mapping_ops->sync,
getting rid of the old dma-noncoherent code which is now another
type of dma_mapping_ops and cleaning up the dma non-coherent
code by removing the virtual address pool it was using.
This code was tested on a 32bits PowerPC C2K board (noncoherent
cache) and I verified it builds on pmac32 (coherent cache, 32bits)
and pseries (64bits).
If anyone would be willing to test this code on other platforms
(mainly ones with non-coherent DMA architectures), I would
greatly appreciate!
Thanks,
Remi