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