aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bfe
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2005-06-05 22:48:15 +0000
committerWarner Losh <imp@FreeBSD.org>2005-06-05 22:48:15 +0000
commit4d3c2a319c80896e1948f573671a0c0be2aadd15 (patch)
tree06068ffe89ed87766e203fa079f51c7a14729eda /sys/dev/bfe
parent7ed5d5cc72adcf66fb68acd32d33b387aad2275e (diff)
downloadsrc-4d3c2a319c80896e1948f573671a0c0be2aadd15.tar.gz
src-4d3c2a319c80896e1948f573671a0c0be2aadd15.zip
Powerstate stuff now done in PCI bus driver
Notes
Notes: svn path=/head/; revision=147028
Diffstat (limited to 'sys/dev/bfe')
-rw-r--r--sys/dev/bfe/if_bfe.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/sys/dev/bfe/if_bfe.c b/sys/dev/bfe/if_bfe.c
index c83d17d39477..dc609e6ef3eb 100644
--- a/sys/dev/bfe/if_bfe.c
+++ b/sys/dev/bfe/if_bfe.c
@@ -335,27 +335,6 @@ bfe_attach(device_t dev)
sc->bfe_unit = unit;
/*
- * Handle power management nonsense.
- */
- if (pci_get_powerstate(dev) != PCI_POWERSTATE_D0) {
- u_int32_t membase, irq;
-
- /* Save important PCI config data. */
- membase = pci_read_config(dev, BFE_PCI_MEMLO, 4);
- irq = pci_read_config(dev, BFE_PCI_INTLINE, 4);
-
- /* Reset the power state. */
- printf("bfe%d: chip is is in D%d power mode -- setting to D0\n",
- sc->bfe_unit, pci_get_powerstate(dev));
-
- pci_set_powerstate(dev, PCI_POWERSTATE_D0);
-
- /* Restore PCI config data. */
- pci_write_config(dev, BFE_PCI_MEMLO, membase, 4);
- pci_write_config(dev, BFE_PCI_INTLINE, irq, 4);
- }
-
- /*
* Map control/status registers.
*/
pci_enable_busmaster(dev);