From 5f366b8e4b9bc12305ab4d02923f01f4fa638099 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 24 Jul 2005 19:35:47 +0000 Subject: don't need to enable bus mastering in stge_attach(). --- sys/dev/pci/if_stge.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sys/dev/pci/if_stge.c b/sys/dev/pci/if_stge.c index 0ec114499bb..741339bef33 100644 --- a/sys/dev/pci/if_stge.c +++ b/sys/dev/pci/if_stge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_stge.c,v 1.18 2005/07/24 18:45:32 brad Exp $ */ +/* $OpenBSD: if_stge.c,v 1.19 2005/07/24 19:35:46 brad Exp $ */ /* $NetBSD: if_stge.c,v 1.27 2005/05/16 21:35:32 bouyer Exp $ */ /*- @@ -367,11 +367,6 @@ stge_attach(struct device *parent, struct device *self, void *aux) sc->sc_dmat = pa->pa_dmat; - /* Enable bus mastering. */ - pci_conf_write(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, - pci_conf_read(pc, pa->pa_tag, PCI_COMMAND_STATUS_REG) | - PCI_COMMAND_MASTER_ENABLE); - /* Get it out of power save mode if needed. */ if (pci_get_capability(pc, pa->pa_tag, PCI_CAP_PWRMGMT, &pmreg, 0)) { pmode = pci_conf_read(pc, pa->pa_tag, pmreg + PCI_PMCSR) & -- cgit v1.2.3