From d622075765e20a065215f188a0906c9394e7113c Mon Sep 17 00:00:00 2001 From: imp Date: Mon, 28 Jun 2004 20:07:03 +0000 Subject: 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. --- sys/pci/if_pcn.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'sys/pci/if_pcn.c') diff --git a/sys/pci/if_pcn.c b/sys/pci/if_pcn.c index daf6076..976b330 100644 --- a/sys/pci/if_pcn.c +++ b/sys/pci/if_pcn.c @@ -497,30 +497,6 @@ pcn_attach(dev) /* Initialize our mutex. */ mtx_init(&sc->pcn_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, PCN_PCI_LOIO, 4); - membase = pci_read_config(dev, PCN_PCI_LOMEM, 4); - irq = pci_read_config(dev, PCN_PCI_INTLINE, 4); - - /* Reset the power state. */ - printf("pcn%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, PCN_PCI_LOIO, iobase, 4); - pci_write_config(dev, PCN_PCI_LOMEM, membase, 4); - pci_write_config(dev, PCN_PCI_INTLINE, irq, 4); - } -#endif /* * Map control/status registers. */ -- cgit v1.1