diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-08-31 16:02:26 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-08-31 16:02:26 +0000 |
commit | a56b81ce2d94b556d845fd1e8950b6f0c38b5d87 (patch) | |
tree | d04c3dcf2d618bf4038e76bfeb422173b66110b1 | |
parent | 58c1ecf3722b62fdfcd29bbd8fbf6d0820ef2ba5 (diff) |
no need to specially handle the 4 AMD756 registers at suspend/resume time;
they fall within the pcipower() handled range.
ok miod
-rw-r--r-- | sys/dev/pci/pciide.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c index 4c393ea8056..40aa5ed9cb0 100644 --- a/sys/dev/pci/pciide.c +++ b/sys/dev/pci/pciide.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pciide.c,v 1.319 2010/08/31 12:50:51 miod Exp $ */ +/* $OpenBSD: pciide.c,v 1.320 2010/08/31 16:02:25 deraadt Exp $ */ /* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */ /* @@ -1441,15 +1441,6 @@ pciide_activate(struct device *self, int act) sc->sc_tag, NFORCE_PIOTIM); sc->sc_save2[2] = pci_conf_read(sc->sc_pc, sc->sc_tag, NFORCE_UDMATIM); - } else if (sc->sc_pp->chip_map == amd756_chip_map) { - sc->sc_save2[0] = pci_conf_read(sc->sc_pc, - sc->sc_tag, AMD756_CHANSTATUS_EN); - sc->sc_save2[1] = pci_conf_read(sc->sc_pc, - sc->sc_tag, AMD756_DATATIM); - sc->sc_save2[2] = pci_conf_read(sc->sc_pc, - sc->sc_tag, AMD756_CYCLE_ADDR_TIME); - sc->sc_save2[3] = pci_conf_read(sc->sc_pc, - sc->sc_tag, AMD756_UDMA); } break; case DVACT_RESUME: @@ -1461,6 +1452,7 @@ pciide_activate(struct device *self, int act) if (sc->sc_pp->chip_map == default_chip_map || sc->sc_pp->chip_map == sata_chip_map || sc->sc_pp->chip_map == piix_chip_map || + sc->sc_pp->chip_map == amd756_chip_map || sc->sc_pp->chip_map == phison_chip_map || sc->sc_pp->chip_map == ixp_chip_map || sc->sc_pp->chip_map == acard_chip_map || @@ -1497,15 +1489,6 @@ pciide_activate(struct device *self, int act) NFORCE_PIOTIM, sc->sc_save2[1]); pci_conf_write(sc->sc_pc, sc->sc_tag, NFORCE_UDMATIM, sc->sc_save2[2]); - } else if (sc->sc_pp->chip_map == amd756_chip_map) { - pci_conf_write(sc->sc_pc, sc->sc_tag, - AMD756_CHANSTATUS_EN, sc->sc_save2[0]); - pci_conf_write(sc->sc_pc, sc->sc_tag, - AMD756_DATATIM, sc->sc_save2[1]); - pci_conf_write(sc->sc_pc, sc->sc_tag, - AMD756_CYCLE_ADDR_TIME, sc->sc_save2[2]); - pci_conf_write(sc->sc_pc, sc->sc_tag, - AMD756_UDMA, sc->sc_save2[3]); } else { printf("%s: restore for unknown chip map %x\n", sc->sc_wdcdev.sc_dev.dv_xname, |