diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/acpi/acpi_bus.h | 4 | ||||
| -rw-r--r-- | include/linux/pci-acpi.h | 7 | ||||
| -rw-r--r-- | include/linux/pci.h | 1 |
3 files changed, 12 insertions, 0 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 60fcff419352..54508ccea023 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
| @@ -243,6 +243,7 @@ struct acpi_device_wakeup_flags { | |||
| 243 | u8 valid:1; /* Can successfully enable wakeup? */ | 243 | u8 valid:1; /* Can successfully enable wakeup? */ |
| 244 | u8 run_wake:1; /* Run-Wake GPE devices */ | 244 | u8 run_wake:1; /* Run-Wake GPE devices */ |
| 245 | u8 always_enabled:1; /* Run-wake devices that are always enabled */ | 245 | u8 always_enabled:1; /* Run-wake devices that are always enabled */ |
| 246 | u8 notifier_present:1; /* Wake-up notify handler has been installed */ | ||
| 246 | }; | 247 | }; |
| 247 | 248 | ||
| 248 | struct acpi_device_wakeup_state { | 249 | struct acpi_device_wakeup_state { |
| @@ -388,6 +389,9 @@ acpi_handle acpi_get_pci_rootbridge_handle(unsigned int, unsigned int); | |||
| 388 | struct acpi_pci_root *acpi_pci_find_root(acpi_handle handle); | 389 | struct acpi_pci_root *acpi_pci_find_root(acpi_handle handle); |
| 389 | #define DEVICE_ACPI_HANDLE(dev) ((acpi_handle)((dev)->archdata.acpi_handle)) | 390 | #define DEVICE_ACPI_HANDLE(dev) ((acpi_handle)((dev)->archdata.acpi_handle)) |
| 390 | 391 | ||
| 392 | int acpi_enable_wakeup_device_power(struct acpi_device *dev, int state); | ||
| 393 | int acpi_disable_wakeup_device_power(struct acpi_device *dev); | ||
| 394 | |||
| 391 | #ifdef CONFIG_PM_SLEEP | 395 | #ifdef CONFIG_PM_SLEEP |
| 392 | int acpi_pm_device_sleep_state(struct device *, int *); | 396 | int acpi_pm_device_sleep_state(struct device *, int *); |
| 393 | int acpi_pm_device_sleep_wake(struct device *, bool); | 397 | int acpi_pm_device_sleep_wake(struct device *, bool); |
diff --git a/include/linux/pci-acpi.h b/include/linux/pci-acpi.h index 93a7c08f869d..c8b6473c5f42 100644 --- a/include/linux/pci-acpi.h +++ b/include/linux/pci-acpi.h | |||
| @@ -11,6 +11,13 @@ | |||
| 11 | #include <linux/acpi.h> | 11 | #include <linux/acpi.h> |
| 12 | 12 | ||
| 13 | #ifdef CONFIG_ACPI | 13 | #ifdef CONFIG_ACPI |
| 14 | extern acpi_status pci_acpi_add_bus_pm_notifier(struct acpi_device *dev, | ||
| 15 | struct pci_bus *pci_bus); | ||
| 16 | extern acpi_status pci_acpi_remove_bus_pm_notifier(struct acpi_device *dev); | ||
| 17 | extern acpi_status pci_acpi_add_pm_notifier(struct acpi_device *dev, | ||
| 18 | struct pci_dev *pci_dev); | ||
| 19 | extern acpi_status pci_acpi_remove_pm_notifier(struct acpi_device *dev); | ||
| 20 | |||
| 14 | static inline acpi_handle acpi_find_root_bridge_handle(struct pci_dev *pdev) | 21 | static inline acpi_handle acpi_find_root_bridge_handle(struct pci_dev *pdev) |
| 15 | { | 22 | { |
| 16 | struct pci_bus *pbus = pdev->bus; | 23 | struct pci_bus *pbus = pdev->bus; |
diff --git a/include/linux/pci.h b/include/linux/pci.h index 9fe4b2089b78..3f787ce78bd1 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
| @@ -782,6 +782,7 @@ int pci_wake_from_d3(struct pci_dev *dev, bool enable); | |||
| 782 | pci_power_t pci_target_state(struct pci_dev *dev); | 782 | pci_power_t pci_target_state(struct pci_dev *dev); |
| 783 | int pci_prepare_to_sleep(struct pci_dev *dev); | 783 | int pci_prepare_to_sleep(struct pci_dev *dev); |
| 784 | int pci_back_from_sleep(struct pci_dev *dev); | 784 | int pci_back_from_sleep(struct pci_dev *dev); |
| 785 | bool pci_dev_run_wake(struct pci_dev *dev); | ||
| 785 | 786 | ||
| 786 | /* For use by arch with custom probe code */ | 787 | /* For use by arch with custom probe code */ |
| 787 | void set_pcie_port_type(struct pci_dev *pdev); | 788 | void set_pcie_port_type(struct pci_dev *pdev); |
