summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-03-27 11:46:38 -0500
committerWolfgang Denk <wd@denx.de>2008-04-13 17:13:46 -0700
commite99ccb488181d012248c6be30b2093e950319fc5 (patch)
tree3c9fefb4d458a349912aeb2ff548088a21101600 /include/asm-ppc
parent20a14a42a25f72e379f38460b8a8484667536795 (diff)
downloadbootable_bootloader_goldelico_gta04-e99ccb488181d012248c6be30b2093e950319fc5.zip
bootable_bootloader_goldelico_gta04-e99ccb488181d012248c6be30b2093e950319fc5.tar.gz
bootable_bootloader_goldelico_gta04-e99ccb488181d012248c6be30b2093e950319fc5.tar.bz2
Introduce phys_size_t and move phys_addr_t into asm/types.h
Also add CONFIG_PHYS_64BIT on powerpc to deal with 32-bit ppc's that have larger physical addresses like 44x, 85xx, and 86xx. Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'include/asm-ppc')
-rw-r--r--include/asm-ppc/io.h2
-rw-r--r--include/asm-ppc/types.h8
2 files changed, 8 insertions, 2 deletions
diff --git a/include/asm-ppc/io.h b/include/asm-ppc/io.h
index 91c9c1e..00b7ec5 100644
--- a/include/asm-ppc/io.h
+++ b/include/asm-ppc/io.h
@@ -243,8 +243,6 @@ extern inline void out_be32(volatile unsigned __iomem *addr, int val)
* that can be used to access the memory range with the caching
* properties specified by "flags".
*/
-typedef unsigned long phys_addr_t;
-
#define MAP_NOCACHE (0)
#define MAP_WRCOMBINE (0)
#define MAP_WRBACK (0)
diff --git a/include/asm-ppc/types.h b/include/asm-ppc/types.h
index 7adf145..864391f 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__ */