hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
kernel/arch/x86/include/asm/pci_x86.h
....@@ -114,14 +114,32 @@
114114 extern bool port_cf9_safe;
115115
116116 /* arch_initcall level */
117
+#ifdef CONFIG_PCI_DIRECT
117118 extern int pci_direct_probe(void);
118119 extern void pci_direct_init(int type);
120
+#else
121
+static inline int pci_direct_probe(void) { return -1; }
122
+static inline void pci_direct_init(int type) { }
123
+#endif
124
+
125
+#ifdef CONFIG_PCI_BIOS
119126 extern void pci_pcbios_init(void);
127
+#else
128
+static inline void pci_pcbios_init(void) { }
129
+#endif
130
+
120131 extern void __init dmi_check_pciprobe(void);
121132 extern void __init dmi_check_skip_isa_align(void);
122133
123134 /* some common used subsys_initcalls */
135
+#ifdef CONFIG_PCI
124136 extern int __init pci_acpi_init(void);
137
+#else
138
+static inline int __init pci_acpi_init(void)
139
+{
140
+ return -EINVAL;
141
+}
142
+#endif
125143 extern void __init pcibios_irq_init(void);
126144 extern int __init pcibios_init(void);
127145 extern int pci_legacy_init(void);