18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef _ASM_X86_SWIOTLB_XEN_H 38c2ecf20Sopenharmony_ci#define _ASM_X86_SWIOTLB_XEN_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#ifdef CONFIG_SWIOTLB_XEN 68c2ecf20Sopenharmony_ciextern int xen_swiotlb; 78c2ecf20Sopenharmony_ciextern int __init pci_xen_swiotlb_detect(void); 88c2ecf20Sopenharmony_ciextern void __init pci_xen_swiotlb_init(void); 98c2ecf20Sopenharmony_ciextern int pci_xen_swiotlb_init_late(void); 108c2ecf20Sopenharmony_ci#else 118c2ecf20Sopenharmony_ci#define xen_swiotlb (0) 128c2ecf20Sopenharmony_cistatic inline int __init pci_xen_swiotlb_detect(void) { return 0; } 138c2ecf20Sopenharmony_cistatic inline void __init pci_xen_swiotlb_init(void) { } 148c2ecf20Sopenharmony_cistatic inline int pci_xen_swiotlb_init_late(void) { return -ENXIO; } 158c2ecf20Sopenharmony_ci#endif 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci#endif /* _ASM_X86_SWIOTLB_XEN_H */ 18