Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | #ifndef ___ASM_SPARC_DMA_MAPPING_H |
| 3 | #define ___ASM_SPARC_DMA_MAPPING_H |
| 4 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 5 | extern const struct dma_map_ops *dma_ops; |
| 6 | |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 7 | static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus) |
| 8 | { |
Olivier Deprez | 157378f | 2022-04-04 15:47:50 +0200 | [diff] [blame^] | 9 | /* sparc32 uses per-device dma_ops */ |
| 10 | return IS_ENABLED(CONFIG_SPARC64) ? dma_ops : NULL; |
Andrew Scull | b4b6d4a | 2019-01-02 15:54:55 +0000 | [diff] [blame] | 11 | } |
| 12 | |
| 13 | #endif |