Add some 2X00 specific state flags for status response entries. Add the

defines necessary for the REGISTER FC4 TYPE SNS subcommand.
This commit is contained in:
mjacob 2001-01-09 18:56:06 +00:00
parent 5599d31360
commit 64c3b7f881

View File

@ -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 @@ typedef struct {
} 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 */
@ -468,6 +468,15 @@ typedef struct {
#define RQSF_GOT_SENSE 0x2000
#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
*/
@ -682,6 +691,7 @@ typedef struct {
#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 @@ typedef struct {
} 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 @@ typedef struct {
} 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];