]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
eb17726b SM |
2 | #ifndef _ASM_M32R_DMA_MAPPING_H |
3 | #define _ASM_M32R_DMA_MAPPING_H | |
4 | ||
5 | #include <linux/kernel.h> | |
6 | #include <linux/types.h> | |
7 | #include <linux/mm.h> | |
8 | #include <linux/scatterlist.h> | |
9 | #include <linux/dma-debug.h> | |
10 | #include <linux/io.h> | |
11 | ||
815dd187 | 12 | static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) |
eb17726b | 13 | { |
eb17726b SM |
14 | return &dma_noop_ops; |
15 | } | |
16 | ||
17 | static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size, | |
18 | enum dma_data_direction direction) | |
19 | { | |
20 | } | |
21 | ||
22 | static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size) | |
23 | { | |
24 | if (!dev->dma_mask) | |
25 | return false; | |
26 | return addr + size - 1 <= *dev->dma_mask; | |
27 | } | |
28 | ||
29 | #endif /* _ASM_M32R_DMA_MAPPING_H */ |