diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2005-04-06 02:12:55 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2005-04-06 02:12:55 +0000 |
commit | 5eb160d5aba50c9e5bf91816cff5e5717e3d5baa (patch) | |
tree | 24bf2900f46cd9c15283450f6f0930dffda9c1cb /sys | |
parent | 7b5f44ceffc72aec8c270d7efbd14106a45620f8 (diff) |
Add control/send structures.
ok krw@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/scsi/scsi_all.h | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/sys/scsi/scsi_all.h b/sys/scsi/scsi_all.h index 1505a35ef64..7d8e3d25117 100644 --- a/sys/scsi/scsi_all.h +++ b/sys/scsi/scsi_all.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_all.h,v 1.19 2005/04/06 00:00:09 marco Exp $ */ +/* $OpenBSD: scsi_all.h,v 1.20 2005/04/06 02:12:54 marco Exp $ */ /* $NetBSD: scsi_all.h,v 1.10 1996/09/12 01:57:17 thorpej Exp $ */ /* @@ -69,6 +69,38 @@ struct scsi_send_diag { u_int8_t control; }; +/* FIXME does this go in ses.h? */ +struct scsi_dev_elmt_ctrl_diag { + u_int8_t common_ctrl; + u_int8_t reserved; + u_int8_t byte3; +#define SDECD_RQST_IDENT 0x02 +#define SDECD_RQST_REMOVE 0x04 +#define SDECD_RQST_INSERT 0x08 +#define SDECD_DONT_REMOVE 0x40 +#define SDECD_ACTIVE 0x80 + u_int8_t byte4; +#define SDECD_ENABLE_BYP_B 0x04 +#define SDECD_ENABLE_BYP_A 0x08 +#define SDECD_DEVICE_OFF 0x10 +#define SDECD_RQST_FAULT 0x20 +}; + +/* FIXME does this go in ses.h? */ +struct scsi_enc_ctrl_diag_page { + u_int8_t page_code; + u_int8_t byte2; +#define SECDP_INFO 0x08 +#define SECDP_NONCRIT 0x04 +#define SECDP_CRIT 0x02 +#define SECDP_UNREC 0x08 + u_int8_t length[2]; + u_int8_t gencode[4]; + u_int8_t overallctrl[4]; + /* first element starts here */ + struct scsi_dev_elmt_ctrl_diag elmts[0]; +}; + struct scsi_sense { u_int8_t opcode; u_int8_t byte2; |