xref: /freebsd/sys/dev/cxgb/common/cxgb_tcb.h (revision f0cfa1b168014f56c02b83e5f28412cc5f78d117)
1 /**************************************************************************
2 SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 
4 Copyright (c) 2007, Chelsio Inc.
5 All rights reserved.
6 
7 Redistribution and use in source and binary forms, with or without
8 modification, 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 
17 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21 LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25 CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27 POSSIBILITY OF SUCH DAMAGE.
28 
29 $FreeBSD$
30 
31 ***************************************************************************/
32 
33 /* This file is automatically generated --- do not edit */
34 
35 #ifndef _TCB_DEFS_H
36 #define _TCB_DEFS_H
37 
38 #define W_TCB_T_STATE    0
39 #define S_TCB_T_STATE    0
40 #define M_TCB_T_STATE    0xfULL
41 #define V_TCB_T_STATE(x) ((x) << S_TCB_T_STATE)
42 
43 #define W_TCB_TIMER    0
44 #define S_TCB_TIMER    4
45 #define M_TCB_TIMER    0x1ULL
46 #define V_TCB_TIMER(x) ((x) << S_TCB_TIMER)
47 
48 #define W_TCB_DACK_TIMER    0
49 #define S_TCB_DACK_TIMER    5
50 #define M_TCB_DACK_TIMER    0x1ULL
51 #define V_TCB_DACK_TIMER(x) ((x) << S_TCB_DACK_TIMER)
52 
53 #define W_TCB_DEL_FLAG    0
54 #define S_TCB_DEL_FLAG    6
55 #define M_TCB_DEL_FLAG    0x1ULL
56 #define V_TCB_DEL_FLAG(x) ((x) << S_TCB_DEL_FLAG)
57 
58 #define W_TCB_L2T_IX    0
59 #define S_TCB_L2T_IX    7
60 #define M_TCB_L2T_IX    0x7ffULL
61 #define V_TCB_L2T_IX(x) ((x) << S_TCB_L2T_IX)
62 
63 #define W_TCB_SMAC_SEL    0
64 #define S_TCB_SMAC_SEL    18
65 #define M_TCB_SMAC_SEL    0x3ULL
66 #define V_TCB_SMAC_SEL(x) ((x) << S_TCB_SMAC_SEL)
67 
68 #define W_TCB_TOS    0
69 #define S_TCB_TOS    20
70 #define M_TCB_TOS    0x3fULL
71 #define V_TCB_TOS(x) ((x) << S_TCB_TOS)
72 
73 #define W_TCB_MAX_RT    0
74 #define S_TCB_MAX_RT    26
75 #define M_TCB_MAX_RT    0xfULL
76 #define V_TCB_MAX_RT(x) ((x) << S_TCB_MAX_RT)
77 
78 #define W_TCB_T_RXTSHIFT    0
79 #define S_TCB_T_RXTSHIFT    30
80 #define M_TCB_T_RXTSHIFT    0xfULL
81 #define V_TCB_T_RXTSHIFT(x) ((x) << S_TCB_T_RXTSHIFT)
82 
83 #define W_TCB_T_DUPACKS    1
84 #define S_TCB_T_DUPACKS    2
85 #define M_TCB_T_DUPACKS    0xfULL
86 #define V_TCB_T_DUPACKS(x) ((x) << S_TCB_T_DUPACKS)
87 
88 #define W_TCB_T_MAXSEG    1
89 #define S_TCB_T_MAXSEG    6
90 #define M_TCB_T_MAXSEG    0xfULL
91 #define V_TCB_T_MAXSEG(x) ((x) << S_TCB_T_MAXSEG)
92 
93 #define W_TCB_T_FLAGS1    1
94 #define S_TCB_T_FLAGS1    10
95 #define M_TCB_T_FLAGS1    0xffffffffULL
96 #define V_TCB_T_FLAGS1(x) ((x) << S_TCB_T_FLAGS1)
97 
98 #define W_TCB_T_FLAGS2    2
99 #define S_TCB_T_FLAGS2    10
100 #define M_TCB_T_FLAGS2    0x7fULL
101 #define V_TCB_T_FLAGS2(x) ((x) << S_TCB_T_FLAGS2)
102 
103 #define W_TCB_SND_SCALE    2
104 #define S_TCB_SND_SCALE    17
105 #define M_TCB_SND_SCALE    0xfULL
106 #define V_TCB_SND_SCALE(x) ((x) << S_TCB_SND_SCALE)
107 
108 #define W_TCB_RCV_SCALE    2
109 #define S_TCB_RCV_SCALE    21
110 #define M_TCB_RCV_SCALE    0xfULL
111 #define V_TCB_RCV_SCALE(x) ((x) << S_TCB_RCV_SCALE)
112 
113 #define W_TCB_SND_UNA_RAW    2
114 #define S_TCB_SND_UNA_RAW    25
115 #define M_TCB_SND_UNA_RAW    0x7ffffffULL
116 #define V_TCB_SND_UNA_RAW(x) ((x) << S_TCB_SND_UNA_RAW)
117 
118 #define W_TCB_SND_NXT_RAW    3
119 #define S_TCB_SND_NXT_RAW    20
120 #define M_TCB_SND_NXT_RAW    0x7ffffffULL
121 #define V_TCB_SND_NXT_RAW(x) ((x) << S_TCB_SND_NXT_RAW)
122 
123 #define W_TCB_RCV_NXT    4
124 #define S_TCB_RCV_NXT    15
125 #define M_TCB_RCV_NXT    0xffffffffULL
126 #define V_TCB_RCV_NXT(x) ((x) << S_TCB_RCV_NXT)
127 
128 #define W_TCB_RCV_ADV    5
129 #define S_TCB_RCV_ADV    15
130 #define M_TCB_RCV_ADV    0xffffULL
131 #define V_TCB_RCV_ADV(x) ((x) << S_TCB_RCV_ADV)
132 
133 #define W_TCB_SND_MAX_RAW    5
134 #define S_TCB_SND_MAX_RAW    31
135 #define M_TCB_SND_MAX_RAW    0x7ffffffULL
136 #define V_TCB_SND_MAX_RAW(x) ((x) << S_TCB_SND_MAX_RAW)
137 
138 #define W_TCB_SND_CWND    6
139 #define S_TCB_SND_CWND    26
140 #define M_TCB_SND_CWND    0x7ffffffULL
141 #define V_TCB_SND_CWND(x) ((x) << S_TCB_SND_CWND)
142 
143 #define W_TCB_SND_SSTHRESH    7
144 #define S_TCB_SND_SSTHRESH    21
145 #define M_TCB_SND_SSTHRESH    0x7ffffffULL
146 #define V_TCB_SND_SSTHRESH(x) ((x) << S_TCB_SND_SSTHRESH)
147 
148 #define W_TCB_T_RTT_TS_RECENT_AGE    8
149 #define S_TCB_T_RTT_TS_RECENT_AGE    16
150 #define M_TCB_T_RTT_TS_RECENT_AGE    0xffffffffULL
151 #define V_TCB_T_RTT_TS_RECENT_AGE(x) ((x) << S_TCB_T_RTT_TS_RECENT_AGE)
152 
153 #define W_TCB_T_RTSEQ_RECENT    9
154 #define S_TCB_T_RTSEQ_RECENT    16
155 #define M_TCB_T_RTSEQ_RECENT    0xffffffffULL
156 #define V_TCB_T_RTSEQ_RECENT(x) ((x) << S_TCB_T_RTSEQ_RECENT)
157 
158 #define W_TCB_T_SRTT    10
159 #define S_TCB_T_SRTT    16
160 #define M_TCB_T_SRTT    0xffffULL
161 #define V_TCB_T_SRTT(x) ((x) << S_TCB_T_SRTT)
162 
163 #define W_TCB_T_RTTVAR    11
164 #define S_TCB_T_RTTVAR    0
165 #define M_TCB_T_RTTVAR    0xffffULL
166 #define V_TCB_T_RTTVAR(x) ((x) << S_TCB_T_RTTVAR)
167 
168 #define W_TCB_TS_LAST_ACK_SENT_RAW    11
169 #define S_TCB_TS_LAST_ACK_SENT_RAW    16
170 #define M_TCB_TS_LAST_ACK_SENT_RAW    0x7ffffffULL
171 #define V_TCB_TS_LAST_ACK_SENT_RAW(x) ((x) << S_TCB_TS_LAST_ACK_SENT_RAW)
172 
173 #define W_TCB_DIP    12
174 #define S_TCB_DIP    11
175 #define M_TCB_DIP    0xffffffffULL
176 #define V_TCB_DIP(x) ((x) << S_TCB_DIP)
177 
178 #define W_TCB_SIP    13
179 #define S_TCB_SIP    11
180 #define M_TCB_SIP    0xffffffffULL
181 #define V_TCB_SIP(x) ((x) << S_TCB_SIP)
182 
183 #define W_TCB_DP    14
184 #define S_TCB_DP    11
185 #define M_TCB_DP    0xffffULL
186 #define V_TCB_DP(x) ((x) << S_TCB_DP)
187 
188 #define W_TCB_SP    14
189 #define S_TCB_SP    27
190 #define M_TCB_SP    0xffffULL
191 #define V_TCB_SP(x) ((x) << S_TCB_SP)
192 
193 #define W_TCB_TIMESTAMP    15
194 #define S_TCB_TIMESTAMP    11
195 #define M_TCB_TIMESTAMP    0xffffffffULL
196 #define V_TCB_TIMESTAMP(x) ((x) << S_TCB_TIMESTAMP)
197 
198 #define W_TCB_TIMESTAMP_OFFSET    16
199 #define S_TCB_TIMESTAMP_OFFSET    11
200 #define M_TCB_TIMESTAMP_OFFSET    0xfULL
201 #define V_TCB_TIMESTAMP_OFFSET(x) ((x) << S_TCB_TIMESTAMP_OFFSET)
202 
203 #define W_TCB_TX_MAX    16
204 #define S_TCB_TX_MAX    15
205 #define M_TCB_TX_MAX    0xffffffffULL
206 #define V_TCB_TX_MAX(x) ((x) << S_TCB_TX_MAX)
207 
208 #define W_TCB_TX_HDR_PTR_RAW    17
209 #define S_TCB_TX_HDR_PTR_RAW    15
210 #define M_TCB_TX_HDR_PTR_RAW    0x1ffffULL
211 #define V_TCB_TX_HDR_PTR_RAW(x) ((x) << S_TCB_TX_HDR_PTR_RAW)
212 
213 #define W_TCB_TX_LAST_PTR_RAW    18
214 #define S_TCB_TX_LAST_PTR_RAW    0
215 #define M_TCB_TX_LAST_PTR_RAW    0x1ffffULL
216 #define V_TCB_TX_LAST_PTR_RAW(x) ((x) << S_TCB_TX_LAST_PTR_RAW)
217 
218 #define W_TCB_TX_COMPACT    18
219 #define S_TCB_TX_COMPACT    17
220 #define M_TCB_TX_COMPACT    0x1ULL
221 #define V_TCB_TX_COMPACT(x) ((x) << S_TCB_TX_COMPACT)
222 
223 #define W_TCB_RX_COMPACT    18
224 #define S_TCB_RX_COMPACT    18
225 #define M_TCB_RX_COMPACT    0x1ULL
226 #define V_TCB_RX_COMPACT(x) ((x) << S_TCB_RX_COMPACT)
227 
228 #define W_TCB_RCV_WND    18
229 #define S_TCB_RCV_WND    19
230 #define M_TCB_RCV_WND    0x7ffffffULL
231 #define V_TCB_RCV_WND(x) ((x) << S_TCB_RCV_WND)
232 
233 #define W_TCB_RX_HDR_OFFSET    19
234 #define S_TCB_RX_HDR_OFFSET    14
235 #define M_TCB_RX_HDR_OFFSET    0x7ffffffULL
236 #define V_TCB_RX_HDR_OFFSET(x) ((x) << S_TCB_RX_HDR_OFFSET)
237 
238 #define W_TCB_RX_FRAG0_START_IDX_RAW    20
239 #define S_TCB_RX_FRAG0_START_IDX_RAW    9
240 #define M_TCB_RX_FRAG0_START_IDX_RAW    0x7ffffffULL
241 #define V_TCB_RX_FRAG0_START_IDX_RAW(x) ((x) << S_TCB_RX_FRAG0_START_IDX_RAW)
242 
243 #define W_TCB_RX_FRAG1_START_IDX_OFFSET    21
244 #define S_TCB_RX_FRAG1_START_IDX_OFFSET    4
245 #define M_TCB_RX_FRAG1_START_IDX_OFFSET    0x7ffffffULL
246 #define V_TCB_RX_FRAG1_START_IDX_OFFSET(x) ((x) << S_TCB_RX_FRAG1_START_IDX_OFFSET)
247 
248 #define W_TCB_RX_FRAG0_LEN    21
249 #define S_TCB_RX_FRAG0_LEN    31
250 #define M_TCB_RX_FRAG0_LEN    0x7ffffffULL
251 #define V_TCB_RX_FRAG0_LEN(x) ((x) << S_TCB_RX_FRAG0_LEN)
252 
253 #define W_TCB_RX_FRAG1_LEN    22
254 #define S_TCB_RX_FRAG1_LEN    26
255 #define M_TCB_RX_FRAG1_LEN    0x7ffffffULL
256 #define V_TCB_RX_FRAG1_LEN(x) ((x) << S_TCB_RX_FRAG1_LEN)
257 
258 #define W_TCB_NEWRENO_RECOVER    23
259 #define S_TCB_NEWRENO_RECOVER    21
260 #define M_TCB_NEWRENO_RECOVER    0x7ffffffULL
261 #define V_TCB_NEWRENO_RECOVER(x) ((x) << S_TCB_NEWRENO_RECOVER)
262 
263 #define W_TCB_PDU_HAVE_LEN    24
264 #define S_TCB_PDU_HAVE_LEN    16
265 #define M_TCB_PDU_HAVE_LEN    0x1ULL
266 #define V_TCB_PDU_HAVE_LEN(x) ((x) << S_TCB_PDU_HAVE_LEN)
267 
268 #define W_TCB_PDU_LEN    24
269 #define S_TCB_PDU_LEN    17
270 #define M_TCB_PDU_LEN    0xffffULL
271 #define V_TCB_PDU_LEN(x) ((x) << S_TCB_PDU_LEN)
272 
273 #define W_TCB_RX_QUIESCE    25
274 #define S_TCB_RX_QUIESCE    1
275 #define M_TCB_RX_QUIESCE    0x1ULL
276 #define V_TCB_RX_QUIESCE(x) ((x) << S_TCB_RX_QUIESCE)
277 
278 #define W_TCB_RX_PTR_RAW    25
279 #define S_TCB_RX_PTR_RAW    2
280 #define M_TCB_RX_PTR_RAW    0x1ffffULL
281 #define V_TCB_RX_PTR_RAW(x) ((x) << S_TCB_RX_PTR_RAW)
282 
283 #define W_TCB_CPU_NO    25
284 #define S_TCB_CPU_NO    19
285 #define M_TCB_CPU_NO    0x7fULL
286 #define V_TCB_CPU_NO(x) ((x) << S_TCB_CPU_NO)
287 
288 #define W_TCB_ULP_TYPE    25
289 #define S_TCB_ULP_TYPE    26
290 #define M_TCB_ULP_TYPE    0xfULL
291 #define V_TCB_ULP_TYPE(x) ((x) << S_TCB_ULP_TYPE)
292 
293 #define W_TCB_RX_FRAG1_PTR_RAW    25
294 #define S_TCB_RX_FRAG1_PTR_RAW    30
295 #define M_TCB_RX_FRAG1_PTR_RAW    0x1ffffULL
296 #define V_TCB_RX_FRAG1_PTR_RAW(x) ((x) << S_TCB_RX_FRAG1_PTR_RAW)
297 
298 #define W_TCB_RX_FRAG2_START_IDX_OFFSET_RAW    26
299 #define S_TCB_RX_FRAG2_START_IDX_OFFSET_RAW    15
300 #define M_TCB_RX_FRAG2_START_IDX_OFFSET_RAW    0x7ffffffULL
301 #define V_TCB_RX_FRAG2_START_IDX_OFFSET_RAW(x) ((x) << S_TCB_RX_FRAG2_START_IDX_OFFSET_RAW)
302 
303 #define W_TCB_RX_FRAG2_PTR_RAW    27
304 #define S_TCB_RX_FRAG2_PTR_RAW    10
305 #define M_TCB_RX_FRAG2_PTR_RAW    0x1ffffULL
306 #define V_TCB_RX_FRAG2_PTR_RAW(x) ((x) << S_TCB_RX_FRAG2_PTR_RAW)
307 
308 #define W_TCB_RX_FRAG2_LEN_RAW    27
309 #define S_TCB_RX_FRAG2_LEN_RAW    27
310 #define M_TCB_RX_FRAG2_LEN_RAW    0x7ffffffULL
311 #define V_TCB_RX_FRAG2_LEN_RAW(x) ((x) << S_TCB_RX_FRAG2_LEN_RAW)
312 
313 #define W_TCB_RX_FRAG3_PTR_RAW    28
314 #define S_TCB_RX_FRAG3_PTR_RAW    22
315 #define M_TCB_RX_FRAG3_PTR_RAW    0x1ffffULL
316 #define V_TCB_RX_FRAG3_PTR_RAW(x) ((x) << S_TCB_RX_FRAG3_PTR_RAW)
317 
318 #define W_TCB_RX_FRAG3_LEN_RAW    29
319 #define S_TCB_RX_FRAG3_LEN_RAW    7
320 #define M_TCB_RX_FRAG3_LEN_RAW    0x7ffffffULL
321 #define V_TCB_RX_FRAG3_LEN_RAW(x) ((x) << S_TCB_RX_FRAG3_LEN_RAW)
322 
323 #define W_TCB_RX_FRAG3_START_IDX_OFFSET_RAW    30
324 #define S_TCB_RX_FRAG3_START_IDX_OFFSET_RAW    2
325 #define M_TCB_RX_FRAG3_START_IDX_OFFSET_RAW    0x7ffffffULL
326 #define V_TCB_RX_FRAG3_START_IDX_OFFSET_RAW(x) ((x) << S_TCB_RX_FRAG3_START_IDX_OFFSET_RAW)
327 
328 #define W_TCB_PDU_HDR_LEN    30
329 #define S_TCB_PDU_HDR_LEN    29
330 #define M_TCB_PDU_HDR_LEN    0xffULL
331 #define V_TCB_PDU_HDR_LEN(x) ((x) << S_TCB_PDU_HDR_LEN)
332 
333 #define W_TCB_SLUSH1    31
334 #define S_TCB_SLUSH1    5
335 #define M_TCB_SLUSH1    0x7ffffULL
336 #define V_TCB_SLUSH1(x) ((x) << S_TCB_SLUSH1)
337 
338 #define W_TCB_ULP_RAW    31
339 #define S_TCB_ULP_RAW    24
340 #define M_TCB_ULP_RAW    0xffULL
341 #define V_TCB_ULP_RAW(x) ((x) << S_TCB_ULP_RAW)
342 
343 #define W_TCB_DDP_RDMAP_VERSION    25
344 #define S_TCB_DDP_RDMAP_VERSION    30
345 #define M_TCB_DDP_RDMAP_VERSION    0x1ULL
346 #define V_TCB_DDP_RDMAP_VERSION(x) ((x) << S_TCB_DDP_RDMAP_VERSION)
347 
348 #define W_TCB_MARKER_ENABLE_RX    25
349 #define S_TCB_MARKER_ENABLE_RX    31
350 #define M_TCB_MARKER_ENABLE_RX    0x1ULL
351 #define V_TCB_MARKER_ENABLE_RX(x) ((x) << S_TCB_MARKER_ENABLE_RX)
352 
353 #define W_TCB_MARKER_ENABLE_TX    26
354 #define S_TCB_MARKER_ENABLE_TX    0
355 #define M_TCB_MARKER_ENABLE_TX    0x1ULL
356 #define V_TCB_MARKER_ENABLE_TX(x) ((x) << S_TCB_MARKER_ENABLE_TX)
357 
358 #define W_TCB_CRC_ENABLE    26
359 #define S_TCB_CRC_ENABLE    1
360 #define M_TCB_CRC_ENABLE    0x1ULL
361 #define V_TCB_CRC_ENABLE(x) ((x) << S_TCB_CRC_ENABLE)
362 
363 #define W_TCB_IRS_ULP    26
364 #define S_TCB_IRS_ULP    2
365 #define M_TCB_IRS_ULP    0x1ffULL
366 #define V_TCB_IRS_ULP(x) ((x) << S_TCB_IRS_ULP)
367 
368 #define W_TCB_ISS_ULP    26
369 #define S_TCB_ISS_ULP    11
370 #define M_TCB_ISS_ULP    0x1ffULL
371 #define V_TCB_ISS_ULP(x) ((x) << S_TCB_ISS_ULP)
372 
373 #define W_TCB_TX_PDU_LEN    26
374 #define S_TCB_TX_PDU_LEN    20
375 #define M_TCB_TX_PDU_LEN    0x3fffULL
376 #define V_TCB_TX_PDU_LEN(x) ((x) << S_TCB_TX_PDU_LEN)
377 
378 #define W_TCB_TX_PDU_OUT    27
379 #define S_TCB_TX_PDU_OUT    2
380 #define M_TCB_TX_PDU_OUT    0x1ULL
381 #define V_TCB_TX_PDU_OUT(x) ((x) << S_TCB_TX_PDU_OUT)
382 
383 #define W_TCB_CQ_IDX_SQ    27
384 #define S_TCB_CQ_IDX_SQ    3
385 #define M_TCB_CQ_IDX_SQ    0xffffULL
386 #define V_TCB_CQ_IDX_SQ(x) ((x) << S_TCB_CQ_IDX_SQ)
387 
388 #define W_TCB_CQ_IDX_RQ    27
389 #define S_TCB_CQ_IDX_RQ    19
390 #define M_TCB_CQ_IDX_RQ    0xffffULL
391 #define V_TCB_CQ_IDX_RQ(x) ((x) << S_TCB_CQ_IDX_RQ)
392 
393 #define W_TCB_QP_ID    28
394 #define S_TCB_QP_ID    3
395 #define M_TCB_QP_ID    0xffffULL
396 #define V_TCB_QP_ID(x) ((x) << S_TCB_QP_ID)
397 
398 #define W_TCB_PD_ID    28
399 #define S_TCB_PD_ID    19
400 #define M_TCB_PD_ID    0xffffULL
401 #define V_TCB_PD_ID(x) ((x) << S_TCB_PD_ID)
402 
403 #define W_TCB_STAG    29
404 #define S_TCB_STAG    3
405 #define M_TCB_STAG    0xffffffffULL
406 #define V_TCB_STAG(x) ((x) << S_TCB_STAG)
407 
408 #define W_TCB_RQ_START    30
409 #define S_TCB_RQ_START    3
410 #define M_TCB_RQ_START    0x3ffffffULL
411 #define V_TCB_RQ_START(x) ((x) << S_TCB_RQ_START)
412 
413 #define W_TCB_RQ_MSN    30
414 #define S_TCB_RQ_MSN    29
415 #define M_TCB_RQ_MSN    0x3ffULL
416 #define V_TCB_RQ_MSN(x) ((x) << S_TCB_RQ_MSN)
417 
418 #define W_TCB_RQ_MAX_OFFSET    31
419 #define S_TCB_RQ_MAX_OFFSET    7
420 #define M_TCB_RQ_MAX_OFFSET    0xfULL
421 #define V_TCB_RQ_MAX_OFFSET(x) ((x) << S_TCB_RQ_MAX_OFFSET)
422 
423 #define W_TCB_RQ_WRITE_PTR    31
424 #define S_TCB_RQ_WRITE_PTR    11
425 #define M_TCB_RQ_WRITE_PTR    0x3ffULL
426 #define V_TCB_RQ_WRITE_PTR(x) ((x) << S_TCB_RQ_WRITE_PTR)
427 
428 #define W_TCB_INB_WRITE_PERM    31
429 #define S_TCB_INB_WRITE_PERM    21
430 #define M_TCB_INB_WRITE_PERM    0x1ULL
431 #define V_TCB_INB_WRITE_PERM(x) ((x) << S_TCB_INB_WRITE_PERM)
432 
433 #define W_TCB_INB_READ_PERM    31
434 #define S_TCB_INB_READ_PERM    22
435 #define M_TCB_INB_READ_PERM    0x1ULL
436 #define V_TCB_INB_READ_PERM(x) ((x) << S_TCB_INB_READ_PERM)
437 
438 #define W_TCB_ORD_L_BIT_VLD    31
439 #define S_TCB_ORD_L_BIT_VLD    23
440 #define M_TCB_ORD_L_BIT_VLD    0x1ULL
441 #define V_TCB_ORD_L_BIT_VLD(x) ((x) << S_TCB_ORD_L_BIT_VLD)
442 
443 #define W_TCB_RDMAP_OPCODE    31
444 #define S_TCB_RDMAP_OPCODE    24
445 #define M_TCB_RDMAP_OPCODE    0xfULL
446 #define V_TCB_RDMAP_OPCODE(x) ((x) << S_TCB_RDMAP_OPCODE)
447 
448 #define W_TCB_TX_FLUSH    31
449 #define S_TCB_TX_FLUSH    28
450 #define M_TCB_TX_FLUSH    0x1ULL
451 #define V_TCB_TX_FLUSH(x) ((x) << S_TCB_TX_FLUSH)
452 
453 #define W_TCB_TX_OOS_RXMT    31
454 #define S_TCB_TX_OOS_RXMT    29
455 #define M_TCB_TX_OOS_RXMT    0x1ULL
456 #define V_TCB_TX_OOS_RXMT(x) ((x) << S_TCB_TX_OOS_RXMT)
457 
458 #define W_TCB_TX_OOS_TXMT    31
459 #define S_TCB_TX_OOS_TXMT    30
460 #define M_TCB_TX_OOS_TXMT    0x1ULL
461 #define V_TCB_TX_OOS_TXMT(x) ((x) << S_TCB_TX_OOS_TXMT)
462 
463 #define W_TCB_SLUSH_AUX2    31
464 #define S_TCB_SLUSH_AUX2    31
465 #define M_TCB_SLUSH_AUX2    0x1ULL
466 #define V_TCB_SLUSH_AUX2(x) ((x) << S_TCB_SLUSH_AUX2)
467 
468 #define W_TCB_RX_FRAG1_PTR_RAW2    25
469 #define S_TCB_RX_FRAG1_PTR_RAW2    30
470 #define M_TCB_RX_FRAG1_PTR_RAW2    0x1ffffULL
471 #define V_TCB_RX_FRAG1_PTR_RAW2(x) ((x) << S_TCB_RX_FRAG1_PTR_RAW2)
472 
473 #define W_TCB_RX_DDP_FLAGS    26
474 #define S_TCB_RX_DDP_FLAGS    15
475 #define M_TCB_RX_DDP_FLAGS    0xffffULL
476 #define V_TCB_RX_DDP_FLAGS(x) ((x) << S_TCB_RX_DDP_FLAGS)
477 
478 #define W_TCB_SLUSH_AUX3    26
479 #define S_TCB_SLUSH_AUX3    31
480 #define M_TCB_SLUSH_AUX3    0x1ffULL
481 #define V_TCB_SLUSH_AUX3(x) ((x) << S_TCB_SLUSH_AUX3)
482 
483 #define W_TCB_RX_DDP_BUF0_OFFSET    27
484 #define S_TCB_RX_DDP_BUF0_OFFSET    8
485 #define M_TCB_RX_DDP_BUF0_OFFSET    0x3fffffULL
486 #define V_TCB_RX_DDP_BUF0_OFFSET(x) ((x) << S_TCB_RX_DDP_BUF0_OFFSET)
487 
488 #define W_TCB_RX_DDP_BUF0_LEN    27
489 #define S_TCB_RX_DDP_BUF0_LEN    30
490 #define M_TCB_RX_DDP_BUF0_LEN    0x3fffffULL
491 #define V_TCB_RX_DDP_BUF0_LEN(x) ((x) << S_TCB_RX_DDP_BUF0_LEN)
492 
493 #define W_TCB_RX_DDP_BUF1_OFFSET    28
494 #define S_TCB_RX_DDP_BUF1_OFFSET    20
495 #define M_TCB_RX_DDP_BUF1_OFFSET    0x3fffffULL
496 #define V_TCB_RX_DDP_BUF1_OFFSET(x) ((x) << S_TCB_RX_DDP_BUF1_OFFSET)
497 
498 #define W_TCB_RX_DDP_BUF1_LEN    29
499 #define S_TCB_RX_DDP_BUF1_LEN    10
500 #define M_TCB_RX_DDP_BUF1_LEN    0x3fffffULL
501 #define V_TCB_RX_DDP_BUF1_LEN(x) ((x) << S_TCB_RX_DDP_BUF1_LEN)
502 
503 #define W_TCB_RX_DDP_BUF0_TAG    30
504 #define S_TCB_RX_DDP_BUF0_TAG    0
505 #define M_TCB_RX_DDP_BUF0_TAG    0xffffffffULL
506 #define V_TCB_RX_DDP_BUF0_TAG(x) ((x) << S_TCB_RX_DDP_BUF0_TAG)
507 
508 #define W_TCB_RX_DDP_BUF1_TAG    31
509 #define S_TCB_RX_DDP_BUF1_TAG    0
510 #define M_TCB_RX_DDP_BUF1_TAG    0xffffffffULL
511 #define V_TCB_RX_DDP_BUF1_TAG(x) ((x) << S_TCB_RX_DDP_BUF1_TAG)
512 
513 #define S_TF_DACK    10
514 #define V_TF_DACK(x) ((x) << S_TF_DACK)
515 
516 #define S_TF_NAGLE    11
517 #define V_TF_NAGLE(x) ((x) << S_TF_NAGLE)
518 
519 #define S_TF_RECV_SCALE    12
520 #define V_TF_RECV_SCALE(x) ((x) << S_TF_RECV_SCALE)
521 
522 #define S_TF_RECV_TSTMP    13
523 #define V_TF_RECV_TSTMP(x) ((x) << S_TF_RECV_TSTMP)
524 
525 #define S_TF_RECV_SACK    14
526 #define V_TF_RECV_SACK(x) ((x) << S_TF_RECV_SACK)
527 
528 #define S_TF_TURBO    15
529 #define V_TF_TURBO(x) ((x) << S_TF_TURBO)
530 
531 #define S_TF_KEEPALIVE    16
532 #define V_TF_KEEPALIVE(x) ((x) << S_TF_KEEPALIVE)
533 
534 #define S_TF_TCAM_BYPASS    17
535 #define V_TF_TCAM_BYPASS(x) ((x) << S_TF_TCAM_BYPASS)
536 
537 #define S_TF_CORE_FIN    18
538 #define V_TF_CORE_FIN(x) ((x) << S_TF_CORE_FIN)
539 
540 #define S_TF_CORE_MORE    19
541 #define V_TF_CORE_MORE(x) ((x) << S_TF_CORE_MORE)
542 
543 #define S_TF_MIGRATING    20
544 #define V_TF_MIGRATING(x) ((x) << S_TF_MIGRATING)
545 
546 #define S_TF_ACTIVE_OPEN    21
547 #define V_TF_ACTIVE_OPEN(x) ((x) << S_TF_ACTIVE_OPEN)
548 
549 #define S_TF_ASK_MODE    22
550 #define V_TF_ASK_MODE(x) ((x) << S_TF_ASK_MODE)
551 
552 #define S_TF_NON_OFFLOAD    23
553 #define V_TF_NON_OFFLOAD(x) ((x) << S_TF_NON_OFFLOAD)
554 
555 #define S_TF_MOD_SCHD    24
556 #define V_TF_MOD_SCHD(x) ((x) << S_TF_MOD_SCHD)
557 
558 #define S_TF_MOD_SCHD_REASON0    25
559 #define V_TF_MOD_SCHD_REASON0(x) ((x) << S_TF_MOD_SCHD_REASON0)
560 
561 #define S_TF_MOD_SCHD_REASON1    26
562 #define V_TF_MOD_SCHD_REASON1(x) ((x) << S_TF_MOD_SCHD_REASON1)
563 
564 #define S_TF_MOD_SCHD_RX    27
565 #define V_TF_MOD_SCHD_RX(x) ((x) << S_TF_MOD_SCHD_RX)
566 
567 #define S_TF_CORE_PUSH    28
568 #define V_TF_CORE_PUSH(x) ((x) << S_TF_CORE_PUSH)
569 
570 #define S_TF_RCV_COALESCE_ENABLE    29
571 #define V_TF_RCV_COALESCE_ENABLE(x) ((x) << S_TF_RCV_COALESCE_ENABLE)
572 
573 #define S_TF_RCV_COALESCE_PUSH    30
574 #define V_TF_RCV_COALESCE_PUSH(x) ((x) << S_TF_RCV_COALESCE_PUSH)
575 
576 #define S_TF_RCV_COALESCE_LAST_PSH    31
577 #define V_TF_RCV_COALESCE_LAST_PSH(x) ((x) << S_TF_RCV_COALESCE_LAST_PSH)
578 
579 #define S_TF_RCV_COALESCE_HEARTBEAT    32
580 #define V_TF_RCV_COALESCE_HEARTBEAT(x) ((x) << S_TF_RCV_COALESCE_HEARTBEAT)
581 
582 #define S_TF_LOCK_TID    33
583 #define V_TF_LOCK_TID(x) ((x) << S_TF_LOCK_TID)
584 
585 #define S_TF_DACK_MSS    34
586 #define V_TF_DACK_MSS(x) ((x) << S_TF_DACK_MSS)
587 
588 #define S_TF_CCTRL_SEL0    35
589 #define V_TF_CCTRL_SEL0(x) ((x) << S_TF_CCTRL_SEL0)
590 
591 #define S_TF_CCTRL_SEL1    36
592 #define V_TF_CCTRL_SEL1(x) ((x) << S_TF_CCTRL_SEL1)
593 
594 #define S_TF_TCP_NEWRENO_FAST_RECOVERY    37
595 #define V_TF_TCP_NEWRENO_FAST_RECOVERY(x) ((x) << S_TF_TCP_NEWRENO_FAST_RECOVERY)
596 
597 #define S_TF_TX_PACE_AUTO    38
598 #define V_TF_TX_PACE_AUTO(x) ((x) << S_TF_TX_PACE_AUTO)
599 
600 #define S_TF_PEER_FIN_HELD    39
601 #define V_TF_PEER_FIN_HELD(x) ((x) << S_TF_PEER_FIN_HELD)
602 
603 #define S_TF_CORE_URG    40
604 #define V_TF_CORE_URG(x) ((x) << S_TF_CORE_URG)
605 
606 #define S_TF_RDMA_ERROR    41
607 #define V_TF_RDMA_ERROR(x) ((x) << S_TF_RDMA_ERROR)
608 
609 #define S_TF_SSWS_DISABLED    42
610 #define V_TF_SSWS_DISABLED(x) ((x) << S_TF_SSWS_DISABLED)
611 
612 #define S_TF_DUPACK_COUNT_ODD    43
613 #define V_TF_DUPACK_COUNT_ODD(x) ((x) << S_TF_DUPACK_COUNT_ODD)
614 
615 #define S_TF_TX_CHANNEL    44
616 #define V_TF_TX_CHANNEL(x) ((x) << S_TF_TX_CHANNEL)
617 
618 #define S_TF_RX_CHANNEL    45
619 #define V_TF_RX_CHANNEL(x) ((x) << S_TF_RX_CHANNEL)
620 
621 #define S_TF_TX_PACE_FIXED    46
622 #define V_TF_TX_PACE_FIXED(x) ((x) << S_TF_TX_PACE_FIXED)
623 
624 #define S_TF_RDMA_FLM_ERROR    47
625 #define V_TF_RDMA_FLM_ERROR(x) ((x) << S_TF_RDMA_FLM_ERROR)
626 
627 #define S_TF_RX_FLOW_CONTROL_DISABLE    48
628 #define V_TF_RX_FLOW_CONTROL_DISABLE(x) ((x) << S_TF_RX_FLOW_CONTROL_DISABLE)
629 
630 #define S_TF_DDP_INDICATE_OUT    15
631 #define V_TF_DDP_INDICATE_OUT(x) ((x) << S_TF_DDP_INDICATE_OUT)
632 
633 #define S_TF_DDP_ACTIVE_BUF    16
634 #define V_TF_DDP_ACTIVE_BUF(x) ((x) << S_TF_DDP_ACTIVE_BUF)
635 
636 #define S_TF_DDP_BUF0_VALID    17
637 #define V_TF_DDP_BUF0_VALID(x) ((x) << S_TF_DDP_BUF0_VALID)
638 
639 #define S_TF_DDP_BUF1_VALID    18
640 #define V_TF_DDP_BUF1_VALID(x) ((x) << S_TF_DDP_BUF1_VALID)
641 
642 #define S_TF_DDP_BUF0_INDICATE    19
643 #define V_TF_DDP_BUF0_INDICATE(x) ((x) << S_TF_DDP_BUF0_INDICATE)
644 
645 #define S_TF_DDP_BUF1_INDICATE    20
646 #define V_TF_DDP_BUF1_INDICATE(x) ((x) << S_TF_DDP_BUF1_INDICATE)
647 
648 #define S_TF_DDP_PUSH_DISABLE_0    21
649 #define V_TF_DDP_PUSH_DISABLE_0(x) ((x) << S_TF_DDP_PUSH_DISABLE_0)
650 
651 #define S_TF_DDP_PUSH_DISABLE_1    22
652 #define V_TF_DDP_PUSH_DISABLE_1(x) ((x) << S_TF_DDP_PUSH_DISABLE_1)
653 
654 #define S_TF_DDP_OFF    23
655 #define V_TF_DDP_OFF(x) ((x) << S_TF_DDP_OFF)
656 
657 #define S_TF_DDP_WAIT_FRAG    24
658 #define V_TF_DDP_WAIT_FRAG(x) ((x) << S_TF_DDP_WAIT_FRAG)
659 
660 #define S_TF_DDP_BUF_INF    25
661 #define V_TF_DDP_BUF_INF(x) ((x) << S_TF_DDP_BUF_INF)
662 
663 #define S_TF_DDP_RX2TX    26
664 #define V_TF_DDP_RX2TX(x) ((x) << S_TF_DDP_RX2TX)
665 
666 #define S_TF_DDP_BUF0_FLUSH    27
667 #define V_TF_DDP_BUF0_FLUSH(x) ((x) << S_TF_DDP_BUF0_FLUSH)
668 
669 #define S_TF_DDP_BUF1_FLUSH    28
670 #define V_TF_DDP_BUF1_FLUSH(x) ((x) << S_TF_DDP_BUF1_FLUSH)
671 
672 #define S_TF_DDP_PSH_NO_INVALIDATE0    29
673 #define V_TF_DDP_PSH_NO_INVALIDATE0(x) ((x) << S_TF_DDP_PSH_NO_INVALIDATE0)
674 
675 #define S_TF_DDP_PSH_NO_INVALIDATE1    30
676 #define V_TF_DDP_PSH_NO_INVALIDATE1(x) ((x) << S_TF_DDP_PSH_NO_INVALIDATE1)
677 
678 #endif /* _TCB_DEFS_H */
679