aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2008-07-06 21:35:26 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-07-07 19:26:33 -0400
commit404cc2d8ce41ed4031958fba8e633767e8a2e028 (patch)
treed679e1ea92d6ae8e72309c02197fd5f1480651fb /include
parenteb9d0fe40e313c0a74115ef456a2e43a6c8da72f (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.h2
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);
632int pci_set_power_state(struct pci_dev *dev, pci_power_t state); 632int pci_set_power_state(struct pci_dev *dev, pci_power_t state);
633pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state); 633pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state);
634int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int enable); 634int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int enable);
635int pci_prepare_to_sleep(struct pci_dev *dev);
636int 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 */
637int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap); 639int pci_bus_find_capability(struct pci_bus *bus, unsigned int devfn, int cap);