blob: e634fb7a69b8705a997809c928150fe04704c875 [file] [log] [blame]
Jing Huang7725ccf2009-09-23 17:46:15 -07001/*
2 * Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
3 * All rights reserved
4 * www.brocade.com
5 *
6 * Linux driver for Brocade Fibre Channel Host Bus Adapter.
7 *
8 * This program is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License (GPL) Version 2 as
10 * published by the Free Software Foundation
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 */
17
18/**
19 * fcs_rport.h FCS rport interfaces and defines
20 */
21
22#ifndef __FCS_RPORT_H__
23#define __FCS_RPORT_H__
24
25#include <fcs/bfa_fcs_rport.h>
26
Jing Huang41188cf2010-07-08 19:52:00 -070027#define BFA_FCS_RPORT_MAX_RETRIES (5)
28
Jing Huang7725ccf2009-09-23 17:46:15 -070029void bfa_fcs_rport_uf_recv(struct bfa_fcs_rport_s *rport, struct fchs_s *fchs,
30 u16 len);
31void bfa_fcs_rport_scn(struct bfa_fcs_rport_s *rport);
32
33struct bfa_fcs_rport_s *bfa_fcs_rport_create(struct bfa_fcs_port_s *port,
34 u32 pid);
35void bfa_fcs_rport_delete(struct bfa_fcs_rport_s *rport);
36void bfa_fcs_rport_online(struct bfa_fcs_rport_s *rport);
37void bfa_fcs_rport_offline(struct bfa_fcs_rport_s *rport);
38void bfa_fcs_rport_start(struct bfa_fcs_port_s *port, struct fchs_s *rx_fchs,
39 struct fc_logi_s *plogi_rsp);
40void bfa_fcs_rport_plogi_create(struct bfa_fcs_port_s *port,
41 struct fchs_s *rx_fchs,
42 struct fc_logi_s *plogi);
43void bfa_fcs_rport_plogi(struct bfa_fcs_rport_s *rport, struct fchs_s *fchs,
44 struct fc_logi_s *plogi);
45void bfa_fcs_rport_logo_imp(struct bfa_fcs_rport_s *rport);
Jing Huang4b5e7592010-07-08 19:55:41 -070046void bfa_fcs_rport_prlo(struct bfa_fcs_rport_s *rport, uint16_t ox_id);
Jing Huang7725ccf2009-09-23 17:46:15 -070047void bfa_fcs_rport_itnim_ack(struct bfa_fcs_rport_s *rport);
48void bfa_fcs_rport_itntm_ack(struct bfa_fcs_rport_s *rport);
49void bfa_fcs_rport_tin_ack(struct bfa_fcs_rport_s *rport);
50void bfa_fcs_rport_fcptm_offline_done(struct bfa_fcs_rport_s *rport);
51int bfa_fcs_rport_get_state(struct bfa_fcs_rport_s *rport);
52struct bfa_fcs_rport_s *bfa_fcs_rport_create_by_wwn(struct bfa_fcs_port_s *port,
53 wwn_t wwn);
54
55
56/* Rport Features */
57void bfa_fcs_rpf_init(struct bfa_fcs_rport_s *rport);
58void bfa_fcs_rpf_rport_online(struct bfa_fcs_rport_s *rport);
59void bfa_fcs_rpf_rport_offline(struct bfa_fcs_rport_s *rport);
60
61#endif /* __FCS_RPORT_H__ */