diff options
Diffstat (limited to 'drivers/scsi/bfa/bfa_svc.h')
-rw-r--r-- | drivers/scsi/bfa/bfa_svc.h | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/drivers/scsi/bfa/bfa_svc.h b/drivers/scsi/bfa/bfa_svc.h index 9921dad0d039..e2349d5cdb93 100644 --- a/drivers/scsi/bfa/bfa_svc.h +++ b/drivers/scsi/bfa/bfa_svc.h | |||
@@ -22,12 +22,12 @@ | |||
22 | #include "bfi_ms.h" | 22 | #include "bfi_ms.h" |
23 | 23 | ||
24 | 24 | ||
25 | /** | 25 | /* |
26 | * Scatter-gather DMA related defines | 26 | * Scatter-gather DMA related defines |
27 | */ | 27 | */ |
28 | #define BFA_SGPG_MIN (16) | 28 | #define BFA_SGPG_MIN (16) |
29 | 29 | ||
30 | /** | 30 | /* |
31 | * Alignment macro for SG page allocation | 31 | * Alignment macro for SG page allocation |
32 | */ | 32 | */ |
33 | #define BFA_SGPG_ROUNDUP(_l) (((_l) + (sizeof(struct bfi_sgpg_s) - 1)) \ | 33 | #define BFA_SGPG_ROUNDUP(_l) (((_l) + (sizeof(struct bfi_sgpg_s) - 1)) \ |
@@ -48,7 +48,7 @@ struct bfa_sgpg_s { | |||
48 | union bfi_addr_u sgpg_pa; /* pa of SG page */ | 48 | union bfi_addr_u sgpg_pa; /* pa of SG page */ |
49 | }; | 49 | }; |
50 | 50 | ||
51 | /** | 51 | /* |
52 | * Given number of SG elements, BFA_SGPG_NPAGE() returns the number of | 52 | * Given number of SG elements, BFA_SGPG_NPAGE() returns the number of |
53 | * SG pages required. | 53 | * SG pages required. |
54 | */ | 54 | */ |
@@ -75,7 +75,7 @@ void bfa_sgpg_wait(struct bfa_s *bfa, struct bfa_sgpg_wqe_s *wqe, int nsgpgs); | |||
75 | void bfa_sgpg_wcancel(struct bfa_s *bfa, struct bfa_sgpg_wqe_s *wqe); | 75 | void bfa_sgpg_wcancel(struct bfa_s *bfa, struct bfa_sgpg_wqe_s *wqe); |
76 | 76 | ||
77 | 77 | ||
78 | /** | 78 | /* |
79 | * FCXP related defines | 79 | * FCXP related defines |
80 | */ | 80 | */ |
81 | #define BFA_FCXP_MIN (1) | 81 | #define BFA_FCXP_MIN (1) |
@@ -115,12 +115,12 @@ typedef void (*bfa_fcxp_alloc_cbfn_t) (void *cbarg, struct bfa_fcxp_s *fcxp); | |||
115 | 115 | ||
116 | 116 | ||
117 | 117 | ||
118 | /** | 118 | /* |
119 | * Information needed for a FCXP request | 119 | * Information needed for a FCXP request |
120 | */ | 120 | */ |
121 | struct bfa_fcxp_req_info_s { | 121 | struct bfa_fcxp_req_info_s { |
122 | struct bfa_rport_s *bfa_rport; | 122 | struct bfa_rport_s *bfa_rport; |
123 | /** Pointer to the bfa rport that was | 123 | /* Pointer to the bfa rport that was |
124 | * returned from bfa_rport_create(). | 124 | * returned from bfa_rport_create(). |
125 | * This could be left NULL for WKA or | 125 | * This could be left NULL for WKA or |
126 | * for FCXP interactions before the | 126 | * for FCXP interactions before the |
@@ -137,11 +137,10 @@ struct bfa_fcxp_req_info_s { | |||
137 | 137 | ||
138 | struct bfa_fcxp_rsp_info_s { | 138 | struct bfa_fcxp_rsp_info_s { |
139 | struct fchs_s rsp_fchs; | 139 | struct fchs_s rsp_fchs; |
140 | /** !< Response frame's FC header will | 140 | /* Response frame's FC header will |
141 | * be sent back in this field */ | 141 | * be sent back in this field */ |
142 | u8 rsp_timeout; | 142 | u8 rsp_timeout; |
143 | /** !< timeout in seconds, 0-no response | 143 | /* timeout in seconds, 0-no response */ |
144 | */ | ||
145 | u8 rsvd2[3]; | 144 | u8 rsvd2[3]; |
146 | u32 rsp_maxlen; /* max response length expected */ | 145 | u32 rsp_maxlen; /* max response length expected */ |
147 | }; | 146 | }; |
@@ -218,7 +217,7 @@ struct bfa_fcxp_wqe_s { | |||
218 | void bfa_fcxp_isr(struct bfa_s *bfa, struct bfi_msg_s *msg); | 217 | void bfa_fcxp_isr(struct bfa_s *bfa, struct bfi_msg_s *msg); |
219 | 218 | ||
220 | 219 | ||
221 | /** | 220 | /* |
222 | * RPORT related defines | 221 | * RPORT related defines |
223 | */ | 222 | */ |
224 | #define BFA_RPORT_MIN 4 | 223 | #define BFA_RPORT_MIN 4 |
@@ -232,7 +231,7 @@ struct bfa_rport_mod_s { | |||
232 | 231 | ||
233 | #define BFA_RPORT_MOD(__bfa) (&(__bfa)->modules.rport_mod) | 232 | #define BFA_RPORT_MOD(__bfa) (&(__bfa)->modules.rport_mod) |
234 | 233 | ||
235 | /** | 234 | /* |
236 | * Convert rport tag to RPORT | 235 | * Convert rport tag to RPORT |
237 | */ | 236 | */ |
238 | #define BFA_RPORT_FROM_TAG(__bfa, _tag) \ | 237 | #define BFA_RPORT_FROM_TAG(__bfa, _tag) \ |
@@ -244,7 +243,7 @@ struct bfa_rport_mod_s { | |||
244 | */ | 243 | */ |
245 | void bfa_rport_isr(struct bfa_s *bfa, struct bfi_msg_s *msg); | 244 | void bfa_rport_isr(struct bfa_s *bfa, struct bfi_msg_s *msg); |
246 | 245 | ||
247 | /** | 246 | /* |
248 | * BFA rport information. | 247 | * BFA rport information. |
249 | */ | 248 | */ |
250 | struct bfa_rport_info_s { | 249 | struct bfa_rport_info_s { |
@@ -259,7 +258,7 @@ struct bfa_rport_info_s { | |||
259 | enum bfa_port_speed speed; /* Rport's current speed */ | 258 | enum bfa_port_speed speed; /* Rport's current speed */ |
260 | }; | 259 | }; |
261 | 260 | ||
262 | /** | 261 | /* |
263 | * BFA rport data structure | 262 | * BFA rport data structure |
264 | */ | 263 | */ |
265 | struct bfa_rport_s { | 264 | struct bfa_rport_s { |
@@ -282,7 +281,7 @@ struct bfa_rport_s { | |||
282 | #define BFA_RPORT_FC_COS(_rport) ((_rport)->rport_info.fc_class) | 281 | #define BFA_RPORT_FC_COS(_rport) ((_rport)->rport_info.fc_class) |
283 | 282 | ||
284 | 283 | ||
285 | /** | 284 | /* |
286 | * UF - unsolicited receive related defines | 285 | * UF - unsolicited receive related defines |
287 | */ | 286 | */ |
288 | 287 | ||
@@ -305,7 +304,7 @@ struct bfa_uf_s { | |||
305 | struct bfa_sge_s sges[BFI_SGE_INLINE_MAX]; | 304 | struct bfa_sge_s sges[BFI_SGE_INLINE_MAX]; |
306 | }; | 305 | }; |
307 | 306 | ||
308 | /** | 307 | /* |
309 | * Callback prototype for unsolicited frame receive handler. | 308 | * Callback prototype for unsolicited frame receive handler. |
310 | * | 309 | * |
311 | * @param[in] cbarg callback arg for receive handler | 310 | * @param[in] cbarg callback arg for receive handler |
@@ -338,7 +337,7 @@ void bfa_uf_isr(struct bfa_s *bfa, struct bfi_msg_s *msg); | |||
338 | 337 | ||
339 | #define BFA_UF_BUFSZ (2 * 1024 + 256) | 338 | #define BFA_UF_BUFSZ (2 * 1024 + 256) |
340 | 339 | ||
341 | /** | 340 | /* |
342 | * @todo private | 341 | * @todo private |
343 | */ | 342 | */ |
344 | struct bfa_uf_buf_s { | 343 | struct bfa_uf_buf_s { |
@@ -346,7 +345,7 @@ struct bfa_uf_buf_s { | |||
346 | }; | 345 | }; |
347 | 346 | ||
348 | 347 | ||
349 | /** | 348 | /* |
350 | * LPS - bfa lport login/logout service interface | 349 | * LPS - bfa lport login/logout service interface |
351 | */ | 350 | */ |
352 | struct bfa_lps_s { | 351 | struct bfa_lps_s { |
@@ -397,14 +396,14 @@ struct bfa_lps_mod_s { | |||
397 | void bfa_lps_isr(struct bfa_s *bfa, struct bfi_msg_s *msg); | 396 | void bfa_lps_isr(struct bfa_s *bfa, struct bfi_msg_s *msg); |
398 | 397 | ||
399 | 398 | ||
400 | /** | 399 | /* |
401 | * FCPORT related defines | 400 | * FCPORT related defines |
402 | */ | 401 | */ |
403 | 402 | ||
404 | #define BFA_FCPORT(_bfa) (&((_bfa)->modules.port)) | 403 | #define BFA_FCPORT(_bfa) (&((_bfa)->modules.port)) |
405 | typedef void (*bfa_cb_port_t) (void *cbarg, enum bfa_status status); | 404 | typedef void (*bfa_cb_port_t) (void *cbarg, enum bfa_status status); |
406 | 405 | ||
407 | /** | 406 | /* |
408 | * Link notification data structure | 407 | * Link notification data structure |
409 | */ | 408 | */ |
410 | struct bfa_fcport_ln_s { | 409 | struct bfa_fcport_ln_s { |
@@ -418,7 +417,7 @@ struct bfa_fcport_trunk_s { | |||
418 | struct bfa_trunk_attr_s attr; | 417 | struct bfa_trunk_attr_s attr; |
419 | }; | 418 | }; |
420 | 419 | ||
421 | /** | 420 | /* |
422 | * BFA FC port data structure | 421 | * BFA FC port data structure |
423 | */ | 422 | */ |
424 | struct bfa_fcport_s { | 423 | struct bfa_fcport_s { |
@@ -613,7 +612,7 @@ void bfa_uf_recv_register(struct bfa_s *bfa, bfa_cb_uf_recv_t ufrecv, | |||
613 | void *cbarg); | 612 | void *cbarg); |
614 | void bfa_uf_free(struct bfa_uf_s *uf); | 613 | void bfa_uf_free(struct bfa_uf_s *uf); |
615 | 614 | ||
616 | /** | 615 | /* |
617 | * bfa lport service api | 616 | * bfa lport service api |
618 | */ | 617 | */ |
619 | 618 | ||