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