Linux 4.8-rc8
[linux/fpc-iii.git] / arch / sh / include / asm / dma-mapping.h
blob0052ad40e86d33f04a2034fc33337d1e1859d035
1 #ifndef __ASM_SH_DMA_MAPPING_H
2 #define __ASM_SH_DMA_MAPPING_H
4 extern struct dma_map_ops *dma_ops;
5 extern void no_iommu_init(void);
7 static inline struct dma_map_ops *get_dma_ops(struct device *dev)
9 return dma_ops;
12 #define DMA_ERROR_CODE 0
14 void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
15 enum dma_data_direction dir);
17 /* arch/sh/mm/consistent.c */
18 extern void *dma_generic_alloc_coherent(struct device *dev, size_t size,
19 dma_addr_t *dma_addr, gfp_t flag,
20 unsigned long attrs);
21 extern void dma_generic_free_coherent(struct device *dev, size_t size,
22 void *vaddr, dma_addr_t dma_handle,
23 unsigned long attrs);
25 #endif /* __ASM_SH_DMA_MAPPING_H */