summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorRafael J. Wysocki <rjw@sisk.pl>2008-07-19 14:39:24 +0200
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-07-22 14:25:38 -0700
commite5899e1b7d73e67de758a32174a859cc2586c0b9 (patch)
tree2bb80ed1e52fb9981c6f44f6b0e7baa105585787 /include
parentf42e86d95fa53d3a62b2795515da18b4f41b0480 (diff)
downloadkernel-crypto-e5899e1b7d73e67de758a32174a859cc2586c0b9.tar.gz
kernel-crypto-e5899e1b7d73e67de758a32174a859cc2586c0b9.tar.xz
kernel-crypto-e5899e1b7d73e67de758a32174a859cc2586c0b9.zip
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')
-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 a6a088e1a80..1d296d31abe 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -638,7 +638,9 @@ int pci_save_state(struct pci_dev *dev);
int pci_restore_state(struct pci_dev *dev);
int pci_set_power_state(struct pci_dev *dev, pci_power_t state);
pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state);
+bool pci_pme_capable(struct pci_dev *dev, pci_power_t state);
int pci_enable_wake(struct pci_dev *dev, pci_power_t state, int enable);
+pci_power_t pci_target_state(struct pci_dev *dev);
int pci_prepare_to_sleep(struct pci_dev *dev);
int pci_back_from_sleep(struct pci_dev *dev);