diff options
author | imp <imp@FreeBSD.org> | 2004-06-28 20:07:03 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2004-06-28 20:07:03 +0000 |
commit | d622075765e20a065215f188a0906c9394e7113c (patch) | |
tree | 538c96e8711c6287cdcedd318f3418796b76c9d4 /sys/dev/sf | |
parent | f1f19c639c7fa6254ab9cd7d40a28d38b245f844 (diff) | |
download | FreeBSD-src-d622075765e20a065215f188a0906c9394e7113c.zip FreeBSD-src-d622075765e20a065215f188a0906c9394e7113c.tar.gz |
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.
Diffstat (limited to 'sys/dev/sf')
-rw-r--r-- | sys/dev/sf/if_sf.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c index 4019e61..71d9286 100644 --- a/sys/dev/sf/if_sf.c +++ b/sys/dev/sf/if_sf.c @@ -649,30 +649,6 @@ sf_attach(dev) mtx_init(&sc->sf_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, SF_PCI_LOIO, 4); - membase = pci_read_config(dev, SF_PCI_LOMEM, 4); - irq = pci_read_config(dev, SF_PCI_INTLINE, 4); - - /* Reset the power state. */ - printf("sf%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, SF_PCI_LOIO, iobase, 4); - pci_write_config(dev, SF_PCI_LOMEM, membase, 4); - pci_write_config(dev, SF_PCI_INTLINE, irq, 4); - } -#endif /* * Map control/status registers. */ |