summaryrefslogtreecommitdiff
path: root/sys/dev/pci/cac_pci.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>2001-06-12 15:40:34 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>2001-06-12 15:40:34 +0000
commit863b60f4757a6099cb3d4cd2929f329b25d32e68 (patch)
tree2a7712531ca485cdb471f9dbf7b496e0c7bc40ea /sys/dev/pci/cac_pci.c
parentd468f5520cb27434701c19a9a1c745b39679516b (diff)
Make pci_mapreg_map take an extra argument where we can
put a size limitation of the PCI region to map. That makes the PERC 3/Di raid controller usable, as it publishes too much PCI memory for us to map in the kernel virtual memory. As we only access the first 256 byte it is of no use to map 128MB of kvm.
Diffstat (limited to 'sys/dev/pci/cac_pci.c')
-rw-r--r--sys/dev/pci/cac_pci.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/cac_pci.c b/sys/dev/pci/cac_pci.c
index 821fbe4c257..39deca30387 100644
--- a/sys/dev/pci/cac_pci.c
+++ b/sys/dev/pci/cac_pci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cac_pci.c,v 1.3 2001/04/16 03:18:19 deraadt Exp $ */
+/* $OpenBSD: cac_pci.c,v 1.4 2001/06/12 15:40:30 niklas Exp $ */
/* $NetBSD: cac_pci.c,v 1.10 2001/01/10 16:48:04 ad Exp $ */
/*-
@@ -198,14 +198,14 @@ cac_pci_attach(parent, self, aux)
if (memr != -1) {
if (pci_mapreg_map(pa, memr, PCI_MAPREG_TYPE_MEM, 0,
- &sc->sc_iot, &sc->sc_ioh, NULL, NULL))
+ &sc->sc_iot, &sc->sc_ioh, NULL, NULL, 0))
memr = -1;
else
ior = -1;
}
if (ior != -1)
if (pci_mapreg_map(pa, ior, PCI_MAPREG_TYPE_IO, 0,
- &sc->sc_iot, &sc->sc_ioh, NULL, NULL))
+ &sc->sc_iot, &sc->sc_ioh, NULL, NULL, 0))
ior = -1;
if (memr == -1 && ior == -1) {
printf("%s: can't map i/o or memory space\n", self->dv_xname);