]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - arch/metag/include/asm/dma-mapping.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / arch / metag / include / asm / dma-mapping.h
CommitLineData
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 5extern const struct dma_map_ops metag_dma_ops;
f507758c 6
815dd187 7static 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 */
16static inline void
17dma_cache_sync(struct device *dev, void *vaddr, size_t size,
18 enum dma_data_direction direction)
19{
20}
21
22#endif