1 #ifndef _ASM_METAG_DMA_MAPPING_H 2 #define _ASM_METAG_DMA_MAPPING_H 3 4 extern struct dma_map_ops metag_dma_ops; 5 get_dma_ops(struct device * dev)6static inline struct dma_map_ops *get_dma_ops(struct device *dev) 7 { 8 return &metag_dma_ops; 9 } 10 11 /* 12 * dma_alloc_noncoherent() returns non-cacheable memory, so there's no need to 13 * do any flushing here. 14 */ 15 static inline void dma_cache_sync(struct device * dev,void * vaddr,size_t size,enum dma_data_direction direction)16dma_cache_sync(struct device *dev, void *vaddr, size_t size, 17 enum dma_data_direction direction) 18 { 19 } 20 21 #endif 22