summaryrefslogtreecommitdiffstats
path: root/arch/metag/include/asm/dma-mapping.h
blob: 768f2e30236d3f1e4ab0e02d8f9297126e3393ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _ASM_METAG_DMA_MAPPING_H
#define _ASM_METAG_DMA_MAPPING_H

extern struct dma_map_ops metag_dma_ops;

static inline struct dma_map_ops *get_dma_ops(struct device *dev)
{
	return &metag_dma_ops;
}

#include <asm-generic/dma-mapping-common.h>

/*
 * dma_alloc_noncoherent() 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