1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef _M68K_DMA_MAPPING_H 3 #define _M68K_DMA_MAPPING_H 4 5 extern const struct dma_map_ops m68k_dma_ops; 6 get_arch_dma_ops(struct bus_type * bus)7static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) 8 { 9 return &m68k_dma_ops; 10 } 11 dma_cache_sync(struct device * dev,void * vaddr,size_t size,enum dma_data_direction dir)12static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size, 13 enum dma_data_direction dir) 14 { 15 /* we use coherent allocation, so not much to do here. */ 16 } 17 18 #endif /* _M68K_DMA_MAPPING_H */ 19