]>
Commit | Line | Data |
---|---|---|
e23c621f LFT |
1 | /* |
2 | * Copyright (C) 2011 Tobias Klauser <tklauser@distanz.ch> | |
3 | * Copyright (C) 2009 Wind River Systems Inc | |
4 | * | |
5 | * This file is subject to the terms and conditions of the GNU General | |
6 | * Public License. See the file COPYING in the main directory of this | |
7 | * archive for more details. | |
8 | */ | |
9 | ||
10 | #ifndef _ASM_NIOS2_DMA_MAPPING_H | |
11 | #define _ASM_NIOS2_DMA_MAPPING_H | |
12 | ||
5299709d | 13 | extern const struct dma_map_ops nios2_dma_ops; |
e23c621f | 14 | |
815dd187 | 15 | static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) |
e23c621f | 16 | { |
5a1a67f1 | 17 | return &nios2_dma_ops; |
e23c621f LFT |
18 | } |
19 | ||
20 | /* | |
2fd523c5 | 21 | * dma_alloc_attrs() always returns non-cacheable memory, so there's no need to |
5a1a67f1 CH |
22 | * do any flushing here. |
23 | */ | |
e23c621f LFT |
24 | static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size, |
25 | enum dma_data_direction direction) | |
26 | { | |
27 | } | |
28 | ||
e23c621f | 29 | #endif /* _ASM_NIOS2_DMA_MAPPING_H */ |