Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Add some 2X00 specific state flags for status res...
details: https://anonhg.NetBSD.org/src/rev/b7ad5ba40f24
branches: trunk
changeset: 501948:b7ad5ba40f24
user: mjacob <mjacob%NetBSD.org@localhost>
date: Tue Jan 09 18:56:06 2001 +0000
description:
Add some 2X00 specific state flags for status response entries. Add the
defines necessary for the REGISTER FC4 TYPE SNS subcommand.
diffstat:
sys/dev/ic/ispmbox.h | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diffs (58 lines):
diff -r 8adae679098f -r b7ad5ba40f24 sys/dev/ic/ispmbox.h
--- a/sys/dev/ic/ispmbox.h Tue Jan 09 18:54:53 2001 +0000
+++ b/sys/dev/ic/ispmbox.h Tue Jan 09 18:56:06 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ispmbox.h,v 1.28 2000/12/23 01:38:00 wiz Exp $ */
+/* $NetBSD: ispmbox.h,v 1.29 2001/01/09 18:56:06 mjacob Exp $ */
/*
* This driver, which is contained in NetBSD in the files:
*
@@ -404,7 +404,7 @@
} ispstatusreq_t;
/*
- * For Qlogic 2100, the high order byte of SCSI status has
+ * For Qlogic 2X00, the high order byte of SCSI status has
* additional meaning.
*/
#define RQCS_RU 0x800 /* Residual Under */
@@ -469,6 +469,15 @@
#define RQSF_XFER_COMPLETE 0x4000
/*
+ * 2X00 specific State Flags
+ * (same as 1X00 except RQSF_GOT_BUS/RQSF_GOT_TARGET are not available)
+ */
+#define RQSF_DATA_IN 0x0020
+#define RQSF_DATA_OUT 0x0040
+#define RQSF_STAG 0x0008
+#define RQSF_OTAG 0x0004
+#define RQSF_HTAG 0x0002
+/*
* 1X00 Status Flags
*/
#define RQSTF_DISCONNECT 0x0001
@@ -682,6 +691,7 @@
#define SNS_GAN 0x100
#define SNS_GP3 0x171
+#define SNS_RFT 0x217
typedef struct {
u_int16_t snscb_rblen; /* response buffer length (words) */
u_int16_t snscb_res0;
@@ -692,6 +702,7 @@
} sns_screq_t; /* Subcommand Request Structure */
#define SNS_GAN_REQ_SIZE (sizeof (sns_screq_t)+(5*(sizeof (u_int16_t))))
#define SNS_GP3_REQ_SIZE (sizeof (sns_screq_t)+(5*(sizeof (u_int16_t))))
+#define SNS_RFT_REQ_SIZE (sizeof (sns_screq_t)+(21*(sizeof (u_int16_t))))
typedef struct {
u_int8_t snscb_cthdr[16];
@@ -702,6 +713,7 @@
} sns_scrsp_t; /* Subcommand Response Structure */
#define SNS_GAN_RESP_SIZE 608 /* Maximum response size (bytes) */
#define SNS_GP3_RESP_SIZE 532 /* XXX: For 128 ports */
+#define SNS_RFT_RESP_SIZE 16
typedef struct {
u_int8_t snscb_cthdr[16];
Home |
Main Index |
Thread Index |
Old Index