summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2007-05-16 18:41:42 +0000
committerimp <imp@FreeBSD.org>2007-05-16 18:41:42 +0000
commit0d8779bca9792e703fe368a0a4d6f4bda248b4ed (patch)
tree33c83085352a80a684b0b6f8e22a8a470f3d579b
parentec3f5ae79f183ed96738b13d970bdf0219a1eca5 (diff)
downloadFreeBSD-src-0d8779bca9792e703fe368a0a4d6f4bda248b4ed.zip
FreeBSD-src-0d8779bca9792e703fe368a0a4d6f4bda248b4ed.tar.gz
Add some doxygen docs for pci_cfg_{save,restore}.
-rw-r--r--sys/dev/pci/pci_private.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/pci/pci_private.h b/sys/dev/pci/pci_private.h
index ce3ad38..7045119 100644
--- a/sys/dev/pci/pci_private.h
+++ b/sys/dev/pci/pci_private.h
@@ -95,7 +95,17 @@ int pci_child_pnpinfo_str_method(device_t cbdev, device_t child,
int pci_assign_interrupt_method(device_t dev, device_t child);
int pci_resume(device_t dev);
int pci_suspend(device_t dev);
+
+/** Restore the config register state. The state must be previously
+ * saved with pci_cfg_save. However, the pci bus driver takes care of
+ * that. This function will also return the device to PCI_POWERSTATE_D0
+ * if it is currently in a lower power mode.
+ */
void pci_cfg_restore(device_t, struct pci_devinfo *);
+
+/** Save the config register state. Optionally set the power state to D3
+ * if the third argument is non-zero.
+ */
void pci_cfg_save(device_t, struct pci_devinfo *, int);
#endif /* _PCI_PRIVATE_H_ */
OpenPOWER on IntegriCloud