diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2010-02-17 17:36:58 -0500 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-02-22 19:20:24 -0500 |
commit | 58ff463396ad00828e922d50998787e97fd32512 (patch) | |
tree | 4964b07518a02736a23839d89bb7ac4a065dede8 /drivers/pci/pci.h | |
parent | 6d3be84aab461815978d970aa45f5bc9e52dd772 (diff) |
PCI PM: Add function for checking PME status of devices
Add function pci_check_pme_status() that will check the PME status
bit of given device and clear it along with the PME enable bit. It
will be necessary for PCI run-time power management.
Based on a patch from Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/pci.h')
-rw-r--r-- | drivers/pci/pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index 5d169bc3ccd..b95b0a077d3 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h | |||
@@ -49,6 +49,7 @@ struct pci_platform_pm_ops { | |||
49 | extern int pci_set_platform_pm(struct pci_platform_pm_ops *ops); | 49 | extern int pci_set_platform_pm(struct pci_platform_pm_ops *ops); |
50 | extern void pci_update_current_state(struct pci_dev *dev, pci_power_t state); | 50 | extern void pci_update_current_state(struct pci_dev *dev, pci_power_t state); |
51 | extern void pci_disable_enabled_device(struct pci_dev *dev); | 51 | extern void pci_disable_enabled_device(struct pci_dev *dev); |
52 | extern bool pci_check_pme_status(struct pci_dev *dev); | ||
52 | extern void pci_pm_init(struct pci_dev *dev); | 53 | extern void pci_pm_init(struct pci_dev *dev); |
53 | extern void platform_pci_wakeup_init(struct pci_dev *dev); | 54 | extern void platform_pci_wakeup_init(struct pci_dev *dev); |
54 | extern void pci_allocate_cap_save_buffers(struct pci_dev *dev); | 55 | extern void pci_allocate_cap_save_buffers(struct pci_dev *dev); |