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
)
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
,
21 extern void dma_generic_free_coherent(struct device
*dev
, size_t size
,
22 void *vaddr
, dma_addr_t dma_handle
,
25 #endif /* __ASM_SH_DMA_MAPPING_H */