diff options
author | Jason Wright <jason@cvs.openbsd.org> | 1998-11-16 15:44:37 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 1998-11-16 15:44:37 +0000 |
commit | f76aa08ec0c86ddeae62551e233c1c2bc8554f2f (patch) | |
tree | 4133d67960dd329cd88b6831ba030f7e2569b3bd | |
parent | 898add1e76b48eeb852e78d360ad0ea53c200686 (diff) |
Take advantage of generic io/mem/busmaster enabling of parent and remove
redundant code.
-rw-r--r-- | sys/dev/pci/if_rl.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/sys/dev/pci/if_rl.c b/sys/dev/pci/if_rl.c index 4152924cb71..830fbc56b94 100644 --- a/sys/dev/pci/if_rl.c +++ b/sys/dev/pci/if_rl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_rl.c,v 1.2 1998/11/13 19:39:49 jason Exp $ */ +/* $OpenBSD: if_rl.c,v 1.3 1998/11/16 15:44:36 jason Exp $ */ /* * Copyright (c) 1997, 1998 @@ -2167,26 +2167,8 @@ rl_attach(parent, self, aux) struct rl_type *p; sc->rl_unit = sc->sc_dev.dv_unit; - command = pci_conf_read(pa->pa_pc, pa->pa_tag, RL_PCI_CAPID) & 0xff; - if (command == 0x01) { - command = pci_conf_read(pa->pa_pc, pa->pa_tag, - RL_PCI_PWRMGMTCTRL); - if (command & RL_PSTATE_MASK) { - /* Reset the power state. */ - printf("%s: chip is in D%d power mode " - "-- setting to D0\n", - sc->sc_dev.dv_xname, command & RL_PSTATE_MASK); - command &= 0xfffffffc; - pci_conf_write(pa->pa_pc, pa->pa_tag, - RL_PCI_PWRMGMTCTRL, command); - } - } command = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); - command |= PCI_COMMAND_IO_ENABLE | - PCI_COMMAND_MEM_ENABLE | - PCI_COMMAND_MASTER_ENABLE; - pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, command); #ifdef RL_USEIOSPACE if (!(command & PCI_COMMAND_IO_ENABLE)) { |