2008-10-22 23:26:29 -06:00
|
|
|
#ifndef _ASM_X86_TYPES_H
|
|
|
|
#define _ASM_X86_TYPES_H
|
2007-10-17 12:32:07 -06:00
|
|
|
|
2009-06-18 13:48:18 -06:00
|
|
|
#define dma_addr_t dma_addr_t
|
2008-04-06 11:35:14 -06:00
|
|
|
|
2009-06-18 13:48:20 -06:00
|
|
|
#include <asm-generic/types.h>
|
2007-10-17 12:32:07 -06:00
|
|
|
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
#ifndef __ASSEMBLY__
|
|
|
|
|
|
|
|
typedef u64 dma64_addr_t;
|
|
|
|
#if defined(CONFIG_X86_64) || defined(CONFIG_HIGHMEM64G)
|
|
|
|
/* DMA addresses come in 32-bit and 64-bit flavours. */
|
|
|
|
typedef u64 dma_addr_t;
|
|
|
|
#else
|
|
|
|
typedef u32 dma_addr_t;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* __KERNEL__ */
|
|
|
|
|
2008-10-22 23:26:29 -06:00
|
|
|
#endif /* _ASM_X86_TYPES_H */
|