For confidence's sake, enable I/O and memory accesses (which were
previously NOT enabled), but do not enable bus-mastering (which was previously enabled, but which neither Lucent nor Prism support).
This commit is contained in:
parent
98b0e9af47
commit
b356d306f5
|
@ -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 <sys/cdefs.h>
|
||||
__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 <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue