]> git.sur5r.net Git - u-boot/blobdiff - arch/x86/include/asm/dma-mapping.h
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / arch / x86 / include / asm / dma-mapping.h
index 7de4c08e36eab84edf01f2b5d44e40e67bf36d51..b353ff0bef5926ec382c726ec422537fa3325ca2 100644 (file)
@@ -1,20 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
 /*
  * (C) Copyright 2007
  * Stelian Pop <stelian@popies.net>
  * Lead Tech Design <www.leadtechdesign.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 #ifndef __ASM_X86_DMA_MAPPING_H
 #define __ASM_X86_DMA_MAPPING_H
 
-#define        dma_mapping_error(x, y) 0
+#include <linux/dma-direction.h>
 
-enum dma_data_direction {
-       DMA_BIDIRECTIONAL       = 0,
-       DMA_TO_DEVICE           = 1,
-       DMA_FROM_DEVICE         = 2,
-};
+#define        dma_mapping_error(x, y) 0
 
 static inline void *dma_alloc_coherent(size_t len, unsigned long *handle)
 {