summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/cmpci.c
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>2001-06-12 15:40:29 +0000
committerniklas <niklas@openbsd.org>2001-06-12 15:40:29 +0000
commit8c50cd28441da144c11e28ce48dfa1431bd78c92 (patch)
tree7fd626736b234f02512ef3e7c416e74520d4cccb /sys/dev/pci/cmpci.c
parentIPsec-related socket options; these can be set/removed/retrieved, but (diff)
downloadwireguard-openbsd-8c50cd28441da144c11e28ce48dfa1431bd78c92.tar.xz
wireguard-openbsd-8c50cd28441da144c11e28ce48dfa1431bd78c92.zip
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/cmpci.c')
-rw-r--r--sys/dev/pci/cmpci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/cmpci.c b/sys/dev/pci/cmpci.c
index 9ba82a8034e..8b4013af070 100644
--- a/sys/dev/pci/cmpci.c
+++ b/sys/dev/pci/cmpci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmpci.c,v 1.1 2000/04/27 02:19:41 millert Exp $ */
+/* $OpenBSD: cmpci.c,v 1.2 2001/06/12 15:40:30 niklas Exp $ */
/*
* Copyright (c) 2000 Takuya SHIOZAKI
@@ -323,7 +323,7 @@ cmpci_attach(parent, self, aux)
/* map I/O space */
if (pci_mapreg_map(pa, CMPCI_PCI_IOBASEREG, PCI_MAPREG_TYPE_IO, 0,
- &sc->sc_iot, &sc->sc_ioh, NULL, NULL)) {
+ &sc->sc_iot, &sc->sc_ioh, NULL, NULL, 0)) {
printf("\n%s: failed to map I/O space\n", sc->sc_dev.dv_xname);
return;
}