summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci_private.h
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2010-08-17 15:44:52 +0000
committerjhb <jhb@FreeBSD.org>2010-08-17 15:44:52 +0000
commitbdd8e8fe8136f157b255a622399032dcf47662d2 (patch)
tree7e13c86907c1bb2b489ada14a16a8f0aff8ab799 /sys/dev/pci/pci_private.h
parent4a63dcd164c0bd8e31b77d5417250b805bf3e06b (diff)
downloadFreeBSD-src-bdd8e8fe8136f157b255a622399032dcf47662d2.zip
FreeBSD-src-bdd8e8fe8136f157b255a622399032dcf47662d2.tar.gz
Add a new method to the PCI bridge interface, PCIB_POWER_FOR_SLEEP(). This
method is used by the PCI bus driver to query the power management system to determine the proper device state to be used for a device during suspend and resume. For the ACPI PCI bridge drivers this calls acpi_device_pwr_for_sleep(). This removes ACPI-specific knowledge from the PCI and PCI-PCI bridge drivers. Reviewed by: jkim
Diffstat (limited to 'sys/dev/pci/pci_private.h')
-rw-r--r--sys/dev/pci/pci_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/pci/pci_private.h b/sys/dev/pci/pci_private.h
index 2240b4f..70d887b 100644
--- a/sys/dev/pci/pci_private.h
+++ b/sys/dev/pci/pci_private.h
@@ -38,6 +38,8 @@
*/
DECLARE_CLASS(pci_driver);
+extern int pci_do_power_resume;
+
void pci_add_children(device_t dev, int domain, int busno,
size_t dinfo_size);
void pci_add_child(device_t bus, struct pci_devinfo *dinfo);
OpenPOWER on IntegriCloud