summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/powerpc/include/asm/types.h')
-rw-r--r--arch/powerpc/include/asm/types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/powerpc/include/asm/types.h b/arch/powerpc/include/asm/types.h
index b27a6b753a..b29ce792f7 100644
--- a/arch/powerpc/include/asm/types.h
+++ b/arch/powerpc/include/asm/types.h
@@ -41,8 +41,12 @@ typedef unsigned long long u64;
#define BITS_PER_LONG 32
+#ifdef CONFIG_PHYS_64BIT
+typedef unsigned long long dma_addr_t;
+#else
/* DMA addresses are 32-bits wide */
typedef u32 dma_addr_t;
+#endif
#ifdef CONFIG_PHYS_64BIT
typedef unsigned long long phys_addr_t;
OpenPOWER on IntegriCloud