diff options
author | Chris Cappuccio <chris@cvs.openbsd.org> | 1999-11-04 16:21:13 +0000 |
---|---|---|
committer | Chris Cappuccio <chris@cvs.openbsd.org> | 1999-11-04 16:21:13 +0000 |
commit | 98ba299dfa58d2afca5f511d6774e0b2d0eaba5b (patch) | |
tree | 782e573d5a42682e7ae9576324448640c4c67187 /sys/dev | |
parent | 44a51ab986bf9c0b9c11434059a53b52c04042bd (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.c | 5 |
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); |