summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/dma-direction.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/dma-direction.h')
-rw-r--r--kernel/include/linux/dma-direction.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/kernel/include/linux/dma-direction.h b/kernel/include/linux/dma-direction.h
new file mode 100644
index 000000000..95b6a82f5
--- /dev/null
+++ b/kernel/include/linux/dma-direction.h
@@ -0,0 +1,13 @@
+#ifndef _LINUX_DMA_DIRECTION_H
+#define _LINUX_DMA_DIRECTION_H
+/*
+ * These definitions mirror those in pci.h, so they can be used
+ * interchangeably with their PCI_ counterparts.
+ */
+enum dma_data_direction {
+ DMA_BIDIRECTIONAL = 0,
+ DMA_TO_DEVICE = 1,
+ DMA_FROM_DEVICE = 2,
+ DMA_NONE = 3,
+};
+#endif