[RFC PATCH v2 6/9] powerpc: add optional per-device dmabounce support
Albert Herranz
albert_herranz at yahoo.es
Mon Mar 1 01:07:59 EST 2010
Add support for the PowerPC architecture for using the generic dmabounce
support on a per-device basis.
Signed-off-by: Albert Herranz <albert_herranz at yahoo.es>
---
arch/powerpc/include/asm/device.h | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/include/asm/device.h b/arch/powerpc/include/asm/device.h
index 6d94d27..b9a47e8 100644
--- a/arch/powerpc/include/asm/device.h
+++ b/arch/powerpc/include/asm/device.h
@@ -28,6 +28,9 @@ struct dev_archdata {
#ifdef CONFIG_SWIOTLB
dma_addr_t max_direct_dma_addr;
#endif
+#ifdef CONFIG_DMABOUNCE
+ struct dmabounce_info *dmabounce;
+#endif
};
static inline void dev_archdata_set_node(struct dev_archdata *ad,
--
1.6.3.3
More information about the Linuxppc-dev
mailing list