dma-mapping.h 705 B

12345678910111213141516171819202122232425
  1. #ifndef __ASM_SH_DMA_MAPPING_H
  2. #define __ASM_SH_DMA_MAPPING_H
  3. extern struct dma_map_ops *dma_ops;
  4. extern void no_iommu_init(void);
  5. static inline struct dma_map_ops *get_dma_ops(struct device *dev)
  6. {
  7. return dma_ops;
  8. }
  9. #define DMA_ERROR_CODE 0
  10. void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
  11. enum dma_data_direction dir);
  12. /* arch/sh/mm/consistent.c */
  13. extern void *dma_generic_alloc_coherent(struct device *dev, size_t size,
  14. dma_addr_t *dma_addr, gfp_t flag,
  15. unsigned long attrs);
  16. extern void dma_generic_free_coherent(struct device *dev, size_t size,
  17. void *vaddr, dma_addr_t dma_handle,
  18. unsigned long attrs);
  19. #endif /* __ASM_SH_DMA_MAPPING_H */