diff options
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/io.h | 2 | ||||
-rw-r--r-- | include/asm-mips/types.h | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/include/asm-mips/io.h b/include/asm-mips/io.h index e27d1f159d7..7137072ce45 100644 --- a/include/asm-mips/io.h +++ b/include/asm-mips/io.h @@ -470,8 +470,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-mips/types.h b/include/asm-mips/types.h index f49a2176af0..d4bb85999bb 100644 --- a/include/asm-mips/types.h +++ b/include/asm-mips/types.h @@ -78,8 +78,16 @@ typedef unsigned long long u64; #if (defined(CONFIG_HIGHMEM) && defined(CONFIG_64BIT_PHYS_ADDR)) \ || defined(CONFIG_64BIT) typedef u64 dma_addr_t; + +typedef u64 phys_addr_t; +typedef u64 phys_size_t; + #else typedef u32 dma_addr_t; + +typedef u32 phys_addr_t; +typedef u32 phys_size_t; + #endif typedef u64 dma64_addr_t; |