From debac3e733773cddf29f502dafbf11738a613949 Mon Sep 17 00:00:00 2001 From: Martin Reindl Date: Sat, 23 Apr 2005 01:45:56 +0000 Subject: make sure bus mastering is enabled ok brad@ from NetBSD --- sys/dev/pci/if_de.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sys') 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); -- cgit v1.2.3