License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[linux-2.6-block.git] / arch / frv / include / asm / dma-mapping.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
2#ifndef _ASM_DMA_MAPPING_H
3#define _ASM_DMA_MAPPING_H
4
1da177e4
LT
5#include <asm/cache.h>
6#include <asm/cacheflush.h>
1da177e4
LT
7
8extern unsigned long __nongprelbss dma_coherent_mem_start;
9extern unsigned long __nongprelbss dma_coherent_mem_end;
10
5299709d 11extern const struct dma_map_ops frv_dma_ops;
1da177e4 12
815dd187 13static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
1da177e4 14{
eae07519 15 return &frv_dma_ops;
1da177e4
LT
16}
17
1da177e4 18static inline
d3fa72e4 19void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
1da177e4
LT
20 enum dma_data_direction direction)
21{
22 flush_write_buffers();
23}
24
25#endif /* _ASM_DMA_MAPPING_H */