summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorChris Cappuccio <chris@cvs.openbsd.org>1999-11-04 16:21:13 +0000
committerChris Cappuccio <chris@cvs.openbsd.org>1999-11-04 16:21:13 +0000
commit98ba299dfa58d2afca5f511d6774e0b2d0eaba5b (patch)
tree782e573d5a42682e7ae9576324448640c4c67187 /sys/dev
parent44a51ab986bf9c0b9c11434059a53b52c04042bd (diff)
Make sure bus mastering is enabled, from freebsd if_de.c
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_lmc_obsd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/dev/pci/if_lmc_obsd.c b/sys/dev/pci/if_lmc_obsd.c
index 9b1153f7c56..37e348bb061 100644
--- a/sys/dev/pci/if_lmc_obsd.c
+++ b/sys/dev/pci/if_lmc_obsd.c
@@ -323,6 +323,11 @@ lmc_pci_attach(struct device * const parent,
sc->lmc_dev.dv_xname);
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);
}
lmc_initcsrs(sc, csr_base + csroffset, csrsize);