aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-ks8695/include/mach/memory.h
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2009-12-04 15:00:08 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2009-12-04 15:00:11 +0000
commit2fc42814d8a9dd757abc7f80fbf11e9247e97d40 (patch)
tree8216bbfc4fdf9bda4e30c04f415725dd0ef6da4f /arch/arm/mach-ks8695/include/mach/memory.h
parentc6baa1963c2a76ffdb157e8b9a5a55b30046b125 (diff)
parent29cb8d0d249f6b8fa33683cc17622ff16ada834c (diff)
Merge branch 'pending-dma-streaming' (early part) into devel
Diffstat (limited to 'arch/arm/mach-ks8695/include/mach/memory.h')
-rw-r--r--arch/arm/mach-ks8695/include/mach/memory.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-ks8695/include/mach/memory.h b/arch/arm/mach-ks8695/include/mach/memory.h
index 76e5308685a..ffa19aae6e0 100644
--- a/arch/arm/mach-ks8695/include/mach/memory.h
+++ b/arch/arm/mach-ks8695/include/mach/memory.h
@@ -41,6 +41,13 @@ extern struct bus_type platform_bus_type;
__dma = __dma - PHYS_OFFSET + KS8695_PCIMEM_PA; \
__dma; })
+#define __arch_dma_to_page(dev, x) \
+ ({ dma_addr_t __dma = x; \
+ if (!is_lbus_device(dev)) \
+ __dma += PHYS_OFFSET - KS8695_PCIMEM_PA; \
+ phys_to_page(__dma); \
+ })
+
#endif
#endif