Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
bfa_defs_cna.h
Go to the documentation of this file.
1 /*
2  * Linux network driver for Brocade Converged Network Adapter.
3  *
4  * This program is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License (GPL) Version 2 as
6  * published by the Free Software Foundation
7  *
8  * This program is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  * General Public License for more details.
12  */
13 /*
14  * Copyright (c) 2005-2010 Brocade Communications Systems, Inc.
15  * All rights reserved
16  * www.brocade.com
17  */
18 #ifndef __BFA_DEFS_CNA_H__
19 #define __BFA_DEFS_CNA_H__
20 
21 #include "bfa_defs.h"
22 
23 /* FC physical port statistics. */
57 };
58 
59 /* Eth Physical Port statistics. */
103 };
104 
105 /* Port statistics. */
109 };
110 
111 #pragma pack(1)
112 
113 #define BFA_CEE_LLDP_MAX_STRING_LEN (128)
114 #define BFA_CEE_DCBX_MAX_PRIORITY (8)
115 #define BFA_CEE_DCBX_MAX_PGID (8)
116 
117 #define BFA_CEE_LLDP_SYS_CAP_OTHER 0x0001
118 #define BFA_CEE_LLDP_SYS_CAP_REPEATER 0x0002
119 #define BFA_CEE_LLDP_SYS_CAP_MAC_BRIDGE 0x0004
120 #define BFA_CEE_LLDP_SYS_CAP_WLAN_AP 0x0008
121 #define BFA_CEE_LLDP_SYS_CAP_ROUTER 0x0010
122 #define BFA_CEE_LLDP_SYS_CAP_TELEPHONE 0x0020
123 #define BFA_CEE_LLDP_SYS_CAP_DOCSIS_CD 0x0040
124 #define BFA_CEE_LLDP_SYS_CAP_STATION 0x0080
125 #define BFA_CEE_LLDP_SYS_CAP_CVLAN 0x0100
126 #define BFA_CEE_LLDP_SYS_CAP_SVLAN 0x0200
127 #define BFA_CEE_LLDP_SYS_CAP_TPMR 0x0400
128 
129 /* LLDP string type */
133  u8 rsvd[2];
135 };
136 
137 /* LLDP paramters */
147 };
148 
152 };
153 
155  /* LLS is down because the TLV not sent by the peer */
157  /* LLS is down as advertised by the peer */
160 };
161 
162 /* CEE/DCBX parameters */
166  u8 pfc_primap; /* bitmap of priorties with PFC enabled */
167  u8 fcoe_primap; /* bitmap of priorities used for FcoE traffic */
168  u8 iscsi_primap; /* bitmap of priorities used for iSCSI traffic */
169  u8 dcbx_version; /* operating version:CEE or preCEE */
170  u8 lls_fcoe; /* FCoE Logical Link Status */
171  u8 lls_lan; /* LAN Logical Link Status */
172  u8 rsvd[2];
173 };
174 
175 /* CEE status */
176 /* Making this to tri-state for the benefit of port list command */
178  CEE_UP = 0,
182 };
183 
184 /* CEE Query */
185 struct bfa_cee_attr {
193  u8 filler[2];
194 };
195 
196 /* LLDP/DCBX/CEE Statistics */
216 };
217 
218 #pragma pack()
219 
220 #endif /* __BFA_DEFS_CNA_H__ */