diff options
| author | wrstuden <wrstuden@NetBSD.org> | 2003-02-04 18:09:40 +0000 |
|---|---|---|
| committer | wrstuden <wrstuden@NetBSD.org> | 2003-02-04 18:09:40 +0000 |
| commit | 28a2da880e2779d197e6596eb0ef52aa69342078 (patch) | |
| tree | a61dcabbc8e4beba6beb58f8ac9e451aff267c00 /sys/dev | |
| parent | b7f3c6243117fc9bb8ddc9ff7bcfe0be5effb5fb (diff) | |
Add defines and structure for control mode page.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/scsipi/scsi_disk.h | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/sys/dev/scsipi/scsi_disk.h b/sys/dev/scsipi/scsi_disk.h index 4987f7849bf..5595283c81f 100644 --- a/sys/dev/scsipi/scsi_disk.h +++ b/sys/dev/scsipi/scsi_disk.h @@ -1,4 +1,4 @@ -/* $NetBSD: scsi_disk.h,v 1.22 2003/01/06 21:02:18 matt Exp $ */ +/* $NetBSD: scsi_disk.h,v 1.23 2003/02/04 18:09:40 wrstuden Exp $ */ /* * SCSI-specific interface description @@ -299,6 +299,38 @@ union scsi_disk_pages { u_int8_t reserved1; u_int8_t non_cache_segment_size[2]; } caching_params; + struct page_control { + u_int8_t pg_code; /* page code (should be 0x0a) */ + u_int8_t pg_length; /* page length (should be 0x0a) */ + u_int8_t ctl_flags1; /* First set of flags */ +#define CTL1_TST_PER_INTR 0x40 /* Task set per initiator */ +#define CTL1_TST_FIELD 0xe0 /* Full field */ +#define CTL1_D_SENSE 0x04 /* Descriptor-format sense return */ +#define CTL1_GLTSD 0x02 /* Glob. Log Targ. Save Disable */ +#define CTL1_RLEC 0x01 /* Rpt Logging Exception Condition */ + u_int8_t ctl_flags2; /* Second set of flags */ +#define CTL2_QAM_UNRESTRICT 0x10 /* Unrestricted reordering allowed */ +#define CTL2_QAM_FIELD 0xf0 /* Full Queue alogo. modifier field */ +#define CTL2_QERR_ABRT 0x02 /* Queue error - abort all */ +#define CTL2_QERR_ABRT_SELF 0x06 /* Queue error - abort intr's */ +#define CTL2_QERR_FIELD 0x06 /* Full field */ +#define CTL2_DQUE 0x01 /* Disable queuing */ + u_int8_t ctl_flags3; /* Third set of flags */ +#define CTL3_TAS 0x80 /* other-intr aborts generate status */ +#define CTL3_RAC 0x40 /* Report A Check */ +#define CTL3_UAIC_RET 0x10 /* retain UA, see SPC-3 */ +#define CTL3_UAIC_RET_EST 0x30 /* retain UA and establish UA */ +#define CTL3_UA_INTRLOCKS 0x30 /* UA Interlock control field */ +#define CTL3_SWP 0x08 /* Software write protect */ +#define CTL3_RAERP 0x04 /* (unit) Ready AER Permission */ +#define CTL3_UAAERP 0x02 /* Unit Attention AER Permission */ +#define CTL3_EAERP 0x01 /* Error AER Permission */ + u_int8_t ctl_autoload; /* autoload mode control */ +#define CTL_AUTOLOAD_FIELD 0x07 /* autoload field */ + u_int8_t ctl_r_hld[2]; /* RAERP holdoff period */ + u_int8_t ctl_busy[2]; /* busy timeout period */ + u_int8_t ctl_selt[2]; /* extended self-test completion time */ + } control_params; }; #endif /* _DEV_SCSIPI_SCSI_DISK_H_ */ |
