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/i82365_pci.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/i82365_pci.c')
-rw-r--r-- | sys/dev/pci/i82365_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/i82365_pci.c b/sys/dev/pci/i82365_pci.c index fe4a8553faf..92faced02ea 100644 --- a/sys/dev/pci/i82365_pci.c +++ b/sys/dev/pci/i82365_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: i82365_pci.c,v 1.3 2000/09/04 17:07:52 mickey Exp $ */ +/* $OpenBSD: i82365_pci.c,v 1.4 2001/06/12 15:40:31 niklas Exp $ */ /* $NetBSD: i82365_pci.c,v 1.11 2000/02/24 03:42:44 itohy Exp $ */ /* @@ -124,7 +124,7 @@ pcic_pci_attach(parent, self, aux) int irq, i; if (pci_mapreg_map(pa, PCI_CBIO, PCI_MAPREG_TYPE_IO, 0, - &sc->iot, &sc->ioh, NULL, &size)) { + &sc->iot, &sc->ioh, NULL, &size, 0)) { printf(": can't map i/o space\n"); return; } |