summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-12-23 16:44:36 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-12-23 16:44:36 +0000
commit8b51d0c65e30ad543f9649eacdb89575565862cb (patch)
tree20a69f5863d95e64a801802cfd88b83684818e14
parent4047d0267fa2e724a83f100626a31a7d3b29290e (diff)
fix the error msg and enable bubs mastering
-rw-r--r--sys/dev/pci/if_fxp_pci.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/pci/if_fxp_pci.c b/sys/dev/pci/if_fxp_pci.c
index f276b6e457a..161586c8639 100644
--- a/sys/dev/pci/if_fxp_pci.c
+++ b/sys/dev/pci/if_fxp_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_fxp_pci.c,v 1.21 2003/09/29 19:29:22 mickey Exp $ */
+/* $OpenBSD: if_fxp_pci.c,v 1.22 2003/12/23 16:44:35 mickey Exp $ */
/*
* Copyright (c) 1995, David Greenman
@@ -138,10 +138,9 @@ fxp_pci_attach(parent, self, aux)
if (pci_mapreg_map(pa, FXP_PCI_IOBA, PCI_MAPREG_TYPE_IO, 0,
&sc->sc_st, &sc->sc_sh, NULL, &iosize, 0)) {
- printf(": can't find i/o space\n");
+ printf(": can't map i/o space\n");
return;
}
-
sc->sc_dmat = pa->pa_dmat;
/*
@@ -200,6 +199,11 @@ fxp_pci_attach(parent, self, aux)
break;
}
+ /* enable bus mastering */
+ pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG,
+ PCI_COMMAND_MASTER_ENABLE |
+ pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG));
+
/* Do generic parts of attach. */
if (fxp_attach_common(sc, enaddr, intrstr)) {
/* Failed! */