From 98ba299dfa58d2afca5f511d6774e0b2d0eaba5b Mon Sep 17 00:00:00 2001 From: Chris Cappuccio Date: Thu, 4 Nov 1999 16:21:13 +0000 Subject: Make sure bus mastering is enabled, from freebsd if_de.c --- sys/dev/pci/if_lmc_obsd.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sys/dev') 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); -- cgit v1.2.3