diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2004-01-04 03:25:31 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2004-01-04 03:25:31 +0000 |
commit | 0bb8ffe6da28e91a5982e4244360b5f764650f20 (patch) | |
tree | 7f0c023645a5bd3247afb97adcb865e840f8ce58 /sys/scsi/scsi_all.h | |
parent | 21261fdb25b70a19248f505b4e856ebf05743faf (diff) |
Rewrite scsi_decode_sense() to clean up code; eliminate many magic
numbers; fix passing a NULL to %s under some circumstances; fix the
bit index mask; etc.
No change in output.
ok deraadt@.
Diffstat (limited to 'sys/scsi/scsi_all.h')
-rw-r--r-- | sys/scsi/scsi_all.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/scsi/scsi_all.h b/sys/scsi/scsi_all.h index 4b560754379..23228526fc0 100644 --- a/sys/scsi/scsi_all.h +++ b/sys/scsi/scsi_all.h @@ -1,4 +1,4 @@ -/* $OpenBSD: scsi_all.h,v 1.14 2002/12/15 20:53:33 krw Exp $ */ +/* $OpenBSD: scsi_all.h,v 1.15 2004/01/04 03:25:30 krw Exp $ */ /* $NetBSD: scsi_all.h,v 1.10 1996/09/12 01:57:17 thorpej Exp $ */ /* @@ -268,7 +268,11 @@ struct scsi_sense_data { /*14*/ u_int8_t add_sense_code_qual; /*15*/ u_int8_t fru; /*16*/ u_int8_t sense_key_spec_1; -#define SSD_SCS_VALID 0x80 +#define SSD_SCS_VALID 0x80 +#define SSD_SCS_CDB_ERROR 0x40 +#define SSD_SCS_SEGMENT_DESC 0x20 +#define SSD_SCS_VALID_BIT_INDEX 0x08 +#define SSD_SCS_BIT_INDEX 0x07 /*17*/ u_int8_t sense_key_spec_2; /*18*/ u_int8_t sense_key_spec_3; /*32*/ u_int8_t extra_bytes[14]; |