^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0 */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) #ifndef ___ASM_SPARC_DMA_MAPPING_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #define ___ASM_SPARC_DMA_MAPPING_H
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) extern const struct dma_map_ops *dma_ops;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) /* sparc32 uses per-device dma_ops */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) return IS_ENABLED(CONFIG_SPARC64) ? dma_ops : NULL;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #endif