3 * Stelian Pop <stelian@popies.net>
4 * Lead Tech Design <www.leadtechdesign.com>
6 * SPDX-License-Identifier: GPL-2.0+
8 #ifndef __ASM_ARM_DMA_MAPPING_H
9 #define __ASM_ARM_DMA_MAPPING_H
11 #define dma_mapping_error(x, y) 0
13 enum dma_data_direction {
14 DMA_BIDIRECTIONAL = 0,
19 static inline void *dma_alloc_coherent(size_t len, unsigned long *handle)
21 *handle = (unsigned long)memalign(ARCH_DMA_MINALIGN, len);
22 return (void *)*handle;
25 static inline void dma_free_coherent(void *addr)
30 static inline unsigned long dma_map_single(volatile void *vaddr, size_t len,
31 enum dma_data_direction dir)
33 return (unsigned long)vaddr;
36 static inline void dma_unmap_single(volatile void *vaddr, size_t len,
41 #endif /* __ASM_ARM_DMA_MAPPING_H */