From b27af39935855c88ef2203dcfc1ff54e013237c4 Mon Sep 17 00:00:00 2001 From: Masahiro Yamada Date: Sat, 26 Aug 2017 00:50:17 +0900 Subject: dma: import linux/dma-direction.h to consolidate enum dma_data_direction Import include/linux/dma-direction.h from Linux 4.13-rc7 and delete duplicated definitions of enum dma_data_direction. Signed-off-by: Masahiro Yamada Reviewed-by: Andy Shevchenko --- include/linux/dma-direction.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 include/linux/dma-direction.h (limited to 'include/linux') diff --git a/include/linux/dma-direction.h b/include/linux/dma-direction.h new file mode 100644 index 0000000000..95b6a82f59 --- /dev/null +++ b/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 -- cgit