aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/loopback/tcm_loop.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/target/loopback/tcm_loop.h')
-rw-r--r--drivers/target/loopback/tcm_loop.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/target/loopback/tcm_loop.h b/drivers/target/loopback/tcm_loop.h
index dd7a84ee78e1..54c59d0b6608 100644
--- a/drivers/target/loopback/tcm_loop.h
+++ b/drivers/target/loopback/tcm_loop.h
@@ -10,6 +10,8 @@
10struct tcm_loop_cmd { 10struct tcm_loop_cmd {
11 /* State of Linux/SCSI CDB+Data descriptor */ 11 /* State of Linux/SCSI CDB+Data descriptor */
12 u32 sc_cmd_state; 12 u32 sc_cmd_state;
13 /* Tagged command queueing */
14 u32 sc_cmd_tag;
13 /* Pointer to the CDB+Data descriptor from Linux/SCSI subsystem */ 15 /* Pointer to the CDB+Data descriptor from Linux/SCSI subsystem */
14 struct scsi_cmnd *sc; 16 struct scsi_cmnd *sc;
15 /* The TCM I/O descriptor that is accessed via container_of() */ 17 /* The TCM I/O descriptor that is accessed via container_of() */
@@ -40,8 +42,12 @@ struct tcm_loop_nacl {
40 struct se_node_acl se_node_acl; 42 struct se_node_acl se_node_acl;
41}; 43};
42 44
45#define TCM_TRANSPORT_ONLINE 0
46#define TCM_TRANSPORT_OFFLINE 1
47
43struct tcm_loop_tpg { 48struct tcm_loop_tpg {
44 unsigned short tl_tpgt; 49 unsigned short tl_tpgt;
50 unsigned short tl_transport_status;
45 atomic_t tl_tpg_port_count; 51 atomic_t tl_tpg_port_count;
46 struct se_portal_group tl_se_tpg; 52 struct se_portal_group tl_se_tpg;
47 struct tcm_loop_hba *tl_hba; 53 struct tcm_loop_hba *tl_hba;