2005-04-17 06:20:36 +08:00
|
|
|
#ifndef __ASM_SH_DMA_MAPPING_H
|
|
|
|
#define __ASM_SH_DMA_MAPPING_H
|
|
|
|
|
2017-01-21 05:04:01 +08:00
|
|
|
extern const struct dma_map_ops *dma_ops;
|
2009-10-20 11:55:56 +08:00
|
|
|
extern void no_iommu_init(void);
|
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)
|
2009-10-20 11:55:56 +08:00
|
|
|
{
|
|
|
|
return dma_ops;
|
|
|
|
}
|
|
|
|
|
2008-01-24 17:35:10 +08:00
|
|
|
void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
|
|
|
|
enum dma_data_direction dir);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2009-10-26 08:50:51 +08:00
|
|
|
/* arch/sh/mm/consistent.c */
|
|
|
|
extern void *dma_generic_alloc_coherent(struct device *dev, size_t size,
|
2011-12-14 19:11:13 +08:00
|
|
|
dma_addr_t *dma_addr, gfp_t flag,
|
2016-08-04 04:46:00 +08:00
|
|
|
unsigned long attrs);
|
2009-10-26 08:50:51 +08:00
|
|
|
extern void dma_generic_free_coherent(struct device *dev, size_t size,
|
2011-12-14 19:11:13 +08:00
|
|
|
void *vaddr, dma_addr_t dma_handle,
|
2016-08-04 04:46:00 +08:00
|
|
|
unsigned long attrs);
|
2008-01-24 17:35:10 +08:00
|
|
|
|
2005-04-17 06:20:36 +08:00
|
|
|
#endif /* __ASM_SH_DMA_MAPPING_H */
|