summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pci_private.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2004-04-09 15:44:34 +0000
committerimp <imp@FreeBSD.org>2004-04-09 15:44:34 +0000
commitca56ea20fc3b156a88a5caf374733a36948e1cbf (patch)
treeca7c96811517c5490a15746b5ab4f48b8ac626d7 /sys/dev/pci/pci_private.h
parentfd75a2f931626c978079f80dd1e0191255a38a7c (diff)
downloadFreeBSD-src-ca56ea20fc3b156a88a5caf374733a36948e1cbf.zip
FreeBSD-src-ca56ea20fc3b156a88a5caf374733a36948e1cbf.tar.gz
Omnibus PCI commit:
o Save and restore bars for suspend/resume as well as for D3->D0 transitions. o preallocate resources that the PCI devices use to avoid resource conflicts o lazy allocation of resources not allocated by the BIOS. o set unattached drivers to state D3. Set power state to D0 before probe/attach. Right now there's two special cases for this (display and memory devices) that need work in other areas of the tree. Please report any bugs to me.
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 816106d..041e8e3 100644
--- a/sys/dev/pci/pci_private.h
+++ b/sys/dev/pci/pci_private.h
@@ -41,6 +41,7 @@ extern devclass_t pci_devclass;
void pci_add_children(device_t dev, int busno, size_t dinfo_size);
void pci_add_child(device_t bus, struct pci_devinfo *dinfo);
+void pci_driver_added(device_t dev, driver_t *driver);
int pci_print_child(device_t dev, device_t child);
void pci_probe_nomatch(device_t dev, device_t child);
int pci_read_ivar(device_t dev, device_t child, int which,
@@ -74,4 +75,5 @@ int pci_child_pnpinfo_str_method(device_t cbdev, device_t child,
char *buf, size_t buflen);
int pci_assign_interrupt_method(device_t dev, device_t child);
int pci_resume(device_t dev);
+int pci_suspend(device_t dev);
#endif /* _PCI_PRIVATE_H_ */
OpenPOWER on IntegriCloud