ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / include / linux / dma-mapping.h
1 #ifndef _ASM_LINUX_DMA_MAPPING_H
2 #define _ASM_LINUX_DMA_MAPPING_H
3
4 /* These definitions mirror those in pci.h, so they can be used
5  * interchangeably with their PCI_ counterparts */
6 enum dma_data_direction {
7         DMA_BIDIRECTIONAL = 0,
8         DMA_TO_DEVICE = 1,
9         DMA_FROM_DEVICE = 2,
10         DMA_NONE = 3,
11 };
12
13 #define DMA_64BIT_MASK  0xffffffffffffffffULL
14 #define DMA_32BIT_MASK  0x00000000ffffffffULL
15
16 #include <asm/dma-mapping.h>
17
18 /* Backwards compat, remove in 2.7.x */
19 #define dma_sync_single         dma_sync_single_for_cpu
20 #define dma_sync_sg             dma_sync_sg_for_cpu
21
22 #endif
23
24