summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2005-06-05 22:50:55 +0000
committerimp <imp@FreeBSD.org>2005-06-05 22:50:55 +0000
commit53aade8a93c4f74e37f8274c80f3fde2809cd40f (patch)
tree4e9226b84719f9e233ae8ee432b52e73820cac7c /sys/dev
parentb8cb205624970521734194851408783f6fc4a4ae (diff)
downloadFreeBSD-src-53aade8a93c4f74e37f8274c80f3fde2809cd40f.zip
FreeBSD-src-53aade8a93c4f74e37f8274c80f3fde2809cd40f.tar.gz
The PCI bus code saves/restores these config registers now.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/fxp/if_fxp.c15
-rw-r--r--sys/dev/fxp/if_fxpvar.h5
2 files changed, 0 insertions, 20 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c
index 57f197f..774128c 100644
--- a/sys/dev/fxp/if_fxp.c
+++ b/sys/dev/fxp/if_fxp.c
@@ -950,13 +950,6 @@ fxp_suspend(device_t dev)
fxp_stop(sc);
- for (i = 0; i < 5; i++)
- sc->saved_maps[i] = pci_read_config(dev, PCIR_BAR(i), 4);
- sc->saved_biosaddr = pci_read_config(dev, PCIR_BIOS, 4);
- sc->saved_intline = pci_read_config(dev, PCIR_INTLINE, 1);
- sc->saved_cachelnsz = pci_read_config(dev, PCIR_CACHELNSZ, 1);
- sc->saved_lattimer = pci_read_config(dev, PCIR_LATTIMER, 1);
-
sc->suspended = 1;
FXP_UNLOCK(sc);
@@ -980,14 +973,6 @@ fxp_resume(device_t dev)
FXP_LOCK(sc);
s = splimp();
- /* better way to do this? */
- for (i = 0; i < 5; i++)
- pci_write_config(dev, PCIR_BAR(i), sc->saved_maps[i], 4);
- pci_write_config(dev, PCIR_BIOS, sc->saved_biosaddr, 4);
- pci_write_config(dev, PCIR_INTLINE, sc->saved_intline, 1);
- pci_write_config(dev, PCIR_CACHELNSZ, sc->saved_cachelnsz, 1);
- pci_write_config(dev, PCIR_LATTIMER, sc->saved_lattimer, 1);
-
/* reenable busmastering */
pci_command = pci_read_config(dev, PCIR_COMMAND, 2);
pci_command |= (PCIM_CMD_MEMEN|PCIM_CMD_BUSMASTEREN);
diff --git a/sys/dev/fxp/if_fxpvar.h b/sys/dev/fxp/if_fxpvar.h
index 9cdee2a..d2cecea 100644
--- a/sys/dev/fxp/if_fxpvar.h
+++ b/sys/dev/fxp/if_fxpvar.h
@@ -192,11 +192,6 @@ struct fxp_softc {
int cu_resume_bug;
int revision;
int flags;
- uint32_t saved_maps[5]; /* pci data */
- uint32_t saved_biosaddr;
- uint8_t saved_intline;
- uint8_t saved_cachelnsz;
- uint8_t saved_lattimer;
uint8_t rfa_size;
uint32_t tx_cmd;
};
OpenPOWER on IntegriCloud