1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */ 2*4882a593Smuzhiyun #ifndef _ASM_X86_SWIOTLB_XEN_H 3*4882a593Smuzhiyun #define _ASM_X86_SWIOTLB_XEN_H 4*4882a593Smuzhiyun 5*4882a593Smuzhiyun #ifdef CONFIG_SWIOTLB_XEN 6*4882a593Smuzhiyun extern int xen_swiotlb; 7*4882a593Smuzhiyun extern int __init pci_xen_swiotlb_detect(void); 8*4882a593Smuzhiyun extern void __init pci_xen_swiotlb_init(void); 9*4882a593Smuzhiyun extern int pci_xen_swiotlb_init_late(void); 10*4882a593Smuzhiyun #else 11*4882a593Smuzhiyun #define xen_swiotlb (0) pci_xen_swiotlb_detect(void)12*4882a593Smuzhiyunstatic inline int __init pci_xen_swiotlb_detect(void) { return 0; } pci_xen_swiotlb_init(void)13*4882a593Smuzhiyunstatic inline void __init pci_xen_swiotlb_init(void) { } pci_xen_swiotlb_init_late(void)14*4882a593Smuzhiyunstatic inline int pci_xen_swiotlb_init_late(void) { return -ENXIO; } 15*4882a593Smuzhiyun #endif 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun #endif /* _ASM_X86_SWIOTLB_XEN_H */ 18