1 #ifndef __ASM_I386_TYPES_H 2 #define __ASM_I386_TYPES_H 3 4 #include <asm-generic/int-ll64.h> 5 6 typedef unsigned short umode_t; 7 8 /* 9 * These aren't exported outside the kernel to avoid name space clashes 10 */ 11 #ifdef __KERNEL__ 12 13 #if CONFIG_IS_ENABLED(X86_64) 14 #define BITS_PER_LONG 64 15 #else 16 #define BITS_PER_LONG 32 17 #endif 18 19 /* Dma addresses are 32-bits wide. */ 20 21 typedef u32 dma_addr_t; 22 23 typedef unsigned long long phys_addr_t; 24 typedef unsigned long long phys_size_t; 25 26 #endif /* __KERNEL__ */ 27 28 #endif 29