dma-mapping.h 657 B

12345678910111213141516171819202122232425262728
  1. #ifndef _ASM_M32R_DMA_MAPPING_H
  2. #define _ASM_M32R_DMA_MAPPING_H
  3. #include <linux/kernel.h>
  4. #include <linux/types.h>
  5. #include <linux/mm.h>
  6. #include <linux/scatterlist.h>
  7. #include <linux/dma-debug.h>
  8. #include <linux/io.h>
  9. static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
  10. {
  11. return &dma_noop_ops;
  12. }
  13. static inline void dma_cache_sync(struct device *dev, void *vaddr, size_t size,
  14. enum dma_data_direction direction)
  15. {
  16. }
  17. static inline bool dma_capable(struct device *dev, dma_addr_t addr, size_t size)
  18. {
  19. if (!dev->dma_mask)
  20. return false;
  21. return addr + size - 1 <= *dev->dma_mask;
  22. }
  23. #endif /* _ASM_M32R_DMA_MAPPING_H */