blob: 09b97745772f134532d869fd2f9565ec8633b29b [file] [log] [blame]
H. Peter Anvin1965aae2008-10-22 22:26:29 -07001#ifndef _ASM_X86_TYPES_H
2#define _ASM_X86_TYPES_H
Thomas Gleixner9d256ff2007-10-17 20:32:07 +02003
H. Peter Anvinedfa5cf2008-04-06 10:35:14 -07004#include <asm-generic/int-ll64.h>
5
Thomas Gleixner9d256ff2007-10-17 20:32:07 +02006#ifndef __ASSEMBLY__
7
8typedef unsigned short umode_t;
9
Thomas Gleixner9d256ff2007-10-17 20:32:07 +020010#endif /* __ASSEMBLY__ */
11
12/*
13 * These aren't exported outside the kernel to avoid name space clashes
14 */
15#ifdef __KERNEL__
16
Thomas Gleixner9d256ff2007-10-17 20:32:07 +020017#ifndef __ASSEMBLY__
18
Thomas Gleixner9d256ff2007-10-17 20:32:07 +020019typedef u64 dma64_addr_t;
20#if defined(CONFIG_X86_64) || defined(CONFIG_HIGHMEM64G)
21/* DMA addresses come in 32-bit and 64-bit flavours. */
22typedef u64 dma_addr_t;
23#else
24typedef u32 dma_addr_t;
25#endif
26
27#endif /* __ASSEMBLY__ */
28#endif /* __KERNEL__ */
29
H. Peter Anvin1965aae2008-10-22 22:26:29 -070030#endif /* _ASM_X86_TYPES_H */