• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_METAG_DMA_MAPPING_H
3 #define _ASM_METAG_DMA_MAPPING_H
4 
5 extern const struct dma_map_ops metag_dma_ops;
6 
get_arch_dma_ops(struct bus_type * bus)7 static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
8 {
9 	return &metag_dma_ops;
10 }
11 
12 /*
13  * dma_alloc_attrs() always returns non-cacheable memory, so there's no need to
14  * do any flushing here.
15  */
16 static inline void
dma_cache_sync(struct device * dev,void * vaddr,size_t size,enum dma_data_direction direction)17 dma_cache_sync(struct device *dev, void *vaddr, size_t size,
18 	       enum dma_data_direction direction)
19 {
20 }
21 
22 #endif
23