summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);