1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _ASM_X86_SWIOTLB_H 3#define _ASM_X86_SWIOTLB_H 4 5#include <linux/swiotlb.h> 6 7#ifdef CONFIG_SWIOTLB 8extern int swiotlb; 9extern int __init pci_swiotlb_detect_override(void); 10extern int __init pci_swiotlb_detect_4gb(void); 11extern void __init pci_swiotlb_init(void); 12extern void __init pci_swiotlb_late_init(void); 13#else 14#define swiotlb 0 15static inline int pci_swiotlb_detect_override(void) 16{ 17 return 0; 18} 19static inline int pci_swiotlb_detect_4gb(void) 20{ 21 return 0; 22} 23static inline void pci_swiotlb_init(void) 24{ 25} 26static inline void pci_swiotlb_late_init(void) 27{ 28} 29#endif 30#endif /* _ASM_X86_SWIOTLB_H */ 31