diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2008-07-06 21:35:26 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2008-07-07 19:26:33 -0400 |
commit | 404cc2d8ce41ed4031958fba8e633767e8a2e028 (patch) | |
tree | d679e1ea92d6ae8e72309c02197fd5f1480651fb /include | |
parent | eb9d0fe40e313c0a74115ef456a2e43a6c8da72f (diff) |
PCI PM: Introduce pci_prepare_to_sleep and pci_back_from_sleep
Introduce functions pci_prepare_to_sleep() and pci_back_from_sleep(),
to be used by the PCI drivers that want to place their devices into
the lowest power state appropiate for them (PCI_D3hot, if the device
is not supposed to wake up the system, or the deepest state from
which the wake-up is possible, otherwise) while the system is being
prepared to go into a sleeping state and to put them back into D0
during the subsequent transition to the working state.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'include')
-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 4c80dc3f2990..52ac06dcce98 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -632,6 +632,8 @@ int pci_restore_state(struct pci_dev *dev); | |||
632 | int pci_set_power_state(struct pci_dev *dev, pci_power_t state); | 632 | int pci_set_power_state(struct pci_dev *dev, pci_power_t state); |
633 | pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state); | 633 | pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state); |
634 | int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int enable); | 634 | int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int enable); |
635 | int pci_prepare_to_sleep(struct pci_dev *dev); | ||
636 | int pci_back_from_sleep(struct pci_dev *dev); | ||
635 | 637 | ||
636 | /* Functions for PCI Hotplug drivers to use */ | 638 | /* Functions for PCI Hotplug drivers to use */ |
637 | int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap); | 639 | int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap); |