GNU Linux-libre 4.14.328-gnu1
[releases.git] / arch / cris / include / asm / dma-mapping.h
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
8 static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
9 {
10         return &v32_dma_ops;
11 }
12 #else
13 static 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
21 dma_cache_sync(struct device *dev, void *vaddr, size_t size,
22                enum dma_data_direction direction)
23 {
24 }
25
26 #endif