diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2001-06-12 15:40:34 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2001-06-12 15:40:34 +0000 |
commit | 863b60f4757a6099cb3d4cd2929f329b25d32e68 (patch) | |
tree | 2a7712531ca485cdb471f9dbf7b496e0c7bc40ea /sys/dev/pci/ises.c | |
parent | d468f5520cb27434701c19a9a1c745b39679516b (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/ises.c')
-rw-r--r-- | sys/dev/pci/ises.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/ises.c b/sys/dev/pci/ises.c index f4a5a65f505..1d302121f8d 100644 --- a/sys/dev/pci/ises.c +++ b/sys/dev/pci/ises.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ises.c,v 1.6 2001/06/05 15:32:27 ho Exp $ */ +/* $OpenBSD: ises.c,v 1.7 2001/06/12 15:40:32 niklas Exp $ */ /* * Copyright (c) 2000, 2001 Håkan Olsson (ho@crt.se) @@ -186,7 +186,7 @@ ises_attach(struct device *parent, struct device *self, void *aux) /* Map control/status registers. */ if (pci_mapreg_map(pa, PCI_MAPREG_START, PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_32BIT, 0, &sc->sc_memt, - &sc->sc_memh, &membase, &memsize)) { + &sc->sc_memh, &membase, &memsize, 0)) { printf(": can't find mem space\n"); return; } |