1 #ifndef _ASM_GENERIC_TYPES_H
2 #define _ASM_GENERIC_TYPES_H
4 * int-ll64 is used practically everywhere now,
5 * so use it as a reasonable default.
7 #include <asm-generic/int-ll64.h>
11 typedef unsigned short umode_t
;
13 #endif /* __ASSEMBLY__ */
16 * These aren't exported outside the kernel to avoid name space clashes
21 * DMA addresses may be very different from physical addresses
22 * and pointers. i386 and powerpc may have 64 bit DMA on 32 bit
23 * systems, while sparc64 uses 32 bit DMA addresses for 64 bit
25 * This default defines dma_addr_t to have the same size as
26 * phys_addr_t, which is the most common way.
27 * Do not define the dma64_addr_t type, which never really
31 #ifdef CONFIG_PHYS_ADDR_T_64BIT
32 typedef u64 dma_addr_t
;
34 typedef u32 dma_addr_t
;
35 #endif /* CONFIG_PHYS_ADDR_T_64BIT */
36 #endif /* dma_addr_t */
38 #endif /* __ASSEMBLY__ */
40 #endif /* __KERNEL__ */
42 #endif /* _ASM_GENERIC_TYPES_H */