diff options
author | Christof Schmitt <christof.schmitt@de.ibm.com> | 2009-11-24 10:54:09 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-04 13:02:11 -0500 |
commit | 9d05ce2c0a6704ff84df02cbb3baef94fcac4f5d (patch) | |
tree | 2388ff365f068511ceb6e9bfbc13fe2425f0ae4c /drivers/s390/scsi/zfcp_def.h | |
parent | 4318e08c84e4916ac463002ffb7f9901ddb3c385 (diff) |
[SCSI] zfcp: Use common code definitions for FC ELS structs
Use common code definitions for FC plogi, logo, rscn and adisc structs
instead of inventing private ones. Move the private struct for issuing
ELS ADISC inside zfcp to zfcp_fc header file.
Reviewed-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/s390/scsi/zfcp_def.h')
-rw-r--r-- | drivers/s390/scsi/zfcp_def.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/drivers/s390/scsi/zfcp_def.h b/drivers/s390/scsi/zfcp_def.h index 0317e7f20850..fae8f2ebd43f 100644 --- a/drivers/s390/scsi/zfcp_def.h +++ b/drivers/s390/scsi/zfcp_def.h | |||
@@ -75,51 +75,6 @@ | |||
75 | 75 | ||
76 | #define ZFCP_DID_MASK 0x00FFFFFF | 76 | #define ZFCP_DID_MASK 0x00FFFFFF |
77 | 77 | ||
78 | /* see fc-fs */ | ||
79 | #define LS_RSCN 0x61 | ||
80 | #define LS_LOGO 0x05 | ||
81 | #define LS_PLOGI 0x03 | ||
82 | |||
83 | struct fcp_rscn_head { | ||
84 | u8 command; | ||
85 | u8 page_length; /* always 0x04 */ | ||
86 | u16 payload_len; | ||
87 | } __attribute__((packed)); | ||
88 | |||
89 | struct fcp_rscn_element { | ||
90 | u8 reserved:2; | ||
91 | u8 event_qual:4; | ||
92 | u8 addr_format:2; | ||
93 | u32 nport_did:24; | ||
94 | } __attribute__((packed)); | ||
95 | |||
96 | /* see fc-ph */ | ||
97 | struct fcp_logo { | ||
98 | u32 command; | ||
99 | u32 nport_did; | ||
100 | u64 nport_wwpn; | ||
101 | } __attribute__((packed)); | ||
102 | |||
103 | /* | ||
104 | * FC-FS stuff | ||
105 | */ | ||
106 | #define R_A_TOV 10 /* seconds */ | ||
107 | |||
108 | #define ZFCP_LS_RLS 0x0f | ||
109 | #define ZFCP_LS_ADISC 0x52 | ||
110 | #define ZFCP_LS_RPS 0x56 | ||
111 | #define ZFCP_LS_RSCN 0x61 | ||
112 | #define ZFCP_LS_RNID 0x78 | ||
113 | |||
114 | struct zfcp_ls_adisc { | ||
115 | u8 code; | ||
116 | u8 field[3]; | ||
117 | u32 hard_nport_id; | ||
118 | u64 wwpn; | ||
119 | u64 wwnn; | ||
120 | u32 nport_id; | ||
121 | } __attribute__ ((packed)); | ||
122 | |||
123 | /* | 78 | /* |
124 | * FC-GS-2 stuff | 79 | * FC-GS-2 stuff |
125 | */ | 80 | */ |