summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniklas <niklas@openbsd.org>1996-11-28 13:17:53 +0000
committerniklas <niklas@openbsd.org>1996-11-28 13:17:53 +0000
commit4b3f156a97b85b548b86eba3f588aad7571d5b49 (patch)
tree58f83e6ce4f82e7d48a5fa707fe1a0198fb60819
parentPull in laptop changes from cgd, a couple from me, and a few slight formatting (diff)
downloadwireguard-openbsd-4b3f156a97b85b548b86eba3f588aad7571d5b49.tar.xz
wireguard-openbsd-4b3f156a97b85b548b86eba3f588aad7571d5b49.zip
Sync to NetBSD 961107
-rw-r--r--sys/scsi/scsi_message.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/sys/scsi/scsi_message.h b/sys/scsi/scsi_message.h
index fca8334657f..cd58a68a8a8 100644
--- a/sys/scsi/scsi_message.h
+++ b/sys/scsi/scsi_message.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_message.h,v 1.2 1996/10/31 01:09:24 niklas Exp $ */
+/* $OpenBSD: scsi_message.h,v 1.3 1996/11/28 13:17:53 niklas Exp $ */
/* Messages (1 byte) */ /* I/T (M)andatory or (O)ptional */
#define MSG_CMDCOMPLETE 0x00 /* M/M */
@@ -26,10 +26,14 @@
#define MSG_ORDERED_Q_TAG 0x22 /* O/O */
#define MSG_IGN_WIDE_RESIDUE 0x23 /* O/O */
-/* Identify message */
-#define MSG_IDENTIFY(lun, disc) (((disc) ? 0xc0 : 0x80) | (lun))
-#define MSG_ISIDENTIFY(m) ((m) & 0x80)
+/* Identify message */ /* M/M */
+#define MSG_IDENTIFYFLAG 0x80
+#define MSG_IDENTIFY(lun, disc) (((disc) ? 0xc0 : MSG_IDENTIFYFLAG) | (lun))
+#define MSG_ISIDENTIFY(m) ((m) & MSG_IDENTIFYFLAG)
-/* Extended messages (opcode) */
+/* Extended messages (opcode and length) */
#define MSG_EXT_SDTR 0x01
-#define MSG_EXT_WDTR 0x03
+#define MSG_EXT_SDTR_LEN 0x03
+
+#define MSG_EXT_WDTR 0x03
+#define MSG_EXT_WDTR_LEN 0x02