aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/scsi/zfcp_def.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/scsi/zfcp_def.h')
-rw-r--r--drivers/s390/scsi/zfcp_def.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h
index 4b6af8e07e8d..d81b737d68cc 100644
--- a/drivers/s390/scsi/zfcp_def.h
+++ b/drivers/s390/scsi/zfcp_def.h
@@ -165,7 +165,6 @@ typedef u32 scsi_lun_t;
165/*************** FIBRE CHANNEL PROTOCOL SPECIFIC DEFINES ********************/ 165/*************** FIBRE CHANNEL PROTOCOL SPECIFIC DEFINES ********************/
166 166
167typedef unsigned long long wwn_t; 167typedef unsigned long long wwn_t;
168typedef unsigned int fc_id_t;
169typedef unsigned long long fcp_lun_t; 168typedef unsigned long long fcp_lun_t;
170/* data length field may be at variable position in FCP-2 FCP_CMND IU */ 169/* data length field may be at variable position in FCP-2 FCP_CMND IU */
171typedef unsigned int fcp_dl_t; 170typedef unsigned int fcp_dl_t;
@@ -806,7 +805,7 @@ struct ct_iu_gid_pn_req {
806/* FS_ACC IU and data unit for GID_PN nameserver request */ 805/* FS_ACC IU and data unit for GID_PN nameserver request */
807struct ct_iu_gid_pn_resp { 806struct ct_iu_gid_pn_resp {
808 struct ct_hdr header; 807 struct ct_hdr header;
809 fc_id_t d_id; 808 u32 d_id;
810} __attribute__ ((packed)); 809} __attribute__ ((packed));
811 810
812typedef void (*zfcp_send_ct_handler_t)(unsigned long); 811typedef void (*zfcp_send_ct_handler_t)(unsigned long);
@@ -872,7 +871,7 @@ typedef void (*zfcp_send_els_handler_t)(unsigned long);
872struct zfcp_send_els { 871struct zfcp_send_els {
873 struct zfcp_adapter *adapter; 872 struct zfcp_adapter *adapter;
874 struct zfcp_port *port; 873 struct zfcp_port *port;
875 fc_id_t d_id; 874 u32 d_id;
876 struct scatterlist *req; 875 struct scatterlist *req;
877 struct scatterlist *resp; 876 struct scatterlist *resp;
878 unsigned int req_count; 877 unsigned int req_count;
@@ -915,24 +914,19 @@ struct zfcp_adapter {
915 atomic_t refcount; /* reference count */ 914 atomic_t refcount; /* reference count */
916 wait_queue_head_t remove_wq; /* can be used to wait for 915 wait_queue_head_t remove_wq; /* can be used to wait for
917 refcount drop to zero */ 916 refcount drop to zero */
918 wwn_t wwnn; /* WWNN */
919 wwn_t wwpn; /* WWPN */
920 fc_id_t s_id; /* N_Port ID */
921 wwn_t peer_wwnn; /* P2P peer WWNN */ 917 wwn_t peer_wwnn; /* P2P peer WWNN */
922 wwn_t peer_wwpn; /* P2P peer WWPN */ 918 wwn_t peer_wwpn; /* P2P peer WWPN */
923 fc_id_t peer_d_id; /* P2P peer D_ID */ 919 u32 peer_d_id; /* P2P peer D_ID */
924 wwn_t physical_wwpn; /* WWPN of physical port */ 920 wwn_t physical_wwpn; /* WWPN of physical port */
925 fc_id_t physical_s_id; /* local FC port ID */ 921 u32 physical_s_id; /* local FC port ID */
926 struct ccw_device *ccw_device; /* S/390 ccw device */ 922 struct ccw_device *ccw_device; /* S/390 ccw device */
927 u8 fc_service_class; 923 u8 fc_service_class;
928 u32 fc_topology; /* FC topology */ 924 u32 fc_topology; /* FC topology */
929 u32 fc_link_speed; /* FC interface speed */
930 u32 hydra_version; /* Hydra version */ 925 u32 hydra_version; /* Hydra version */
931 u32 fsf_lic_version; 926 u32 fsf_lic_version;
932 u32 adapter_features; /* FCP channel features */ 927 u32 adapter_features; /* FCP channel features */
933 u32 connection_features; /* host connection features */ 928 u32 connection_features; /* host connection features */
934 u32 hardware_version; /* of FCP channel */ 929 u32 hardware_version; /* of FCP channel */
935 u8 serial_number[32]; /* of hardware */
936 struct Scsi_Host *scsi_host; /* Pointer to mid-layer */ 930 struct Scsi_Host *scsi_host; /* Pointer to mid-layer */
937 unsigned short scsi_host_no; /* Assigned host number */ 931 unsigned short scsi_host_no; /* Assigned host number */
938 unsigned char name[9]; 932 unsigned char name[9];
@@ -1006,7 +1000,7 @@ struct zfcp_port {
1006 atomic_t status; /* status of this remote port */ 1000 atomic_t status; /* status of this remote port */
1007 wwn_t wwnn; /* WWNN if known */ 1001 wwn_t wwnn; /* WWNN if known */
1008 wwn_t wwpn; /* WWPN */ 1002 wwn_t wwpn; /* WWPN */
1009 fc_id_t d_id; /* D_ID */ 1003 u32 d_id; /* D_ID */
1010 u32 handle; /* handle assigned by FSF */ 1004 u32 handle; /* handle assigned by FSF */
1011 struct zfcp_erp_action erp_action; /* pending error recovery */ 1005 struct zfcp_erp_action erp_action; /* pending error recovery */
1012 atomic_t erp_counter; 1006 atomic_t erp_counter;