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