summaryrefslogtreecommitdiff
path: root/sys/arch/mvme88k/dev/vsreg.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2004-07-20 20:32:03 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2004-07-20 20:32:03 +0000
commit0066da537c51c58d6f5acb9e239b3a3027b9f442 (patch)
tree90dc1aa48985ea3caf25f10ec08d90be749e1670 /sys/arch/mvme88k/dev/vsreg.h
parent5ee2de3755d1cfb57f96c46d6b7a4c5207720c76 (diff)
Work in progress to support daughterboards. The driver now will attach a
second scsi bus if a SCSI daughterboard is present, and is supposed to know about this and send scsi commands to the appropriate bus. Unfortunately probing the second bus does not report any device at the moment (though you can boot off it), but I can't see the issue at the moment. Thanks to tdeval@ for lending a few boards equipped with daughterboards for testing.
Diffstat (limited to 'sys/arch/mvme88k/dev/vsreg.h')
-rw-r--r--sys/arch/mvme88k/dev/vsreg.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/mvme88k/dev/vsreg.h b/sys/arch/mvme88k/dev/vsreg.h
index 0e45179e438..b5a5664882a 100644
--- a/sys/arch/mvme88k/dev/vsreg.h
+++ b/sys/arch/mvme88k/dev/vsreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: vsreg.h,v 1.11 2004/07/19 20:35:37 miod Exp $ */
+/* $OpenBSD: vsreg.h,v 1.12 2004/07/20 20:32:02 miod Exp $ */
/*
* Copyright (c) 2004, Miodrag Vallat.
* Copyright (c) 1999 Steve Murphree, Jr.
@@ -56,6 +56,7 @@
#define NUM_CQE 10
#define NUM_IOPB NUM_CQE
+#define NUM_WQ 15
/*
* Master Control Status Block (MCSB)
@@ -341,7 +342,8 @@
#define CNTR_ISSUE_ABORT 0x4e /* abort has been issued */
#define CNTR_DOWNLOAD_FIRMWARE 0x4f /* download firmware (COUGAR) */
-#define IOPB_UNIT_VALUE(target, lun) ((lun) << 3 | (target & 7))
+#define IOPB_UNIT_VALUE(bus, target, lun) \
+ (((bus) << 6) | ((lun) << 3) | (target & 7))
/*
* Memory types