1 #ifndef __ASM_ARM_TYPES_H
2 #define __ASM_ARM_TYPES_H
4 #include <asm-generic/int-ll64.h>
6 typedef unsigned short umode_t;
9 * These aren't exported outside the kernel to avoid name space clashes
14 #define BITS_PER_LONG 64
15 #else /* CONFIG_ARM64 */
16 #define BITS_PER_LONG 32
17 #endif /* CONFIG_ARM64 */
19 #ifdef CONFIG_PHYS_64BIT
20 typedef unsigned long long phys_addr_t;
21 typedef unsigned long long phys_size_t;
23 /* DMA addresses are 32-bits wide */
24 typedef unsigned long phys_addr_t;
25 typedef unsigned long phys_size_t;
29 * A dma_addr_t can hold any valid DMA address, i.e., any address returned
32 * If the DMA API only uses 32-bit addresses, dma_addr_t need only be 32
33 * bits wide. Bus addresses, e.g., PCI BARs, may be wider than 32 bits,
34 * but drivers do memory-mapped I/O to ioremapped kernel virtual addresses,
35 * so they don't care about the size of the actual bus addresses.
37 #ifdef CONFIG_DMA_ADDR_T_64BIT
38 typedef unsigned long long dma_addr_t;
40 typedef u32 dma_addr_t;
43 #endif /* __KERNEL__ */