Re: [PATCH 07/19] OpenRISC: DMA

From: Arnd Bergmann
Date: Sun Jun 19 2011 - 15:02:55 EST


On Sunday 19 June 2011 13:43:33 Jonas Bonn wrote:
>
> Simple DMA implementation. There's some work to do here, but
> this allows for allocation of coherent memory (simply uncached) for DMA
> operations.
>
> Signed-off-by: Jonas Bonn <jonas@xxxxxxxxxxxx>
> ---
> arch/openrisc/include/asm/dma-mapping.h | 129 ++++++++++++++++++++++++++
> arch/openrisc/kernel/dma.c | 152 +++++++++++++++++++++++++++++++
> 2 files changed, 281 insertions(+), 0 deletions(-)
> create mode 100644 arch/openrisc/include/asm/dma-mapping.h
> create mode 100644 arch/openrisc/kernel/dma.c

If you don't have an IOMMU or the need for swiotlb, you can probably eliminate
the use of dma_map_ops and just provide the simple implementation.

For the operations that you have not implemented properly, I would leave
a forward-declaration but remove the implementation that causes a runtime
error, so you turn that into a link time error.

Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/