]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
f507758c JH |
2 | #ifndef _ASM_METAG_DMA_MAPPING_H |
3 | #define _ASM_METAG_DMA_MAPPING_H | |
4 | ||
5299709d | 5 | extern const struct dma_map_ops metag_dma_ops; |
f507758c | 6 | |
815dd187 | 7 | static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) |
f507758c | 8 | { |
5348c1e9 | 9 | return &metag_dma_ops; |
f507758c JH |
10 | } |
11 | ||
f507758c | 12 | /* |
2fd523c5 | 13 | * dma_alloc_attrs() always returns non-cacheable memory, so there's no need to |
f507758c JH |
14 | * do any flushing here. |
15 | */ | |
16 | static inline void | |
17 | dma_cache_sync(struct device *dev, void *vaddr, size_t size, | |
18 | enum dma_data_direction direction) | |
19 | { | |
20 | } | |
21 | ||
22 | #endif |