FreeBSD kernel CXGB device code
cxgb_mc5.c
Go to the documentation of this file.
1/**************************************************************************
2SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3
4Copyright (c) 2007, Chelsio Inc.
5All rights reserved.
6
7Redistribution and use in source and binary forms, with or without
8modification, are permitted provided that the following conditions are met:
9
10 1. Redistributions of source code must retain the above copyright notice,
11 this list of conditions and the following disclaimer.
12
13 2. Neither the name of the Chelsio Corporation nor the names of its
14 contributors may be used to endorse or promote products derived from
15 this software without specific prior written permission.
16
17THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27POSSIBILITY OF SUCH DAMAGE.
28
29***************************************************************************/
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD$");
33
34#include <common/cxgb_common.h>
35#include <common/cxgb_regs.h>
36
37enum {
39 IDT75N43102 = 5
40};
41
42/* DBGI command mode */
43enum {
46};
47
48/* IDT 75P52100 commands */
49#define IDT_CMD_READ 0
50#define IDT_CMD_WRITE 1
51#define IDT_CMD_SEARCH 2
52#define IDT_CMD_LEARN 3
53
54/* IDT LAR register address and value for 144-bit mode (low 32 bits) */
55#define IDT_LAR_ADR0 0x180006
56#define IDT_LAR_MODE144 0xffff0000
57
58/* IDT SCR and SSR addresses (low 32 bits) */
59#define IDT_SCR_ADR0 0x180000
60#define IDT_SSR0_ADR0 0x180002
61#define IDT_SSR1_ADR0 0x180004
62
63/* IDT GMR base address (low 32 bits) */
64#define IDT_GMR_BASE_ADR0 0x180020
65
66/* IDT data and mask array base addresses (low 32 bits) */
67#define IDT_DATARY_BASE_ADR0 0
68#define IDT_MSKARY_BASE_ADR0 0x80000
69
70/* IDT 75N43102 commands */
71#define IDT4_CMD_SEARCH144 3
72#define IDT4_CMD_WRITE 4
73#define IDT4_CMD_READ 5
74
75/* IDT 75N43102 SCR address (low 32 bits) */
76#define IDT4_SCR_ADR0 0x3
77
78/* IDT 75N43102 GMR base addresses (low 32 bits) */
79#define IDT4_GMR_BASE0 0x10
80#define IDT4_GMR_BASE1 0x20
81#define IDT4_GMR_BASE2 0x30
82
83/* IDT 75N43102 data and mask array base addresses (low 32 bits) */
84#define IDT4_DATARY_BASE_ADR0 0x1000000
85#define IDT4_MSKARY_BASE_ADR0 0x2000000
86
87#define MAX_WRITE_ATTEMPTS 5
88
89#define MAX_ROUTES 2048
90
91/*
92 * Issue a command to the TCAM and wait for its completion. The address and
93 * any data required by the command must have been setup by the caller.
94 */
96{
100}
101
102static inline void dbgi_wr_data3(adapter_t *adapter, u32 v1, u32 v2, u32 v3)
103{
107}
108
109static inline void dbgi_rd_rsp3(adapter_t *adapter, u32 *v1, u32 *v2, u32 *v3)
110{
114}
115
116/*
117 * Write data to the TCAM register at address (0, 0, addr_lo) using the TCAM
118 * command cmd. The data to be written must have been set up by the caller.
119 * Returns -1 on failure, 0 on success.
120 */
121static int mc5_write(adapter_t *adapter, u32 addr_lo, u32 cmd)
122{
124 if (mc5_cmd_write(adapter, cmd) == 0)
125 return 0;
126 CH_ERR(adapter, "MC5 timeout writing to TCAM address 0x%x\n", addr_lo);
127 return -1;
128}
129
130static int init_mask_data_array(struct mc5 *mc5, u32 mask_array_base,
131 u32 data_array_base, u32 write_cmd,
132 int addr_shift)
133{
134 unsigned int i;
135 adapter_t *adap = mc5->adapter;
136
137 /*
138 * We need the size of the TCAM data and mask arrays in terms of
139 * 72-bit entries.
140 */
141 unsigned int size72 = mc5->tcam_size;
142 unsigned int server_base = t3_read_reg(adap, A_MC5_DB_SERVER_INDEX);
143
144 if (mc5->mode == MC5_MODE_144_BIT) {
145 size72 *= 2; /* 1 144-bit entry is 2 72-bit entries */
146 server_base *= 2;
147 }
148
149 /* Clear the data array */
150 dbgi_wr_data3(adap, 0, 0, 0);
151 for (i = 0; i < size72; i++)
152 if (mc5_write(adap, data_array_base + (i << addr_shift),
153 write_cmd))
154 return -1;
155
156 /* Initialize the mask array. */
157 for (i = 0; i < server_base; i++) {
158 dbgi_wr_data3(adap, 0x3fffffff, 0xfff80000, 0xff);
159 if (mc5_write(adap, mask_array_base + (i << addr_shift),
160 write_cmd))
161 return -1;
162 i++;
163 dbgi_wr_data3(adap, 0xffffffff, 0xffffffff, 0xff);
164 if (mc5_write(adap, mask_array_base + (i << addr_shift),
165 write_cmd))
166 return -1;
167 }
168
169 dbgi_wr_data3(adap,
170 mc5->mode == MC5_MODE_144_BIT ? 0xfffffff9 : 0xfffffffd,
171 0xffffffff, 0xff);
172 for (; i < size72; i++)
173 if (mc5_write(adap, mask_array_base + (i << addr_shift),
174 write_cmd))
175 return -1;
176
177 return 0;
178}
179
180static int init_idt52100(struct mc5 *mc5)
181{
182 int i;
183 adapter_t *adap = mc5->adapter;
184
186 V_RDLAT(0x15) | V_LRNLAT(0x15) | V_SRCHLAT(0x15));
188
189 /*
190 * Use GMRs 14-15 for ELOOKUP, GMRs 12-13 for SYN lookups, and
191 * GMRs 8-9 for ACK- and AOPEN searches.
192 */
205
206 /* Set DBGI command mode for IDT TCAM. */
208
209 /* Set up LAR */
210 dbgi_wr_data3(adap, IDT_LAR_MODE144, 0, 0);
212 goto err;
213
214 /* Set up SSRs */
215 dbgi_wr_data3(adap, 0xffffffff, 0xffffffff, 0);
218 goto err;
219
220 /* Set up GMRs */
221 for (i = 0; i < 32; ++i) {
222 if (i >= 12 && i < 15)
223 dbgi_wr_data3(adap, 0xfffffff9, 0xffffffff, 0xff);
224 else if (i == 15)
225 dbgi_wr_data3(adap, 0xfffffff9, 0xffff8007, 0xff);
226 else
227 dbgi_wr_data3(adap, 0xffffffff, 0xffffffff, 0xff);
228
230 goto err;
231 }
232
233 /* Set up SCR */
234 dbgi_wr_data3(adap, 1, 0, 0);
236 goto err;
237
240 err:
241 return -EIO;
242}
243
244static int init_idt43102(struct mc5 *mc5)
245{
246 int i;
247 adapter_t *adap = mc5->adapter;
248
250 adap->params.rev == 0 ? V_RDLAT(0xd) | V_SRCHLAT(0x11) :
251 V_RDLAT(0xd) | V_SRCHLAT(0x12));
252
253 /*
254 * Use GMRs 24-25 for ELOOKUP, GMRs 20-21 for SYN lookups, and no mask
255 * for ACK- and AOPEN searches.
256 */
260 IDT4_CMD_SEARCH144 | 0x3800);
267
269
270 /* Set DBGI command mode for IDT TCAM. */
272
273 /* Set up GMRs */
274 dbgi_wr_data3(adap, 0xffffffff, 0xffffffff, 0xff);
275 for (i = 0; i < 7; ++i)
277 goto err;
278
279 for (i = 0; i < 4; ++i)
281 goto err;
282
283 dbgi_wr_data3(adap, 0xfffffff9, 0xffffffff, 0xff);
287 goto err;
288
289 dbgi_wr_data3(adap, 0xfffffff9, 0xffff8007, 0xff);
291 goto err;
292
293 /* Set up SCR */
294 dbgi_wr_data3(adap, 0xf0000000, 0, 0);
296 goto err;
297
300 err:
301 return -EIO;
302}
303
304/* Put MC5 in DBGI mode. */
305static inline void mc5_dbgi_mode_enable(const struct mc5 *mc5)
306{
308 F_DBGIEN);
309}
310
311/* Put MC5 in M-Bus mode. */
312static void mc5_dbgi_mode_disable(const struct mc5 *mc5)
313{
316}
317
329int t3_mc5_init(struct mc5 *mc5, unsigned int nservers, unsigned int nfilters,
330 unsigned int nroutes)
331{
332 int err;
333 unsigned int tcam_size = mc5->tcam_size;
334 unsigned int mode72 = mc5->mode == MC5_MODE_72_BIT;
335 adapter_t *adap = mc5->adapter;
336
337 if (!tcam_size)
338 return 0;
339
340 if (nroutes > MAX_ROUTES || nroutes + nservers + nfilters > tcam_size)
341 return -EINVAL;
342
343 if (nfilters)
344 mc5->parity_enabled = 0;
345
346 /* Reset the TCAM */
348 V_COMPEN(mode72) | V_TMMODE(mode72) | F_TMRST);
349 if (t3_wait_op_done(adap, A_MC5_DB_CONFIG, F_TMRDY, 1, 500, 0)) {
350 CH_ERR(adap, "TCAM reset timed out\n");
351 return -1;
352 }
353
354 t3_write_reg(adap, A_MC5_DB_ROUTING_TABLE_INDEX, tcam_size - nroutes);
356 tcam_size - nroutes - nfilters);
358 tcam_size - nroutes - nfilters - nservers);
359
360 /* All the TCAM addresses we access have only the low 32 bits non 0 */
363
365
366 switch (mc5->part_type) {
367 case IDT75P52100:
368 err = init_idt52100(mc5);
369 break;
370 case IDT75N43102:
371 err = init_idt43102(mc5);
372 break;
373 default:
374 CH_ERR(adap, "Unsupported TCAM type %d\n", mc5->part_type);
375 err = -EINVAL;
376 break;
377 }
378
380 return err;
381}
382
392int t3_read_mc5_range(const struct mc5 *mc5, unsigned int start,
393 unsigned int n, u32 *buf)
394{
395 u32 read_cmd;
396 int err = 0;
397 adapter_t *adap = mc5->adapter;
398
399 if (mc5->part_type == IDT75P52100)
400 read_cmd = IDT_CMD_READ;
401 else if (mc5->part_type == IDT75N43102)
402 read_cmd = IDT4_CMD_READ;
403 else
404 return -EINVAL;
405
407
408 while (n--) {
410 if (mc5_cmd_write(adap, read_cmd)) {
411 err = -EIO;
412 break;
413 }
414 dbgi_rd_rsp3(adap, buf + 2, buf + 1, buf);
415 buf += 3;
416 }
417
419 return err;
420}
421
422#define MC5_INT_FATAL (F_PARITYERR | F_REQQPARERR | F_DISPQPARERR)
423
431{
432 adapter_t *adap = mc5->adapter;
433 u32 cause = t3_read_reg(adap, A_MC5_DB_INT_CAUSE);
434
435 if ((cause & F_PARITYERR) && mc5->parity_enabled) {
436 CH_ALERT(adap, "MC5 parity error\n");
438 }
439
440 if (cause & F_REQQPARERR) {
441 CH_ALERT(adap, "MC5 request queue parity error\n");
443 }
444
445 if (cause & F_DISPQPARERR) {
446 CH_ALERT(adap, "MC5 dispatch queue parity error\n");
448 }
449
450 if (cause & F_ACTRGNFULL)
452 if (cause & F_NFASRCHFAIL)
454 if (cause & F_UNKNOWNCMD)
456 if (cause & F_DELACTEMPTY)
458 if (cause & MC5_INT_FATAL)
459 t3_fatal_err(adap);
460
461 t3_write_reg(adap, A_MC5_DB_INT_CAUSE, cause);
462}
463
473void __devinit t3_mc5_prep(adapter_t *adapter, struct mc5 *mc5, int mode)
474{
475#define K * 1024
476
477 static unsigned int tcam_part_size[] = { /* in K 72-bit entries */
478 64 K, 128 K, 256 K, 32 K
479 };
480
481#undef K
482
484
486 mc5->parity_enabled = 1;
487 mc5->mode = (unsigned char) mode;
488 mc5->part_type = (unsigned char) G_TMTYPE(cfg);
489 if (cfg & F_TMTYPEHI)
490 mc5->part_type |= 4;
491
492 mc5->tcam_size = tcam_part_size[G_TMPARTSIZE(cfg)];
493 if (mode == MC5_MODE_144_BIT)
494 mc5->tcam_size /= 2;
495}
static __inline void t3_write_reg(adapter_t *adapter, uint32_t reg_addr, uint32_t val)
Definition: cxgb_adapter.h:437
static __inline uint32_t t3_read_reg(adapter_t *adapter, uint32_t reg_addr)
Definition: cxgb_adapter.h:431
struct adapter * adapter
Definition: cxgb_adapter.h:0
void t3_set_reg_field(adapter_t *adap, unsigned int addr, u32 mask, u32 val)
Definition: cxgb_t3_hw.c:103
@ MC5_MODE_144_BIT
Definition: cxgb_common.h:343
@ MC5_MODE_72_BIT
Definition: cxgb_common.h:344
static int t3_wait_op_done(adapter_t *adapter, int reg, u32 mask, int polarity, int attempts, int delay)
Definition: cxgb_common.h:684
void t3_fatal_err(adapter_t *adapter)
Definition: cxgb_main.c:1134
@ DBGI_MODE_IDT52100
Definition: cxgb_mc5.c:45
@ DBGI_MODE_MBUS
Definition: cxgb_mc5.c:44
static void mc5_dbgi_mode_enable(const struct mc5 *mc5)
Definition: cxgb_mc5.c:305
@ IDT75N43102
Definition: cxgb_mc5.c:39
@ IDT75P52100
Definition: cxgb_mc5.c:38
#define IDT_MSKARY_BASE_ADR0
Definition: cxgb_mc5.c:68
#define IDT_LAR_ADR0
Definition: cxgb_mc5.c:55
#define MAX_WRITE_ATTEMPTS
Definition: cxgb_mc5.c:87
#define IDT4_GMR_BASE1
Definition: cxgb_mc5.c:80
#define IDT4_SCR_ADR0
Definition: cxgb_mc5.c:76
#define IDT4_CMD_SEARCH144
Definition: cxgb_mc5.c:71
static void dbgi_rd_rsp3(adapter_t *adapter, u32 *v1, u32 *v2, u32 *v3)
Definition: cxgb_mc5.c:109
void __devinit t3_mc5_prep(adapter_t *adapter, struct mc5 *mc5, int mode)
Definition: cxgb_mc5.c:473
static int init_mask_data_array(struct mc5 *mc5, u32 mask_array_base, u32 data_array_base, u32 write_cmd, int addr_shift)
Definition: cxgb_mc5.c:130
#define IDT4_CMD_WRITE
Definition: cxgb_mc5.c:72
int t3_read_mc5_range(const struct mc5 *mc5, unsigned int start, unsigned int n, u32 *buf)
Definition: cxgb_mc5.c:392
static int mc5_write(adapter_t *adapter, u32 addr_lo, u32 cmd)
Definition: cxgb_mc5.c:121
#define IDT_SSR0_ADR0
Definition: cxgb_mc5.c:60
#define IDT_CMD_WRITE
Definition: cxgb_mc5.c:50
#define IDT4_GMR_BASE2
Definition: cxgb_mc5.c:81
static int mc5_cmd_write(adapter_t *adapter, u32 cmd)
Definition: cxgb_mc5.c:95
static int init_idt52100(struct mc5 *mc5)
Definition: cxgb_mc5.c:180
#define IDT_GMR_BASE_ADR0
Definition: cxgb_mc5.c:64
int t3_mc5_init(struct mc5 *mc5, unsigned int nservers, unsigned int nfilters, unsigned int nroutes)
Definition: cxgb_mc5.c:329
#define IDT_DATARY_BASE_ADR0
Definition: cxgb_mc5.c:67
__FBSDID("$FreeBSD$")
#define IDT4_MSKARY_BASE_ADR0
Definition: cxgb_mc5.c:85
#define IDT_SCR_ADR0
Definition: cxgb_mc5.c:59
static int init_idt43102(struct mc5 *mc5)
Definition: cxgb_mc5.c:244
#define K
#define IDT_SSR1_ADR0
Definition: cxgb_mc5.c:61
#define IDT_CMD_LEARN
Definition: cxgb_mc5.c:52
void t3_mc5_intr_handler(struct mc5 *mc5)
Definition: cxgb_mc5.c:430
#define IDT4_GMR_BASE0
Definition: cxgb_mc5.c:79
#define IDT_CMD_SEARCH
Definition: cxgb_mc5.c:51
static void mc5_dbgi_mode_disable(const struct mc5 *mc5)
Definition: cxgb_mc5.c:312
#define IDT_LAR_MODE144
Definition: cxgb_mc5.c:56
#define IDT4_DATARY_BASE_ADR0
Definition: cxgb_mc5.c:84
static void dbgi_wr_data3(adapter_t *adapter, u32 v1, u32 v2, u32 v3)
Definition: cxgb_mc5.c:102
#define MC5_INT_FATAL
Definition: cxgb_mc5.c:422
#define MAX_ROUTES
Definition: cxgb_mc5.c:89
#define IDT4_CMD_READ
Definition: cxgb_mc5.c:73
#define IDT_CMD_READ
Definition: cxgb_mc5.c:49
#define __devinit
Definition: cxgb_osdep.h:187
#define CH_ERR(adap, fmt,...)
Definition: cxgb_osdep.h:123
#define CH_ALERT(adap, fmt,...)
Definition: cxgb_osdep.h:125
uint32_t u32
Definition: cxgb_osdep.h:202
#define F_NFASRCHFAIL
Definition: cxgb_regs.h:6824
#define A_MC5_DB_DBGI_CONFIG
Definition: cxgb_regs.h:6873
#define A_MC5_DB_SYN_SRCH_CMD
Definition: cxgb_regs.h:7022
#define A_MC5_DB_SYN_LRN_CMD
Definition: cxgb_regs.h:7029
#define A_MC5_DB_PART_ID_INDEX
Definition: cxgb_regs.h:6749
#define A_MC5_DB_AOPEN_SRCH_CMD
Definition: cxgb_regs.h:7008
#define A_MC5_DB_FILTER_TABLE
Definition: cxgb_regs.h:6691
#define F_DISPQPARERR
Definition: cxgb_regs.h:6800
#define A_MC5_DB_ELOOKUP_CMD
Definition: cxgb_regs.h:7057
#define A_MC5_DB_ILOOKUP_CMD
Definition: cxgb_regs.h:7050
#define F_TMTYPEHI
Definition: cxgb_regs.h:6602
#define V_PRTYEN(x)
Definition: cxgb_regs.h:6650
#define A_MC5_DB_DBGI_REQ_ADDR0
Definition: cxgb_regs.h:6921
#define F_PARITYERR
Definition: cxgb_regs.h:6832
#define A_MC5_DB_ROUTING_TABLE_INDEX
Definition: cxgb_regs.h:6684
#define A_MC5_DB_ACK_LRN_CMD
Definition: cxgb_regs.h:7043
#define V_COMPEN(x)
Definition: cxgb_regs.h:6625
#define F_MBUSEN
Definition: cxgb_regs.h:6655
#define F_TMMODE
Definition: cxgb_regs.h:6675
#define A_MC5_DB_DBGI_REQ_ADDR2
Definition: cxgb_regs.h:6923
#define A_MC5_DB_DBGI_RSP_DATA2
Definition: cxgb_regs.h:6973
#define A_MC5_DB_DATA_WRITE_CMD
Definition: cxgb_regs.h:7064
#define V_TMMODE(x)
Definition: cxgb_regs.h:6674
#define A_MC5_DB_POPEN_DATA_WR_CMD
Definition: cxgb_regs.h:6994
#define F_REQQPARERR
Definition: cxgb_regs.h:6804
#define A_MC5_DB_DBGI_RSP_DATA1
Definition: cxgb_regs.h:6972
#define A_MC5_DB_DBGI_REQ_CMD
Definition: cxgb_regs.h:6889
#define A_MC5_DB_DBGI_REQ_ADDR1
Definition: cxgb_regs.h:6922
#define A_MC5_DB_CONFIG
Definition: cxgb_regs.h:6594
#define F_COMPEN
Definition: cxgb_regs.h:6626
#define V_LRNLAT(x)
Definition: cxgb_regs.h:6720
#define A_MC5_DB_DATA_READ_CMD
Definition: cxgb_regs.h:7071
#define A_MC5_DB_ACK_SRCH_CMD
Definition: cxgb_regs.h:7036
#define A_MC5_DB_RSP_LATENCY
Definition: cxgb_regs.h:6711
#define A_MC5_DB_DBGI_RSP_STATUS
Definition: cxgb_regs.h:6952
#define A_MC5_DB_INT_CAUSE
Definition: cxgb_regs.h:6858
#define F_TMRST
Definition: cxgb_regs.h:6671
#define A_MC5_DB_DBGI_REQ_DATA1
Definition: cxgb_regs.h:6931
#define A_MC5_DB_AOPEN_LRN_CMD
Definition: cxgb_regs.h:7015
#define F_PRTYEN
Definition: cxgb_regs.h:6651
#define V_SRCHLAT(x)
Definition: cxgb_regs.h:6725
#define F_UNKNOWNCMD
Definition: cxgb_regs.h:6808
#define A_MC5_DB_POPEN_MASK_WR_CMD
Definition: cxgb_regs.h:7001
#define A_MC5_DB_SERVER_INDEX
Definition: cxgb_regs.h:6698
#define A_MC5_DB_DBGI_REQ_DATA2
Definition: cxgb_regs.h:6932
#define F_DELACTEMPTY
Definition: cxgb_regs.h:6796
#define G_TMPARTSIZE(x)
Definition: cxgb_regs.h:6607
#define F_ACTRGNFULL
Definition: cxgb_regs.h:6828
#define F_DBGIEN
Definition: cxgb_regs.h:6659
#define A_MC5_DB_DBGI_RSP_DATA0
Definition: cxgb_regs.h:6971
#define V_RDLAT(x)
Definition: cxgb_regs.h:6715
#define A_MC5_DB_DBGI_REQ_DATA0
Definition: cxgb_regs.h:6930
#define F_TMRDY
Definition: cxgb_regs.h:6667
#define G_TMTYPE(x)
Definition: cxgb_regs.h:6612
#define F_DBGIRSPVALID
Definition: cxgb_regs.h:6969
unsigned int rev
Definition: cxgb_common.h:403
struct adapter_params params
Definition: cxgb_adapter.h:362
unsigned long parity_err
Definition: cxgb_common.h:168
unsigned long nfa_srch_err
Definition: cxgb_common.h:170
unsigned long del_act_empty
Definition: cxgb_common.h:174
unsigned long dispq_parity_err
Definition: cxgb_common.h:173
unsigned long unknown_cmd
Definition: cxgb_common.h:171
unsigned long reqq_parity_err
Definition: cxgb_common.h:172
unsigned long active_rgn_full
Definition: cxgb_common.h:169
unsigned char part_type
Definition: cxgb_common.h:450
unsigned int tcam_size
Definition: cxgb_common.h:449
unsigned char parity_enabled
Definition: cxgb_common.h:451
adapter_t * adapter
Definition: cxgb_common.h:448
struct mc5_stats stats
Definition: cxgb_common.h:453
unsigned char mode
Definition: cxgb_common.h:452