| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. |
|---|
| 3 | 4 | * Copyright (c) 2014- QLogic Corporation. |
|---|
| .. | .. |
|---|
| 5 | 6 | * www.qlogic.com |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 10 | | - * under the terms of the GNU General Public License (GPL) Version 2 as |
|---|
| 11 | | - * published by the Free Software Foundation |
|---|
| 12 | | - * |
|---|
| 13 | | - * This program is distributed in the hope that it will be useful, but |
|---|
| 14 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 16 | | - * General Public License for more details. |
|---|
| 17 | 9 | */ |
|---|
| 18 | 10 | /* |
|---|
| 19 | 11 | * fcbuild.h - FC link service frame building and parsing routines |
|---|
| .. | .. |
|---|
| 163 | 155 | |
|---|
| 164 | 156 | u16 fc_rrq_build(struct fchs_s *buf, struct fc_rrq_s *rrq, u32 d_id, |
|---|
| 165 | 157 | u32 s_id, u16 ox_id, u16 rrq_oxid); |
|---|
| 166 | | -enum fc_parse_status fc_rrq_rsp_parse(struct fchs_s *buf, int len); |
|---|
| 167 | 158 | |
|---|
| 168 | 159 | u16 fc_rspnid_build(struct fchs_s *fchs, void *pld, u32 s_id, |
|---|
| 169 | 160 | u16 ox_id, u8 *name); |
|---|
| .. | .. |
|---|
| 276 | 267 | void fc_els_req_build(struct fchs_s *fchs, u32 d_id, u32 s_id, |
|---|
| 277 | 268 | __be16 ox_id); |
|---|
| 278 | 269 | |
|---|
| 279 | | -enum fc_parse_status fc_els_rsp_parse(struct fchs_s *fchs, int len); |
|---|
| 280 | | - |
|---|
| 281 | 270 | enum fc_parse_status fc_plogi_rsp_parse(struct fchs_s *fchs, int len, |
|---|
| 282 | 271 | wwn_t port_name); |
|---|
| 283 | 272 | |
|---|
| .. | .. |
|---|
| 297 | 286 | u16 fc_prlo_acc_build(struct fchs_s *fchs, struct fc_prlo_acc_s *prlo_acc, |
|---|
| 298 | 287 | u32 d_id, u32 s_id, __be16 ox_id, int num_pages); |
|---|
| 299 | 288 | |
|---|
| 300 | | -u16 fc_logo_rsp_parse(struct fchs_s *fchs, int len); |
|---|
| 301 | | - |
|---|
| 302 | 289 | u16 fc_pdisc_build(struct fchs_s *fchs, u32 d_id, u32 s_id, |
|---|
| 303 | 290 | u16 ox_id, wwn_t port_name, wwn_t node_name, |
|---|
| 304 | 291 | u16 pdu_size); |
|---|
| .. | .. |
|---|
| 308 | 295 | u16 fc_prlo_build(struct fchs_s *fchs, u32 d_id, u32 s_id, |
|---|
| 309 | 296 | u16 ox_id, int num_pages); |
|---|
| 310 | 297 | |
|---|
| 311 | | -u16 fc_prlo_rsp_parse(struct fchs_s *fchs, int len); |
|---|
| 312 | | - |
|---|
| 313 | 298 | u16 fc_tprlo_build(struct fchs_s *fchs, u32 d_id, u32 s_id, |
|---|
| 314 | 299 | u16 ox_id, int num_pages, enum fc_tprlo_type tprlo_type, |
|---|
| 315 | 300 | u32 tpr_id); |
|---|
| 316 | | - |
|---|
| 317 | | -u16 fc_tprlo_rsp_parse(struct fchs_s *fchs, int len); |
|---|
| 318 | 301 | |
|---|
| 319 | 302 | u16 fc_ba_rjt_build(struct fchs_s *fchs, u32 d_id, u32 s_id, |
|---|
| 320 | 303 | __be16 ox_id, u32 reason_code, u32 reason_expl); |
|---|