aboutsummaryrefslogtreecommitdiffstats
path: root/arch/metag/include/asm/dma-mapping.h
blob: 7465ce54a4a9b024e96f2c91b858efcf0fae98d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ASM_METAG_DMA_MAPPING_H
#define _ASM_METAG_DMA_MAPPING_H

extern const struct dma_map_ops metag_dma_ops;

static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
{
	return &metag_dma_ops;
}

/*
 * dma_alloc_attrs() always returns non-cacheable memory, so there's no need to
 * do any flushing here.
 */
static inline void
dma_cache_sync(struct device *dev, void *vaddr, size_t size,
	       enum dma_data_direction direction)
{
}

#endif