diff options
Diffstat (limited to 'drivers/scsi/bfa/bfa_fcbuild.h')
-rw-r--r-- | drivers/scsi/bfa/bfa_fcbuild.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/scsi/bfa/bfa_fcbuild.h b/drivers/scsi/bfa/bfa_fcbuild.h index 73abd02e53cc..ece51ec7620b 100644 --- a/drivers/scsi/bfa/bfa_fcbuild.h +++ b/drivers/scsi/bfa/bfa_fcbuild.h | |||
@@ -21,7 +21,7 @@ | |||
21 | #ifndef __FCBUILD_H__ | 21 | #ifndef __FCBUILD_H__ |
22 | #define __FCBUILD_H__ | 22 | #define __FCBUILD_H__ |
23 | 23 | ||
24 | #include "bfa_os_inc.h" | 24 | #include "bfad_drv.h" |
25 | #include "bfa_fc.h" | 25 | #include "bfa_fc.h" |
26 | #include "bfa_defs_fcs.h" | 26 | #include "bfa_defs_fcs.h" |
27 | 27 | ||
@@ -138,7 +138,7 @@ u16 fc_fdisc_build(struct fchs_s *buf, struct fc_logi_s *flogi, u32 s_id, | |||
138 | u16 pdu_size); | 138 | u16 pdu_size); |
139 | 139 | ||
140 | u16 fc_flogi_acc_build(struct fchs_s *fchs, struct fc_logi_s *flogi, | 140 | u16 fc_flogi_acc_build(struct fchs_s *fchs, struct fc_logi_s *flogi, |
141 | u32 s_id, u16 ox_id, | 141 | u32 s_id, __be16 ox_id, |
142 | wwn_t port_name, wwn_t node_name, | 142 | wwn_t port_name, wwn_t node_name, |
143 | u16 pdu_size, | 143 | u16 pdu_size, |
144 | u16 local_bb_credits); | 144 | u16 local_bb_credits); |
@@ -186,7 +186,7 @@ u16 fc_plogi_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, | |||
186 | u16 pdu_size); | 186 | u16 pdu_size); |
187 | 187 | ||
188 | u16 fc_adisc_build(struct fchs_s *fchs, struct fc_adisc_s *adisc, | 188 | u16 fc_adisc_build(struct fchs_s *fchs, struct fc_adisc_s *adisc, |
189 | u32 d_id, u32 s_id, u16 ox_id, wwn_t port_name, | 189 | u32 d_id, u32 s_id, __be16 ox_id, wwn_t port_name, |
190 | wwn_t node_name); | 190 | wwn_t node_name); |
191 | 191 | ||
192 | enum fc_parse_status fc_adisc_parse(struct fchs_s *fchs, void *pld, | 192 | enum fc_parse_status fc_adisc_parse(struct fchs_s *fchs, void *pld, |
@@ -196,20 +196,20 @@ enum fc_parse_status fc_adisc_rsp_parse(struct fc_adisc_s *adisc, int len, | |||
196 | wwn_t port_name, wwn_t node_name); | 196 | wwn_t port_name, wwn_t node_name); |
197 | 197 | ||
198 | u16 fc_adisc_acc_build(struct fchs_s *fchs, struct fc_adisc_s *adisc, | 198 | u16 fc_adisc_acc_build(struct fchs_s *fchs, struct fc_adisc_s *adisc, |
199 | u32 d_id, u32 s_id, u16 ox_id, | 199 | u32 d_id, u32 s_id, __be16 ox_id, |
200 | wwn_t port_name, wwn_t node_name); | 200 | wwn_t port_name, wwn_t node_name); |
201 | u16 fc_ls_rjt_build(struct fchs_s *fchs, struct fc_ls_rjt_s *ls_rjt, | 201 | u16 fc_ls_rjt_build(struct fchs_s *fchs, struct fc_ls_rjt_s *ls_rjt, |
202 | u32 d_id, u32 s_id, u16 ox_id, | 202 | u32 d_id, u32 s_id, __be16 ox_id, |
203 | u8 reason_code, u8 reason_code_expl); | 203 | u8 reason_code, u8 reason_code_expl); |
204 | u16 fc_ls_acc_build(struct fchs_s *fchs, struct fc_els_cmd_s *els_cmd, | 204 | u16 fc_ls_acc_build(struct fchs_s *fchs, struct fc_els_cmd_s *els_cmd, |
205 | u32 d_id, u32 s_id, u16 ox_id); | 205 | u32 d_id, u32 s_id, __be16 ox_id); |
206 | u16 fc_prli_build(struct fchs_s *fchs, void *pld, u32 d_id, | 206 | u16 fc_prli_build(struct fchs_s *fchs, void *pld, u32 d_id, |
207 | u32 s_id, u16 ox_id); | 207 | u32 s_id, u16 ox_id); |
208 | 208 | ||
209 | enum fc_parse_status fc_prli_rsp_parse(struct fc_prli_s *prli, int len); | 209 | enum fc_parse_status fc_prli_rsp_parse(struct fc_prli_s *prli, int len); |
210 | 210 | ||
211 | u16 fc_prli_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, | 211 | u16 fc_prli_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, |
212 | u32 s_id, u16 ox_id, | 212 | u32 s_id, __be16 ox_id, |
213 | enum bfa_lport_role role); | 213 | enum bfa_lport_role role); |
214 | 214 | ||
215 | u16 fc_rnid_build(struct fchs_s *fchs, struct fc_rnid_cmd_s *rnid, | 215 | u16 fc_rnid_build(struct fchs_s *fchs, struct fc_rnid_cmd_s *rnid, |
@@ -218,7 +218,7 @@ u16 fc_rnid_build(struct fchs_s *fchs, struct fc_rnid_cmd_s *rnid, | |||
218 | 218 | ||
219 | u16 fc_rnid_acc_build(struct fchs_s *fchs, | 219 | u16 fc_rnid_acc_build(struct fchs_s *fchs, |
220 | struct fc_rnid_acc_s *rnid_acc, u32 d_id, u32 s_id, | 220 | struct fc_rnid_acc_s *rnid_acc, u32 d_id, u32 s_id, |
221 | u16 ox_id, u32 data_format, | 221 | __be16 ox_id, u32 data_format, |
222 | struct fc_rnid_common_id_data_s *common_id_data, | 222 | struct fc_rnid_common_id_data_s *common_id_data, |
223 | struct fc_rnid_general_topology_data_s *gen_topo_data); | 223 | struct fc_rnid_general_topology_data_s *gen_topo_data); |
224 | 224 | ||
@@ -228,7 +228,7 @@ u16 fc_rpsc_build(struct fchs_s *fchs, struct fc_rpsc_cmd_s *rpsc, | |||
228 | u32 d_id, u32 s_id, u16 ox_id); | 228 | u32 d_id, u32 s_id, u16 ox_id); |
229 | u16 fc_rpsc_acc_build(struct fchs_s *fchs, | 229 | u16 fc_rpsc_acc_build(struct fchs_s *fchs, |
230 | struct fc_rpsc_acc_s *rpsc_acc, u32 d_id, u32 s_id, | 230 | struct fc_rpsc_acc_s *rpsc_acc, u32 d_id, u32 s_id, |
231 | u16 ox_id, struct fc_rpsc_speed_info_s *oper_speed); | 231 | __be16 ox_id, struct fc_rpsc_speed_info_s *oper_speed); |
232 | u16 fc_gid_ft_build(struct fchs_s *fchs, void *pld, u32 s_id, | 232 | u16 fc_gid_ft_build(struct fchs_s *fchs, void *pld, u32 s_id, |
233 | u8 fc4_type); | 233 | u8 fc4_type); |
234 | 234 | ||
@@ -251,7 +251,7 @@ u16 fc_logo_build(struct fchs_s *fchs, struct fc_logo_s *logo, u32 d_id, | |||
251 | u32 s_id, u16 ox_id, wwn_t port_name); | 251 | u32 s_id, u16 ox_id, wwn_t port_name); |
252 | 252 | ||
253 | u16 fc_logo_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, | 253 | u16 fc_logo_acc_build(struct fchs_s *fchs, void *pld, u32 d_id, |
254 | u32 s_id, u16 ox_id); | 254 | u32 s_id, __be16 ox_id); |
255 | 255 | ||
256 | u16 fc_fdmi_reqhdr_build(struct fchs_s *fchs, void *pyld, u32 s_id, | 256 | u16 fc_fdmi_reqhdr_build(struct fchs_s *fchs, void *pyld, u32 s_id, |
257 | u16 cmd_code); | 257 | u16 cmd_code); |
@@ -261,7 +261,7 @@ u16 fc_gfn_req_build(struct fchs_s *fchs, void *pyld, u32 s_id, wwn_t wwn); | |||
261 | void fc_get_fc4type_bitmask(u8 fc4_type, u8 *bit_mask); | 261 | void fc_get_fc4type_bitmask(u8 fc4_type, u8 *bit_mask); |
262 | 262 | ||
263 | void fc_els_req_build(struct fchs_s *fchs, u32 d_id, u32 s_id, | 263 | void fc_els_req_build(struct fchs_s *fchs, u32 d_id, u32 s_id, |
264 | u16 ox_id); | 264 | __be16 ox_id); |
265 | 265 | ||
266 | enum fc_parse_status fc_els_rsp_parse(struct fchs_s *fchs, int len); | 266 | enum fc_parse_status fc_els_rsp_parse(struct fchs_s *fchs, int len); |
267 | 267 | ||
@@ -274,15 +274,15 @@ enum fc_parse_status fc_pdisc_parse(struct fchs_s *fchs, wwn_t node_name, | |||
274 | wwn_t port_name); | 274 | wwn_t port_name); |
275 | 275 | ||
276 | u16 fc_ba_acc_build(struct fchs_s *fchs, struct fc_ba_acc_s *ba_acc, u32 d_id, | 276 | u16 fc_ba_acc_build(struct fchs_s *fchs, struct fc_ba_acc_s *ba_acc, u32 d_id, |
277 | u32 s_id, u16 ox_id, u16 rx_id); | 277 | u32 s_id, __be16 ox_id, u16 rx_id); |
278 | 278 | ||
279 | int fc_logout_params_pages(struct fchs_s *fc_frame, u8 els_code); | 279 | int fc_logout_params_pages(struct fchs_s *fc_frame, u8 els_code); |
280 | 280 | ||
281 | u16 fc_tprlo_acc_build(struct fchs_s *fchs, struct fc_tprlo_acc_s *tprlo_acc, | 281 | u16 fc_tprlo_acc_build(struct fchs_s *fchs, struct fc_tprlo_acc_s *tprlo_acc, |
282 | u32 d_id, u32 s_id, u16 ox_id, int num_pages); | 282 | u32 d_id, u32 s_id, __be16 ox_id, int num_pages); |
283 | 283 | ||
284 | u16 fc_prlo_acc_build(struct fchs_s *fchs, struct fc_prlo_acc_s *prlo_acc, | 284 | u16 fc_prlo_acc_build(struct fchs_s *fchs, struct fc_prlo_acc_s *prlo_acc, |
285 | u32 d_id, u32 s_id, u16 ox_id, int num_pages); | 285 | u32 d_id, u32 s_id, __be16 ox_id, int num_pages); |
286 | 286 | ||
287 | u16 fc_logo_rsp_parse(struct fchs_s *fchs, int len); | 287 | u16 fc_logo_rsp_parse(struct fchs_s *fchs, int len); |
288 | 288 | ||
@@ -304,7 +304,7 @@ u16 fc_tprlo_build(struct fchs_s *fchs, u32 d_id, u32 s_id, | |||
304 | u16 fc_tprlo_rsp_parse(struct fchs_s *fchs, int len); | 304 | u16 fc_tprlo_rsp_parse(struct fchs_s *fchs, int len); |
305 | 305 | ||
306 | u16 fc_ba_rjt_build(struct fchs_s *fchs, u32 d_id, u32 s_id, | 306 | u16 fc_ba_rjt_build(struct fchs_s *fchs, u32 d_id, u32 s_id, |
307 | u16 ox_id, u32 reason_code, u32 reason_expl); | 307 | __be16 ox_id, u32 reason_code, u32 reason_expl); |
308 | 308 | ||
309 | u16 fc_gnnid_build(struct fchs_s *fchs, void *pyld, u32 s_id, u16 ox_id, | 309 | u16 fc_gnnid_build(struct fchs_s *fchs, void *pyld, u32 s_id, u16 ox_id, |
310 | u32 port_id); | 310 | u32 port_id); |