1 /**************************************************************************** 2 * Driver for Solarflare network controllers and boards 3 * Copyright 2012-2013 Solarflare Communications Inc. 4 * 5 * This program is free software; you can redistribute it and/or modify it 6 * under the terms of the GNU General Public License version 2 as published 7 * by the Free Software Foundation, incorporated herein by reference. 8 */ 9 10 #ifndef EFX_EF10_REGS_H 11 #define EFX_EF10_REGS_H 12 13 /* EF10 hardware architecture definitions have a name prefix following 14 * the format: 15 * 16 * E<type>_<min-rev><max-rev>_ 17 * 18 * The following <type> strings are used: 19 * 20 * MMIO register Host memory structure 21 * ------------------------------------------------------------- 22 * Address R 23 * Bitfield RF SF 24 * Enumerator FE SE 25 * 26 * <min-rev> is the first revision to which the definition applies: 27 * 28 * D: Huntington A0 29 * 30 * If the definition has been changed or removed in later revisions 31 * then <max-rev> is the last revision to which the definition applies; 32 * otherwise it is "Z". 33 */ 34 35 /************************************************************************** 36 * 37 * EF10 registers and descriptors 38 * 39 ************************************************************************** 40 */ 41 42 /* BIU_HW_REV_ID_REG: */ 43 #define ER_DZ_BIU_HW_REV_ID 0x00000000 44 #define ERF_DZ_HW_REV_ID_LBN 0 45 #define ERF_DZ_HW_REV_ID_WIDTH 32 46 47 /* BIU_MC_SFT_STATUS_REG: */ 48 #define ER_DZ_BIU_MC_SFT_STATUS 0x00000010 49 #define ER_DZ_BIU_MC_SFT_STATUS_STEP 4 50 #define ER_DZ_BIU_MC_SFT_STATUS_ROWS 8 51 #define ERF_DZ_MC_SFT_STATUS_LBN 0 52 #define ERF_DZ_MC_SFT_STATUS_WIDTH 32 53 54 /* BIU_INT_ISR_REG: */ 55 #define ER_DZ_BIU_INT_ISR 0x00000090 56 #define ERF_DZ_ISR_REG_LBN 0 57 #define ERF_DZ_ISR_REG_WIDTH 32 58 59 /* MC_DB_LWRD_REG: */ 60 #define ER_DZ_MC_DB_LWRD 0x00000200 61 #define ERF_DZ_MC_DOORBELL_L_LBN 0 62 #define ERF_DZ_MC_DOORBELL_L_WIDTH 32 63 64 /* MC_DB_HWRD_REG: */ 65 #define ER_DZ_MC_DB_HWRD 0x00000204 66 #define ERF_DZ_MC_DOORBELL_H_LBN 0 67 #define ERF_DZ_MC_DOORBELL_H_WIDTH 32 68 69 /* EVQ_RPTR_REG: */ 70 #define ER_DZ_EVQ_RPTR 0x00000400 71 #define ER_DZ_EVQ_RPTR_STEP 8192 72 #define ER_DZ_EVQ_RPTR_ROWS 2048 73 #define ERF_DZ_EVQ_RPTR_VLD_LBN 15 74 #define ERF_DZ_EVQ_RPTR_VLD_WIDTH 1 75 #define ERF_DZ_EVQ_RPTR_LBN 0 76 #define ERF_DZ_EVQ_RPTR_WIDTH 15 77 78 /* EVQ_TMR_REG: */ 79 #define ER_DZ_EVQ_TMR 0x00000420 80 #define ER_DZ_EVQ_TMR_STEP 8192 81 #define ER_DZ_EVQ_TMR_ROWS 2048 82 #define ERF_DZ_TC_TIMER_MODE_LBN 14 83 #define ERF_DZ_TC_TIMER_MODE_WIDTH 2 84 #define ERF_DZ_TC_TIMER_VAL_LBN 0 85 #define ERF_DZ_TC_TIMER_VAL_WIDTH 14 86 87 /* RX_DESC_UPD_REG: */ 88 #define ER_DZ_RX_DESC_UPD 0x00000830 89 #define ER_DZ_RX_DESC_UPD_STEP 8192 90 #define ER_DZ_RX_DESC_UPD_ROWS 2048 91 #define ERF_DZ_RX_DESC_WPTR_LBN 0 92 #define ERF_DZ_RX_DESC_WPTR_WIDTH 12 93 94 /* TX_DESC_UPD_REG: */ 95 #define ER_DZ_TX_DESC_UPD 0x00000a10 96 #define ER_DZ_TX_DESC_UPD_STEP 8192 97 #define ER_DZ_TX_DESC_UPD_ROWS 2048 98 #define ERF_DZ_RSVD_LBN 76 99 #define ERF_DZ_RSVD_WIDTH 20 100 #define ERF_DZ_TX_DESC_WPTR_LBN 64 101 #define ERF_DZ_TX_DESC_WPTR_WIDTH 12 102 #define ERF_DZ_TX_DESC_HWORD_LBN 32 103 #define ERF_DZ_TX_DESC_HWORD_WIDTH 32 104 #define ERF_DZ_TX_DESC_LWORD_LBN 0 105 #define ERF_DZ_TX_DESC_LWORD_WIDTH 32 106 107 /* DRIVER_EV */ 108 #define ESF_DZ_DRV_CODE_LBN 60 109 #define ESF_DZ_DRV_CODE_WIDTH 4 110 #define ESF_DZ_DRV_SUB_CODE_LBN 56 111 #define ESF_DZ_DRV_SUB_CODE_WIDTH 4 112 #define ESE_DZ_DRV_TIMER_EV 3 113 #define ESE_DZ_DRV_START_UP_EV 2 114 #define ESE_DZ_DRV_WAKE_UP_EV 1 115 #define ESF_DZ_DRV_SUB_DATA_LBN 0 116 #define ESF_DZ_DRV_SUB_DATA_WIDTH 56 117 #define ESF_DZ_DRV_EVQ_ID_LBN 0 118 #define ESF_DZ_DRV_EVQ_ID_WIDTH 14 119 #define ESF_DZ_DRV_TMR_ID_LBN 0 120 #define ESF_DZ_DRV_TMR_ID_WIDTH 14 121 122 /* EVENT_ENTRY */ 123 #define ESF_DZ_EV_CODE_LBN 60 124 #define ESF_DZ_EV_CODE_WIDTH 4 125 #define ESE_DZ_EV_CODE_MCDI_EV 12 126 #define ESE_DZ_EV_CODE_DRIVER_EV 5 127 #define ESE_DZ_EV_CODE_TX_EV 2 128 #define ESE_DZ_EV_CODE_RX_EV 0 129 #define ESE_DZ_OTHER other 130 #define ESF_DZ_EV_DATA_LBN 0 131 #define ESF_DZ_EV_DATA_WIDTH 60 132 133 /* MC_EVENT */ 134 #define ESF_DZ_MC_CODE_LBN 60 135 #define ESF_DZ_MC_CODE_WIDTH 4 136 #define ESF_DZ_MC_OVERRIDE_HOLDOFF_LBN 59 137 #define ESF_DZ_MC_OVERRIDE_HOLDOFF_WIDTH 1 138 #define ESF_DZ_MC_DROP_EVENT_LBN 58 139 #define ESF_DZ_MC_DROP_EVENT_WIDTH 1 140 #define ESF_DZ_MC_SOFT_LBN 0 141 #define ESF_DZ_MC_SOFT_WIDTH 58 142 143 /* RX_EVENT */ 144 #define ESF_DZ_RX_CODE_LBN 60 145 #define ESF_DZ_RX_CODE_WIDTH 4 146 #define ESF_DZ_RX_OVERRIDE_HOLDOFF_LBN 59 147 #define ESF_DZ_RX_OVERRIDE_HOLDOFF_WIDTH 1 148 #define ESF_DZ_RX_DROP_EVENT_LBN 58 149 #define ESF_DZ_RX_DROP_EVENT_WIDTH 1 150 #define ESF_DZ_RX_EV_RSVD2_LBN 54 151 #define ESF_DZ_RX_EV_RSVD2_WIDTH 4 152 #define ESF_DZ_RX_EV_SOFT2_LBN 52 153 #define ESF_DZ_RX_EV_SOFT2_WIDTH 2 154 #define ESF_DZ_RX_DSC_PTR_LBITS_LBN 48 155 #define ESF_DZ_RX_DSC_PTR_LBITS_WIDTH 4 156 #define ESF_DZ_RX_L4_CLASS_LBN 45 157 #define ESF_DZ_RX_L4_CLASS_WIDTH 3 158 #define ESE_DZ_L4_CLASS_RSVD7 7 159 #define ESE_DZ_L4_CLASS_RSVD6 6 160 #define ESE_DZ_L4_CLASS_RSVD5 5 161 #define ESE_DZ_L4_CLASS_RSVD4 4 162 #define ESE_DZ_L4_CLASS_RSVD3 3 163 #define ESE_DZ_L4_CLASS_UDP 2 164 #define ESE_DZ_L4_CLASS_TCP 1 165 #define ESE_DZ_L4_CLASS_UNKNOWN 0 166 #define ESF_DZ_RX_L3_CLASS_LBN 42 167 #define ESF_DZ_RX_L3_CLASS_WIDTH 3 168 #define ESE_DZ_L3_CLASS_RSVD7 7 169 #define ESE_DZ_L3_CLASS_IP6_FRAG 6 170 #define ESE_DZ_L3_CLASS_ARP 5 171 #define ESE_DZ_L3_CLASS_IP4_FRAG 4 172 #define ESE_DZ_L3_CLASS_FCOE 3 173 #define ESE_DZ_L3_CLASS_IP6 2 174 #define ESE_DZ_L3_CLASS_IP4 1 175 #define ESE_DZ_L3_CLASS_UNKNOWN 0 176 #define ESF_DZ_RX_ETH_TAG_CLASS_LBN 39 177 #define ESF_DZ_RX_ETH_TAG_CLASS_WIDTH 3 178 #define ESE_DZ_ETH_TAG_CLASS_RSVD7 7 179 #define ESE_DZ_ETH_TAG_CLASS_RSVD6 6 180 #define ESE_DZ_ETH_TAG_CLASS_RSVD5 5 181 #define ESE_DZ_ETH_TAG_CLASS_RSVD4 4 182 #define ESE_DZ_ETH_TAG_CLASS_RSVD3 3 183 #define ESE_DZ_ETH_TAG_CLASS_VLAN2 2 184 #define ESE_DZ_ETH_TAG_CLASS_VLAN1 1 185 #define ESE_DZ_ETH_TAG_CLASS_NONE 0 186 #define ESF_DZ_RX_ETH_BASE_CLASS_LBN 36 187 #define ESF_DZ_RX_ETH_BASE_CLASS_WIDTH 3 188 #define ESE_DZ_ETH_BASE_CLASS_LLC_SNAP 2 189 #define ESE_DZ_ETH_BASE_CLASS_LLC 1 190 #define ESE_DZ_ETH_BASE_CLASS_ETH2 0 191 #define ESF_DZ_RX_MAC_CLASS_LBN 35 192 #define ESF_DZ_RX_MAC_CLASS_WIDTH 1 193 #define ESE_DZ_MAC_CLASS_MCAST 1 194 #define ESE_DZ_MAC_CLASS_UCAST 0 195 #define ESF_DZ_RX_EV_SOFT1_LBN 32 196 #define ESF_DZ_RX_EV_SOFT1_WIDTH 3 197 #define ESF_DZ_RX_EV_RSVD1_LBN 31 198 #define ESF_DZ_RX_EV_RSVD1_WIDTH 1 199 #define ESF_DZ_RX_ABORT_LBN 30 200 #define ESF_DZ_RX_ABORT_WIDTH 1 201 #define ESF_DZ_RX_ECC_ERR_LBN 29 202 #define ESF_DZ_RX_ECC_ERR_WIDTH 1 203 #define ESF_DZ_RX_CRC1_ERR_LBN 28 204 #define ESF_DZ_RX_CRC1_ERR_WIDTH 1 205 #define ESF_DZ_RX_CRC0_ERR_LBN 27 206 #define ESF_DZ_RX_CRC0_ERR_WIDTH 1 207 #define ESF_DZ_RX_TCPUDP_CKSUM_ERR_LBN 26 208 #define ESF_DZ_RX_TCPUDP_CKSUM_ERR_WIDTH 1 209 #define ESF_DZ_RX_IPCKSUM_ERR_LBN 25 210 #define ESF_DZ_RX_IPCKSUM_ERR_WIDTH 1 211 #define ESF_DZ_RX_ECRC_ERR_LBN 24 212 #define ESF_DZ_RX_ECRC_ERR_WIDTH 1 213 #define ESF_DZ_RX_QLABEL_LBN 16 214 #define ESF_DZ_RX_QLABEL_WIDTH 5 215 #define ESF_DZ_RX_PARSE_INCOMPLETE_LBN 15 216 #define ESF_DZ_RX_PARSE_INCOMPLETE_WIDTH 1 217 #define ESF_DZ_RX_CONT_LBN 14 218 #define ESF_DZ_RX_CONT_WIDTH 1 219 #define ESF_DZ_RX_BYTES_LBN 0 220 #define ESF_DZ_RX_BYTES_WIDTH 14 221 222 /* RX_KER_DESC */ 223 #define ESF_DZ_RX_KER_RESERVED_LBN 62 224 #define ESF_DZ_RX_KER_RESERVED_WIDTH 2 225 #define ESF_DZ_RX_KER_BYTE_CNT_LBN 48 226 #define ESF_DZ_RX_KER_BYTE_CNT_WIDTH 14 227 #define ESF_DZ_RX_KER_BUF_ADDR_LBN 0 228 #define ESF_DZ_RX_KER_BUF_ADDR_WIDTH 48 229 230 /* RX_USER_DESC */ 231 #define ESF_DZ_RX_USR_RESERVED_LBN 62 232 #define ESF_DZ_RX_USR_RESERVED_WIDTH 2 233 #define ESF_DZ_RX_USR_BYTE_CNT_LBN 48 234 #define ESF_DZ_RX_USR_BYTE_CNT_WIDTH 14 235 #define ESF_DZ_RX_USR_BUF_PAGE_SIZE_LBN 44 236 #define ESF_DZ_RX_USR_BUF_PAGE_SIZE_WIDTH 4 237 #define ESE_DZ_USR_BUF_PAGE_SZ_4MB 10 238 #define ESE_DZ_USR_BUF_PAGE_SZ_1MB 8 239 #define ESE_DZ_USR_BUF_PAGE_SZ_64KB 4 240 #define ESE_DZ_USR_BUF_PAGE_SZ_4KB 0 241 #define ESF_DZ_RX_USR_BUF_ID_OFFSET_LBN 0 242 #define ESF_DZ_RX_USR_BUF_ID_OFFSET_WIDTH 44 243 #define ESF_DZ_RX_USR_4KBPS_BUF_ID_LBN 12 244 #define ESF_DZ_RX_USR_4KBPS_BUF_ID_WIDTH 32 245 #define ESF_DZ_RX_USR_64KBPS_BUF_ID_LBN 16 246 #define ESF_DZ_RX_USR_64KBPS_BUF_ID_WIDTH 28 247 #define ESF_DZ_RX_USR_1MBPS_BUF_ID_LBN 20 248 #define ESF_DZ_RX_USR_1MBPS_BUF_ID_WIDTH 24 249 #define ESF_DZ_RX_USR_4MBPS_BUF_ID_LBN 22 250 #define ESF_DZ_RX_USR_4MBPS_BUF_ID_WIDTH 22 251 #define ESF_DZ_RX_USR_4MBPS_BYTE_OFFSET_LBN 0 252 #define ESF_DZ_RX_USR_4MBPS_BYTE_OFFSET_WIDTH 22 253 #define ESF_DZ_RX_USR_1MBPS_BYTE_OFFSET_LBN 0 254 #define ESF_DZ_RX_USR_1MBPS_BYTE_OFFSET_WIDTH 20 255 #define ESF_DZ_RX_USR_64KBPS_BYTE_OFFSET_LBN 0 256 #define ESF_DZ_RX_USR_64KBPS_BYTE_OFFSET_WIDTH 16 257 #define ESF_DZ_RX_USR_4KBPS_BYTE_OFFSET_LBN 0 258 #define ESF_DZ_RX_USR_4KBPS_BYTE_OFFSET_WIDTH 12 259 260 /* TX_CSUM_TSTAMP_DESC */ 261 #define ESF_DZ_TX_DESC_IS_OPT_LBN 63 262 #define ESF_DZ_TX_DESC_IS_OPT_WIDTH 1 263 #define ESF_DZ_TX_OPTION_TYPE_LBN 60 264 #define ESF_DZ_TX_OPTION_TYPE_WIDTH 3 265 #define ESE_DZ_TX_OPTION_DESC_TSO 7 266 #define ESE_DZ_TX_OPTION_DESC_VLAN 6 267 #define ESE_DZ_TX_OPTION_DESC_CRC_CSUM 0 268 #define ESF_DZ_TX_TIMESTAMP_LBN 5 269 #define ESF_DZ_TX_TIMESTAMP_WIDTH 1 270 #define ESF_DZ_TX_OPTION_CRC_MODE_LBN 2 271 #define ESF_DZ_TX_OPTION_CRC_MODE_WIDTH 3 272 #define ESE_DZ_TX_OPTION_CRC_FCOIP_MPA 5 273 #define ESE_DZ_TX_OPTION_CRC_FCOIP_FCOE 4 274 #define ESE_DZ_TX_OPTION_CRC_ISCSI_HDR_AND_PYLD 3 275 #define ESE_DZ_TX_OPTION_CRC_ISCSI_HDR 2 276 #define ESE_DZ_TX_OPTION_CRC_FCOE 1 277 #define ESE_DZ_TX_OPTION_CRC_OFF 0 278 #define ESF_DZ_TX_OPTION_UDP_TCP_CSUM_LBN 1 279 #define ESF_DZ_TX_OPTION_UDP_TCP_CSUM_WIDTH 1 280 #define ESF_DZ_TX_OPTION_IP_CSUM_LBN 0 281 #define ESF_DZ_TX_OPTION_IP_CSUM_WIDTH 1 282 283 /* TX_EVENT */ 284 #define ESF_DZ_TX_CODE_LBN 60 285 #define ESF_DZ_TX_CODE_WIDTH 4 286 #define ESF_DZ_TX_OVERRIDE_HOLDOFF_LBN 59 287 #define ESF_DZ_TX_OVERRIDE_HOLDOFF_WIDTH 1 288 #define ESF_DZ_TX_DROP_EVENT_LBN 58 289 #define ESF_DZ_TX_DROP_EVENT_WIDTH 1 290 #define ESF_DZ_TX_EV_RSVD_LBN 48 291 #define ESF_DZ_TX_EV_RSVD_WIDTH 10 292 #define ESF_DZ_TX_SOFT2_LBN 32 293 #define ESF_DZ_TX_SOFT2_WIDTH 16 294 #define ESF_DZ_TX_CAN_MERGE_LBN 31 295 #define ESF_DZ_TX_CAN_MERGE_WIDTH 1 296 #define ESF_DZ_TX_SOFT1_LBN 24 297 #define ESF_DZ_TX_SOFT1_WIDTH 7 298 #define ESF_DZ_TX_QLABEL_LBN 16 299 #define ESF_DZ_TX_QLABEL_WIDTH 5 300 #define ESF_DZ_TX_DESCR_INDX_LBN 0 301 #define ESF_DZ_TX_DESCR_INDX_WIDTH 16 302 303 /* TX_KER_DESC */ 304 #define ESF_DZ_TX_KER_TYPE_LBN 63 305 #define ESF_DZ_TX_KER_TYPE_WIDTH 1 306 #define ESF_DZ_TX_KER_CONT_LBN 62 307 #define ESF_DZ_TX_KER_CONT_WIDTH 1 308 #define ESF_DZ_TX_KER_BYTE_CNT_LBN 48 309 #define ESF_DZ_TX_KER_BYTE_CNT_WIDTH 14 310 #define ESF_DZ_TX_KER_BUF_ADDR_LBN 0 311 #define ESF_DZ_TX_KER_BUF_ADDR_WIDTH 48 312 313 /* TX_PIO_DESC */ 314 #define ESF_DZ_TX_PIO_TYPE_LBN 63 315 #define ESF_DZ_TX_PIO_TYPE_WIDTH 1 316 #define ESF_DZ_TX_PIO_OPT_LBN 60 317 #define ESF_DZ_TX_PIO_OPT_WIDTH 3 318 #define ESE_DZ_TX_OPTION_DESC_PIO 1 319 #define ESF_DZ_TX_PIO_CONT_LBN 59 320 #define ESF_DZ_TX_PIO_CONT_WIDTH 1 321 #define ESF_DZ_TX_PIO_BYTE_CNT_LBN 32 322 #define ESF_DZ_TX_PIO_BYTE_CNT_WIDTH 12 323 #define ESF_DZ_TX_PIO_BUF_ADDR_LBN 0 324 #define ESF_DZ_TX_PIO_BUF_ADDR_WIDTH 12 325 326 /* TX_TSO_DESC */ 327 #define ESF_DZ_TX_DESC_IS_OPT_LBN 63 328 #define ESF_DZ_TX_DESC_IS_OPT_WIDTH 1 329 #define ESF_DZ_TX_OPTION_TYPE_LBN 60 330 #define ESF_DZ_TX_OPTION_TYPE_WIDTH 3 331 #define ESE_DZ_TX_OPTION_DESC_TSO 7 332 #define ESE_DZ_TX_OPTION_DESC_VLAN 6 333 #define ESE_DZ_TX_OPTION_DESC_CRC_CSUM 0 334 #define ESF_DZ_TX_TSO_TCP_FLAGS_LBN 48 335 #define ESF_DZ_TX_TSO_TCP_FLAGS_WIDTH 8 336 #define ESF_DZ_TX_TSO_IP_ID_LBN 32 337 #define ESF_DZ_TX_TSO_IP_ID_WIDTH 16 338 #define ESF_DZ_TX_TSO_TCP_SEQNO_LBN 0 339 #define ESF_DZ_TX_TSO_TCP_SEQNO_WIDTH 32 340 341 /* TX_USER_DESC */ 342 #define ESF_DZ_TX_USR_TYPE_LBN 63 343 #define ESF_DZ_TX_USR_TYPE_WIDTH 1 344 #define ESF_DZ_TX_USR_CONT_LBN 62 345 #define ESF_DZ_TX_USR_CONT_WIDTH 1 346 #define ESF_DZ_TX_USR_BYTE_CNT_LBN 48 347 #define ESF_DZ_TX_USR_BYTE_CNT_WIDTH 14 348 #define ESF_DZ_TX_USR_BUF_PAGE_SIZE_LBN 44 349 #define ESF_DZ_TX_USR_BUF_PAGE_SIZE_WIDTH 4 350 #define ESE_DZ_USR_BUF_PAGE_SZ_4MB 10 351 #define ESE_DZ_USR_BUF_PAGE_SZ_1MB 8 352 #define ESE_DZ_USR_BUF_PAGE_SZ_64KB 4 353 #define ESE_DZ_USR_BUF_PAGE_SZ_4KB 0 354 #define ESF_DZ_TX_USR_BUF_ID_OFFSET_LBN 0 355 #define ESF_DZ_TX_USR_BUF_ID_OFFSET_WIDTH 44 356 #define ESF_DZ_TX_USR_4KBPS_BUF_ID_LBN 12 357 #define ESF_DZ_TX_USR_4KBPS_BUF_ID_WIDTH 32 358 #define ESF_DZ_TX_USR_64KBPS_BUF_ID_LBN 16 359 #define ESF_DZ_TX_USR_64KBPS_BUF_ID_WIDTH 28 360 #define ESF_DZ_TX_USR_1MBPS_BUF_ID_LBN 20 361 #define ESF_DZ_TX_USR_1MBPS_BUF_ID_WIDTH 24 362 #define ESF_DZ_TX_USR_4MBPS_BUF_ID_LBN 22 363 #define ESF_DZ_TX_USR_4MBPS_BUF_ID_WIDTH 22 364 #define ESF_DZ_TX_USR_4MBPS_BYTE_OFFSET_LBN 0 365 #define ESF_DZ_TX_USR_4MBPS_BYTE_OFFSET_WIDTH 22 366 #define ESF_DZ_TX_USR_1MBPS_BYTE_OFFSET_LBN 0 367 #define ESF_DZ_TX_USR_1MBPS_BYTE_OFFSET_WIDTH 20 368 #define ESF_DZ_TX_USR_64KBPS_BYTE_OFFSET_LBN 0 369 #define ESF_DZ_TX_USR_64KBPS_BYTE_OFFSET_WIDTH 16 370 #define ESF_DZ_TX_USR_4KBPS_BYTE_OFFSET_LBN 0 371 #define ESF_DZ_TX_USR_4KBPS_BYTE_OFFSET_WIDTH 12 372 /*************************************************************************/ 373 374 /* TX_DESC_UPD_REG: Transmit descriptor update register. 375 * We may write just one dword of these registers. 376 */ 377 #define ER_DZ_TX_DESC_UPD_DWORD (ER_DZ_TX_DESC_UPD + 2 * 4) 378 #define ERF_DZ_TX_DESC_WPTR_DWORD_LBN (ERF_DZ_TX_DESC_WPTR_LBN - 2 * 32) 379 #define ERF_DZ_TX_DESC_WPTR_DWORD_WIDTH ERF_DZ_TX_DESC_WPTR_WIDTH 380 381 /* The workaround for bug 35388 requires multiplexing writes through 382 * the TX_DESC_UPD_DWORD address. 383 * TX_DESC_UPD: 0ppppppppppp (bit 11 lost) 384 * EVQ_RPTR: 1000hhhhhhhh, 1001llllllll (split into high and low bits) 385 * EVQ_TMR: 11mmvvvvvvvv (bits 8:13 of value lost) 386 */ 387 #define ER_DD_EVQ_INDIRECT ER_DZ_TX_DESC_UPD_DWORD 388 #define ERF_DD_EVQ_IND_RPTR_FLAGS_LBN 8 389 #define ERF_DD_EVQ_IND_RPTR_FLAGS_WIDTH 4 390 #define EFE_DD_EVQ_IND_RPTR_FLAGS_HIGH 8 391 #define EFE_DD_EVQ_IND_RPTR_FLAGS_LOW 9 392 #define ERF_DD_EVQ_IND_RPTR_LBN 0 393 #define ERF_DD_EVQ_IND_RPTR_WIDTH 8 394 #define ERF_DD_EVQ_IND_TIMER_FLAGS_LBN 10 395 #define ERF_DD_EVQ_IND_TIMER_FLAGS_WIDTH 2 396 #define EFE_DD_EVQ_IND_TIMER_FLAGS 3 397 #define ERF_DD_EVQ_IND_TIMER_MODE_LBN 8 398 #define ERF_DD_EVQ_IND_TIMER_MODE_WIDTH 2 399 #define ERF_DD_EVQ_IND_TIMER_VAL_LBN 0 400 #define ERF_DD_EVQ_IND_TIMER_VAL_WIDTH 8 401 402 /* TX_PIOBUF 403 * PIO buffer aperture (paged) 404 */ 405 #define ER_DZ_TX_PIOBUF 4096 406 #define ER_DZ_TX_PIOBUF_SIZE 2048 407 408 /* RX packet prefix */ 409 #define ES_DZ_RX_PREFIX_HASH_OFST 0 410 #define ES_DZ_RX_PREFIX_VLAN1_OFST 4 411 #define ES_DZ_RX_PREFIX_VLAN2_OFST 6 412 #define ES_DZ_RX_PREFIX_PKTLEN_OFST 8 413 #define ES_DZ_RX_PREFIX_TSTAMP_OFST 10 414 #define ES_DZ_RX_PREFIX_SIZE 14 415 416 #endif /* EFX_EF10_REGS_H */ 417