metag: convert to dma_map_ops
[deliverable/linux.git] / arch / metag / include / asm / dma-mapping.h
1 #ifndef _ASM_METAG_DMA_MAPPING_H
2 #define _ASM_METAG_DMA_MAPPING_H
3
4 extern struct dma_map_ops metag_dma_ops;
5
6 static inline struct dma_map_ops *get_dma_ops(struct device *dev)
7 {
8 return &metag_dma_ops;
9 }
10
11 #include <asm-generic/dma-mapping-common.h>
12
13 /*
14 * dma_alloc_noncoherent() returns non-cacheable memory, so there's no need to
15 * do any flushing here.
16 */
17 static inline void
18 dma_cache_sync(struct device *dev, void *vaddr, size_t size,
19 enum dma_data_direction direction)
20 {
21 }
22
23 #endif
This page took 0.031345 seconds and 5 git commands to generate.