diff options
| author | Warner Losh <imp@FreeBSD.org> | 2005-06-05 22:50:55 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2005-06-05 22:50:55 +0000 |
| commit | 95af165d7f87949936e7af4f2f805a41810959f0 (patch) | |
| tree | 4e9226b84719f9e233ae8ee432b52e73820cac7c | |
| parent | 4d3c2a319c80896e1948f573671a0c0be2aadd15 (diff) | |
Notes
| -rw-r--r-- | sys/dev/fxp/if_fxp.c | 15 | ||||
| -rw-r--r-- | sys/dev/fxp/if_fxpvar.h | 5 |
2 files changed, 0 insertions, 20 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index 57f197f5bc403..774128ce18f30 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 9cdee2a97c10a..d2cecea21a500 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; }; |
