dma-mapping.h 777 字节
Newer Older
L
Ley Foon Tan 已提交
1 2 3 4 5 6 7 8 9 10 11 12
/*
 * Copyright (C) 2011 Tobias Klauser <tklauser@distanz.ch>
 * Copyright (C) 2009 Wind River Systems Inc
 *
 * This file is subject to the terms and conditions of the GNU General
 * Public License.  See the file COPYING in the main directory of this
 * archive for more details.
 */

#ifndef _ASM_NIOS2_DMA_MAPPING_H
#define _ASM_NIOS2_DMA_MAPPING_H

13
extern const struct dma_map_ops nios2_dma_ops;
L
Ley Foon Tan 已提交
14

15
static inline const struct dma_map_ops *get_dma_ops(struct device *dev)
L
Ley Foon Tan 已提交
16
{
17
	return &nios2_dma_ops;
L
Ley Foon Tan 已提交
18 19 20
}

/*
21 22 23
 * dma_alloc_noncoherent() returns non-cacheable memory, so there's no need to
 * do any flushing here.
 */
L
Ley Foon Tan 已提交
24 25 26 27 28 29
static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
				  enum dma_data_direction direction)
{
}

#endif /* _ASM_NIOS2_DMA_MAPPING_H */