diff options
author | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2021-10-09 08:38:14 +0000 |
---|---|---|
committer | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2021-10-09 08:38:14 +0000 |
commit | 0a45cc5b948b80022efb49037617e9e08d96b70e (patch) | |
tree | 041972ce609efd73fe58dfb2b5c0d39f113d7949 | |
parent | d6a4b808da02d0c69282c5b529f54b90c4a51bae (diff) |
No need to enable bus mastering, it's already done for us.
from Brad
-rw-r--r-- | sys/dev/pci/if_aq_pci.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/pci/if_aq_pci.c b/sys/dev/pci/if_aq_pci.c index 930bdd4c2cc..efca084f6f0 100644 --- a/sys/dev/pci/if_aq_pci.c +++ b/sys/dev/pci/if_aq_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_aq_pci.c,v 1.3 2021/09/20 01:27:23 jmatthew Exp $ */ +/* $OpenBSD: if_aq_pci.c,v 1.4 2021/10/09 08:38:13 jmatthew Exp $ */ /* $NetBSD: if_aq.c,v 1.27 2021/06/16 00:21:18 riastradh Exp $ */ /* @@ -941,7 +941,7 @@ aq_attach(struct device *parent, struct device *self, void *aux) struct aq_softc *sc = (struct aq_softc *)self; struct pci_attach_args *pa = aux; const struct aq_product *aqp; - pcireg_t command, bar, memtype; + pcireg_t bar, memtype; pci_chipset_tag_t pc; pci_intr_handle_t ih; int (*isr)(void *); @@ -957,10 +957,6 @@ aq_attach(struct device *parent, struct device *self, void *aux) sc->sc_pc = pc = pa->pa_pc; sc->sc_pcitag = tag = pa->pa_tag; - command = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG); - command |= PCI_COMMAND_MASTER_ENABLE; - pci_conf_write(pa->pa_pc, pa->pa_tag, PCI_COMMAND_STATUS_REG, command); - sc->sc_product = PCI_PRODUCT(pa->pa_id); sc->sc_revision = PCI_REVISION(pa->pa_class); |