aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/constants.c4
-rw-r--r--drivers/target/target_core_pr.c2
-rw-r--r--include/scsi/scsi.h10
-rw-r--r--tools/lib/traceevent/plugin_scsi.c5
4 files changed, 12 insertions, 9 deletions
diff --git a/drivers/scsi/constants.c b/drivers/scsi/constants.c
index 52afabd23d9f..aee62f60b43d 100644
--- a/drivers/scsi/constants.c
+++ b/drivers/scsi/constants.c
@@ -21,10 +21,6 @@
21 21
22 22
23/* Commands with service actions that change the command name */ 23/* Commands with service actions that change the command name */
24#define SERVICE_ACTION_IN_12 0xab
25#define SERVICE_ACTION_OUT_12 0xa9
26#define SERVICE_ACTION_BIDIRECTIONAL 0x9d
27#define SERVICE_ACTION_OUT_16 0x9f
28#define THIRD_PARTY_COPY_OUT 0x83 24#define THIRD_PARTY_COPY_OUT 0x83
29#define THIRD_PARTY_COPY_IN 0x84 25#define THIRD_PARTY_COPY_IN 0x84
30 26
diff --git a/drivers/target/target_core_pr.c b/drivers/target/target_core_pr.c
index 8c60a1a1ae8d..806bfba894ca 100644
--- a/drivers/target/target_core_pr.c
+++ b/drivers/target/target_core_pr.c
@@ -459,7 +459,7 @@ static int core_scsi3_pr_seq_non_holder(
459 case ACCESS_CONTROL_OUT: 459 case ACCESS_CONTROL_OUT:
460 case INQUIRY: 460 case INQUIRY:
461 case LOG_SENSE: 461 case LOG_SENSE:
462 case READ_MEDIA_SERIAL_NUMBER: 462 case SERVICE_ACTION_IN_12:
463 case REPORT_LUNS: 463 case REPORT_LUNS:
464 case REQUEST_SENSE: 464 case REQUEST_SENSE:
465 case PERSISTENT_RESERVE_IN: 465 case PERSISTENT_RESERVE_IN:
diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h
index b354c0de324e..8a7f8ad58aac 100644
--- a/include/scsi/scsi.h
+++ b/include/scsi/scsi.h
@@ -128,8 +128,10 @@ enum scsi_timeouts {
128#define MOVE_MEDIUM 0xa5 128#define MOVE_MEDIUM 0xa5
129#define EXCHANGE_MEDIUM 0xa6 129#define EXCHANGE_MEDIUM 0xa6
130#define READ_12 0xa8 130#define READ_12 0xa8
131#define SERVICE_ACTION_OUT_12 0xa9
131#define WRITE_12 0xaa 132#define WRITE_12 0xaa
132#define READ_MEDIA_SERIAL_NUMBER 0xab 133#define READ_MEDIA_SERIAL_NUMBER 0xab /* Obsolete with SPC-2 */
134#define SERVICE_ACTION_IN_12 0xab
133#define WRITE_VERIFY_12 0xae 135#define WRITE_VERIFY_12 0xae
134#define VERIFY_12 0xaf 136#define VERIFY_12 0xaf
135#define SEARCH_HIGH_12 0xb0 137#define SEARCH_HIGH_12 0xb0
@@ -151,7 +153,9 @@ enum scsi_timeouts {
151#define VERIFY_16 0x8f 153#define VERIFY_16 0x8f
152#define SYNCHRONIZE_CACHE_16 0x91 154#define SYNCHRONIZE_CACHE_16 0x91
153#define WRITE_SAME_16 0x93 155#define WRITE_SAME_16 0x93
156#define SERVICE_ACTION_BIDIRECTIONAL 0x9d
154#define SERVICE_ACTION_IN_16 0x9e 157#define SERVICE_ACTION_IN_16 0x9e
158#define SERVICE_ACTION_OUT_16 0x9f
155/* values for service action in */ 159/* values for service action in */
156#define SAI_READ_CAPACITY_16 0x10 160#define SAI_READ_CAPACITY_16 0x10
157#define SAI_GET_LBA_STATUS 0x12 161#define SAI_GET_LBA_STATUS 0x12
@@ -165,8 +169,8 @@ enum scsi_timeouts {
165#define MI_REPORT_ALIASES 0x0b 169#define MI_REPORT_ALIASES 0x0b
166#define MI_REPORT_SUPPORTED_OPERATION_CODES 0x0c 170#define MI_REPORT_SUPPORTED_OPERATION_CODES 0x0c
167#define MI_REPORT_SUPPORTED_TASK_MANAGEMENT_FUNCTIONS 0x0d 171#define MI_REPORT_SUPPORTED_TASK_MANAGEMENT_FUNCTIONS 0x0d
168#define MI_REPORT_PRIORITY 0x0e 172#define MI_REPORT_PRIORITY 0x0e
169#define MI_REPORT_TIMESTAMP 0x0f 173#define MI_REPORT_TIMESTAMP 0x0f
170#define MI_MANAGEMENT_PROTOCOL_IN 0x10 174#define MI_MANAGEMENT_PROTOCOL_IN 0x10
171/* value for MI_REPORT_TARGET_PGS ext header */ 175/* value for MI_REPORT_TARGET_PGS ext header */
172#define MI_EXT_HDR_PARAM_FMT 0x20 176#define MI_EXT_HDR_PARAM_FMT 0x20
diff --git a/tools/lib/traceevent/plugin_scsi.c b/tools/lib/traceevent/plugin_scsi.c
index c699f477a101..3727de48c8d5 100644
--- a/tools/lib/traceevent/plugin_scsi.c
+++ b/tools/lib/traceevent/plugin_scsi.c
@@ -85,8 +85,9 @@ typedef unsigned int u32;
85#define MOVE_MEDIUM 0xa5 85#define MOVE_MEDIUM 0xa5
86#define EXCHANGE_MEDIUM 0xa6 86#define EXCHANGE_MEDIUM 0xa6
87#define READ_12 0xa8 87#define READ_12 0xa8
88#define SERVICE_ACTION_OUT_12 0xa9
88#define WRITE_12 0xaa 89#define WRITE_12 0xaa
89#define READ_MEDIA_SERIAL_NUMBER 0xab 90#define SERVICE_ACTION_IN_12 0xab
90#define WRITE_VERIFY_12 0xae 91#define WRITE_VERIFY_12 0xae
91#define VERIFY_12 0xaf 92#define VERIFY_12 0xaf
92#define SEARCH_HIGH_12 0xb0 93#define SEARCH_HIGH_12 0xb0
@@ -107,7 +108,9 @@ typedef unsigned int u32;
107#define VERIFY_16 0x8f 108#define VERIFY_16 0x8f
108#define SYNCHRONIZE_CACHE_16 0x91 109#define SYNCHRONIZE_CACHE_16 0x91
109#define WRITE_SAME_16 0x93 110#define WRITE_SAME_16 0x93
111#define SERVICE_ACTION_BIDIRECTIONAL 0x9d
110#define SERVICE_ACTION_IN_16 0x9e 112#define SERVICE_ACTION_IN_16 0x9e
113#define SERVICE_ACTION_OUT_16 0x9f
111/* values for service action in */ 114/* values for service action in */
112#define SAI_READ_CAPACITY_16 0x10 115#define SAI_READ_CAPACITY_16 0x10
113#define SAI_GET_LBA_STATUS 0x12 116#define SAI_GET_LBA_STATUS 0x12