Problems with dma_alloc_coherent()

John Whitney jwhitney-linuxppc at sands-edge.com
Fri Apr 2 05:10:00 EST 2004


> I think we should use "device" parameter passed to DMA API for such
> stuff, it
> already has a member "struct bus_type* bus".
>

This effectively makes the DMA API a superset of the PCI DMA API (the
DMA API would recognize a PCI device, and handle it accordingly)?  It
sounds like a good solution to me, although I'd like to see the
"device" structure get that DMA offset I mentioned, so the DMA API
wouldn't have to have a special case for each new bus-type added (PLB,
PCI, OCP, CPM, whatever), as it does now for PCI vs. non-PCI.  (That
assumes bus offset is the only difference that needs to be handled...)


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list