summaryrefslogtreecommitdiff
path: root/sys/dev/ic/aacreg.h
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/ic/aacreg.h
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/ic/aacreg.h')
-rw-r--r--sys/dev/ic/aacreg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/ic/aacreg.h b/sys/dev/ic/aacreg.h
index 54850b86f23..21973b791dc 100644
--- a/sys/dev/ic/aacreg.h
+++ b/sys/dev/ic/aacreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: aacreg.h,v 1.2 2000/12/06 21:16:45 mickey Exp $ */
+/* $OpenBSD: aacreg.h,v 1.3 2001/06/12 15:40:29 niklas Exp $ */
/*-
* Copyright (c) 2000 Michael Smith
@@ -484,6 +484,8 @@ struct aac_blockwrite_response {
* on the SA110 'StrongArm'.
*/
+#define AAC_REGSIZE 0x100
+
/* doorbell 0 (adapter->host) */
#define AAC_SA_DOORBELL0_CLEAR 0x98
#define AAC_SA_DOORBELL0_SET 0x9c