diff options
author | imp <imp@FreeBSD.org> | 2004-06-28 20:26:21 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2004-06-28 20:26:21 +0000 |
commit | 61364cc86985fcfada6a818e1b48f59f91793aa2 (patch) | |
tree | a848db56387b1bdbfade2cf2d05b4a68c07fd355 /sys/dev/txp | |
parent | dc0d070947944ef9cf45f4ee922c982e0b8423ff (diff) | |
download | FreeBSD-src-61364cc86985fcfada6a818e1b48f59f91793aa2.zip FreeBSD-src-61364cc86985fcfada6a818e1b48f59f91793aa2.tar.gz |
Remove the setting of the pci config variables on power state changes.
The bus does this now.
Diffstat (limited to 'sys/dev/txp')
-rw-r--r-- | sys/dev/txp/if_txp.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/sys/dev/txp/if_txp.c b/sys/dev/txp/if_txp.c index 22fdecd..976b0f2 100644 --- a/sys/dev/txp/if_txp.c +++ b/sys/dev/txp/if_txp.c @@ -227,29 +227,6 @@ txp_attach(dev) mtx_init(&sc->sc_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, TXP_PCI_LOIO, 4); - membase = pci_read_config(dev, TXP_PCI_LOMEM, 4); - irq = pci_read_config(dev, TXP_PCI_INTLINE, 4); - - /* Reset the power state. */ - device_printf(dev, "chip is in D%d power mode " - "-- setting to D0\n", pci_get_powerstate(dev)); - pci_set_powerstate(dev, PCI_POWERSTATE_D0); - - /* Restore PCI config data. */ - pci_write_config(dev, TXP_PCI_LOIO, iobase, 4); - pci_write_config(dev, TXP_PCI_LOMEM, membase, 4); - pci_write_config(dev, TXP_PCI_INTLINE, irq, 4); - } -#endif /* * Map control/status registers. */ |