2005-04-17 06:20:36 +08:00
|
|
|
#ifndef _ASM_CRIS_DMA_MAPPING_H
|
|
|
|
#define _ASM_CRIS_DMA_MAPPING_H
|
|
|
|
|
2005-07-28 02:44:40 +08:00
|
|
|
#ifdef CONFIG_PCI
|
2017-01-21 05:04:01 +08:00
|
|
|
extern const struct dma_map_ops v32_dma_ops;
|
2005-04-17 06:20:36 +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)
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
2016-01-21 07:01:38 +08:00
|
|
|
return &v32_dma_ops;
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|
2016-01-21 07:01:38 +08:00
|
|
|
#else
|
2017-01-21 05:04:04 +08:00
|
|
|
static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
|
2005-04-17 06:20:36 +08:00
|
|
|
{
|
2016-01-21 07:01:38 +08:00
|
|
|
BUG();
|
|
|
|
return NULL;
|
2005-04-17 06:20:36 +08:00
|
|
|
}
|
2005-07-28 02:44:40 +08:00
|
|
|
#endif
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
static inline void
|
2006-12-07 12:38:56 +08:00
|
|
|
dma_cache_sync(struct device *dev, void *vaddr, size_t size,
|
2005-04-17 06:20:36 +08:00
|
|
|
enum dma_data_direction direction)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2005-07-28 02:44:40 +08:00
|
|
|
#endif
|