summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/types.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-ppc/types.h')
-rw-r--r--include/asm-ppc/types.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asm-ppc/types.h b/include/asm-ppc/types.h
index 7adf1450f2..864391f03b 100644
--- a/include/asm-ppc/types.h
+++ b/include/asm-ppc/types.h
@@ -44,6 +44,14 @@ typedef unsigned long long u64;
/* DMA addresses are 32-bits wide */
typedef u32 dma_addr_t;
+#ifdef CONFIG_PHYS_64BIT
+typedef unsigned long long phys_addr_t;
+typedef unsigned long long phys_size_t;
+#else
+typedef unsigned long phys_addr_t;
+typedef unsigned long phys_size_t;
+#endif
+
#endif /* __KERNEL__ */
#endif /* __ASSEMBLY__ */
OpenPOWER on IntegriCloud