dma-mapping.h 365 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _ASM_DMA_MAPPING_H
  3. #define _ASM_DMA_MAPPING_H
  4. #include <linux/swiotlb.h>
  5. extern const struct dma_map_ops jazz_dma_ops;
  6. static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
  7. {
  8. #if defined(CONFIG_MACH_JAZZ)
  9. return &jazz_dma_ops;
  10. #else
  11. return NULL;
  12. #endif
  13. }
  14. #endif /* _ASM_DMA_MAPPING_H */