diff --git a/sys/dev/pci/if_wi_pci.c b/sys/dev/pci/if_wi_pci.c index dfffa21132ab..0c574e293f60 100644 --- a/sys/dev/pci/if_wi_pci.c +++ b/sys/dev/pci/if_wi_pci.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_wi_pci.c,v 1.14 2002/12/31 06:33:20 dyoung Exp $ */ +/* $NetBSD: if_wi_pci.c,v 1.15 2003/01/01 02:36:54 dyoung Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -43,7 +43,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_wi_pci.c,v 1.14 2002/12/31 06:33:20 dyoung Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_wi_pci.c,v 1.15 2003/01/01 02:36:54 dyoung Exp $"); #include #include @@ -228,6 +228,7 @@ wi_pci_attach(parent, self, aux) pci_intr_handle_t ih; bus_space_tag_t memt, iot; bus_space_handle_t memh, ioh; + pcireg_t csr; psc->psc_pa = pa; @@ -279,9 +280,10 @@ wi_pci_attach(parent, self, aux) sc->sc_disable = wi_pci_disable; /* Enable the card. */ - pci_conf_write(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, - pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG) | - PCI_COMMAND_MASTER_ENABLE); + csr = pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); + csr |= PCI_COMMAND_IO_ENABLE | PCI_COMMAND_MEM_ENABLE; + csr &= ~PCI_COMMAND_MASTER_ENABLE; + pci_conf_write(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, csr); sc->sc_iot = iot; sc->sc_ioh = ioh;