aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/target
diff options
context:
space:
mode:
authorDmitry Bogdanov <d.bogdanov@yadro.com>2022-09-06 13:34:16 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2022-10-27 01:44:32 +0000
commitb9b8782f8966a7f219ec2e2db3ffe5eeb23943ab (patch)
tree433bc0fb4b01b2ac1ee5f951f4187f7ab5d96027 /include/target
parentscsi: ufs: Fix a deadlock between PM and the SCSI error handler (diff)
downloadwireguard-linux-b9b8782f8966a7f219ec2e2db3ffe5eeb23943ab.tar.xz
wireguard-linux-b9b8782f8966a7f219ec2e2db3ffe5eeb23943ab.zip
scsi: target: core: Add support for RSOC command
Add support for REPORT SUPPORTED OPERATION CODES command according to SPC4. Reviewed-by: Roman Bolshakov <r.bolshakov@yadro.com> Signed-off-by: Dmitry Bogdanov <d.bogdanov@yadro.com> Link: https://lore.kernel.org/r/20220906103421.22348-2-d.bogdanov@yadro.com Reviewed-by: Mike Christie <michael.christie@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'include/target')
-rw-r--r--include/target/target_core_base.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index 8c920456edd9..02a2d48d20b6 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -867,6 +867,18 @@ struct se_device {
struct se_device_queue *queues;
};
+struct target_opcode_descriptor {
+ u8 support:3;
+ u8 serv_action_valid:1;
+ u8 opcode;
+ u16 service_action;
+ u32 cdb_size;
+ u8 specific_timeout;
+ u16 nominal_timeout;
+ u16 recommended_timeout;
+ u8 usage_bits[];
+};
+
struct se_hba {
u16 hba_tpgt;
u32 hba_id;