summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-09-02 23:41:02 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-09-02 23:41:02 +0000
commit72af4ee735ee66638dcdcd80779cd22ff7d13962 (patch)
tree497980a7f522580ac2f3e933060db233e603adf2 /sys
parent51cf437f393031fc9487e6e9bc85fc0588c3ea11 (diff)
Add #define SID_SCSI2_RESPONSE 0x2 to allow elimination of another bunch of
magic numbers. As the nearby comment says '< 2 is obsolete. >2 is reserved'. So 0x2 is just right.
Diffstat (limited to 'sys')
-rw-r--r--sys/scsi/scsi_all.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/scsi/scsi_all.h b/sys/scsi/scsi_all.h
index cfd4170cf2b..a0b013ae3ae 100644
--- a/sys/scsi/scsi_all.h
+++ b/sys/scsi/scsi_all.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_all.h,v 1.61 2019/11/25 17:02:56 krw Exp $ */
+/* $OpenBSD: scsi_all.h,v 1.62 2020/09/02 23:41:01 krw Exp $ */
/* $NetBSD: scsi_all.h,v 1.10 1996/09/12 01:57:17 thorpej Exp $ */
/*
@@ -246,6 +246,7 @@ struct scsi_inquiry_data {
#define SID_ISO 0xc0
u_int8_t response_format;
#define SID_RESPONSE_DATA_FMT 0x0f /* < 2 == obsolete, > 2 reserved! */
+#define SID_SCSI2_RESPONSE 0x02
#define SID_HiSup 0x10 /* Hierarchical LUNs */
#define SID_NormACA 0x20 /* Normal ACA bit in CCB supported */
#define SID_TrmIOP 0x40 /* obsolete */