diff options
author | Matthew Garrett <mjg@redhat.com> | 2010-10-04 14:22:26 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-10-17 23:03:06 -0400 |
commit | bf4d29086972ceaeaf72544d8f64933c2cfdc992 (patch) | |
tree | 301ee83217bc9a19cef5c7569801095b4d6f89b4 | |
parent | 1bcd495be9ed3194f618e8af0446459dc52a1423 (diff) |
PCI: Export some PCI PM functionality
It's helpful to have some extra PCI power management functions available to
platform code, so move the declarations to an exported header.
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
-rw-r--r-- | drivers/pci/pci.h | 3 | ||||
-rw-r--r-- | include/linux/pci.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 6beb11b617a9..f5c7c382765f 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h | |||
@@ -63,11 +63,8 @@ struct pci_platform_pm_ops { | |||
63 | extern int pci_set_platform_pm(struct pci_platform_pm_ops *ops); | 63 | extern int pci_set_platform_pm(struct pci_platform_pm_ops *ops); |
64 | extern void pci_update_current_state(struct pci_dev *dev, pci_power_t state); | 64 | extern void pci_update_current_state(struct pci_dev *dev, pci_power_t state); |
65 | extern void pci_disable_enabled_device(struct pci_dev *dev); | 65 | extern void pci_disable_enabled_device(struct pci_dev *dev); |
66 | extern bool pci_check_pme_status(struct pci_dev *dev); | ||
67 | extern int pci_finish_runtime_suspend(struct pci_dev *dev); | 66 | extern int pci_finish_runtime_suspend(struct pci_dev *dev); |
68 | extern void pci_wakeup_event(struct pci_dev *dev); | ||
69 | extern int __pci_pme_wakeup(struct pci_dev *dev, void *ign); | 67 | extern int __pci_pme_wakeup(struct pci_dev *dev, void *ign); |
70 | extern void pci_pme_wakeup_bus(struct pci_bus *bus); | ||
71 | extern void pci_pm_init(struct pci_dev *dev); | 68 | extern void pci_pm_init(struct pci_dev *dev); |
72 | extern void platform_pci_wakeup_init(struct pci_dev *dev); | 69 | extern void platform_pci_wakeup_init(struct pci_dev *dev); |
73 | extern void pci_allocate_cap_save_buffers(struct pci_dev *dev); | 70 | extern void pci_allocate_cap_save_buffers(struct pci_dev *dev); |
diff --git a/include/linux/pci.h b/include/linux/pci.h index 30faf4f3db0b..7454408c41b6 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -819,6 +819,9 @@ pci_power_t pci_target_state(struct pci_dev *dev); | |||
819 | int pci_prepare_to_sleep(struct pci_dev *dev); | 819 | int pci_prepare_to_sleep(struct pci_dev *dev); |
820 | int pci_back_from_sleep(struct pci_dev *dev); | 820 | int pci_back_from_sleep(struct pci_dev *dev); |
821 | bool pci_dev_run_wake(struct pci_dev *dev); | 821 | bool pci_dev_run_wake(struct pci_dev *dev); |
822 | bool pci_check_pme_status(struct pci_dev *dev); | ||
823 | void pci_wakeup_event(struct pci_dev *dev); | ||
824 | void pci_pme_wakeup_bus(struct pci_bus *bus); | ||
822 | 825 | ||
823 | static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, | 826 | static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, |
824 | bool enable) | 827 | bool enable) |