dma-mapping.h 373 B

12345678910111213141516
  1. // SPDX-License-Identifier: GPL-2.0
  2. #ifndef _RISCV_ASM_DMA_MAPPING_H
  3. #define _RISCV_ASM_DMA_MAPPING_H 1
  4. #ifdef CONFIG_SWIOTLB
  5. #include <linux/swiotlb.h>
  6. static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
  7. {
  8. return &swiotlb_dma_ops;
  9. }
  10. #else
  11. #include <asm-generic/dma-mapping.h>
  12. #endif /* CONFIG_SWIOTLB */
  13. #endif /* _RISCV_ASM_DMA_MAPPING_H */