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/ahc_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/ahc_pci.c')
-rw-r--r-- | sys/dev/pci/ahc_pci.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/ahc_pci.c b/sys/dev/pci/ahc_pci.c index 54a59aabde2..a0fce90e82e 100644 --- a/sys/dev/pci/ahc_pci.c +++ b/sys/dev/pci/ahc_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ahc_pci.c,v 1.21 2001/01/22 22:36:52 deraadt Exp $ */ +/* $OpenBSD: ahc_pci.c,v 1.22 2001/06/12 15:40:29 niklas Exp $ */ /* $NetBSD: ahc_pci.c,v 1.9 1996/10/21 22:56:24 thorpej Exp $ */ /* @@ -377,7 +377,7 @@ void *aux; case PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_32BIT: case PCI_MAPREG_TYPE_MEM | PCI_MAPREG_MEM_TYPE_64BIT: ioh_valid = (pci_mapreg_map(pa, AHC_PCI_MEMADDR, - memtype, 0, &iot, &ioh, NULL, NULL) == 0); + memtype, 0, &iot, &ioh, NULL, NULL, 0) == 0); break; default: ioh_valid = 0; @@ -388,7 +388,7 @@ void *aux; #endif { ioh_valid = (pci_mapreg_map(pa, AHC_PCI_IOADDR, - PCI_MAPREG_TYPE_IO, 0, &iot, &ioh, NULL, NULL) == 0); + PCI_MAPREG_TYPE_IO, 0, &iot, &ioh, NULL, NULL, 0) == 0); } if (!ioh_valid) { |