Merge branch 'x86-asm-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[pandora-kernel.git] / arch / x86 / include / asm / types.h
1 #ifndef _ASM_X86_TYPES_H
2 #define _ASM_X86_TYPES_H
3
4 #include <asm-generic/int-ll64.h>
5
6 #ifndef __ASSEMBLY__
7
8 typedef unsigned short umode_t;
9
10 #endif /* __ASSEMBLY__ */
11
12 /*
13  * These aren't exported outside the kernel to avoid name space clashes
14  */
15 #ifdef __KERNEL__
16
17 #ifndef __ASSEMBLY__
18
19 typedef u64 dma64_addr_t;
20 #if defined(CONFIG_X86_64) || defined(CONFIG_HIGHMEM64G)
21 /* DMA addresses come in 32-bit and 64-bit flavours. */
22 typedef u64 dma_addr_t;
23 #else
24 typedef u32 dma_addr_t;
25 #endif
26
27 #endif /* __ASSEMBLY__ */
28 #endif /* __KERNEL__ */
29
30 #endif /* _ASM_X86_TYPES_H */