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 enum dma_data_direction {
12 DMA_BIDIRECTIONAL = 0,
17 static void *dma_alloc_coherent(size_t len, unsigned long *handle)
19 *handle = (unsigned long)malloc(len);
20 return (void *)*handle;
23 static inline unsigned long dma_map_single(volatile void *vaddr, size_t len,
24 enum dma_data_direction dir)
26 return (unsigned long)vaddr;
29 static inline void dma_unmap_single(volatile void *vaddr, size_t len,
34 #endif /* __ASM_ARM_DMA_MAPPING_H */