tree-wide: fix assorted typos all over the place
[safe/jmp/linux-2.6] / drivers / scsi / bfa / include / defs / bfa_defs_im_team.h
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 __BFA_DEFS_IM_TEAM_H__
19 #define __BFA_DEFS_IM_TEAM_H__
20
21 #include <protocol/types.h>
22
23 #define BFA_TEAM_MAX_PORTS      8
24 #define BFA_TEAM_NAME_LEN       256
25 #define BFA_MAX_NUM_TEAMS       16
26 #define BFA_TEAM_INVALID_DELAY -1
27
28         BFA_LACP_RATE_SLOW = 1,
29         BFA_LACP_RATE_FAST
30 } bfa_im_lacp_rate_t;
31
32         BFA_TEAM_MODE_FAIL_OVER = 1,
33         BFA_TEAM_MODE_FAIL_BACK,
34         BFA_TEAM_MODE_LACP,
35         BFA_TEAM_MODE_NONE
36 } bfa_im_team_mode_t;
37
38         BFA_XMIT_POLICY_L2 = 1,
39         BFA_XMIT_POLICY_L3_L4
40 } bfa_im_xmit_policy_t;
41
42         bfa_im_team_mode_t     team_mode;
43         bfa_im_lacp_rate_t     lacp_rate;
44         bfa_im_xmit_policy_t   xmit_policy;
45         int               delay;
46         wchar_t           primary[BFA_ADAPTER_NAME_LEN];
47         wchar_t           preferred_primary[BFA_ADAPTER_NAME_LEN];
48         mac_t             mac;
49         u16               num_ports;
50         u16          num_vlans;
51         u16 vlan_list[BFA_MAX_VLANS_PER_PORT];
52         wchar_t  team_guid_list[BFA_TEAM_MAX_PORTS][BFA_ADAPTER_GUID_LEN];
53         wchar_t  ioc_name_list[BFA_TEAM_MAX_PORTS][BFA_ADAPTER_NAME_LEN];
54 } bfa_im_team_attr_t;
55
56         wchar_t                      team_name[BFA_TEAM_NAME_LEN];
57         bfa_im_xmit_policy_t     xmit_policy;
58         int                      delay;
59         wchar_t                  primary[BFA_ADAPTER_NAME_LEN];
60         wchar_t                  preferred_primary[BFA_ADAPTER_NAME_LEN];
61 } bfa_im_team_edit_t, *pbfa_im_team_edit_t;
62
63         wchar_t                                 team_name[BFA_TEAM_NAME_LEN];
64         bfa_im_team_mode_t      team_mode;
65         mac_t                   mac;
66 } bfa_im_team_info_t;
67
68         bfa_im_team_info_t              team_info[BFA_MAX_NUM_TEAMS];
69         u16                             num_teams;
70 } bfa_im_team_list_t, *pbfa_im_team_list_t;
71
72 #endif /* __BFA_DEFS_IM_TEAM_H__ */