From e99ccb488181d012248c6be30b2093e950319fc5 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Thu, 27 Mar 2008 11:46:38 -0500 Subject: 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 --- include/asm-nios/io.h | 2 -- include/asm-nios/types.h | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'include/asm-nios') diff --git a/include/asm-nios/io.h b/include/asm-nios/io.h index 6fc339fb0..12a0bd915 100644 --- a/include/asm-nios/io.h +++ b/include/asm-nios/io.h @@ -114,8 +114,6 @@ static inline void sync(void) * 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-nios/types.h b/include/asm-nios/types.h index 24c98a89e..636e12fd3 100644 --- a/include/asm-nios/types.h +++ b/include/asm-nios/types.h @@ -52,6 +52,9 @@ typedef unsigned long long u64; /* Dma addresses are 32-bits wide. */ typedef u32 dma_addr_t; + +typedef unsigned long phys_addr_t; +typedef unsigned long phys_size_t; #endif /* __KERNEL__ */ #endif /* _NIOS_TYPES_H */ -- cgit v1.2.3