2014-11-06 15:19:53 +08:00
|
|
|
/*
|
|
|
|
* 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
|
|
|
|
|
2017-01-21 05:04:01 +08:00
|
|
|
extern const struct dma_map_ops nios2_dma_ops;
|
2014-11-06 15:19:53 +08:00
|
|
|
|
2017-01-21 05:04:04 +08:00
|
|
|
static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
|
2014-11-06 15:19:53 +08:00
|
|
|
{
|
2016-01-21 07:01:41 +08:00
|
|
|
return &nios2_dma_ops;
|
2014-11-06 15:19:53 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
2017-08-25 23:06:13 +08:00
|
|
|
* dma_alloc_attrs() always returns non-cacheable memory, so there's no need to
|
2016-01-21 07:01:41 +08:00
|
|
|
* do any flushing here.
|
|
|
|
*/
|
2014-11-06 15:19:53 +08:00
|
|
|
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 */
|