diff options
author | Martin Reindl <martin@cvs.openbsd.org> | 2005-04-23 01:45:56 +0000 |
---|---|---|
committer | Martin Reindl <martin@cvs.openbsd.org> | 2005-04-23 01:45:56 +0000 |
commit | debac3e733773cddf29f502dafbf11738a613949 (patch) | |
tree | 6ffbdb642a91926bcc1e54275470ea42de957f52 /sys/dev | |
parent | b90fd48c4dcf549cd6adb98e27779f80fd004a77 (diff) |
make sure bus mastering is enabled
ok brad@
from NetBSD
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_de.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/pci/if_de.c b/sys/dev/pci/if_de.c index 0f8b531b8da..58032ea5352 100644 --- a/sys/dev/pci/if_de.c +++ b/sys/dev/pci/if_de.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_de.c,v 1.65 2005/04/16 16:08:07 deraadt Exp $ */ +/* $OpenBSD: if_de.c,v 1.66 2005/04/23 01:45:55 martin Exp $ */ /* $NetBSD: if_de.c,v 1.45 1997/06/09 00:34:18 thorpej Exp $ */ /*- @@ -5112,6 +5112,12 @@ tulip_pci_attach(TULIP_PCI_ATTACH_ARGS) printf(": unable to map device registers\n"); return; } + + /* Make sure bus mastering is enabled. */ + pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, + pci_conf_read(pa->pa_pc, pa->pa_tag, + PCI_COMMAND_STATUS_REG) | + PCI_COMMAND_MASTER_ENABLE); } tulip_initcsrs(sc, csr_base + csroffset, csrsize); |