diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2018-02-02 11:24:38 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2018-02-02 11:24:38 +0000 |
commit | fdcb1e2899abe792c519563d6dc491c49db1c653 (patch) | |
tree | 3529c800d03feb4dd49df4ed7fc8e62f5ea5e1f1 /sys/dev/pci | |
parent | 48551473213ef3cab6d2dfbda5624b90f380c881 (diff) |
use the same bar used to determine memory type when mapping memory
should resolve mapping error on SAS3508 encountered by claudio@
ok jmatthew@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/mfii.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/mfii.c b/sys/dev/pci/mfii.c index 2f66ed53eba..c9ccd6a9bd3 100644 --- a/sys/dev/pci/mfii.c +++ b/sys/dev/pci/mfii.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mfii.c,v 1.45 2017/11/27 04:32:14 jmatthew Exp $ */ +/* $OpenBSD: mfii.c,v 1.46 2018/02/02 11:24:37 jsg Exp $ */ /* * Copyright (c) 2012 David Gwynne <dlg@openbsd.org> @@ -537,7 +537,7 @@ mfii_attach(struct device *parent, struct device *self, void *aux) /* wire up the bus shizz */ memtype = pci_mapreg_type(pa->pa_pc, pa->pa_tag, sc->sc_iop->bar); - if (pci_mapreg_map(pa, MFII_BAR, memtype, 0, + if (pci_mapreg_map(pa, sc->sc_iop->bar, memtype, 0, &sc->sc_iot, &sc->sc_ioh, NULL, &sc->sc_ios, MFII_PCI_MEMSIZE)) { printf(": unable to map registers\n"); return; |