This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
2008-10-23 05:26:29 +00:00
|
|
|
#ifndef _ASM_X86_TYPES_H
|
|
|
|
#define _ASM_X86_TYPES_H
|
2007-10-17 18:32:07 +00:00
|
|
|
|
2009-06-18 19:48:18 +00:00
|
|
|
#define dma_addr_t dma_addr_t
|
2008-04-06 17:35:14 +00:00
|
|
|
|
2009-06-18 19:48:20 +00:00
|
|
|
#include <asm-generic/types.h>
|
2007-10-17 18:32:07 +00: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-23 05:26:29 +00:00
|
|
|
#endif /* _ASM_X86_TYPES_H */
|