diff options
author | 2003-12-23 16:44:35 +0000 | |
---|---|---|
committer | 2003-12-23 16:44:35 +0000 | |
commit | 06546de2825a98739cf28e3390f15af90722852b (patch) | |
tree | cbda416759a0c555426b24b296c7b6030bc06a41 | |
parent | no RTF_MASK (diff) | |
download | wireguard-openbsd-06546de2825a98739cf28e3390f15af90722852b.tar.xz wireguard-openbsd-06546de2825a98739cf28e3390f15af90722852b.zip |
fix the error msg and enable bubs mastering
-rw-r--r-- | sys/dev/pci/if_fxp_pci.c | 10 |
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! */ |