dma-mapping.h 336 B

12345678910111213
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef ___ASM_SPARC_DMA_MAPPING_H
  3. #define ___ASM_SPARC_DMA_MAPPING_H
  4. extern const struct dma_map_ops *dma_ops;
  5. static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
  6. {
  7. /* sparc32 uses per-device dma_ops */
  8. return IS_ENABLED(CONFIG_SPARC64) ? dma_ops : NULL;
  9. }
  10. #endif