.. | .. |
---|
27 | 27 | |
---|
28 | 28 | struct pci_ecam_ops; |
---|
29 | 29 | 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); |
---|
31 | 31 | |
---|
32 | 32 | static inline acpi_handle acpi_find_root_bridge_handle(struct pci_dev *pdev) |
---|
33 | 33 | { |
---|
.. | .. |
---|
107 | 107 | #endif |
---|
108 | 108 | |
---|
109 | 109 | 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 */ |
---|
113 | 124 | |
---|
114 | 125 | #else /* CONFIG_ACPI */ |
---|
115 | 126 | static inline void acpi_pci_add_bus(struct pci_bus *bus) { } |
---|
116 | 127 | static inline void acpi_pci_remove_bus(struct pci_bus *bus) { } |
---|
117 | 128 | #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 |
---|
124 | 129 | |
---|
125 | 130 | #endif /* _PCI_ACPI_H_ */ |
---|