1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _ASM_CRIS_DMA_MAPPING_H 3 #define _ASM_CRIS_DMA_MAPPING_H 4 5 #ifdef CONFIG_PCI 6 extern const struct dma_map_ops v32_dma_ops; 7 get_arch_dma_ops(struct bus_type * bus)8static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) 9 { 10 return &v32_dma_ops; 11 } 12 #else get_arch_dma_ops(struct bus_type * bus)13static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) 14 { 15 BUG(); 16 return NULL; 17 } 18 #endif 19 20 static inline void dma_cache_sync(struct device * dev,void * vaddr,size_t size,enum dma_data_direction direction)21dma_cache_sync(struct device *dev, void *vaddr, size_t size, 22 enum dma_data_direction direction) 23 { 24 } 25 26 #endif 27