diff options
author | Warner Losh <imp@FreeBSD.org> | 2004-06-28 20:07:03 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2004-06-28 20:07:03 +0000 |
commit | c3e7434f34010f7c0596f2338ba0d2a4adde68df (patch) | |
tree | 538c96e8711c6287cdcedd318f3418796b76c9d4 /sys/pci/if_vr.c | |
parent | b351299ca3f879d0f811dbdb9911a5ea10744b22 (diff) | |
download | src-c3e7434f34010f7c0596f2338ba0d2a4adde68df.tar.gz src-c3e7434f34010f7c0596f2338ba0d2a4adde68df.zip |
Remove burn bridges code that saved/restored the pci config registers
that are now handled in the pci bus layer. They are no longer
necessary.
Notes
Notes:
svn path=/head/; revision=131253
Diffstat (limited to 'sys/pci/if_vr.c')
-rw-r--r-- | sys/pci/if_vr.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/sys/pci/if_vr.c b/sys/pci/if_vr.c index 8604ff2d29bd..900eda9b67ad 100644 --- a/sys/pci/if_vr.c +++ b/sys/pci/if_vr.c @@ -715,30 +715,6 @@ vr_attach(dev) mtx_init(&sc->vr_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, MTX_DEF | MTX_RECURSE); -#ifndef BURN_BRIDGES - /* - * Handle power management nonsense. - */ - if (pci_get_powerstate(dev) != PCI_POWERSTATE_D0) { - u_int32_t iobase, membase, irq; - - /* Save important PCI config data. */ - iobase = pci_read_config(dev, VR_PCI_LOIO, 4); - membase = pci_read_config(dev, VR_PCI_LOMEM, 4); - irq = pci_read_config(dev, VR_PCI_INTLINE, 4); - - /* Reset the power state. */ - printf("vr%d: chip is in D%d power mode " - "-- setting to D0\n", unit, - pci_get_powerstate(dev)); - pci_set_powerstate(dev, PCI_POWERSTATE_D0); - - /* Restore PCI config data. */ - pci_write_config(dev, VR_PCI_LOIO, iobase, 4); - pci_write_config(dev, VR_PCI_LOMEM, membase, 4); - pci_write_config(dev, VR_PCI_INTLINE, irq, 4); - } -#endif /* * Map control/status registers. */ |