]> Pileus Git - ~andy/linux/blobdiff - drivers/scsi/qla2xxx/qla_def.h
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target...
[~andy/linux] / drivers / scsi / qla2xxx / qla_def.h
index 41d6491d7bd9ec9e376ef93c710774b793df6889..e1fe95ef23e11353aed91a8da9dd1d1f8ef2a9c3 100644 (file)
@@ -2750,6 +2750,13 @@ struct qlfc_fw {
        uint32_t len;
 };
 
+struct scsi_qlt_host {
+       void *target_lport_ptr;
+       struct mutex tgt_mutex;
+       struct mutex tgt_host_action_mutex;
+       struct qla_tgt *qla_tgt;
+};
+
 struct qlt_hw_data {
        /* Protected by hw lock */
        uint32_t enable_class_2:1;
@@ -2765,15 +2772,11 @@ struct qlt_hw_data {
        uint32_t __iomem *atio_q_in;
        uint32_t __iomem *atio_q_out;
 
-       void *target_lport_ptr;
        struct qla_tgt_func_tmpl *tgt_ops;
-       struct qla_tgt *qla_tgt;
        struct qla_tgt_cmd *cmds[DEFAULT_OUTSTANDING_COMMANDS];
        uint16_t current_handle;
 
        struct qla_tgt_vp_map *tgt_vp_map;
-       struct mutex tgt_mutex;
-       struct mutex tgt_host_action_mutex;
 
        int saved_set;
        uint16_t saved_exchange_count;
@@ -3435,6 +3438,7 @@ typedef struct scsi_qla_host {
 #define VP_ERR_FAB_LOGOUT      4
 #define VP_ERR_ADAP_NORESOURCES        5
        struct qla_hw_data *hw;
+       struct scsi_qlt_host vha_tgt;
        struct req_que *req;
        int             fw_heartbeat_counter;
        int             seconds_since_last_heartbeat;