1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 **************************************************************************** 11 ****************************************************************************/ 12 #ifndef __ASM_SH_DMA_MAPPING_H 13 #define __ASM_SH_DMA_MAPPING_H 14 15 #include <linux/mm.h> 16 #include <linux/scatterlist.h> 17 #include <asm/cacheflush.h> 18 #include <asm/io.h> 19 #include <asm-generic/dma-coherent.h> 20 21 #define dma_supported(dev, mask) (1) 22 23 #define dma_alloc_noncoherent(d, s, h, f) dma_alloc_coherent(d, s, h, f) 24 #define dma_free_noncoherent(d, s, v, h) dma_free_coherent(d, s, v, h) 25 #define dma_is_consistent(d, h) (1) 26 27 #define dma_unmap_single(dev, addr, size, dir) do { } while (0) 28 #define dma_unmap_sg(dev, sg, nents, dir) do { } while (0) 29 #define ARCH_HAS_DMA_DECLARE_COHERENT_MEMORY 30 31 #endif 32