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/siop_pci_common.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/siop_pci_common.c')
-rw-r--r-- | sys/dev/pci/siop_pci_common.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/siop_pci_common.c b/sys/dev/pci/siop_pci_common.c index f7c86f36842..b3695fde9b8 100644 --- a/sys/dev/pci/siop_pci_common.c +++ b/sys/dev/pci/siop_pci_common.c @@ -1,4 +1,4 @@ -/* $OpenBSD: siop_pci_common.c,v 1.5 2001/04/15 06:01:30 krw Exp $ */ +/* $OpenBSD: siop_pci_common.c,v 1.6 2001/06/12 15:40:33 niklas Exp $ */ /* $NetBSD: siop_pci_common.c,v 1.6 2001/01/10 15:50:20 thorpej Exp $ */ /* @@ -228,14 +228,14 @@ siop_pci_attach_common(sc, pa) case PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_32BIT: case PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_64BIT: memh_valid = (pci_mapreg_map(pa, 0x14, memtype, 0, - &memt, &memh, &memaddr, NULL) == 0); + &memt, &memh, &memaddr, NULL, 0) == 0); break; default: memh_valid = 0; } ioh_valid = (pci_mapreg_map(pa, 0x10, PCI_MAPREG_TYPE_IO, 0, - &iot, &ioh, &ioaddr, NULL) == 0); + &iot, &ioh, &ioaddr, NULL, 0) == 0); if (memh_valid) { sc->siop.sc_rt = memt; @@ -263,7 +263,7 @@ siop_pci_attach_common(sc, pa) } if (pci_mapreg_map(pa, bar, memtype, 0, &sc->siop.sc_ramt, &sc->siop.sc_ramh, - &sc->siop.sc_scriptaddr, NULL) != 0) + &sc->siop.sc_scriptaddr, NULL, 0) != 0) sc->siop.features &= ~SF_CHIP_RAM; } |