From 863b60f4757a6099cb3d4cd2929f329b25d32e68 Mon Sep 17 00:00:00 2001 From: Niklas Hallqvist Date: Tue, 12 Jun 2001 15:40:34 +0000 Subject: 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. --- sys/dev/ic/aacreg.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/ic/aacreg.h') 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 -- cgit v1.2.3