2005-04-17 06:20:36 +08:00
|
|
|
#ifndef _ASM_DMA_MAPPING_H
|
|
|
|
#define _ASM_DMA_MAPPING_H
|
|
|
|
|
|
|
|
#include <asm/cache.h>
|
|
|
|
#include <asm/cacheflush.h>
|
|
|
|
|
|
|
|
extern unsigned long __nongprelbss dma_coherent_mem_start;
|
|
|
|
extern unsigned long __nongprelbss dma_coherent_mem_end;
|
|
|
|
|
2017-01-21 05:04:01 +08:00
|
|
|
extern const struct dma_map_ops frv_dma_ops;
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2017-01-21 05:04:01 +08:00
|
|
|
static inline const struct dma_map_ops *get_dma_ops(struct device *dev)
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
2016-01-21 07:01:44 +08:00
|
|
|
return &frv_dma_ops;
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
static inline
|
2006-12-07 12:38:56 +08:00
|
|
|
void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
|
2005-04-17 06:20:36 +08:00
|
|
|
enum dma_data_direction direction)
|
|
|
|
{
|
|
|
|
flush_write_buffers();
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif /* _ASM_DMA_MAPPING_H */
|