11a918486086cde783e1c2761fbd51df6af3dae5
[deb_dpdk.git] / drivers / net / sfc / base / efx_regs_ef10.h
1 /*
2  * Copyright (c) 2007-2016 Solarflare Communications Inc.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright notice,
9  *    this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright notice,
11  *    this list of conditions and the following disclaimer in the documentation
12  *    and/or other materials provided with the distribution.
13  *
14  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
16  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
18  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
21  * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
22  * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
23  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
24  * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25  *
26  * The views and conclusions contained in the software and documentation are
27  * those of the authors and should not be interpreted as representing official
28  * policies, either expressed or implied, of the FreeBSD Project.
29  */
30
31 #ifndef _SYS_EFX_EF10_REGS_H
32 #define _SYS_EFX_EF10_REGS_H
33
34 #ifdef  __cplusplus
35 extern "C" {
36 #endif
37
38 /**************************************************************************
39  * NOTE: the line below marks the start of the autogenerated section
40  * EF10 registers and descriptors
41  *
42  **************************************************************************
43  */
44
45 /*
46  * BIU_HW_REV_ID_REG(32bit):
47  *
48  */
49
50 #define ER_DZ_BIU_HW_REV_ID_REG_OFST 0x00000000
51 /* hunta0,medforda0=pcie_pf_bar2 */
52 #define ER_DZ_BIU_HW_REV_ID_REG_RESET 0xeb14face
53
54
55 #define ERF_DZ_HW_REV_ID_LBN 0
56 #define ERF_DZ_HW_REV_ID_WIDTH 32
57
58
59 /*
60  * BIU_MC_SFT_STATUS_REG(32bit):
61  *
62  */
63
64 #define ER_DZ_BIU_MC_SFT_STATUS_REG_OFST 0x00000010
65 /* hunta0,medforda0=pcie_pf_bar2 */
66 #define ER_DZ_BIU_MC_SFT_STATUS_REG_STEP 4
67 #define ER_DZ_BIU_MC_SFT_STATUS_REG_ROWS 8
68 #define ER_DZ_BIU_MC_SFT_STATUS_REG_RESET 0x1111face
69
70
71 #define ERF_DZ_MC_SFT_STATUS_LBN 0
72 #define ERF_DZ_MC_SFT_STATUS_WIDTH 32
73
74
75 /*
76  * BIU_INT_ISR_REG(32bit):
77  *
78  */
79
80 #define ER_DZ_BIU_INT_ISR_REG_OFST 0x00000090
81 /* hunta0,medforda0=pcie_pf_bar2 */
82 #define ER_DZ_BIU_INT_ISR_REG_RESET 0x0
83
84
85 #define ERF_DZ_ISR_REG_LBN 0
86 #define ERF_DZ_ISR_REG_WIDTH 32
87
88
89 /*
90  * MC_DB_LWRD_REG(32bit):
91  *
92  */
93
94 #define ER_DZ_MC_DB_LWRD_REG_OFST 0x00000200
95 /* hunta0,medforda0=pcie_pf_bar2 */
96 #define ER_DZ_MC_DB_LWRD_REG_RESET 0x0
97
98
99 #define ERF_DZ_MC_DOORBELL_L_LBN 0
100 #define ERF_DZ_MC_DOORBELL_L_WIDTH 32
101
102
103 /*
104  * MC_DB_HWRD_REG(32bit):
105  *
106  */
107
108 #define ER_DZ_MC_DB_HWRD_REG_OFST 0x00000204
109 /* hunta0,medforda0=pcie_pf_bar2 */
110 #define ER_DZ_MC_DB_HWRD_REG_RESET 0x0
111
112
113 #define ERF_DZ_MC_DOORBELL_H_LBN 0
114 #define ERF_DZ_MC_DOORBELL_H_WIDTH 32
115
116
117 /*
118  * EVQ_RPTR_REG(32bit):
119  *
120  */
121
122 #define ER_DZ_EVQ_RPTR_REG_OFST 0x00000400
123 /* hunta0,medforda0=pcie_pf_bar2 */
124 #define ER_DZ_EVQ_RPTR_REG_STEP 8192
125 #define ER_DZ_EVQ_RPTR_REG_ROWS 2048
126 #define ER_DZ_EVQ_RPTR_REG_RESET 0x0
127
128
129 #define ERF_DZ_EVQ_RPTR_VLD_LBN 15
130 #define ERF_DZ_EVQ_RPTR_VLD_WIDTH 1
131 #define ERF_DZ_EVQ_RPTR_LBN 0
132 #define ERF_DZ_EVQ_RPTR_WIDTH 15
133
134
135 /*
136  * EVQ_TMR_REG(32bit):
137  *
138  */
139
140 #define ER_DZ_EVQ_TMR_REG_OFST 0x00000420
141 /* hunta0,medforda0=pcie_pf_bar2 */
142 #define ER_DZ_EVQ_TMR_REG_STEP 8192
143 #define ER_DZ_EVQ_TMR_REG_ROWS 2048
144 #define ER_DZ_EVQ_TMR_REG_RESET 0x0
145
146
147 #define ERF_DZ_TC_TIMER_MODE_LBN 14
148 #define ERF_DZ_TC_TIMER_MODE_WIDTH 2
149 #define ERF_DZ_TC_TIMER_VAL_LBN 0
150 #define ERF_DZ_TC_TIMER_VAL_WIDTH 14
151
152
153 /*
154  * RX_DESC_UPD_REG(32bit):
155  *
156  */
157
158 #define ER_DZ_RX_DESC_UPD_REG_OFST 0x00000830
159 /* hunta0,medforda0=pcie_pf_bar2 */
160 #define ER_DZ_RX_DESC_UPD_REG_STEP 8192
161 #define ER_DZ_RX_DESC_UPD_REG_ROWS 2048
162 #define ER_DZ_RX_DESC_UPD_REG_RESET 0x0
163
164
165 #define ERF_DZ_RX_DESC_WPTR_LBN 0
166 #define ERF_DZ_RX_DESC_WPTR_WIDTH 12
167
168 /*
169  * TX_DESC_UPD_REG(96bit):
170  *
171  */
172
173 #define ER_DZ_TX_DESC_UPD_REG_OFST 0x00000a10
174 /* hunta0,medforda0=pcie_pf_bar2 */
175 #define ER_DZ_TX_DESC_UPD_REG_STEP 8192
176 #define ER_DZ_TX_DESC_UPD_REG_ROWS 2048
177 #define ER_DZ_TX_DESC_UPD_REG_RESET 0x0
178
179
180 #define ERF_DZ_RSVD_LBN 76
181 #define ERF_DZ_RSVD_WIDTH 20
182 #define ERF_DZ_TX_DESC_WPTR_LBN 64
183 #define ERF_DZ_TX_DESC_WPTR_WIDTH 12
184 #define ERF_DZ_TX_DESC_HWORD_LBN 32
185 #define ERF_DZ_TX_DESC_HWORD_WIDTH 32
186 #define ERF_DZ_TX_DESC_LWORD_LBN 0
187 #define ERF_DZ_TX_DESC_LWORD_WIDTH 32
188
189
190 /* ES_DRIVER_EV */
191 #define ESF_DZ_DRV_CODE_LBN 60
192 #define ESF_DZ_DRV_CODE_WIDTH 4
193 #define ESF_DZ_DRV_SUB_CODE_LBN 56
194 #define ESF_DZ_DRV_SUB_CODE_WIDTH 4
195 #define ESE_DZ_DRV_TIMER_EV 3
196 #define ESE_DZ_DRV_START_UP_EV 2
197 #define ESE_DZ_DRV_WAKE_UP_EV 1
198 #define ESF_DZ_DRV_SUB_DATA_DW0_LBN 0
199 #define ESF_DZ_DRV_SUB_DATA_DW0_WIDTH 32
200 #define ESF_DZ_DRV_SUB_DATA_DW1_LBN 32
201 #define ESF_DZ_DRV_SUB_DATA_DW1_WIDTH 24
202 #define ESF_DZ_DRV_SUB_DATA_LBN 0
203 #define ESF_DZ_DRV_SUB_DATA_WIDTH 56
204 #define ESF_DZ_DRV_EVQ_ID_LBN 0
205 #define ESF_DZ_DRV_EVQ_ID_WIDTH 14
206 #define ESF_DZ_DRV_TMR_ID_LBN 0
207 #define ESF_DZ_DRV_TMR_ID_WIDTH 14
208
209
210 /* ES_EVENT_ENTRY */
211 #define ESF_DZ_EV_CODE_LBN 60
212 #define ESF_DZ_EV_CODE_WIDTH 4
213 #define ESE_DZ_EV_CODE_MCDI_EV 12
214 #define ESE_DZ_EV_CODE_DRIVER_EV 5
215 #define ESE_DZ_EV_CODE_TX_EV 2
216 #define ESE_DZ_EV_CODE_RX_EV 0
217 #define ESE_DZ_OTHER other
218 #define ESF_DZ_EV_DATA_DW0_LBN 0
219 #define ESF_DZ_EV_DATA_DW0_WIDTH 32
220 #define ESF_DZ_EV_DATA_DW1_LBN 32
221 #define ESF_DZ_EV_DATA_DW1_WIDTH 28
222 #define ESF_DZ_EV_DATA_LBN 0
223 #define ESF_DZ_EV_DATA_WIDTH 60
224
225
226 /* ES_MC_EVENT */
227 #define ESF_DZ_MC_CODE_LBN 60
228 #define ESF_DZ_MC_CODE_WIDTH 4
229 #define ESF_DZ_MC_OVERRIDE_HOLDOFF_LBN 59
230 #define ESF_DZ_MC_OVERRIDE_HOLDOFF_WIDTH 1
231 #define ESF_DZ_MC_DROP_EVENT_LBN 58
232 #define ESF_DZ_MC_DROP_EVENT_WIDTH 1
233 #define ESF_DZ_MC_SOFT_DW0_LBN 0
234 #define ESF_DZ_MC_SOFT_DW0_WIDTH 32
235 #define ESF_DZ_MC_SOFT_DW1_LBN 32
236 #define ESF_DZ_MC_SOFT_DW1_WIDTH 26
237 #define ESF_DZ_MC_SOFT_LBN 0
238 #define ESF_DZ_MC_SOFT_WIDTH 58
239
240
241 /* ES_RX_EVENT */
242 #define ESF_DZ_RX_CODE_LBN 60
243 #define ESF_DZ_RX_CODE_WIDTH 4
244 #define ESF_DZ_RX_OVERRIDE_HOLDOFF_LBN 59
245 #define ESF_DZ_RX_OVERRIDE_HOLDOFF_WIDTH 1
246 #define ESF_DZ_RX_DROP_EVENT_LBN 58
247 #define ESF_DZ_RX_DROP_EVENT_WIDTH 1
248 #define ESF_DD_RX_EV_RSVD2_LBN 54
249 #define ESF_DD_RX_EV_RSVD2_WIDTH 4
250 #define ESF_EZ_RX_TCP_UDP_INNER_CHKSUM_ERR_LBN 57
251 #define ESF_EZ_RX_TCP_UDP_INNER_CHKSUM_ERR_WIDTH 1
252 #define ESF_EZ_RX_IP_INNER_CHKSUM_ERR_LBN 56
253 #define ESF_EZ_RX_IP_INNER_CHKSUM_ERR_WIDTH 1
254 #define ESF_EZ_RX_EV_RSVD2_LBN 54
255 #define ESF_EZ_RX_EV_RSVD2_WIDTH 2
256 #define ESF_DZ_RX_EV_SOFT2_LBN 52
257 #define ESF_DZ_RX_EV_SOFT2_WIDTH 2
258 #define ESF_DZ_RX_DSC_PTR_LBITS_LBN 48
259 #define ESF_DZ_RX_DSC_PTR_LBITS_WIDTH 4
260 #define ESF_DZ_RX_L4_CLASS_LBN 45
261 #define ESF_DZ_RX_L4_CLASS_WIDTH 3
262 #define ESE_DZ_L4_CLASS_RSVD7 7
263 #define ESE_DZ_L4_CLASS_RSVD6 6
264 #define ESE_DZ_L4_CLASS_RSVD5 5
265 #define ESE_DZ_L4_CLASS_RSVD4 4
266 #define ESE_DZ_L4_CLASS_RSVD3 3
267 #define ESE_DZ_L4_CLASS_UDP 2
268 #define ESE_DZ_L4_CLASS_TCP 1
269 #define ESE_DZ_L4_CLASS_UNKNOWN 0
270 #define ESF_DZ_RX_L3_CLASS_LBN 42
271 #define ESF_DZ_RX_L3_CLASS_WIDTH 3
272 #define ESE_DZ_L3_CLASS_RSVD7 7
273 #define ESE_DZ_L3_CLASS_IP6_FRAG 6
274 #define ESE_DZ_L3_CLASS_ARP 5
275 #define ESE_DZ_L3_CLASS_IP4_FRAG 4
276 #define ESE_DZ_L3_CLASS_FCOE 3
277 #define ESE_DZ_L3_CLASS_IP6 2
278 #define ESE_DZ_L3_CLASS_IP4 1
279 #define ESE_DZ_L3_CLASS_UNKNOWN 0
280 #define ESF_DZ_RX_ETH_TAG_CLASS_LBN 39
281 #define ESF_DZ_RX_ETH_TAG_CLASS_WIDTH 3
282 #define ESE_DZ_ETH_TAG_CLASS_RSVD7 7
283 #define ESE_DZ_ETH_TAG_CLASS_RSVD6 6
284 #define ESE_DZ_ETH_TAG_CLASS_RSVD5 5
285 #define ESE_DZ_ETH_TAG_CLASS_RSVD4 4
286 #define ESE_DZ_ETH_TAG_CLASS_RSVD3 3
287 #define ESE_DZ_ETH_TAG_CLASS_VLAN2 2
288 #define ESE_DZ_ETH_TAG_CLASS_VLAN1 1
289 #define ESE_DZ_ETH_TAG_CLASS_NONE 0
290 #define ESF_DZ_RX_ETH_BASE_CLASS_LBN 36
291 #define ESF_DZ_RX_ETH_BASE_CLASS_WIDTH 3
292 #define ESE_DZ_ETH_BASE_CLASS_LLC_SNAP 2
293 #define ESE_DZ_ETH_BASE_CLASS_LLC 1
294 #define ESE_DZ_ETH_BASE_CLASS_ETH2 0
295 #define ESF_DZ_RX_MAC_CLASS_LBN 35
296 #define ESF_DZ_RX_MAC_CLASS_WIDTH 1
297 #define ESE_DZ_MAC_CLASS_MCAST 1
298 #define ESE_DZ_MAC_CLASS_UCAST 0
299 #define ESF_DD_RX_EV_SOFT1_LBN 32
300 #define ESF_DD_RX_EV_SOFT1_WIDTH 3
301 #define ESF_EZ_RX_EV_SOFT1_LBN 34
302 #define ESF_EZ_RX_EV_SOFT1_WIDTH 1
303 #define ESF_EZ_RX_ENCAP_HDR_LBN 32
304 #define ESF_EZ_RX_ENCAP_HDR_WIDTH 2
305 #define ESE_EZ_ENCAP_HDR_GRE 2
306 #define ESE_EZ_ENCAP_HDR_VXLAN 1
307 #define ESE_EZ_ENCAP_HDR_NONE 0
308 #define ESF_DD_RX_EV_RSVD1_LBN 30
309 #define ESF_DD_RX_EV_RSVD1_WIDTH 2
310 #define ESF_EZ_RX_EV_RSVD1_LBN 31
311 #define ESF_EZ_RX_EV_RSVD1_WIDTH 1
312 #define ESF_EZ_RX_ABORT_LBN 30
313 #define ESF_EZ_RX_ABORT_WIDTH 1
314 #define ESF_DZ_RX_ECC_ERR_LBN 29
315 #define ESF_DZ_RX_ECC_ERR_WIDTH 1
316 #define ESF_DZ_RX_CRC1_ERR_LBN 28
317 #define ESF_DZ_RX_CRC1_ERR_WIDTH 1
318 #define ESF_DZ_RX_CRC0_ERR_LBN 27
319 #define ESF_DZ_RX_CRC0_ERR_WIDTH 1
320 #define ESF_DZ_RX_TCPUDP_CKSUM_ERR_LBN 26
321 #define ESF_DZ_RX_TCPUDP_CKSUM_ERR_WIDTH 1
322 #define ESF_DZ_RX_IPCKSUM_ERR_LBN 25
323 #define ESF_DZ_RX_IPCKSUM_ERR_WIDTH 1
324 #define ESF_DZ_RX_ECRC_ERR_LBN 24
325 #define ESF_DZ_RX_ECRC_ERR_WIDTH 1
326 #define ESF_DZ_RX_QLABEL_LBN 16
327 #define ESF_DZ_RX_QLABEL_WIDTH 5
328 #define ESF_DZ_RX_PARSE_INCOMPLETE_LBN 15
329 #define ESF_DZ_RX_PARSE_INCOMPLETE_WIDTH 1
330 #define ESF_DZ_RX_CONT_LBN 14
331 #define ESF_DZ_RX_CONT_WIDTH 1
332 #define ESF_DZ_RX_BYTES_LBN 0
333 #define ESF_DZ_RX_BYTES_WIDTH 14
334
335
336 /* ES_RX_KER_DESC */
337 #define ESF_DZ_RX_KER_RESERVED_LBN 62
338 #define ESF_DZ_RX_KER_RESERVED_WIDTH 2
339 #define ESF_DZ_RX_KER_BYTE_CNT_LBN 48
340 #define ESF_DZ_RX_KER_BYTE_CNT_WIDTH 14
341 #define ESF_DZ_RX_KER_BUF_ADDR_DW0_LBN 0
342 #define ESF_DZ_RX_KER_BUF_ADDR_DW0_WIDTH 32
343 #define ESF_DZ_RX_KER_BUF_ADDR_DW1_LBN 32
344 #define ESF_DZ_RX_KER_BUF_ADDR_DW1_WIDTH 16
345 #define ESF_DZ_RX_KER_BUF_ADDR_LBN 0
346 #define ESF_DZ_RX_KER_BUF_ADDR_WIDTH 48
347
348
349 /* ES_TX_CSUM_TSTAMP_DESC */
350 #define ESF_DZ_TX_DESC_IS_OPT_LBN 63
351 #define ESF_DZ_TX_DESC_IS_OPT_WIDTH 1
352 #define ESF_DZ_TX_OPTION_TYPE_LBN 60
353 #define ESF_DZ_TX_OPTION_TYPE_WIDTH 3
354 #define ESE_DZ_TX_OPTION_DESC_TSO 7
355 #define ESE_DZ_TX_OPTION_DESC_VLAN 6
356 #define ESE_DZ_TX_OPTION_DESC_CRC_CSUM 0
357 #define ESF_DZ_TX_OPTION_TS_AT_TXDP_LBN 8
358 #define ESF_DZ_TX_OPTION_TS_AT_TXDP_WIDTH 1
359 #define ESF_DZ_TX_OPTION_INNER_UDP_TCP_CSUM_LBN 7
360 #define ESF_DZ_TX_OPTION_INNER_UDP_TCP_CSUM_WIDTH 1
361 #define ESF_DZ_TX_OPTION_INNER_IP_CSUM_LBN 6
362 #define ESF_DZ_TX_OPTION_INNER_IP_CSUM_WIDTH 1
363 #define ESF_DZ_TX_TIMESTAMP_LBN 5
364 #define ESF_DZ_TX_TIMESTAMP_WIDTH 1
365 #define ESF_DZ_TX_OPTION_CRC_MODE_LBN 2
366 #define ESF_DZ_TX_OPTION_CRC_MODE_WIDTH 3
367 #define ESE_DZ_TX_OPTION_CRC_FCOIP_MPA 5
368 #define ESE_DZ_TX_OPTION_CRC_FCOIP_FCOE 4
369 #define ESE_DZ_TX_OPTION_CRC_ISCSI_HDR_AND_PYLD 3
370 #define ESE_DZ_TX_OPTION_CRC_ISCSI_HDR 2
371 #define ESE_DZ_TX_OPTION_CRC_FCOE 1
372 #define ESE_DZ_TX_OPTION_CRC_OFF 0
373 #define ESF_DZ_TX_OPTION_UDP_TCP_CSUM_LBN 1
374 #define ESF_DZ_TX_OPTION_UDP_TCP_CSUM_WIDTH 1
375 #define ESF_DZ_TX_OPTION_IP_CSUM_LBN 0
376 #define ESF_DZ_TX_OPTION_IP_CSUM_WIDTH 1
377
378
379 /* ES_TX_EVENT */
380 #define ESF_DZ_TX_CODE_LBN 60
381 #define ESF_DZ_TX_CODE_WIDTH 4
382 #define ESF_DZ_TX_OVERRIDE_HOLDOFF_LBN 59
383 #define ESF_DZ_TX_OVERRIDE_HOLDOFF_WIDTH 1
384 #define ESF_DZ_TX_DROP_EVENT_LBN 58
385 #define ESF_DZ_TX_DROP_EVENT_WIDTH 1
386 #define ESF_DD_TX_EV_RSVD_LBN 48
387 #define ESF_DD_TX_EV_RSVD_WIDTH 10
388 #define ESF_EZ_TCP_UDP_INNER_CHKSUM_ERR_LBN 57
389 #define ESF_EZ_TCP_UDP_INNER_CHKSUM_ERR_WIDTH 1
390 #define ESF_EZ_IP_INNER_CHKSUM_ERR_LBN 56
391 #define ESF_EZ_IP_INNER_CHKSUM_ERR_WIDTH 1
392 #define ESF_EZ_TX_EV_RSVD_LBN 48
393 #define ESF_EZ_TX_EV_RSVD_WIDTH 8
394 #define ESF_DZ_TX_SOFT2_LBN 32
395 #define ESF_DZ_TX_SOFT2_WIDTH 16
396 #define ESF_DD_TX_SOFT1_LBN 24
397 #define ESF_DD_TX_SOFT1_WIDTH 8
398 #define ESF_EZ_TX_CAN_MERGE_LBN 31
399 #define ESF_EZ_TX_CAN_MERGE_WIDTH 1
400 #define ESF_EZ_TX_SOFT1_LBN 24
401 #define ESF_EZ_TX_SOFT1_WIDTH 7
402 #define ESF_DZ_TX_QLABEL_LBN 16
403 #define ESF_DZ_TX_QLABEL_WIDTH 5
404 #define ESF_DZ_TX_DESCR_INDX_LBN 0
405 #define ESF_DZ_TX_DESCR_INDX_WIDTH 16
406
407
408 /* ES_TX_KER_DESC */
409 #define ESF_DZ_TX_KER_TYPE_LBN 63
410 #define ESF_DZ_TX_KER_TYPE_WIDTH 1
411 #define ESF_DZ_TX_KER_CONT_LBN 62
412 #define ESF_DZ_TX_KER_CONT_WIDTH 1
413 #define ESF_DZ_TX_KER_BYTE_CNT_LBN 48
414 #define ESF_DZ_TX_KER_BYTE_CNT_WIDTH 14
415 #define ESF_DZ_TX_KER_BUF_ADDR_DW0_LBN 0
416 #define ESF_DZ_TX_KER_BUF_ADDR_DW0_WIDTH 32
417 #define ESF_DZ_TX_KER_BUF_ADDR_DW1_LBN 32
418 #define ESF_DZ_TX_KER_BUF_ADDR_DW1_WIDTH 16
419 #define ESF_DZ_TX_KER_BUF_ADDR_LBN 0
420 #define ESF_DZ_TX_KER_BUF_ADDR_WIDTH 48
421
422
423 /* ES_TX_PIO_DESC */
424 #define ESF_DZ_TX_PIO_TYPE_LBN 63
425 #define ESF_DZ_TX_PIO_TYPE_WIDTH 1
426 #define ESF_DZ_TX_PIO_OPT_LBN 60
427 #define ESF_DZ_TX_PIO_OPT_WIDTH 3
428 #define ESF_DZ_TX_PIO_CONT_LBN 59
429 #define ESF_DZ_TX_PIO_CONT_WIDTH 1
430 #define ESF_DZ_TX_PIO_BYTE_CNT_LBN 32
431 #define ESF_DZ_TX_PIO_BYTE_CNT_WIDTH 12
432 #define ESF_DZ_TX_PIO_BUF_ADDR_LBN 0
433 #define ESF_DZ_TX_PIO_BUF_ADDR_WIDTH 12
434
435
436 /* ES_TX_TSO_DESC */
437 #define ESF_DZ_TX_DESC_IS_OPT_LBN 63
438 #define ESF_DZ_TX_DESC_IS_OPT_WIDTH 1
439 #define ESF_DZ_TX_OPTION_TYPE_LBN 60
440 #define ESF_DZ_TX_OPTION_TYPE_WIDTH 3
441 #define ESE_DZ_TX_OPTION_DESC_TSO 7
442 #define ESE_DZ_TX_OPTION_DESC_VLAN 6
443 #define ESE_DZ_TX_OPTION_DESC_CRC_CSUM 0
444 #define ESF_DZ_TX_TSO_OPTION_TYPE_LBN 56
445 #define ESF_DZ_TX_TSO_OPTION_TYPE_WIDTH 4
446 #define ESE_DZ_TX_TSO_OPTION_DESC_ENCAP 1
447 #define ESE_DZ_TX_TSO_OPTION_DESC_NORMAL 0
448 #define ESF_DZ_TX_TSO_TCP_FLAGS_LBN 48
449 #define ESF_DZ_TX_TSO_TCP_FLAGS_WIDTH 8
450 #define ESF_DZ_TX_TSO_IP_ID_LBN 32
451 #define ESF_DZ_TX_TSO_IP_ID_WIDTH 16
452 #define ESF_DZ_TX_TSO_TCP_SEQNO_LBN 0
453 #define ESF_DZ_TX_TSO_TCP_SEQNO_WIDTH 32
454
455
456 /* TX_TSO_FATSO2A_DESC */
457 #define ESF_DZ_TX_DESC_IS_OPT_LBN 63
458 #define ESF_DZ_TX_DESC_IS_OPT_WIDTH 1
459 #define ESF_DZ_TX_OPTION_TYPE_LBN 60
460 #define ESF_DZ_TX_OPTION_TYPE_WIDTH 3
461 #define ESE_DZ_TX_OPTION_DESC_TSO 7
462 #define ESE_DZ_TX_OPTION_DESC_VLAN 6
463 #define ESE_DZ_TX_OPTION_DESC_CRC_CSUM 0
464 #define ESF_DZ_TX_TSO_OPTION_TYPE_LBN 56
465 #define ESF_DZ_TX_TSO_OPTION_TYPE_WIDTH 4
466 #define ESE_DZ_TX_TSO_OPTION_DESC_FATSO2B 3
467 #define ESE_DZ_TX_TSO_OPTION_DESC_FATSO2A 2
468 #define ESE_DZ_TX_TSO_OPTION_DESC_ENCAP 1
469 #define ESE_DZ_TX_TSO_OPTION_DESC_NORMAL 0
470 #define ESF_DZ_TX_TSO_IP_ID_LBN 32
471 #define ESF_DZ_TX_TSO_IP_ID_WIDTH 16
472 #define ESF_DZ_TX_TSO_TCP_SEQNO_LBN 0
473 #define ESF_DZ_TX_TSO_TCP_SEQNO_WIDTH 32
474
475
476 /* TX_TSO_FATSO2B_DESC */
477 #define ESF_DZ_TX_DESC_IS_OPT_LBN 63
478 #define ESF_DZ_TX_DESC_IS_OPT_WIDTH 1
479 #define ESF_DZ_TX_OPTION_TYPE_LBN 60
480 #define ESF_DZ_TX_OPTION_TYPE_WIDTH 3
481 #define ESE_DZ_TX_OPTION_DESC_TSO 7
482 #define ESE_DZ_TX_OPTION_DESC_VLAN 6
483 #define ESE_DZ_TX_OPTION_DESC_CRC_CSUM 0
484 #define ESF_DZ_TX_TSO_OPTION_TYPE_LBN 56
485 #define ESF_DZ_TX_TSO_OPTION_TYPE_WIDTH 4
486 #define ESE_DZ_TX_TSO_OPTION_DESC_FATSO2B 3
487 #define ESE_DZ_TX_TSO_OPTION_DESC_FATSO2A 2
488 #define ESE_DZ_TX_TSO_OPTION_DESC_ENCAP 1
489 #define ESE_DZ_TX_TSO_OPTION_DESC_NORMAL 0
490 #define ESF_DZ_TX_TSO_OUTER_IP_ID_LBN 16
491 #define ESF_DZ_TX_TSO_OUTER_IP_ID_WIDTH 16
492 #define ESF_DZ_TX_TSO_TCP_MSS_LBN 32
493 #define ESF_DZ_TX_TSO_TCP_MSS_WIDTH 16
494 #define ESF_DZ_TX_TSO_INNER_PE_CSUM_LBN 0
495 #define ESF_DZ_TX_TSO_INNER_PE_CSUM_WIDTH 16
496
497
498 /* ES_TX_VLAN_DESC */
499 #define ESF_DZ_TX_DESC_IS_OPT_LBN 63
500 #define ESF_DZ_TX_DESC_IS_OPT_WIDTH 1
501 #define ESF_DZ_TX_OPTION_TYPE_LBN 60
502 #define ESF_DZ_TX_OPTION_TYPE_WIDTH 3
503 #define ESE_DZ_TX_OPTION_DESC_TSO 7
504 #define ESE_DZ_TX_OPTION_DESC_VLAN 6
505 #define ESE_DZ_TX_OPTION_DESC_CRC_CSUM 0
506 #define ESF_DZ_TX_VLAN_OP_LBN 32
507 #define ESF_DZ_TX_VLAN_OP_WIDTH 2
508 #define ESF_DZ_TX_VLAN_TAG2_LBN 16
509 #define ESF_DZ_TX_VLAN_TAG2_WIDTH 16
510 #define ESF_DZ_TX_VLAN_TAG1_LBN 0
511 #define ESF_DZ_TX_VLAN_TAG1_WIDTH 16
512
513
514 /*************************************************************************
515  * NOTE: the comment line above marks the end of the autogenerated section
516  */
517
518 /*
519  * The workaround for bug 35388 requires multiplexing writes through
520  * the ERF_DZ_TX_DESC_WPTR address.
521  * TX_DESC_UPD: 0ppppppppppp               (bit 11 lost)
522  * EVQ_RPTR:    1000hhhhhhhh, 1001llllllll (split into high and low bits)
523  * EVQ_TMR:     11mmvvvvvvvv               (bits 8:13 of value lost)
524  */
525 #define ER_DD_EVQ_INDIRECT_OFST (ER_DZ_TX_DESC_UPD_REG_OFST + 2 * 4)
526 #define ER_DD_EVQ_INDIRECT_STEP ER_DZ_TX_DESC_UPD_REG_STEP
527 #define ERF_DD_EVQ_IND_RPTR_FLAGS_LBN 8
528 #define ERF_DD_EVQ_IND_RPTR_FLAGS_WIDTH 4
529 #define EFE_DD_EVQ_IND_RPTR_FLAGS_HIGH 8
530 #define EFE_DD_EVQ_IND_RPTR_FLAGS_LOW 9
531 #define ERF_DD_EVQ_IND_RPTR_LBN 0
532 #define ERF_DD_EVQ_IND_RPTR_WIDTH 8
533 #define ERF_DD_EVQ_IND_TIMER_FLAGS_LBN 10
534 #define ERF_DD_EVQ_IND_TIMER_FLAGS_WIDTH 2
535 #define EFE_DD_EVQ_IND_TIMER_FLAGS 3
536 #define ERF_DD_EVQ_IND_TIMER_MODE_LBN 8
537 #define ERF_DD_EVQ_IND_TIMER_MODE_WIDTH 2
538 #define ERF_DD_EVQ_IND_TIMER_VAL_LBN 0
539 #define ERF_DD_EVQ_IND_TIMER_VAL_WIDTH 8
540
541 /* Packed stream magic doorbell command */
542 #define ERF_DZ_RX_DESC_MAGIC_DOORBELL_LBN 11
543 #define ERF_DZ_RX_DESC_MAGIC_DOORBELL_WIDTH 1
544
545 #define ERF_DZ_RX_DESC_MAGIC_CMD_LBN 8
546 #define ERF_DZ_RX_DESC_MAGIC_CMD_WIDTH 3
547 #define ERE_DZ_RX_DESC_MAGIC_CMD_PS_CREDITS 0
548
549 #define ERF_DZ_RX_DESC_MAGIC_DATA_LBN 0
550 #define ERF_DZ_RX_DESC_MAGIC_DATA_WIDTH 8
551
552 /* Packed stream RX packet prefix */
553 #define ES_DZ_PS_RX_PREFIX_TSTAMP_LBN 0
554 #define ES_DZ_PS_RX_PREFIX_TSTAMP_WIDTH 32
555 #define ES_DZ_PS_RX_PREFIX_CAP_LEN_LBN 32
556 #define ES_DZ_PS_RX_PREFIX_CAP_LEN_WIDTH 16
557 #define ES_DZ_PS_RX_PREFIX_ORIG_LEN_LBN 48
558 #define ES_DZ_PS_RX_PREFIX_ORIG_LEN_WIDTH 16
559
560 /*
561  * An extra flag for the packed stream mode,
562  * signalling the start of a new buffer
563  */
564 #define ESF_DZ_RX_EV_ROTATE_LBN 53
565 #define ESF_DZ_RX_EV_ROTATE_WIDTH 1
566
567 #ifdef  __cplusplus
568 }
569 #endif
570
571 #endif /* _SYS_EFX_EF10_REGS_H */