]> git.karo-electronics.de Git - karo-tx-linux.git/commit
arm64: DMA mapping API
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 5 Mar 2012 11:49:30 +0000 (11:49 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 7 Sep 2012 15:14:35 +0000 (16:14 +0100)
commitb76a8e10b4aa3f1ca47f48fa0cd28dc09430cde2
treeb9901dbe19166907123d0b5456d30b863f7c0c33
parentf7084abde4d3c5debaae0624317c6f34b48c9fc0
arm64: DMA mapping API

This patch adds support for the DMA mapping API. It uses dma_map_ops for
flexibility and it currently supports swiotlb. This patch could be
simplified further if the DMA accesses are coherent (not mandated by the
architecture) or if corresponding hooks are placed in the generic
swiotlb code to deal with cache maintenance.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Tony Lindgren <tony@atomide.com>
arch/arm64/include/asm/dma-mapping.h [new file with mode: 0644]
arch/arm64/mm/dma-mapping.c [new file with mode: 0644]