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