summaryrefslogtreecommitdiff
path: root/sys/dev/pci/cs4281.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/cs4281.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/cs4281.c')
-rw-r--r--sys/dev/pci/cs4281.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/cs4281.c b/sys/dev/pci/cs4281.c
index a7193e147e9..fead8db04e3 100644
--- a/sys/dev/pci/cs4281.c
+++ b/sys/dev/pci/cs4281.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cs4281.c,v 1.2 2001/02/09 21:15:22 aaron Exp $ */
+/* $OpenBSD: cs4281.c,v 1.3 2001/06/12 15:40:30 niklas Exp $ */
/* $Tera: cs4281.c,v 1.18 2000/12/27 14:24:45 tacha Exp $ */
/*
@@ -306,13 +306,13 @@ cs4281_attach(parent, self, aux)
/* Map I/O register */
if (pci_mapreg_map(pa, CSCC_PCI_BA0,
PCI_MAPREG_TYPE_MEM|PCI_MAPREG_MEM_TYPE_32BIT, 0, &sc->ba0t,
- &sc->ba0h, NULL, NULL)) {
+ &sc->ba0h, NULL, NULL, 0)) {
printf("%s: can't map BA0 space\n", sc->sc_dev.dv_xname);
return;
}
if (pci_mapreg_map(pa, CSCC_PCI_BA1,
PCI_MAPREG_TYPE_MEM|PCI_MAPREG_MEM_TYPE_32BIT, 0, &sc->ba1t,
- &sc->ba1h, NULL, NULL)) {
+ &sc->ba1h, NULL, NULL, 0)) {
printf("%s: can't map BA1 space\n", sc->sc_dev.dv_xname);
return;
}