aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/hotplug/pciehp.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/hotplug/pciehp.h')
-rw-r--r--drivers/pci/hotplug/pciehp.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/pciehp.h b/drivers/pci/hotplug/pciehp.h
index 084b73efacb3..8492fab800cc 100644
--- a/drivers/pci/hotplug/pciehp.h
+++ b/drivers/pci/hotplug/pciehp.h
@@ -202,9 +202,13 @@ struct hpc_ops {
202#include <acpi/actypes.h> 202#include <acpi/actypes.h>
203#include <linux/pci-acpi.h> 203#include <linux/pci-acpi.h>
204 204
205extern int pciehp_acpi_get_hp_hw_control_from_firmware(struct pci_dev *dev); 205static inline int pciehp_get_hp_hw_control_from_firmware(struct pci_dev *dev)
206#define pciehp_get_hp_hw_control_from_firmware(dev) \ 206{
207 pciehp_acpi_get_hp_hw_control_from_firmware(dev) 207 u32 flags = (OSC_PCI_EXPRESS_NATIVE_HP_CONTROL |
208 OSC_PCI_EXPRESS_CAP_STRUCTURE_CONTROL);
209 return acpi_get_hp_hw_control_from_firmware(dev, flags);
210}
211
208static inline int pciehp_get_hp_params_from_firmware(struct pci_dev *dev, 212static inline int pciehp_get_hp_params_from_firmware(struct pci_dev *dev,
209 struct hotplug_params *hpp) 213 struct hotplug_params *hpp)
210{ 214{