arm64: dts: Revert "specify console via command line"
[linux/fpc-iii.git] / arch / sparc / include / asm / dma-mapping.h
blobed32845bd2d2f941086626142284785bb0431527
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef ___ASM_SPARC_DMA_MAPPING_H
3 #define ___ASM_SPARC_DMA_MAPPING_H
5 #include <asm/cpu_type.h>
7 extern const struct dma_map_ops *dma_ops;
9 extern struct bus_type pci_bus_type;
11 static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
13 #ifdef CONFIG_SPARC_LEON
14 if (sparc_cpu_model == sparc_leon)
15 return NULL;
16 #endif
17 #if defined(CONFIG_SPARC32) && defined(CONFIG_PCI)
18 if (bus == &pci_bus_type)
19 return NULL;
20 #endif
21 return dma_ops;
24 #endif