blob: 2f051343612e8a6c30463195b753a3860790bed1 [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef ___ASM_SPARC_DMA_MAPPING_H
3#define ___ASM_SPARC_DMA_MAPPING_H
4
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00005extern const struct dma_map_ops *dma_ops;
6
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00007static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
8{
Olivier Deprez157378f2022-04-04 15:47:50 +02009 /* sparc32 uses per-device dma_ops */
10 return IS_ENABLED(CONFIG_SPARC64) ? dma_ops : NULL;
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000011}
12
13#endif