diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2008-07-19 08:39:24 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-07-22 17:25:38 -0400 |
commit | e5899e1b7d73e67de758a32174a859cc2586c0b9 (patch) | |
tree | 2bb80ed1e52fb9981c6f44f6b0e7baa105585787 /include/linux | |
parent | f42e86d95fa53d3a62b2795515da18b4f41b0480 (diff) |
PCI PM: make more PCI PM core functionality available to drivers
Make more PCI PM core functionality available to drivers
* Export pci_pme_capable() so that it can be called directly by
drivers (for example, tg3 needs that).
* Move the state choosing part of pci_prepare_to_sleep() to a
separate function, pci_target_state(), that can be called directly
by drivers (for example, tg3 needs that).
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/pci.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index a6a088e1a804..1d296d31abe0 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -638,7 +638,9 @@ int pci_save_state(struct pci_dev *dev); | |||
638 | int pci_restore_state(struct pci_dev *dev); | 638 | int pci_restore_state(struct pci_dev *dev); |
639 | int pci_set_power_state(struct pci_dev *dev, pci_power_t state); | 639 | int pci_set_power_state(struct pci_dev *dev, pci_power_t state); |
640 | pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state); | 640 | pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state); |
641 | bool pci_pme_capable(struct pci_dev *dev, pci_power_t state); | ||
641 | int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int enable); | 642 | int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int enable); |
643 | pci_power_t pci_target_state(struct pci_dev *dev); | ||
642 | int pci_prepare_to_sleep(struct pci_dev *dev); | 644 | int pci_prepare_to_sleep(struct pci_dev *dev); |
643 | int pci_back_from_sleep(struct pci_dev *dev); | 645 | int pci_back_from_sleep(struct pci_dev *dev); |
644 | 646 | ||