H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 1 | #ifndef _ASM_X86_TYPES_H |
| 2 | #define _ASM_X86_TYPES_H |
Thomas Gleixner | 9d256ff | 2007-10-17 20:32:07 +0200 | [diff] [blame] | 3 | |
Arnd Bergmann | 06f5013 | 2009-06-18 21:48:18 +0200 | [diff] [blame] | 4 | #define dma_addr_t dma_addr_t |
H. Peter Anvin | edfa5cf | 2008-04-06 10:35:14 -0700 | [diff] [blame] | 5 | |
Arnd Bergmann | 73a2d09 | 2009-06-18 21:48:20 +0200 | [diff] [blame^] | 6 | #include <asm-generic/types.h> |
Thomas Gleixner | 9d256ff | 2007-10-17 20:32:07 +0200 | [diff] [blame] | 7 | |
Thomas Gleixner | 9d256ff | 2007-10-17 20:32:07 +0200 | [diff] [blame] | 8 | #ifdef __KERNEL__ |
Thomas Gleixner | 9d256ff | 2007-10-17 20:32:07 +0200 | [diff] [blame] | 9 | #ifndef __ASSEMBLY__ |
| 10 | |
Thomas Gleixner | 9d256ff | 2007-10-17 20:32:07 +0200 | [diff] [blame] | 11 | typedef u64 dma64_addr_t; |
| 12 | #if defined(CONFIG_X86_64) || defined(CONFIG_HIGHMEM64G) |
| 13 | /* DMA addresses come in 32-bit and 64-bit flavours. */ |
| 14 | typedef u64 dma_addr_t; |
| 15 | #else |
| 16 | typedef u32 dma_addr_t; |
| 17 | #endif |
| 18 | |
| 19 | #endif /* __ASSEMBLY__ */ |
| 20 | #endif /* __KERNEL__ */ |
| 21 | |
H. Peter Anvin | 1965aae | 2008-10-22 22:26:29 -0700 | [diff] [blame] | 22 | #endif /* _ASM_X86_TYPES_H */ |