xref: /OK3568_Linux_fs/kernel/arch/alpha/include/asm/dma-mapping.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun #ifndef _ALPHA_DMA_MAPPING_H
3*4882a593Smuzhiyun #define _ALPHA_DMA_MAPPING_H
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun extern const struct dma_map_ops alpha_pci_ops;
6*4882a593Smuzhiyun 
get_arch_dma_ops(struct bus_type * bus)7*4882a593Smuzhiyun static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
8*4882a593Smuzhiyun {
9*4882a593Smuzhiyun #ifdef CONFIG_ALPHA_JENSEN
10*4882a593Smuzhiyun 	return NULL;
11*4882a593Smuzhiyun #else
12*4882a593Smuzhiyun 	return &alpha_pci_ops;
13*4882a593Smuzhiyun #endif
14*4882a593Smuzhiyun }
15*4882a593Smuzhiyun 
16*4882a593Smuzhiyun #endif	/* _ALPHA_DMA_MAPPING_H */
17