hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/include/linux/pci-acpi.h
....@@ -27,7 +27,7 @@
2727
2828 struct pci_ecam_ops;
2929 extern int pci_mcfg_lookup(struct acpi_pci_root *root, struct resource *cfgres,
30
- struct pci_ecam_ops **ecam_ops);
30
+ const struct pci_ecam_ops **ecam_ops);
3131
3232 static inline acpi_handle acpi_find_root_bridge_handle(struct pci_dev *pdev)
3333 {
....@@ -107,19 +107,24 @@
107107 #endif
108108
109109 extern const guid_t pci_acpi_dsm_guid;
110
-#define DEVICE_LABEL_DSM 0x07
111
-#define RESET_DELAY_DSM 0x08
112
-#define FUNCTION_DELAY_DSM 0x09
110
+
111
+/* _DSM Definitions for PCI */
112
+#define DSM_PCI_PRESERVE_BOOT_CONFIG 0x05
113
+#define DSM_PCI_DEVICE_NAME 0x07
114
+#define DSM_PCI_POWER_ON_RESET_DELAY 0x08
115
+#define DSM_PCI_DEVICE_READINESS_DURATIONS 0x09
116
+
117
+#ifdef CONFIG_PCIE_EDR
118
+void pci_acpi_add_edr_notifier(struct pci_dev *pdev);
119
+void pci_acpi_remove_edr_notifier(struct pci_dev *pdev);
120
+#else
121
+static inline void pci_acpi_add_edr_notifier(struct pci_dev *pdev) { }
122
+static inline void pci_acpi_remove_edr_notifier(struct pci_dev *pdev) { }
123
+#endif /* CONFIG_PCIE_EDR */
113124
114125 #else /* CONFIG_ACPI */
115126 static inline void acpi_pci_add_bus(struct pci_bus *bus) { }
116127 static inline void acpi_pci_remove_bus(struct pci_bus *bus) { }
117128 #endif /* CONFIG_ACPI */
118
-
119
-#ifdef CONFIG_ACPI_APEI
120
-extern bool aer_acpi_firmware_first(void);
121
-#else
122
-static inline bool aer_acpi_firmware_first(void) { return false; }
123
-#endif
124129
125130 #endif /* _PCI_ACPI_H_ */