GNU Linux-libre 4.14.266-gnu1
[releases.git] / arch / m68k / include / asm / dma-mapping.h
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
7 static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
8 {
9         return &m68k_dma_ops;
10 }
11
12 static 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 */