diff options
author | Aneesh Bansal <aneesh.bansal@freescale.com> | 2015-09-17 16:16:35 +0530 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2015-10-29 10:33:57 -0700 |
commit | f4f0b7403a06d2642ca40e6a0b18ee7336f276a8 (patch) | |
tree | 7a9549558f61fe8fa0725c9bdf4a6799748b6cf1 /arch/arm/include/asm/types.h | |
parent | 7bcb0eb28592c8336584a4a0d123b87837f91fd9 (diff) |
Data types defined for 64 bit physical address
Data types and I/O functions have been defined for
64 bit physical addresses in arm.
Signed-off-by: Aneesh Bansal <aneesh.bansal@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'arch/arm/include/asm/types.h')
-rw-r--r-- | arch/arm/include/asm/types.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/arch/arm/include/asm/types.h b/arch/arm/include/asm/types.h index ee77c4179f1..388058e04c5 100644 --- a/arch/arm/include/asm/types.h +++ b/arch/arm/include/asm/types.h @@ -45,12 +45,16 @@ typedef unsigned long long u64; #define BITS_PER_LONG 32 #endif /* CONFIG_ARM64 */ -/* Dma addresses are 32-bits wide. */ - +#ifdef CONFIG_PHYS_64BIT +typedef unsigned long long dma_addr_t; +typedef unsigned long long phys_addr_t; +typedef unsigned long long phys_size_t; +#else +/* DMA addresses are 32-bits wide */ typedef u32 dma_addr_t; - typedef unsigned long phys_addr_t; typedef unsigned long phys_size_t; +#endif #endif /* __KERNEL__ */ |