• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/scsi/bfa/
1/*
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#ifndef __VP_PRIV_H__
19#define __VP_PRIV_H__
20
21#include <fcs/bfa_fcs_lport.h>
22#include <fcs/bfa_fcs_vport.h>
23
24/*
25 * Functions exported by vps
26 */
27void            bfa_fcs_vport_init(struct bfa_fcs_vport_s *vport);
28
29/*
30 * Functions exported by vps
31 */
32void            bfa_fcs_vps_online(struct bfa_fcs_port_s *port);
33void            bfa_fcs_vps_offline(struct bfa_fcs_port_s *port);
34void            bfa_fcs_vps_lip(struct bfa_fcs_port_s *port);
35
36/*
37 * Functions exported by port_fab
38 */
39void            bfa_fcs_port_fab_init(struct bfa_fcs_port_s *vport);
40void            bfa_fcs_port_fab_online(struct bfa_fcs_port_s *vport);
41void            bfa_fcs_port_fab_offline(struct bfa_fcs_port_s *vport);
42void            bfa_fcs_port_fab_rx_frame(struct bfa_fcs_port_s *port,
43					  u8 *rx_frame, u32 len);
44
45/*
46 * Functions exported by VP-NS.
47 */
48void            bfa_fcs_port_ns_init(struct bfa_fcs_port_s *vport);
49void            bfa_fcs_port_ns_offline(struct bfa_fcs_port_s *vport);
50void            bfa_fcs_port_ns_online(struct bfa_fcs_port_s *vport);
51void            bfa_fcs_port_ns_query(struct bfa_fcs_port_s *port);
52
53/*
54 * Functions exported by VP-SCN
55 */
56void            bfa_fcs_port_scn_init(struct bfa_fcs_port_s *vport);
57void            bfa_fcs_port_scn_offline(struct bfa_fcs_port_s *vport);
58void            bfa_fcs_port_scn_online(struct bfa_fcs_port_s *vport);
59void            bfa_fcs_port_scn_process_rscn(struct bfa_fcs_port_s *port,
60					      struct fchs_s *rx_frame, u32 len);
61
62/*
63 * Functions exported by VP-N2N
64 */
65
66void            bfa_fcs_port_n2n_init(struct bfa_fcs_port_s *port);
67void            bfa_fcs_port_n2n_online(struct bfa_fcs_port_s *port);
68void            bfa_fcs_port_n2n_offline(struct bfa_fcs_port_s *port);
69void            bfa_fcs_port_n2n_rx_frame(struct bfa_fcs_port_s *port,
70					  u8 *rx_frame, u32 len);
71
72/*
73 * Functions exported by VP-LOOP
74 */
75void            bfa_fcs_port_loop_init(struct bfa_fcs_port_s *port);
76void            bfa_fcs_port_loop_online(struct bfa_fcs_port_s *port);
77void            bfa_fcs_port_loop_offline(struct bfa_fcs_port_s *port);
78void            bfa_fcs_port_loop_lip(struct bfa_fcs_port_s *port);
79void            bfa_fcs_port_loop_rx_frame(struct bfa_fcs_port_s *port,
80					   u8 *rx_frame, u32 len);
81
82#endif /* __VP_PRIV_H__ */
83