Full support for Ginger Console
[linux-ginger.git] / drivers / scsi / bfa / lport_priv.h
blobdbae370a599a053054dcc4a499ebe2cb33db7a2f
1 /*
2 * Copyright (c) 2005-2009 Brocade Communications Systems, Inc.
3 * All rights reserved
4 * www.brocade.com
6 * Linux driver for Brocade Fibre Channel Host Bus Adapter.
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
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.
18 #ifndef __VP_PRIV_H__
19 #define __VP_PRIV_H__
21 #include <fcs/bfa_fcs_lport.h>
22 #include <fcs/bfa_fcs_vport.h>
25 * Functions exported by vps
27 void bfa_fcs_vport_init(struct bfa_fcs_vport_s *vport);
30 * Functions exported by vps
32 void bfa_fcs_vps_online(struct bfa_fcs_port_s *port);
33 void bfa_fcs_vps_offline(struct bfa_fcs_port_s *port);
34 void bfa_fcs_vps_lip(struct bfa_fcs_port_s *port);
37 * Functions exported by port_fab
39 void bfa_fcs_port_fab_init(struct bfa_fcs_port_s *vport);
40 void bfa_fcs_port_fab_online(struct bfa_fcs_port_s *vport);
41 void bfa_fcs_port_fab_offline(struct bfa_fcs_port_s *vport);
42 void bfa_fcs_port_fab_rx_frame(struct bfa_fcs_port_s *port,
43 u8 *rx_frame, u32 len);
46 * Functions exported by VP-NS.
48 void bfa_fcs_port_ns_init(struct bfa_fcs_port_s *vport);
49 void bfa_fcs_port_ns_offline(struct bfa_fcs_port_s *vport);
50 void bfa_fcs_port_ns_online(struct bfa_fcs_port_s *vport);
51 void bfa_fcs_port_ns_query(struct bfa_fcs_port_s *port);
54 * Functions exported by VP-SCN
56 void bfa_fcs_port_scn_init(struct bfa_fcs_port_s *vport);
57 void bfa_fcs_port_scn_offline(struct bfa_fcs_port_s *vport);
58 void bfa_fcs_port_scn_online(struct bfa_fcs_port_s *vport);
59 void bfa_fcs_port_scn_process_rscn(struct bfa_fcs_port_s *port,
60 struct fchs_s *rx_frame, u32 len);
63 * Functions exported by VP-N2N
66 void bfa_fcs_port_n2n_init(struct bfa_fcs_port_s *port);
67 void bfa_fcs_port_n2n_online(struct bfa_fcs_port_s *port);
68 void bfa_fcs_port_n2n_offline(struct bfa_fcs_port_s *port);
69 void bfa_fcs_port_n2n_rx_frame(struct bfa_fcs_port_s *port,
70 u8 *rx_frame, u32 len);
73 * Functions exported by VP-LOOP
75 void bfa_fcs_port_loop_init(struct bfa_fcs_port_s *port);
76 void bfa_fcs_port_loop_online(struct bfa_fcs_port_s *port);
77 void bfa_fcs_port_loop_offline(struct bfa_fcs_port_s *port);
78 void bfa_fcs_port_loop_lip(struct bfa_fcs_port_s *port);
79 void bfa_fcs_port_loop_rx_frame(struct bfa_fcs_port_s *port,
80 u8 *rx_frame, u32 len);
82 #endif /* __VP_PRIV_H__ */