aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2005-02-28 01:14:15 +0000
committerWarner Losh <imp@FreeBSD.org>2005-02-28 01:14:15 +0000
commitc3c08f307c6b60a21f458c04cc7736d090f18f74 (patch)
tree2433ffe7e3be4aa1abc231a25f18b144d816331c /sys
parent9bec0bd88c755b150875aebd3ccb87bdbef31fd6 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/pci.c6
-rw-r--r--sys/dev/pci/pci_private.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c
index dd27765ec1c7d..172134763c1a7 100644
--- a/sys/dev/pci/pci.c
+++ b/sys/dev/pci/pci.c
@@ -91,8 +91,6 @@ static int pci_modevent(module_t mod, int what, void *arg);
static void pci_hdrtypedata(device_t pcib, int b, int s, int f,
pcicfgregs *cfg);
static void pci_read_extcap(device_t pcib, pcicfgregs *cfg);
-static void pci_cfg_restore(device_t, struct pci_devinfo *);
-static void pci_cfg_save(device_t, struct pci_devinfo *, int);
static device_method_t pci_methods[] = {
/* Device interface */
@@ -1849,7 +1847,7 @@ pci_modevent(module_t mod, int what, void *arg)
return (0);
}
-static void
+void
pci_cfg_restore(device_t dev, struct pci_devinfo *dinfo)
{
int i;
@@ -1894,7 +1892,7 @@ pci_cfg_restore(device_t dev, struct pci_devinfo *dinfo)
pci_write_config(dev, PCIR_REVID, dinfo->cfg.revid, 1);
}
-static void
+void
pci_cfg_save(device_t dev, struct pci_devinfo *dinfo, int setstate)
{
int i;
diff --git a/sys/dev/pci/pci_private.h b/sys/dev/pci/pci_private.h
index fdeeaaab2baef..9a9bd2bab0ee3 100644
--- a/sys/dev/pci/pci_private.h
+++ b/sys/dev/pci/pci_private.h
@@ -76,4 +76,6 @@ 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);
+void pci_cfg_restore(device_t, struct pci_devinfo *);
+void pci_cfg_save(device_t, struct pci_devinfo *, int);
#endif /* _PCI_PRIVATE_H_ */