powerpc: Add support for swiotlb on 32-bit
authorBecky Bruce <beckyb@kernel.crashing.org>
Thu, 14 May 2009 12:42:28 +0000 (12:42 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 9 Jun 2009 06:49:18 +0000 (16:49 +1000)
commitec3cf2ece22a8ede7478bf38e2a818986322662b
tree76654ac60da3d2ac27f49769f825215d55b03276
parent1babddbc2e83ab98fc4dd0a3e9bd7b2d30be7e32
powerpc: Add support for swiotlb on 32-bit

This patch includes the basic infrastructure to use swiotlb
bounce buffering on 32-bit powerpc.  It is not yet enabled on
any platforms.  Probably the most interesting bit is the
addition of addr_needs_map to dma_ops - we need this as
a dma_op because the decision of whether or not an addr
can be mapped by a device is device-specific.

Signed-off-by: Becky Bruce <beckyb@kernel.crashing.org>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/Kconfig
arch/powerpc/include/asm/dma-mapping.h
arch/powerpc/include/asm/swiotlb.h [new file with mode: 0644]
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/dma-swiotlb.c [new file with mode: 0644]
arch/powerpc/kernel/dma.c
arch/powerpc/kernel/setup_32.c
arch/powerpc/kernel/setup_64.c