1 /* 2 * This file and its contents are supplied under the terms of the 3 * Common Development and Distribution License ("CDDL"), version 1.0. 4 * You may only use this file in accordance with the terms of version 5 * 1.0 of the CDDL. 6 * 7 * A full copy of the text of the CDDL should have accompanied this 8 * source. A copy of the CDDL is also available via the Internet at 9 * http://www.illumos.org/license/CDDL. 10 */ 11 12 /* 13 * This file is part of the Chelsio T4 support code. 14 * 15 * Copyright (C) 2003-2013 Chelsio Communications. All rights reserved. 16 * 17 * This program is distributed in the hope that it will be useful, but WITHOUT 18 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 19 * FITNESS FOR A PARTICULAR PURPOSE. See the LICENSE file included in this 20 * release for licensing terms and conditions. 21 */ 22 23 /* This file was automatically generated --- changes will be lost */ 24 25 #ifndef _CXGBE_T4_REGS_H 26 #define _CXGBE_T4_REGS_H 27 28 #define MYPF_BASE 0x1b000 29 #define MYPF_REG(reg_addr) (MYPF_BASE + (reg_addr)) 30 31 #define PF0_BASE 0x1e000 32 #define PF0_REG(reg_addr) (PF0_BASE + (reg_addr)) 33 34 #define PF1_BASE 0x1e400 35 #define PF1_REG(reg_addr) (PF1_BASE + (reg_addr)) 36 37 #define PF2_BASE 0x1e800 38 #define PF2_REG(reg_addr) (PF2_BASE + (reg_addr)) 39 40 #define PF3_BASE 0x1ec00 41 #define PF3_REG(reg_addr) (PF3_BASE + (reg_addr)) 42 43 #define PF4_BASE 0x1f000 44 #define PF4_REG(reg_addr) (PF4_BASE + (reg_addr)) 45 46 #define PF5_BASE 0x1f400 47 #define PF5_REG(reg_addr) (PF5_BASE + (reg_addr)) 48 49 #define PF6_BASE 0x1f800 50 #define PF6_REG(reg_addr) (PF6_BASE + (reg_addr)) 51 52 #define PF7_BASE 0x1fc00 53 #define PF7_REG(reg_addr) (PF7_BASE + (reg_addr)) 54 55 #define PF_STRIDE 0x400 56 #define PF_BASE(idx) (PF0_BASE + (idx) * PF_STRIDE) 57 #define PF_REG(idx, reg) (PF_BASE(idx) + (reg)) 58 59 #define MYPORT_BASE 0x1c000 60 #define MYPORT_REG(reg_addr) (MYPORT_BASE + (reg_addr)) 61 62 #define PORT0_BASE 0x20000 63 #define PORT0_REG(reg_addr) (PORT0_BASE + (reg_addr)) 64 65 #define PORT1_BASE 0x22000 66 #define PORT1_REG(reg_addr) (PORT1_BASE + (reg_addr)) 67 68 #define PORT2_BASE 0x24000 69 #define PORT2_REG(reg_addr) (PORT2_BASE + (reg_addr)) 70 71 #define PORT3_BASE 0x26000 72 #define PORT3_REG(reg_addr) (PORT3_BASE + (reg_addr)) 73 74 #define PORT_STRIDE 0x2000 75 #define PORT_BASE(idx) (PORT0_BASE + (idx) * PORT_STRIDE) 76 #define PORT_REG(idx, reg) (PORT_BASE(idx) + (reg)) 77 78 #define VF_SGE_BASE 0x0 79 #define VF_SGE_REG(reg_addr) (VF_SGE_BASE + (reg_addr)) 80 81 #define VF_MPS_BASE 0x100 82 #define VF_MPS_REG(reg_addr) (VF_MPS_BASE + (reg_addr)) 83 84 #define VF_PL_BASE 0x200 85 #define VF_PL_REG(reg_addr) (VF_PL_BASE + (reg_addr)) 86 87 #define VF_MBDATA_BASE 0x240 88 #define VF_MBDATA_REG(reg_addr) (VF_MBDATA_BASE + (reg_addr)) 89 90 #define VF_CIM_BASE 0x300 91 #define VF_CIM_REG(reg_addr) (VF_CIM_BASE + (reg_addr)) 92 93 #define EDC_STRIDE (EDC_1_BASE_ADDR - EDC_0_BASE_ADDR) 94 #define EDC_REG(reg, idx) (reg + EDC_STRIDE * idx) 95 96 #define SGE_QUEUE_BASE_MAP_HIGH(idx) (A_SGE_QUEUE_BASE_MAP_HIGH + (idx) * 8) 97 #define NUM_SGE_QUEUE_BASE_MAP_HIGH_INSTANCES 136 98 99 #define SGE_QUEUE_BASE_MAP_LOW(idx) (A_SGE_QUEUE_BASE_MAP_LOW + (idx) * 8) 100 #define NUM_SGE_QUEUE_BASE_MAP_LOW_INSTANCES 136 101 102 #define PCIE_DMA_REG(reg_addr, idx) ((reg_addr) + (idx) * 8) 103 #define NUM_PCIE_DMA_INSTANCES 4 104 105 #define PCIE_CMD_REG(reg_addr, idx) ((reg_addr) + (idx) * 8) 106 #define NUM_PCIE_CMD_INSTANCES 2 107 108 #define PCIE_HMA_REG(reg_addr, idx) ((reg_addr) + (idx) * 8) 109 #define NUM_PCIE_HMA_INSTANCES 1 110 111 #define PCIE_MEM_ACCESS_REG(reg_addr, idx) ((reg_addr) + (idx) * 8) 112 #define NUM_PCIE_MEM_ACCESS_INSTANCES 8 113 114 #define PCIE_MAILBOX_REG(reg_addr, idx) ((reg_addr) + (idx) * 8) 115 #define NUM_PCIE_MAILBOX_INSTANCES 1 116 117 #define PCIE_FW_REG(reg_addr, idx) ((reg_addr) + (idx) * 4) 118 #define NUM_PCIE_FW_INSTANCES 8 119 120 #define PCIE_FUNC_REG(reg_addr, idx) ((reg_addr) + (idx) * 8) 121 #define NUM_PCIE_FUNC_INSTANCES 256 122 123 #define PCIE_FID(idx) (A_PCIE_FID + (idx) * 4) 124 #define NUM_PCIE_FID_INSTANCES 2048 125 126 #define PCIE_DMA_BUF_REG(reg_addr, idx) ((reg_addr) + (idx) * 8) 127 #define NUM_PCIE_DMA_BUF_INSTANCES 4 128 129 #define MC_DDR3PHYDATX8_REG(reg_addr, idx) ((reg_addr) + (idx) * 256) 130 #define NUM_MC_DDR3PHYDATX8_INSTANCES 9 131 132 #define MC_BIST_STATUS_REG(reg_addr, idx) ((reg_addr) + (idx) * 4) 133 #define NUM_MC_BIST_STATUS_INSTANCES 18 134 135 #define EDC_BIST_STATUS_REG(reg_addr, idx) ((reg_addr) + (idx) * 4) 136 #define NUM_EDC_BIST_STATUS_INSTANCES 18 137 138 #define CIM_PF_MAILBOX_DATA(idx) (A_CIM_PF_MAILBOX_DATA + (idx) * 4) 139 #define NUM_CIM_PF_MAILBOX_DATA_INSTANCES 16 140 141 #define MPS_TRC_FILTER_MATCH_CTL_A(idx) \ 142 (A_MPS_TRC_FILTER_MATCH_CTL_A + (idx) * 4) 143 #define NUM_MPS_TRC_FILTER_MATCH_CTL_A_INSTANCES 4 144 145 #define MPS_TRC_FILTER_MATCH_CTL_B(idx) \ 146 (A_MPS_TRC_FILTER_MATCH_CTL_B + (idx) * 4) 147 #define NUM_MPS_TRC_FILTER_MATCH_CTL_B_INSTANCES 4 148 149 #define MPS_TRC_FILTER_RUNT_CTL(idx) (A_MPS_TRC_FILTER_RUNT_CTL + (idx) * 4) 150 #define NUM_MPS_TRC_FILTER_RUNT_CTL_INSTANCES 4 151 152 #define MPS_TRC_FILTER_DROP(idx) (A_MPS_TRC_FILTER_DROP + (idx) * 4) 153 #define NUM_MPS_TRC_FILTER_DROP_INSTANCES 4 154 155 #define MPS_TRC_FILTER0_MATCH(idx) (A_MPS_TRC_FILTER0_MATCH + (idx) * 4) 156 #define NUM_MPS_TRC_FILTER0_MATCH_INSTANCES 28 157 158 #define MPS_TRC_FILTER0_DONT_CARE(idx) (A_MPS_TRC_FILTER0_DONT_CARE + (idx) * 4) 159 #define NUM_MPS_TRC_FILTER0_DONT_CARE_INSTANCES 28 160 161 #define MPS_TRC_FILTER1_MATCH(idx) (A_MPS_TRC_FILTER1_MATCH + (idx) * 4) 162 #define NUM_MPS_TRC_FILTER1_MATCH_INSTANCES 28 163 164 #define MPS_TRC_FILTER1_DONT_CARE(idx) (A_MPS_TRC_FILTER1_DONT_CARE + (idx) * 4) 165 #define NUM_MPS_TRC_FILTER1_DONT_CARE_INSTANCES 28 166 167 #define MPS_TRC_FILTER2_MATCH(idx) (A_MPS_TRC_FILTER2_MATCH + (idx) * 4) 168 #define NUM_MPS_TRC_FILTER2_MATCH_INSTANCES 28 169 170 #define MPS_TRC_FILTER2_DONT_CARE(idx) (A_MPS_TRC_FILTER2_DONT_CARE + (idx) * 4) 171 #define NUM_MPS_TRC_FILTER2_DONT_CARE_INSTANCES 28 172 173 #define MPS_TRC_FILTER3_MATCH(idx) (A_MPS_TRC_FILTER3_MATCH + (idx) * 4) 174 #define NUM_MPS_TRC_FILTER3_MATCH_INSTANCES 28 175 176 #define MPS_TRC_FILTER3_DONT_CARE(idx) (A_MPS_TRC_FILTER3_DONT_CARE + (idx) * 4) 177 #define NUM_MPS_TRC_FILTER3_DONT_CARE_INSTANCES 28 178 179 #define MPS_PORT_CLS_HASH_SRAM(idx) (A_MPS_PORT_CLS_HASH_SRAM + (idx) * 4) 180 #define NUM_MPS_PORT_CLS_HASH_SRAM_INSTANCES 65 181 182 #define MPS_CLS_VLAN_TABLE(idx) (A_MPS_CLS_VLAN_TABLE + (idx) * 4) 183 #define NUM_MPS_CLS_VLAN_TABLE_INSTANCES 9 184 185 #define MPS_CLS_SRAM_L(idx) (A_MPS_CLS_SRAM_L + (idx) * 8) 186 #define NUM_MPS_CLS_SRAM_L_INSTANCES 336 187 188 #define MPS_CLS_SRAM_H(idx) (A_MPS_CLS_SRAM_H + (idx) * 8) 189 #define NUM_MPS_CLS_SRAM_H_INSTANCES 336 190 191 #define MPS_CLS_TCAM_Y_L(idx) (A_MPS_CLS_TCAM_Y_L + (idx) * 16) 192 #define NUM_MPS_CLS_TCAM_Y_L_INSTANCES 512 193 194 #define MPS_CLS_TCAM_Y_H(idx) (A_MPS_CLS_TCAM_Y_H + (idx) * 16) 195 #define NUM_MPS_CLS_TCAM_Y_H_INSTANCES 512 196 197 #define MPS_CLS_TCAM_X_L(idx) (A_MPS_CLS_TCAM_X_L + (idx) * 16) 198 #define NUM_MPS_CLS_TCAM_X_L_INSTANCES 512 199 200 #define MPS_CLS_TCAM_X_H(idx) (A_MPS_CLS_TCAM_X_H + (idx) * 16) 201 #define NUM_MPS_CLS_TCAM_X_H_INSTANCES 512 202 203 #define PL_SEMAPHORE_LOCK(idx) (A_PL_SEMAPHORE_LOCK + (idx) * 4) 204 #define NUM_PL_SEMAPHORE_LOCK_INSTANCES 8 205 206 #define PL_VF_SLICE_L(idx) (A_PL_VF_SLICE_L + (idx) * 8) 207 #define NUM_PL_VF_SLICE_L_INSTANCES 8 208 209 #define PL_VF_SLICE_H(idx) (A_PL_VF_SLICE_H + (idx) * 8) 210 #define NUM_PL_VF_SLICE_H_INSTANCES 8 211 212 #define PL_FLR_VF_STATUS(idx) (A_PL_FLR_VF_STATUS + (idx) * 4) 213 #define NUM_PL_FLR_VF_STATUS_INSTANCES 4 214 215 #define PL_VFID_MAP(idx) (A_PL_VFID_MAP + (idx) * 4) 216 #define NUM_PL_VFID_MAP_INSTANCES 256 217 218 #define LE_DB_MASK_IPV4(idx) (A_LE_DB_MASK_IPV4 + (idx) * 4) 219 #define NUM_LE_DB_MASK_IPV4_INSTANCES 17 220 221 #define LE_DB_MASK_IPV6(idx) (A_LE_DB_MASK_IPV6 + (idx) * 4) 222 #define NUM_LE_DB_MASK_IPV6_INSTANCES 17 223 224 #define LE_DB_DBGI_REQ_DATA(idx) (A_LE_DB_DBGI_REQ_DATA + (idx) * 4) 225 #define NUM_LE_DB_DBGI_REQ_DATA_INSTANCES 17 226 227 #define LE_DB_DBGI_REQ_MASK(idx) (A_LE_DB_DBGI_REQ_MASK + (idx) * 4) 228 #define NUM_LE_DB_DBGI_REQ_MASK_INSTANCES 17 229 230 #define LE_DB_DBGI_RSP_DATA(idx) (A_LE_DB_DBGI_RSP_DATA + (idx) * 4) 231 #define NUM_LE_DB_DBGI_RSP_DATA_INSTANCES 17 232 233 #define LE_DB_ACTIVE_MASK_IPV4(idx) (A_LE_DB_ACTIVE_MASK_IPV4 + (idx) * 4) 234 #define NUM_LE_DB_ACTIVE_MASK_IPV4_INSTANCES 17 235 236 #define LE_DB_ACTIVE_MASK_IPV6(idx) (A_LE_DB_ACTIVE_MASK_IPV6 + (idx) * 4) 237 #define NUM_LE_DB_ACTIVE_MASK_IPV6_INSTANCES 17 238 239 #define LE_HASH_MASK_GEN_IPV4(idx) (A_LE_HASH_MASK_GEN_IPV4 + (idx) * 4) 240 #define NUM_LE_HASH_MASK_GEN_IPV4_INSTANCES 4 241 242 #define LE_HASH_MASK_GEN_IPV6(idx) (A_LE_HASH_MASK_GEN_IPV6 + (idx) * 4) 243 #define NUM_LE_HASH_MASK_GEN_IPV6_INSTANCES 12 244 245 #define LE_HASH_MASK_CMP_IPV4(idx) (A_LE_HASH_MASK_CMP_IPV4 + (idx) * 4) 246 #define NUM_LE_HASH_MASK_CMP_IPV4_INSTANCES 4 247 248 #define LE_HASH_MASK_CMP_IPV6(idx) (A_LE_HASH_MASK_CMP_IPV6 + (idx) * 4) 249 #define NUM_LE_HASH_MASK_CMP_IPV6_INSTANCES 12 250 251 #define UP_TSCH_CHANNEL_REG(reg_addr, idx) ((reg_addr) + (idx) * 16) 252 #define NUM_UP_TSCH_CHANNEL_INSTANCES 4 253 254 #define CIM_CTL_MAILBOX_VF_STATUS(idx) (A_CIM_CTL_MAILBOX_VF_STATUS + (idx) * 4) 255 #define NUM_CIM_CTL_MAILBOX_VF_STATUS_INSTANCES 4 256 257 #define CIM_CTL_MAILBOX_VFN_CTL(idx) (A_CIM_CTL_MAILBOX_VFN_CTL + (idx) * 16) 258 #define NUM_CIM_CTL_MAILBOX_VFN_CTL_INSTANCES 128 259 260 #define CIM_CTL_TSCH_CHANNEL_REG(reg_addr, idx) ((reg_addr) + (idx) * 288) 261 #define NUM_CIM_CTL_TSCH_CHANNEL_INSTANCES 4 262 263 #define CIM_CTL_TSCH_CHANNEL_TSCH_CLASS_REG(reg_addr, idx) \ 264 ((reg_addr) + (idx) * 16) 265 #define NUM_CIM_CTL_TSCH_CHANNEL_TSCH_CLASS_INSTANCES 16 266 267 /* registers for module SGE */ 268 #define SGE_BASE_ADDR 0x1000 269 270 #define A_SGE_PF_KDOORBELL 0x0 271 272 #define S_QID 15 273 #define M_QID 0x1ffffU 274 #define V_QID(x) ((x) << S_QID) 275 #define G_QID(x) (((x) >> S_QID) & M_QID) 276 277 #define S_DBPRIO 14 278 #define V_DBPRIO(x) ((x) << S_DBPRIO) 279 #define F_DBPRIO V_DBPRIO(1U) 280 281 #define S_PIDX 0 282 #define M_PIDX 0x3fffU 283 #define V_PIDX(x) ((x) << S_PIDX) 284 #define G_PIDX(x) (((x) >> S_PIDX) & M_PIDX) 285 286 #define A_SGE_VF_KDOORBELL 0x0 287 #define A_SGE_PF_GTS 0x4 288 289 #define S_INGRESSQID 16 290 #define M_INGRESSQID 0xffffU 291 #define V_INGRESSQID(x) ((x) << S_INGRESSQID) 292 #define G_INGRESSQID(x) (((x) >> S_INGRESSQID) & M_INGRESSQID) 293 294 #define S_TIMERREG 13 295 #define M_TIMERREG 0x7U 296 #define V_TIMERREG(x) ((x) << S_TIMERREG) 297 #define G_TIMERREG(x) (((x) >> S_TIMERREG) & M_TIMERREG) 298 299 #define S_SEINTARM 12 300 #define V_SEINTARM(x) ((x) << S_SEINTARM) 301 #define F_SEINTARM V_SEINTARM(1U) 302 303 #define S_CIDXINC 0 304 #define M_CIDXINC 0xfffU 305 #define V_CIDXINC(x) ((x) << S_CIDXINC) 306 #define G_CIDXINC(x) (((x) >> S_CIDXINC) & M_CIDXINC) 307 308 #define A_SGE_VF_GTS 0x4 309 #define A_SGE_CONTROL 0x1008 310 311 #define S_IGRALLCPLTOFL 31 312 #define V_IGRALLCPLTOFL(x) ((x) << S_IGRALLCPLTOFL) 313 #define F_IGRALLCPLTOFL V_IGRALLCPLTOFL(1U) 314 315 #define S_FLSPLITMIN 22 316 #define M_FLSPLITMIN 0x1ffU 317 #define V_FLSPLITMIN(x) ((x) << S_FLSPLITMIN) 318 #define G_FLSPLITMIN(x) (((x) >> S_FLSPLITMIN) & M_FLSPLITMIN) 319 320 #define S_FLSPLITMODE 20 321 #define M_FLSPLITMODE 0x3U 322 #define V_FLSPLITMODE(x) ((x) << S_FLSPLITMODE) 323 #define G_FLSPLITMODE(x) (((x) >> S_FLSPLITMODE) & M_FLSPLITMODE) 324 325 #define S_DCASYSTYPE 19 326 #define V_DCASYSTYPE(x) ((x) << S_DCASYSTYPE) 327 #define F_DCASYSTYPE V_DCASYSTYPE(1U) 328 329 #define S_RXPKTCPLMODE 18 330 #define V_RXPKTCPLMODE(x) ((x) << S_RXPKTCPLMODE) 331 #define F_RXPKTCPLMODE V_RXPKTCPLMODE(1U) 332 333 #define S_EGRSTATUSPAGESIZE 17 334 #define V_EGRSTATUSPAGESIZE(x) ((x) << S_EGRSTATUSPAGESIZE) 335 #define F_EGRSTATUSPAGESIZE V_EGRSTATUSPAGESIZE(1U) 336 337 #define S_INGHINTENABLE1 15 338 #define V_INGHINTENABLE1(x) ((x) << S_INGHINTENABLE1) 339 #define F_INGHINTENABLE1 V_INGHINTENABLE1(1U) 340 341 #define S_INGHINTENABLE0 14 342 #define V_INGHINTENABLE0(x) ((x) << S_INGHINTENABLE0) 343 #define F_INGHINTENABLE0 V_INGHINTENABLE0(1U) 344 345 #define S_INGINTCOMPAREIDX 13 346 #define V_INGINTCOMPAREIDX(x) ((x) << S_INGINTCOMPAREIDX) 347 #define F_INGINTCOMPAREIDX V_INGINTCOMPAREIDX(1U) 348 349 #define S_PKTSHIFT 10 350 #define M_PKTSHIFT 0x7U 351 #define V_PKTSHIFT(x) ((x) << S_PKTSHIFT) 352 #define G_PKTSHIFT(x) (((x) >> S_PKTSHIFT) & M_PKTSHIFT) 353 354 #define S_INGPCIEBOUNDARY 7 355 #define M_INGPCIEBOUNDARY 0x7U 356 #define V_INGPCIEBOUNDARY(x) ((x) << S_INGPCIEBOUNDARY) 357 #define G_INGPCIEBOUNDARY(x) (((x) >> S_INGPCIEBOUNDARY) & M_INGPCIEBOUNDARY) 358 359 #define S_INGPADBOUNDARY 4 360 #define M_INGPADBOUNDARY 0x7U 361 #define V_INGPADBOUNDARY(x) ((x) << S_INGPADBOUNDARY) 362 #define G_INGPADBOUNDARY(x) (((x) >> S_INGPADBOUNDARY) & M_INGPADBOUNDARY) 363 364 #define S_EGRPCIEBOUNDARY 1 365 #define M_EGRPCIEBOUNDARY 0x7U 366 #define V_EGRPCIEBOUNDARY(x) ((x) << S_EGRPCIEBOUNDARY) 367 #define G_EGRPCIEBOUNDARY(x) (((x) >> S_EGRPCIEBOUNDARY) & M_EGRPCIEBOUNDARY) 368 369 #define S_GLOBALENABLE 0 370 #define V_GLOBALENABLE(x) ((x) << S_GLOBALENABLE) 371 #define F_GLOBALENABLE V_GLOBALENABLE(1U) 372 373 #define A_SGE_HOST_PAGE_SIZE 0x100c 374 375 #define S_HOSTPAGESIZEPF7 28 376 #define M_HOSTPAGESIZEPF7 0xfU 377 #define V_HOSTPAGESIZEPF7(x) ((x) << S_HOSTPAGESIZEPF7) 378 #define G_HOSTPAGESIZEPF7(x) (((x) >> S_HOSTPAGESIZEPF7) & M_HOSTPAGESIZEPF7) 379 380 #define S_HOSTPAGESIZEPF6 24 381 #define M_HOSTPAGESIZEPF6 0xfU 382 #define V_HOSTPAGESIZEPF6(x) ((x) << S_HOSTPAGESIZEPF6) 383 #define G_HOSTPAGESIZEPF6(x) (((x) >> S_HOSTPAGESIZEPF6) & M_HOSTPAGESIZEPF6) 384 385 #define S_HOSTPAGESIZEPF5 20 386 #define M_HOSTPAGESIZEPF5 0xfU 387 #define V_HOSTPAGESIZEPF5(x) ((x) << S_HOSTPAGESIZEPF5) 388 #define G_HOSTPAGESIZEPF5(x) (((x) >> S_HOSTPAGESIZEPF5) & M_HOSTPAGESIZEPF5) 389 390 #define S_HOSTPAGESIZEPF4 16 391 #define M_HOSTPAGESIZEPF4 0xfU 392 #define V_HOSTPAGESIZEPF4(x) ((x) << S_HOSTPAGESIZEPF4) 393 #define G_HOSTPAGESIZEPF4(x) (((x) >> S_HOSTPAGESIZEPF4) & M_HOSTPAGESIZEPF4) 394 395 #define S_HOSTPAGESIZEPF3 12 396 #define M_HOSTPAGESIZEPF3 0xfU 397 #define V_HOSTPAGESIZEPF3(x) ((x) << S_HOSTPAGESIZEPF3) 398 #define G_HOSTPAGESIZEPF3(x) (((x) >> S_HOSTPAGESIZEPF3) & M_HOSTPAGESIZEPF3) 399 400 #define S_HOSTPAGESIZEPF2 8 401 #define M_HOSTPAGESIZEPF2 0xfU 402 #define V_HOSTPAGESIZEPF2(x) ((x) << S_HOSTPAGESIZEPF2) 403 #define G_HOSTPAGESIZEPF2(x) (((x) >> S_HOSTPAGESIZEPF2) & M_HOSTPAGESIZEPF2) 404 405 #define S_HOSTPAGESIZEPF1 4 406 #define M_HOSTPAGESIZEPF1 0xfU 407 #define V_HOSTPAGESIZEPF1(x) ((x) << S_HOSTPAGESIZEPF1) 408 #define G_HOSTPAGESIZEPF1(x) (((x) >> S_HOSTPAGESIZEPF1) & M_HOSTPAGESIZEPF1) 409 410 #define S_HOSTPAGESIZEPF0 0 411 #define M_HOSTPAGESIZEPF0 0xfU 412 #define V_HOSTPAGESIZEPF0(x) ((x) << S_HOSTPAGESIZEPF0) 413 #define G_HOSTPAGESIZEPF0(x) (((x) >> S_HOSTPAGESIZEPF0) & M_HOSTPAGESIZEPF0) 414 415 #define A_SGE_EGRESS_QUEUES_PER_PAGE_PF 0x1010 416 417 #define S_QUEUESPERPAGEPF7 28 418 #define M_QUEUESPERPAGEPF7 0xfU 419 #define V_QUEUESPERPAGEPF7(x) ((x) << S_QUEUESPERPAGEPF7) 420 #define G_QUEUESPERPAGEPF7(x) (((x) >> S_QUEUESPERPAGEPF7) & M_QUEUESPERPAGEPF7) 421 422 #define S_QUEUESPERPAGEPF6 24 423 #define M_QUEUESPERPAGEPF6 0xfU 424 #define V_QUEUESPERPAGEPF6(x) ((x) << S_QUEUESPERPAGEPF6) 425 #define G_QUEUESPERPAGEPF6(x) (((x) >> S_QUEUESPERPAGEPF6) & M_QUEUESPERPAGEPF6) 426 427 #define S_QUEUESPERPAGEPF5 20 428 #define M_QUEUESPERPAGEPF5 0xfU 429 #define V_QUEUESPERPAGEPF5(x) ((x) << S_QUEUESPERPAGEPF5) 430 #define G_QUEUESPERPAGEPF5(x) (((x) >> S_QUEUESPERPAGEPF5) & M_QUEUESPERPAGEPF5) 431 432 #define S_QUEUESPERPAGEPF4 16 433 #define M_QUEUESPERPAGEPF4 0xfU 434 #define V_QUEUESPERPAGEPF4(x) ((x) << S_QUEUESPERPAGEPF4) 435 #define G_QUEUESPERPAGEPF4(x) (((x) >> S_QUEUESPERPAGEPF4) & M_QUEUESPERPAGEPF4) 436 437 #define S_QUEUESPERPAGEPF3 12 438 #define M_QUEUESPERPAGEPF3 0xfU 439 #define V_QUEUESPERPAGEPF3(x) ((x) << S_QUEUESPERPAGEPF3) 440 #define G_QUEUESPERPAGEPF3(x) (((x) >> S_QUEUESPERPAGEPF3) & M_QUEUESPERPAGEPF3) 441 442 #define S_QUEUESPERPAGEPF2 8 443 #define M_QUEUESPERPAGEPF2 0xfU 444 #define V_QUEUESPERPAGEPF2(x) ((x) << S_QUEUESPERPAGEPF2) 445 #define G_QUEUESPERPAGEPF2(x) (((x) >> S_QUEUESPERPAGEPF2) & M_QUEUESPERPAGEPF2) 446 447 #define S_QUEUESPERPAGEPF1 4 448 #define M_QUEUESPERPAGEPF1 0xfU 449 #define V_QUEUESPERPAGEPF1(x) ((x) << S_QUEUESPERPAGEPF1) 450 #define G_QUEUESPERPAGEPF1(x) (((x) >> S_QUEUESPERPAGEPF1) & M_QUEUESPERPAGEPF1) 451 452 #define S_QUEUESPERPAGEPF0 0 453 #define M_QUEUESPERPAGEPF0 0xfU 454 #define V_QUEUESPERPAGEPF0(x) ((x) << S_QUEUESPERPAGEPF0) 455 #define G_QUEUESPERPAGEPF0(x) (((x) >> S_QUEUESPERPAGEPF0) & M_QUEUESPERPAGEPF0) 456 457 #define A_SGE_EGRESS_QUEUES_PER_PAGE_VF 0x1014 458 459 #define S_QUEUESPERPAGEVFPF7 28 460 #define M_QUEUESPERPAGEVFPF7 0xfU 461 #define V_QUEUESPERPAGEVFPF7(x) ((x) << S_QUEUESPERPAGEVFPF7) 462 #define G_QUEUESPERPAGEVFPF7(x) \ 463 (((x) >> S_QUEUESPERPAGEVFPF7) & M_QUEUESPERPAGEVFPF7) 464 465 #define S_QUEUESPERPAGEVFPF6 24 466 #define M_QUEUESPERPAGEVFPF6 0xfU 467 #define V_QUEUESPERPAGEVFPF6(x) ((x) << S_QUEUESPERPAGEVFPF6) 468 #define G_QUEUESPERPAGEVFPF6(x) \ 469 (((x) >> S_QUEUESPERPAGEVFPF6) & M_QUEUESPERPAGEVFPF6) 470 471 #define S_QUEUESPERPAGEVFPF5 20 472 #define M_QUEUESPERPAGEVFPF5 0xfU 473 #define V_QUEUESPERPAGEVFPF5(x) ((x) << S_QUEUESPERPAGEVFPF5) 474 #define G_QUEUESPERPAGEVFPF5(x) \ 475 (((x) >> S_QUEUESPERPAGEVFPF5) & M_QUEUESPERPAGEVFPF5) 476 477 #define S_QUEUESPERPAGEVFPF4 16 478 #define M_QUEUESPERPAGEVFPF4 0xfU 479 #define V_QUEUESPERPAGEVFPF4(x) ((x) << S_QUEUESPERPAGEVFPF4) 480 #define G_QUEUESPERPAGEVFPF4(x) \ 481 (((x) >> S_QUEUESPERPAGEVFPF4) & M_QUEUESPERPAGEVFPF4) 482 483 #define S_QUEUESPERPAGEVFPF3 12 484 #define M_QUEUESPERPAGEVFPF3 0xfU 485 #define V_QUEUESPERPAGEVFPF3(x) ((x) << S_QUEUESPERPAGEVFPF3) 486 #define G_QUEUESPERPAGEVFPF3(x) \ 487 (((x) >> S_QUEUESPERPAGEVFPF3) & M_QUEUESPERPAGEVFPF3) 488 489 #define S_QUEUESPERPAGEVFPF2 8 490 #define M_QUEUESPERPAGEVFPF2 0xfU 491 #define V_QUEUESPERPAGEVFPF2(x) ((x) << S_QUEUESPERPAGEVFPF2) 492 #define G_QUEUESPERPAGEVFPF2(x) \ 493 (((x) >> S_QUEUESPERPAGEVFPF2) & M_QUEUESPERPAGEVFPF2) 494 495 #define S_QUEUESPERPAGEVFPF1 4 496 #define M_QUEUESPERPAGEVFPF1 0xfU 497 #define V_QUEUESPERPAGEVFPF1(x) ((x) << S_QUEUESPERPAGEVFPF1) 498 #define G_QUEUESPERPAGEVFPF1(x) \ 499 (((x) >> S_QUEUESPERPAGEVFPF1) & M_QUEUESPERPAGEVFPF1) 500 501 #define S_QUEUESPERPAGEVFPF0 0 502 #define M_QUEUESPERPAGEVFPF0 0xfU 503 #define V_QUEUESPERPAGEVFPF0(x) ((x) << S_QUEUESPERPAGEVFPF0) 504 #define G_QUEUESPERPAGEVFPF0(x) \ 505 (((x) >> S_QUEUESPERPAGEVFPF0) & M_QUEUESPERPAGEVFPF0) 506 507 #define A_SGE_USER_MODE_LIMITS 0x1018 508 509 #define S_OPCODE_MIN 24 510 #define M_OPCODE_MIN 0xffU 511 #define V_OPCODE_MIN(x) ((x) << S_OPCODE_MIN) 512 #define G_OPCODE_MIN(x) (((x) >> S_OPCODE_MIN) & M_OPCODE_MIN) 513 514 #define S_OPCODE_MAX 16 515 #define M_OPCODE_MAX 0xffU 516 #define V_OPCODE_MAX(x) ((x) << S_OPCODE_MAX) 517 #define G_OPCODE_MAX(x) (((x) >> S_OPCODE_MAX) & M_OPCODE_MAX) 518 519 #define S_LENGTH_MIN 8 520 #define M_LENGTH_MIN 0xffU 521 #define V_LENGTH_MIN(x) ((x) << S_LENGTH_MIN) 522 #define G_LENGTH_MIN(x) (((x) >> S_LENGTH_MIN) & M_LENGTH_MIN) 523 524 #define S_LENGTH_MAX 0 525 #define M_LENGTH_MAX 0xffU 526 #define V_LENGTH_MAX(x) ((x) << S_LENGTH_MAX) 527 #define G_LENGTH_MAX(x) (((x) >> S_LENGTH_MAX) & M_LENGTH_MAX) 528 529 #define A_SGE_WR_ERROR 0x101c 530 531 #define S_WR_ERROR_OPCODE 0 532 #define M_WR_ERROR_OPCODE 0xffU 533 #define V_WR_ERROR_OPCODE(x) ((x) << S_WR_ERROR_OPCODE) 534 #define G_WR_ERROR_OPCODE(x) (((x) >> S_WR_ERROR_OPCODE) & M_WR_ERROR_OPCODE) 535 536 #define A_SGE_PERR_INJECT 0x1020 537 538 #define S_MEMSEL 1 539 #define M_MEMSEL 0x1fU 540 #define V_MEMSEL(x) ((x) << S_MEMSEL) 541 #define G_MEMSEL(x) (((x) >> S_MEMSEL) & M_MEMSEL) 542 543 #define S_INJECTDATAERR 0 544 #define V_INJECTDATAERR(x) ((x) << S_INJECTDATAERR) 545 #define F_INJECTDATAERR V_INJECTDATAERR(1U) 546 547 #define A_SGE_INT_CAUSE1 0x1024 548 549 #define S_PERR_FLM_CREDITFIFO 30 550 #define V_PERR_FLM_CREDITFIFO(x) ((x) << S_PERR_FLM_CREDITFIFO) 551 #define F_PERR_FLM_CREDITFIFO V_PERR_FLM_CREDITFIFO(1U) 552 553 #define S_PERR_IMSG_HINT_FIFO 29 554 #define V_PERR_IMSG_HINT_FIFO(x) ((x) << S_PERR_IMSG_HINT_FIFO) 555 #define F_PERR_IMSG_HINT_FIFO V_PERR_IMSG_HINT_FIFO(1U) 556 557 #define S_PERR_MC_PC 28 558 #define V_PERR_MC_PC(x) ((x) << S_PERR_MC_PC) 559 #define F_PERR_MC_PC V_PERR_MC_PC(1U) 560 561 #define S_PERR_MC_IGR_CTXT 27 562 #define V_PERR_MC_IGR_CTXT(x) ((x) << S_PERR_MC_IGR_CTXT) 563 #define F_PERR_MC_IGR_CTXT V_PERR_MC_IGR_CTXT(1U) 564 565 #define S_PERR_MC_EGR_CTXT 26 566 #define V_PERR_MC_EGR_CTXT(x) ((x) << S_PERR_MC_EGR_CTXT) 567 #define F_PERR_MC_EGR_CTXT V_PERR_MC_EGR_CTXT(1U) 568 569 #define S_PERR_MC_FLM 25 570 #define V_PERR_MC_FLM(x) ((x) << S_PERR_MC_FLM) 571 #define F_PERR_MC_FLM V_PERR_MC_FLM(1U) 572 573 #define S_PERR_PC_MCTAG 24 574 #define V_PERR_PC_MCTAG(x) ((x) << S_PERR_PC_MCTAG) 575 #define F_PERR_PC_MCTAG V_PERR_PC_MCTAG(1U) 576 577 #define S_PERR_PC_CHPI_RSP1 23 578 #define V_PERR_PC_CHPI_RSP1(x) ((x) << S_PERR_PC_CHPI_RSP1) 579 #define F_PERR_PC_CHPI_RSP1 V_PERR_PC_CHPI_RSP1(1U) 580 581 #define S_PERR_PC_CHPI_RSP0 22 582 #define V_PERR_PC_CHPI_RSP0(x) ((x) << S_PERR_PC_CHPI_RSP0) 583 #define F_PERR_PC_CHPI_RSP0 V_PERR_PC_CHPI_RSP0(1U) 584 585 #define S_PERR_DBP_PC_RSP_FIFO3 21 586 #define V_PERR_DBP_PC_RSP_FIFO3(x) ((x) << S_PERR_DBP_PC_RSP_FIFO3) 587 #define F_PERR_DBP_PC_RSP_FIFO3 V_PERR_DBP_PC_RSP_FIFO3(1U) 588 589 #define S_PERR_DBP_PC_RSP_FIFO2 20 590 #define V_PERR_DBP_PC_RSP_FIFO2(x) ((x) << S_PERR_DBP_PC_RSP_FIFO2) 591 #define F_PERR_DBP_PC_RSP_FIFO2 V_PERR_DBP_PC_RSP_FIFO2(1U) 592 593 #define S_PERR_DBP_PC_RSP_FIFO1 19 594 #define V_PERR_DBP_PC_RSP_FIFO1(x) ((x) << S_PERR_DBP_PC_RSP_FIFO1) 595 #define F_PERR_DBP_PC_RSP_FIFO1 V_PERR_DBP_PC_RSP_FIFO1(1U) 596 597 #define S_PERR_DBP_PC_RSP_FIFO0 18 598 #define V_PERR_DBP_PC_RSP_FIFO0(x) ((x) << S_PERR_DBP_PC_RSP_FIFO0) 599 #define F_PERR_DBP_PC_RSP_FIFO0 V_PERR_DBP_PC_RSP_FIFO0(1U) 600 601 #define S_PERR_DMARBT 17 602 #define V_PERR_DMARBT(x) ((x) << S_PERR_DMARBT) 603 #define F_PERR_DMARBT V_PERR_DMARBT(1U) 604 605 #define S_PERR_FLM_DBPFIFO 16 606 #define V_PERR_FLM_DBPFIFO(x) ((x) << S_PERR_FLM_DBPFIFO) 607 #define F_PERR_FLM_DBPFIFO V_PERR_FLM_DBPFIFO(1U) 608 609 #define S_PERR_FLM_MCREQ_FIFO 15 610 #define V_PERR_FLM_MCREQ_FIFO(x) ((x) << S_PERR_FLM_MCREQ_FIFO) 611 #define F_PERR_FLM_MCREQ_FIFO V_PERR_FLM_MCREQ_FIFO(1U) 612 613 #define S_PERR_FLM_HINTFIFO 14 614 #define V_PERR_FLM_HINTFIFO(x) ((x) << S_PERR_FLM_HINTFIFO) 615 #define F_PERR_FLM_HINTFIFO V_PERR_FLM_HINTFIFO(1U) 616 617 #define S_PERR_ALIGN_CTL_FIFO3 13 618 #define V_PERR_ALIGN_CTL_FIFO3(x) ((x) << S_PERR_ALIGN_CTL_FIFO3) 619 #define F_PERR_ALIGN_CTL_FIFO3 V_PERR_ALIGN_CTL_FIFO3(1U) 620 621 #define S_PERR_ALIGN_CTL_FIFO2 12 622 #define V_PERR_ALIGN_CTL_FIFO2(x) ((x) << S_PERR_ALIGN_CTL_FIFO2) 623 #define F_PERR_ALIGN_CTL_FIFO2 V_PERR_ALIGN_CTL_FIFO2(1U) 624 625 #define S_PERR_ALIGN_CTL_FIFO1 11 626 #define V_PERR_ALIGN_CTL_FIFO1(x) ((x) << S_PERR_ALIGN_CTL_FIFO1) 627 #define F_PERR_ALIGN_CTL_FIFO1 V_PERR_ALIGN_CTL_FIFO1(1U) 628 629 #define S_PERR_ALIGN_CTL_FIFO0 10 630 #define V_PERR_ALIGN_CTL_FIFO0(x) ((x) << S_PERR_ALIGN_CTL_FIFO0) 631 #define F_PERR_ALIGN_CTL_FIFO0 V_PERR_ALIGN_CTL_FIFO0(1U) 632 633 #define S_PERR_EDMA_FIFO3 9 634 #define V_PERR_EDMA_FIFO3(x) ((x) << S_PERR_EDMA_FIFO3) 635 #define F_PERR_EDMA_FIFO3 V_PERR_EDMA_FIFO3(1U) 636 637 #define S_PERR_EDMA_FIFO2 8 638 #define V_PERR_EDMA_FIFO2(x) ((x) << S_PERR_EDMA_FIFO2) 639 #define F_PERR_EDMA_FIFO2 V_PERR_EDMA_FIFO2(1U) 640 641 #define S_PERR_EDMA_FIFO1 7 642 #define V_PERR_EDMA_FIFO1(x) ((x) << S_PERR_EDMA_FIFO1) 643 #define F_PERR_EDMA_FIFO1 V_PERR_EDMA_FIFO1(1U) 644 645 #define S_PERR_EDMA_FIFO0 6 646 #define V_PERR_EDMA_FIFO0(x) ((x) << S_PERR_EDMA_FIFO0) 647 #define F_PERR_EDMA_FIFO0 V_PERR_EDMA_FIFO0(1U) 648 649 #define S_PERR_PD_FIFO3 5 650 #define V_PERR_PD_FIFO3(x) ((x) << S_PERR_PD_FIFO3) 651 #define F_PERR_PD_FIFO3 V_PERR_PD_FIFO3(1U) 652 653 #define S_PERR_PD_FIFO2 4 654 #define V_PERR_PD_FIFO2(x) ((x) << S_PERR_PD_FIFO2) 655 #define F_PERR_PD_FIFO2 V_PERR_PD_FIFO2(1U) 656 657 #define S_PERR_PD_FIFO1 3 658 #define V_PERR_PD_FIFO1(x) ((x) << S_PERR_PD_FIFO1) 659 #define F_PERR_PD_FIFO1 V_PERR_PD_FIFO1(1U) 660 661 #define S_PERR_PD_FIFO0 2 662 #define V_PERR_PD_FIFO0(x) ((x) << S_PERR_PD_FIFO0) 663 #define F_PERR_PD_FIFO0 V_PERR_PD_FIFO0(1U) 664 665 #define S_PERR_ING_CTXT_MIFRSP 1 666 #define V_PERR_ING_CTXT_MIFRSP(x) ((x) << S_PERR_ING_CTXT_MIFRSP) 667 #define F_PERR_ING_CTXT_MIFRSP V_PERR_ING_CTXT_MIFRSP(1U) 668 669 #define S_PERR_EGR_CTXT_MIFRSP 0 670 #define V_PERR_EGR_CTXT_MIFRSP(x) ((x) << S_PERR_EGR_CTXT_MIFRSP) 671 #define F_PERR_EGR_CTXT_MIFRSP V_PERR_EGR_CTXT_MIFRSP(1U) 672 673 #define A_SGE_INT_ENABLE1 0x1028 674 #define A_SGE_PERR_ENABLE1 0x102c 675 #define A_SGE_INT_CAUSE2 0x1030 676 677 #define S_PERR_HINT_DELAY_FIFO1 30 678 #define V_PERR_HINT_DELAY_FIFO1(x) ((x) << S_PERR_HINT_DELAY_FIFO1) 679 #define F_PERR_HINT_DELAY_FIFO1 V_PERR_HINT_DELAY_FIFO1(1U) 680 681 #define S_PERR_HINT_DELAY_FIFO0 29 682 #define V_PERR_HINT_DELAY_FIFO0(x) ((x) << S_PERR_HINT_DELAY_FIFO0) 683 #define F_PERR_HINT_DELAY_FIFO0 V_PERR_HINT_DELAY_FIFO0(1U) 684 685 #define S_PERR_IMSG_PD_FIFO 28 686 #define V_PERR_IMSG_PD_FIFO(x) ((x) << S_PERR_IMSG_PD_FIFO) 687 #define F_PERR_IMSG_PD_FIFO V_PERR_IMSG_PD_FIFO(1U) 688 689 #define S_PERR_ULPTX_FIFO1 27 690 #define V_PERR_ULPTX_FIFO1(x) ((x) << S_PERR_ULPTX_FIFO1) 691 #define F_PERR_ULPTX_FIFO1 V_PERR_ULPTX_FIFO1(1U) 692 693 #define S_PERR_ULPTX_FIFO0 26 694 #define V_PERR_ULPTX_FIFO0(x) ((x) << S_PERR_ULPTX_FIFO0) 695 #define F_PERR_ULPTX_FIFO0 V_PERR_ULPTX_FIFO0(1U) 696 697 #define S_PERR_IDMA2IMSG_FIFO1 25 698 #define V_PERR_IDMA2IMSG_FIFO1(x) ((x) << S_PERR_IDMA2IMSG_FIFO1) 699 #define F_PERR_IDMA2IMSG_FIFO1 V_PERR_IDMA2IMSG_FIFO1(1U) 700 701 #define S_PERR_IDMA2IMSG_FIFO0 24 702 #define V_PERR_IDMA2IMSG_FIFO0(x) ((x) << S_PERR_IDMA2IMSG_FIFO0) 703 #define F_PERR_IDMA2IMSG_FIFO0 V_PERR_IDMA2IMSG_FIFO0(1U) 704 705 #define S_PERR_HEADERSPLIT_FIFO1 23 706 #define V_PERR_HEADERSPLIT_FIFO1(x) ((x) << S_PERR_HEADERSPLIT_FIFO1) 707 #define F_PERR_HEADERSPLIT_FIFO1 V_PERR_HEADERSPLIT_FIFO1(1U) 708 709 #define S_PERR_HEADERSPLIT_FIFO0 22 710 #define V_PERR_HEADERSPLIT_FIFO0(x) ((x) << S_PERR_HEADERSPLIT_FIFO0) 711 #define F_PERR_HEADERSPLIT_FIFO0 V_PERR_HEADERSPLIT_FIFO0(1U) 712 713 #define S_PERR_ESWITCH_FIFO3 21 714 #define V_PERR_ESWITCH_FIFO3(x) ((x) << S_PERR_ESWITCH_FIFO3) 715 #define F_PERR_ESWITCH_FIFO3 V_PERR_ESWITCH_FIFO3(1U) 716 717 #define S_PERR_ESWITCH_FIFO2 20 718 #define V_PERR_ESWITCH_FIFO2(x) ((x) << S_PERR_ESWITCH_FIFO2) 719 #define F_PERR_ESWITCH_FIFO2 V_PERR_ESWITCH_FIFO2(1U) 720 721 #define S_PERR_ESWITCH_FIFO1 19 722 #define V_PERR_ESWITCH_FIFO1(x) ((x) << S_PERR_ESWITCH_FIFO1) 723 #define F_PERR_ESWITCH_FIFO1 V_PERR_ESWITCH_FIFO1(1U) 724 725 #define S_PERR_ESWITCH_FIFO0 18 726 #define V_PERR_ESWITCH_FIFO0(x) ((x) << S_PERR_ESWITCH_FIFO0) 727 #define F_PERR_ESWITCH_FIFO0 V_PERR_ESWITCH_FIFO0(1U) 728 729 #define S_PERR_PC_DBP1 17 730 #define V_PERR_PC_DBP1(x) ((x) << S_PERR_PC_DBP1) 731 #define F_PERR_PC_DBP1 V_PERR_PC_DBP1(1U) 732 733 #define S_PERR_PC_DBP0 16 734 #define V_PERR_PC_DBP0(x) ((x) << S_PERR_PC_DBP0) 735 #define F_PERR_PC_DBP0 V_PERR_PC_DBP0(1U) 736 737 #define S_PERR_IMSG_OB_FIFO 15 738 #define V_PERR_IMSG_OB_FIFO(x) ((x) << S_PERR_IMSG_OB_FIFO) 739 #define F_PERR_IMSG_OB_FIFO V_PERR_IMSG_OB_FIFO(1U) 740 741 #define S_PERR_CONM_SRAM 14 742 #define V_PERR_CONM_SRAM(x) ((x) << S_PERR_CONM_SRAM) 743 #define F_PERR_CONM_SRAM V_PERR_CONM_SRAM(1U) 744 745 #define S_PERR_PC_MC_RSP 13 746 #define V_PERR_PC_MC_RSP(x) ((x) << S_PERR_PC_MC_RSP) 747 #define F_PERR_PC_MC_RSP V_PERR_PC_MC_RSP(1U) 748 749 #define S_PERR_ISW_IDMA0_FIFO 12 750 #define V_PERR_ISW_IDMA0_FIFO(x) ((x) << S_PERR_ISW_IDMA0_FIFO) 751 #define F_PERR_ISW_IDMA0_FIFO V_PERR_ISW_IDMA0_FIFO(1U) 752 753 #define S_PERR_ISW_IDMA1_FIFO 11 754 #define V_PERR_ISW_IDMA1_FIFO(x) ((x) << S_PERR_ISW_IDMA1_FIFO) 755 #define F_PERR_ISW_IDMA1_FIFO V_PERR_ISW_IDMA1_FIFO(1U) 756 757 #define S_PERR_ISW_DBP_FIFO 10 758 #define V_PERR_ISW_DBP_FIFO(x) ((x) << S_PERR_ISW_DBP_FIFO) 759 #define F_PERR_ISW_DBP_FIFO V_PERR_ISW_DBP_FIFO(1U) 760 761 #define S_PERR_ISW_GTS_FIFO 9 762 #define V_PERR_ISW_GTS_FIFO(x) ((x) << S_PERR_ISW_GTS_FIFO) 763 #define F_PERR_ISW_GTS_FIFO V_PERR_ISW_GTS_FIFO(1U) 764 765 #define S_PERR_ITP_EVR 8 766 #define V_PERR_ITP_EVR(x) ((x) << S_PERR_ITP_EVR) 767 #define F_PERR_ITP_EVR V_PERR_ITP_EVR(1U) 768 769 #define S_PERR_FLM_CNTXMEM 7 770 #define V_PERR_FLM_CNTXMEM(x) ((x) << S_PERR_FLM_CNTXMEM) 771 #define F_PERR_FLM_CNTXMEM V_PERR_FLM_CNTXMEM(1U) 772 773 #define S_PERR_FLM_L1CACHE 6 774 #define V_PERR_FLM_L1CACHE(x) ((x) << S_PERR_FLM_L1CACHE) 775 #define F_PERR_FLM_L1CACHE V_PERR_FLM_L1CACHE(1U) 776 777 #define S_PERR_DBP_HINT_FIFO 5 778 #define V_PERR_DBP_HINT_FIFO(x) ((x) << S_PERR_DBP_HINT_FIFO) 779 #define F_PERR_DBP_HINT_FIFO V_PERR_DBP_HINT_FIFO(1U) 780 781 #define S_PERR_DBP_HP_FIFO 4 782 #define V_PERR_DBP_HP_FIFO(x) ((x) << S_PERR_DBP_HP_FIFO) 783 #define F_PERR_DBP_HP_FIFO V_PERR_DBP_HP_FIFO(1U) 784 785 #define S_PERR_DBP_LP_FIFO 3 786 #define V_PERR_DBP_LP_FIFO(x) ((x) << S_PERR_DBP_LP_FIFO) 787 #define F_PERR_DBP_LP_FIFO V_PERR_DBP_LP_FIFO(1U) 788 789 #define S_PERR_ING_CTXT_CACHE 2 790 #define V_PERR_ING_CTXT_CACHE(x) ((x) << S_PERR_ING_CTXT_CACHE) 791 #define F_PERR_ING_CTXT_CACHE V_PERR_ING_CTXT_CACHE(1U) 792 793 #define S_PERR_EGR_CTXT_CACHE 1 794 #define V_PERR_EGR_CTXT_CACHE(x) ((x) << S_PERR_EGR_CTXT_CACHE) 795 #define F_PERR_EGR_CTXT_CACHE V_PERR_EGR_CTXT_CACHE(1U) 796 797 #define S_PERR_BASE_SIZE 0 798 #define V_PERR_BASE_SIZE(x) ((x) << S_PERR_BASE_SIZE) 799 #define F_PERR_BASE_SIZE V_PERR_BASE_SIZE(1U) 800 801 #define A_SGE_INT_ENABLE2 0x1034 802 #define A_SGE_PERR_ENABLE2 0x1038 803 #define A_SGE_INT_CAUSE3 0x103c 804 805 #define S_ERR_FLM_DBP 31 806 #define V_ERR_FLM_DBP(x) ((x) << S_ERR_FLM_DBP) 807 #define F_ERR_FLM_DBP V_ERR_FLM_DBP(1U) 808 809 #define S_ERR_FLM_IDMA1 30 810 #define V_ERR_FLM_IDMA1(x) ((x) << S_ERR_FLM_IDMA1) 811 #define F_ERR_FLM_IDMA1 V_ERR_FLM_IDMA1(1U) 812 813 #define S_ERR_FLM_IDMA0 29 814 #define V_ERR_FLM_IDMA0(x) ((x) << S_ERR_FLM_IDMA0) 815 #define F_ERR_FLM_IDMA0 V_ERR_FLM_IDMA0(1U) 816 817 #define S_ERR_FLM_HINT 28 818 #define V_ERR_FLM_HINT(x) ((x) << S_ERR_FLM_HINT) 819 #define F_ERR_FLM_HINT V_ERR_FLM_HINT(1U) 820 821 #define S_ERR_PCIE_ERROR3 27 822 #define V_ERR_PCIE_ERROR3(x) ((x) << S_ERR_PCIE_ERROR3) 823 #define F_ERR_PCIE_ERROR3 V_ERR_PCIE_ERROR3(1U) 824 825 #define S_ERR_PCIE_ERROR2 26 826 #define V_ERR_PCIE_ERROR2(x) ((x) << S_ERR_PCIE_ERROR2) 827 #define F_ERR_PCIE_ERROR2 V_ERR_PCIE_ERROR2(1U) 828 829 #define S_ERR_PCIE_ERROR1 25 830 #define V_ERR_PCIE_ERROR1(x) ((x) << S_ERR_PCIE_ERROR1) 831 #define F_ERR_PCIE_ERROR1 V_ERR_PCIE_ERROR1(1U) 832 833 #define S_ERR_PCIE_ERROR0 24 834 #define V_ERR_PCIE_ERROR0(x) ((x) << S_ERR_PCIE_ERROR0) 835 #define F_ERR_PCIE_ERROR0 V_ERR_PCIE_ERROR0(1U) 836 837 #define S_ERR_TIMER_ABOVE_MAX_QID 23 838 #define V_ERR_TIMER_ABOVE_MAX_QID(x) ((x) << S_ERR_TIMER_ABOVE_MAX_QID) 839 #define F_ERR_TIMER_ABOVE_MAX_QID V_ERR_TIMER_ABOVE_MAX_QID(1U) 840 841 #define S_ERR_CPL_EXCEED_IQE_SIZE 22 842 #define V_ERR_CPL_EXCEED_IQE_SIZE(x) ((x) << S_ERR_CPL_EXCEED_IQE_SIZE) 843 #define F_ERR_CPL_EXCEED_IQE_SIZE V_ERR_CPL_EXCEED_IQE_SIZE(1U) 844 845 #define S_ERR_INVALID_CIDX_INC 21 846 #define V_ERR_INVALID_CIDX_INC(x) ((x) << S_ERR_INVALID_CIDX_INC) 847 #define F_ERR_INVALID_CIDX_INC V_ERR_INVALID_CIDX_INC(1U) 848 849 #define S_ERR_ITP_TIME_PAUSED 20 850 #define V_ERR_ITP_TIME_PAUSED(x) ((x) << S_ERR_ITP_TIME_PAUSED) 851 #define F_ERR_ITP_TIME_PAUSED V_ERR_ITP_TIME_PAUSED(1U) 852 853 #define S_ERR_CPL_OPCODE_0 19 854 #define V_ERR_CPL_OPCODE_0(x) ((x) << S_ERR_CPL_OPCODE_0) 855 #define F_ERR_CPL_OPCODE_0 V_ERR_CPL_OPCODE_0(1U) 856 857 #define S_ERR_DROPPED_DB 18 858 #define V_ERR_DROPPED_DB(x) ((x) << S_ERR_DROPPED_DB) 859 #define F_ERR_DROPPED_DB V_ERR_DROPPED_DB(1U) 860 861 #define S_ERR_DATA_CPL_ON_HIGH_QID1 17 862 #define V_ERR_DATA_CPL_ON_HIGH_QID1(x) ((x) << S_ERR_DATA_CPL_ON_HIGH_QID1) 863 #define F_ERR_DATA_CPL_ON_HIGH_QID1 V_ERR_DATA_CPL_ON_HIGH_QID1(1U) 864 865 #define S_ERR_DATA_CPL_ON_HIGH_QID0 16 866 #define V_ERR_DATA_CPL_ON_HIGH_QID0(x) ((x) << S_ERR_DATA_CPL_ON_HIGH_QID0) 867 #define F_ERR_DATA_CPL_ON_HIGH_QID0 V_ERR_DATA_CPL_ON_HIGH_QID0(1U) 868 869 #define S_ERR_BAD_DB_PIDX3 15 870 #define V_ERR_BAD_DB_PIDX3(x) ((x) << S_ERR_BAD_DB_PIDX3) 871 #define F_ERR_BAD_DB_PIDX3 V_ERR_BAD_DB_PIDX3(1U) 872 873 #define S_ERR_BAD_DB_PIDX2 14 874 #define V_ERR_BAD_DB_PIDX2(x) ((x) << S_ERR_BAD_DB_PIDX2) 875 #define F_ERR_BAD_DB_PIDX2 V_ERR_BAD_DB_PIDX2(1U) 876 877 #define S_ERR_BAD_DB_PIDX1 13 878 #define V_ERR_BAD_DB_PIDX1(x) ((x) << S_ERR_BAD_DB_PIDX1) 879 #define F_ERR_BAD_DB_PIDX1 V_ERR_BAD_DB_PIDX1(1U) 880 881 #define S_ERR_BAD_DB_PIDX0 12 882 #define V_ERR_BAD_DB_PIDX0(x) ((x) << S_ERR_BAD_DB_PIDX0) 883 #define F_ERR_BAD_DB_PIDX0 V_ERR_BAD_DB_PIDX0(1U) 884 885 #define S_ERR_ING_PCIE_CHAN 11 886 #define V_ERR_ING_PCIE_CHAN(x) ((x) << S_ERR_ING_PCIE_CHAN) 887 #define F_ERR_ING_PCIE_CHAN V_ERR_ING_PCIE_CHAN(1U) 888 889 #define S_ERR_ING_CTXT_PRIO 10 890 #define V_ERR_ING_CTXT_PRIO(x) ((x) << S_ERR_ING_CTXT_PRIO) 891 #define F_ERR_ING_CTXT_PRIO V_ERR_ING_CTXT_PRIO(1U) 892 893 #define S_ERR_EGR_CTXT_PRIO 9 894 #define V_ERR_EGR_CTXT_PRIO(x) ((x) << S_ERR_EGR_CTXT_PRIO) 895 #define F_ERR_EGR_CTXT_PRIO V_ERR_EGR_CTXT_PRIO(1U) 896 897 #define S_DBFIFO_HP_INT 8 898 #define V_DBFIFO_HP_INT(x) ((x) << S_DBFIFO_HP_INT) 899 #define F_DBFIFO_HP_INT V_DBFIFO_HP_INT(1U) 900 901 #define S_DBFIFO_LP_INT 7 902 #define V_DBFIFO_LP_INT(x) ((x) << S_DBFIFO_LP_INT) 903 #define F_DBFIFO_LP_INT V_DBFIFO_LP_INT(1U) 904 905 #define S_REG_ADDRESS_ERR 6 906 #define V_REG_ADDRESS_ERR(x) ((x) << S_REG_ADDRESS_ERR) 907 #define F_REG_ADDRESS_ERR V_REG_ADDRESS_ERR(1U) 908 909 #define S_INGRESS_SIZE_ERR 5 910 #define V_INGRESS_SIZE_ERR(x) ((x) << S_INGRESS_SIZE_ERR) 911 #define F_INGRESS_SIZE_ERR V_INGRESS_SIZE_ERR(1U) 912 913 #define S_EGRESS_SIZE_ERR 4 914 #define V_EGRESS_SIZE_ERR(x) ((x) << S_EGRESS_SIZE_ERR) 915 #define F_EGRESS_SIZE_ERR V_EGRESS_SIZE_ERR(1U) 916 917 #define S_ERR_INV_CTXT3 3 918 #define V_ERR_INV_CTXT3(x) ((x) << S_ERR_INV_CTXT3) 919 #define F_ERR_INV_CTXT3 V_ERR_INV_CTXT3(1U) 920 921 #define S_ERR_INV_CTXT2 2 922 #define V_ERR_INV_CTXT2(x) ((x) << S_ERR_INV_CTXT2) 923 #define F_ERR_INV_CTXT2 V_ERR_INV_CTXT2(1U) 924 925 #define S_ERR_INV_CTXT1 1 926 #define V_ERR_INV_CTXT1(x) ((x) << S_ERR_INV_CTXT1) 927 #define F_ERR_INV_CTXT1 V_ERR_INV_CTXT1(1U) 928 929 #define S_ERR_INV_CTXT0 0 930 #define V_ERR_INV_CTXT0(x) ((x) << S_ERR_INV_CTXT0) 931 #define F_ERR_INV_CTXT0 V_ERR_INV_CTXT0(1U) 932 933 #define A_SGE_INT_ENABLE3 0x1040 934 #define A_SGE_FL_BUFFER_SIZE0 0x1044 935 936 #define S_SIZE 4 937 #define M_SIZE 0xfffffffU 938 #define V_SIZE(x) ((x) << S_SIZE) 939 #define G_SIZE(x) (((x) >> S_SIZE) & M_SIZE) 940 941 #define A_SGE_FL_BUFFER_SIZE1 0x1048 942 #define A_SGE_FL_BUFFER_SIZE2 0x104c 943 #define A_SGE_FL_BUFFER_SIZE3 0x1050 944 #define A_SGE_FL_BUFFER_SIZE4 0x1054 945 #define A_SGE_FL_BUFFER_SIZE5 0x1058 946 #define A_SGE_FL_BUFFER_SIZE6 0x105c 947 #define A_SGE_FL_BUFFER_SIZE7 0x1060 948 #define A_SGE_FL_BUFFER_SIZE8 0x1064 949 #define A_SGE_FL_BUFFER_SIZE9 0x1068 950 #define A_SGE_FL_BUFFER_SIZE10 0x106c 951 #define A_SGE_FL_BUFFER_SIZE11 0x1070 952 #define A_SGE_FL_BUFFER_SIZE12 0x1074 953 #define A_SGE_FL_BUFFER_SIZE13 0x1078 954 #define A_SGE_FL_BUFFER_SIZE14 0x107c 955 #define A_SGE_FL_BUFFER_SIZE15 0x1080 956 #define A_SGE_DBQ_CTXT_BADDR 0x1084 957 958 #define S_BASEADDR 3 959 #define M_BASEADDR 0x1fffffffU 960 #define V_BASEADDR(x) ((x) << S_BASEADDR) 961 #define G_BASEADDR(x) (((x) >> S_BASEADDR) & M_BASEADDR) 962 963 #define A_SGE_IMSG_CTXT_BADDR 0x1088 964 #define A_SGE_FLM_CACHE_BADDR 0x108c 965 #define A_SGE_FLM_CFG 0x1090 966 967 #define S_OPMODE 26 968 #define M_OPMODE 0x3fU 969 #define V_OPMODE(x) ((x) << S_OPMODE) 970 #define G_OPMODE(x) (((x) >> S_OPMODE) & M_OPMODE) 971 972 #define S_NOHDR 18 973 #define V_NOHDR(x) ((x) << S_NOHDR) 974 #define F_NOHDR V_NOHDR(1U) 975 976 #define S_CACHEPTRCNT 16 977 #define M_CACHEPTRCNT 0x3U 978 #define V_CACHEPTRCNT(x) ((x) << S_CACHEPTRCNT) 979 #define G_CACHEPTRCNT(x) (((x) >> S_CACHEPTRCNT) & M_CACHEPTRCNT) 980 981 #define S_EDRAMPTRCNT 14 982 #define M_EDRAMPTRCNT 0x3U 983 #define V_EDRAMPTRCNT(x) ((x) << S_EDRAMPTRCNT) 984 #define G_EDRAMPTRCNT(x) (((x) >> S_EDRAMPTRCNT) & M_EDRAMPTRCNT) 985 986 #define S_HDRSTARTFLQ 11 987 #define M_HDRSTARTFLQ 0x7U 988 #define V_HDRSTARTFLQ(x) ((x) << S_HDRSTARTFLQ) 989 #define G_HDRSTARTFLQ(x) (((x) >> S_HDRSTARTFLQ) & M_HDRSTARTFLQ) 990 991 #define S_FETCHTHRESH 6 992 #define M_FETCHTHRESH 0x1fU 993 #define V_FETCHTHRESH(x) ((x) << S_FETCHTHRESH) 994 #define G_FETCHTHRESH(x) (((x) >> S_FETCHTHRESH) & M_FETCHTHRESH) 995 996 #define S_CREDITCNT 4 997 #define M_CREDITCNT 0x3U 998 #define V_CREDITCNT(x) ((x) << S_CREDITCNT) 999 #define G_CREDITCNT(x) (((x) >> S_CREDITCNT) & M_CREDITCNT) 1000 1001 #define S_NOEDRAM 0 1002 #define V_NOEDRAM(x) ((x) << S_NOEDRAM) 1003 #define F_NOEDRAM V_NOEDRAM(1U) 1004 1005 #define A_SGE_CONM_CTRL 0x1094 1006 1007 #define S_EGRTHRESHOLD 8 1008 #define M_EGRTHRESHOLD 0x3fU 1009 #define V_EGRTHRESHOLD(x) ((x) << S_EGRTHRESHOLD) 1010 #define G_EGRTHRESHOLD(x) (((x) >> S_EGRTHRESHOLD) & M_EGRTHRESHOLD) 1011 1012 #define S_INGTHRESHOLD 2 1013 #define M_INGTHRESHOLD 0x3fU 1014 #define V_INGTHRESHOLD(x) ((x) << S_INGTHRESHOLD) 1015 #define G_INGTHRESHOLD(x) (((x) >> S_INGTHRESHOLD) & M_INGTHRESHOLD) 1016 1017 #define S_MPS_ENABLE 1 1018 #define V_MPS_ENABLE(x) ((x) << S_MPS_ENABLE) 1019 #define F_MPS_ENABLE V_MPS_ENABLE(1U) 1020 1021 #define S_TP_ENABLE 0 1022 #define V_TP_ENABLE(x) ((x) << S_TP_ENABLE) 1023 #define F_TP_ENABLE V_TP_ENABLE(1U) 1024 1025 #define A_SGE_TIMESTAMP_LO 0x1098 1026 #define A_SGE_TIMESTAMP_HI 0x109c 1027 1028 #define S_TSOP 28 1029 #define M_TSOP 0x3U 1030 #define V_TSOP(x) ((x) << S_TSOP) 1031 #define G_TSOP(x) (((x) >> S_TSOP) & M_TSOP) 1032 1033 #define S_TSVAL 0 1034 #define M_TSVAL 0xfffffffU 1035 #define V_TSVAL(x) ((x) << S_TSVAL) 1036 #define G_TSVAL(x) (((x) >> S_TSVAL) & M_TSVAL) 1037 1038 #define A_SGE_INGRESS_RX_THRESHOLD 0x10a0 1039 1040 #define S_THRESHOLD_0 24 1041 #define M_THRESHOLD_0 0x3fU 1042 #define V_THRESHOLD_0(x) ((x) << S_THRESHOLD_0) 1043 #define G_THRESHOLD_0(x) (((x) >> S_THRESHOLD_0) & M_THRESHOLD_0) 1044 1045 #define S_THRESHOLD_1 16 1046 #define M_THRESHOLD_1 0x3fU 1047 #define V_THRESHOLD_1(x) ((x) << S_THRESHOLD_1) 1048 #define G_THRESHOLD_1(x) (((x) >> S_THRESHOLD_1) & M_THRESHOLD_1) 1049 1050 #define S_THRESHOLD_2 8 1051 #define M_THRESHOLD_2 0x3fU 1052 #define V_THRESHOLD_2(x) ((x) << S_THRESHOLD_2) 1053 #define G_THRESHOLD_2(x) (((x) >> S_THRESHOLD_2) & M_THRESHOLD_2) 1054 1055 #define S_THRESHOLD_3 0 1056 #define M_THRESHOLD_3 0x3fU 1057 #define V_THRESHOLD_3(x) ((x) << S_THRESHOLD_3) 1058 #define G_THRESHOLD_3(x) (((x) >> S_THRESHOLD_3) & M_THRESHOLD_3) 1059 1060 #define A_SGE_DBFIFO_STATUS 0x10a4 1061 1062 #define S_HP_INT_THRESH 28 1063 #define M_HP_INT_THRESH 0xfU 1064 #define V_HP_INT_THRESH(x) ((x) << S_HP_INT_THRESH) 1065 #define G_HP_INT_THRESH(x) (((x) >> S_HP_INT_THRESH) & M_HP_INT_THRESH) 1066 1067 #define S_HP_COUNT 16 1068 #define M_HP_COUNT 0x7ffU 1069 #define V_HP_COUNT(x) ((x) << S_HP_COUNT) 1070 #define G_HP_COUNT(x) (((x) >> S_HP_COUNT) & M_HP_COUNT) 1071 1072 #define S_LP_INT_THRESH 12 1073 #define M_LP_INT_THRESH 0xfU 1074 #define V_LP_INT_THRESH(x) ((x) << S_LP_INT_THRESH) 1075 #define G_LP_INT_THRESH(x) (((x) >> S_LP_INT_THRESH) & M_LP_INT_THRESH) 1076 1077 #define S_LP_COUNT 0 1078 #define M_LP_COUNT 0x7ffU 1079 #define V_LP_COUNT(x) ((x) << S_LP_COUNT) 1080 #define G_LP_COUNT(x) (((x) >> S_LP_COUNT) & M_LP_COUNT) 1081 1082 #define A_SGE_DOORBELL_CONTROL 0x10a8 1083 1084 #define S_HINTDEPTHCTL 27 1085 #define M_HINTDEPTHCTL 0x1fU 1086 #define V_HINTDEPTHCTL(x) ((x) << S_HINTDEPTHCTL) 1087 #define G_HINTDEPTHCTL(x) (((x) >> S_HINTDEPTHCTL) & M_HINTDEPTHCTL) 1088 1089 #define S_NOCOALESCE 26 1090 #define V_NOCOALESCE(x) ((x) << S_NOCOALESCE) 1091 #define F_NOCOALESCE V_NOCOALESCE(1U) 1092 1093 #define S_HP_WEIGHT 24 1094 #define M_HP_WEIGHT 0x3U 1095 #define V_HP_WEIGHT(x) ((x) << S_HP_WEIGHT) 1096 #define G_HP_WEIGHT(x) (((x) >> S_HP_WEIGHT) & M_HP_WEIGHT) 1097 1098 #define S_HP_DISABLE 23 1099 #define V_HP_DISABLE(x) ((x) << S_HP_DISABLE) 1100 #define F_HP_DISABLE V_HP_DISABLE(1U) 1101 1102 #define S_FORCEUSERDBTOLP 22 1103 #define V_FORCEUSERDBTOLP(x) ((x) << S_FORCEUSERDBTOLP) 1104 #define F_FORCEUSERDBTOLP V_FORCEUSERDBTOLP(1U) 1105 1106 #define S_FORCEVFPF0DBTOLP 21 1107 #define V_FORCEVFPF0DBTOLP(x) ((x) << S_FORCEVFPF0DBTOLP) 1108 #define F_FORCEVFPF0DBTOLP V_FORCEVFPF0DBTOLP(1U) 1109 1110 #define S_FORCEVFPF1DBTOLP 20 1111 #define V_FORCEVFPF1DBTOLP(x) ((x) << S_FORCEVFPF1DBTOLP) 1112 #define F_FORCEVFPF1DBTOLP V_FORCEVFPF1DBTOLP(1U) 1113 1114 #define S_FORCEVFPF2DBTOLP 19 1115 #define V_FORCEVFPF2DBTOLP(x) ((x) << S_FORCEVFPF2DBTOLP) 1116 #define F_FORCEVFPF2DBTOLP V_FORCEVFPF2DBTOLP(1U) 1117 1118 #define S_FORCEVFPF3DBTOLP 18 1119 #define V_FORCEVFPF3DBTOLP(x) ((x) << S_FORCEVFPF3DBTOLP) 1120 #define F_FORCEVFPF3DBTOLP V_FORCEVFPF3DBTOLP(1U) 1121 1122 #define S_FORCEVFPF4DBTOLP 17 1123 #define V_FORCEVFPF4DBTOLP(x) ((x) << S_FORCEVFPF4DBTOLP) 1124 #define F_FORCEVFPF4DBTOLP V_FORCEVFPF4DBTOLP(1U) 1125 1126 #define S_FORCEVFPF5DBTOLP 16 1127 #define V_FORCEVFPF5DBTOLP(x) ((x) << S_FORCEVFPF5DBTOLP) 1128 #define F_FORCEVFPF5DBTOLP V_FORCEVFPF5DBTOLP(1U) 1129 1130 #define S_FORCEVFPF6DBTOLP 15 1131 #define V_FORCEVFPF6DBTOLP(x) ((x) << S_FORCEVFPF6DBTOLP) 1132 #define F_FORCEVFPF6DBTOLP V_FORCEVFPF6DBTOLP(1U) 1133 1134 #define S_FORCEVFPF7DBTOLP 14 1135 #define V_FORCEVFPF7DBTOLP(x) ((x) << S_FORCEVFPF7DBTOLP) 1136 #define F_FORCEVFPF7DBTOLP V_FORCEVFPF7DBTOLP(1U) 1137 1138 #define S_ENABLE_DROP 13 1139 #define V_ENABLE_DROP(x) ((x) << S_ENABLE_DROP) 1140 #define F_ENABLE_DROP V_ENABLE_DROP(1U) 1141 1142 #define S_DROP_TIMEOUT 1 1143 #define M_DROP_TIMEOUT 0xfffU 1144 #define V_DROP_TIMEOUT(x) ((x) << S_DROP_TIMEOUT) 1145 #define G_DROP_TIMEOUT(x) (((x) >> S_DROP_TIMEOUT) & M_DROP_TIMEOUT) 1146 1147 #define S_DROPPED_DB 0 1148 #define V_DROPPED_DB(x) ((x) << S_DROPPED_DB) 1149 #define F_DROPPED_DB V_DROPPED_DB(1U) 1150 1151 #define A_SGE_DROPPED_DOORBELL 0x10ac 1152 #define A_SGE_DOORBELL_THROTTLE_CONTROL 0x10b0 1153 1154 #define S_THROTTLE_COUNT 1 1155 #define M_THROTTLE_COUNT 0xfffU 1156 #define V_THROTTLE_COUNT(x) ((x) << S_THROTTLE_COUNT) 1157 #define G_THROTTLE_COUNT(x) (((x) >> S_THROTTLE_COUNT) & M_THROTTLE_COUNT) 1158 1159 #define S_THROTTLE_ENABLE 0 1160 #define V_THROTTLE_ENABLE(x) ((x) << S_THROTTLE_ENABLE) 1161 #define F_THROTTLE_ENABLE V_THROTTLE_ENABLE(1U) 1162 1163 #define A_SGE_ITP_CONTROL 0x10b4 1164 1165 #define S_CRITICAL_TIME 10 1166 #define M_CRITICAL_TIME 0x7fffU 1167 #define V_CRITICAL_TIME(x) ((x) << S_CRITICAL_TIME) 1168 #define G_CRITICAL_TIME(x) (((x) >> S_CRITICAL_TIME) & M_CRITICAL_TIME) 1169 1170 #define S_LL_EMPTY 4 1171 #define M_LL_EMPTY 0x3fU 1172 #define V_LL_EMPTY(x) ((x) << S_LL_EMPTY) 1173 #define G_LL_EMPTY(x) (((x) >> S_LL_EMPTY) & M_LL_EMPTY) 1174 1175 #define S_LL_READ_WAIT_DISABLE 0 1176 #define V_LL_READ_WAIT_DISABLE(x) ((x) << S_LL_READ_WAIT_DISABLE) 1177 #define F_LL_READ_WAIT_DISABLE V_LL_READ_WAIT_DISABLE(1U) 1178 1179 #define A_SGE_TIMER_VALUE_0_AND_1 0x10b8 1180 1181 #define S_TIMERVALUE0 16 1182 #define M_TIMERVALUE0 0xffffU 1183 #define V_TIMERVALUE0(x) ((x) << S_TIMERVALUE0) 1184 #define G_TIMERVALUE0(x) (((x) >> S_TIMERVALUE0) & M_TIMERVALUE0) 1185 1186 #define S_TIMERVALUE1 0 1187 #define M_TIMERVALUE1 0xffffU 1188 #define V_TIMERVALUE1(x) ((x) << S_TIMERVALUE1) 1189 #define G_TIMERVALUE1(x) (((x) >> S_TIMERVALUE1) & M_TIMERVALUE1) 1190 1191 #define A_SGE_TIMER_VALUE_2_AND_3 0x10bc 1192 1193 #define S_TIMERVALUE2 16 1194 #define M_TIMERVALUE2 0xffffU 1195 #define V_TIMERVALUE2(x) ((x) << S_TIMERVALUE2) 1196 #define G_TIMERVALUE2(x) (((x) >> S_TIMERVALUE2) & M_TIMERVALUE2) 1197 1198 #define S_TIMERVALUE3 0 1199 #define M_TIMERVALUE3 0xffffU 1200 #define V_TIMERVALUE3(x) ((x) << S_TIMERVALUE3) 1201 #define G_TIMERVALUE3(x) (((x) >> S_TIMERVALUE3) & M_TIMERVALUE3) 1202 1203 #define A_SGE_TIMER_VALUE_4_AND_5 0x10c0 1204 1205 #define S_TIMERVALUE4 16 1206 #define M_TIMERVALUE4 0xffffU 1207 #define V_TIMERVALUE4(x) ((x) << S_TIMERVALUE4) 1208 #define G_TIMERVALUE4(x) (((x) >> S_TIMERVALUE4) & M_TIMERVALUE4) 1209 1210 #define S_TIMERVALUE5 0 1211 #define M_TIMERVALUE5 0xffffU 1212 #define V_TIMERVALUE5(x) ((x) << S_TIMERVALUE5) 1213 #define G_TIMERVALUE5(x) (((x) >> S_TIMERVALUE5) & M_TIMERVALUE5) 1214 1215 #define A_SGE_PD_RSP_CREDIT01 0x10c4 1216 1217 #define S_RSPCREDITEN0 31 1218 #define V_RSPCREDITEN0(x) ((x) << S_RSPCREDITEN0) 1219 #define F_RSPCREDITEN0 V_RSPCREDITEN0(1U) 1220 1221 #define S_MAXTAG0 24 1222 #define M_MAXTAG0 0x7fU 1223 #define V_MAXTAG0(x) ((x) << S_MAXTAG0) 1224 #define G_MAXTAG0(x) (((x) >> S_MAXTAG0) & M_MAXTAG0) 1225 1226 #define S_MAXRSPCNT0 16 1227 #define M_MAXRSPCNT0 0xffU 1228 #define V_MAXRSPCNT0(x) ((x) << S_MAXRSPCNT0) 1229 #define G_MAXRSPCNT0(x) (((x) >> S_MAXRSPCNT0) & M_MAXRSPCNT0) 1230 1231 #define S_RSPCREDITEN1 15 1232 #define V_RSPCREDITEN1(x) ((x) << S_RSPCREDITEN1) 1233 #define F_RSPCREDITEN1 V_RSPCREDITEN1(1U) 1234 1235 #define S_MAXTAG1 8 1236 #define M_MAXTAG1 0x7fU 1237 #define V_MAXTAG1(x) ((x) << S_MAXTAG1) 1238 #define G_MAXTAG1(x) (((x) >> S_MAXTAG1) & M_MAXTAG1) 1239 1240 #define S_MAXRSPCNT1 0 1241 #define M_MAXRSPCNT1 0xffU 1242 #define V_MAXRSPCNT1(x) ((x) << S_MAXRSPCNT1) 1243 #define G_MAXRSPCNT1(x) (((x) >> S_MAXRSPCNT1) & M_MAXRSPCNT1) 1244 1245 #define A_SGE_PD_RSP_CREDIT23 0x10c8 1246 1247 #define S_RSPCREDITEN2 31 1248 #define V_RSPCREDITEN2(x) ((x) << S_RSPCREDITEN2) 1249 #define F_RSPCREDITEN2 V_RSPCREDITEN2(1U) 1250 1251 #define S_MAXTAG2 24 1252 #define M_MAXTAG2 0x7fU 1253 #define V_MAXTAG2(x) ((x) << S_MAXTAG2) 1254 #define G_MAXTAG2(x) (((x) >> S_MAXTAG2) & M_MAXTAG2) 1255 1256 #define S_MAXRSPCNT2 16 1257 #define M_MAXRSPCNT2 0xffU 1258 #define V_MAXRSPCNT2(x) ((x) << S_MAXRSPCNT2) 1259 #define G_MAXRSPCNT2(x) (((x) >> S_MAXRSPCNT2) & M_MAXRSPCNT2) 1260 1261 #define S_RSPCREDITEN3 15 1262 #define V_RSPCREDITEN3(x) ((x) << S_RSPCREDITEN3) 1263 #define F_RSPCREDITEN3 V_RSPCREDITEN3(1U) 1264 1265 #define S_MAXTAG3 8 1266 #define M_MAXTAG3 0x7fU 1267 #define V_MAXTAG3(x) ((x) << S_MAXTAG3) 1268 #define G_MAXTAG3(x) (((x) >> S_MAXTAG3) & M_MAXTAG3) 1269 1270 #define S_MAXRSPCNT3 0 1271 #define M_MAXRSPCNT3 0xffU 1272 #define V_MAXRSPCNT3(x) ((x) << S_MAXRSPCNT3) 1273 #define G_MAXRSPCNT3(x) (((x) >> S_MAXRSPCNT3) & M_MAXRSPCNT3) 1274 1275 #define A_SGE_DEBUG_INDEX 0x10cc 1276 #define A_SGE_DEBUG_DATA_HIGH 0x10d0 1277 #define A_SGE_DEBUG_DATA_LOW 0x10d4 1278 #define A_SGE_REVISION 0x10d8 1279 #define A_SGE_INT_CAUSE4 0x10dc 1280 1281 #define S_ERR_BAD_UPFL_INC_CREDIT3 8 1282 #define V_ERR_BAD_UPFL_INC_CREDIT3(x) ((x) << S_ERR_BAD_UPFL_INC_CREDIT3) 1283 #define F_ERR_BAD_UPFL_INC_CREDIT3 V_ERR_BAD_UPFL_INC_CREDIT3(1U) 1284 1285 #define S_ERR_BAD_UPFL_INC_CREDIT2 7 1286 #define V_ERR_BAD_UPFL_INC_CREDIT2(x) ((x) << S_ERR_BAD_UPFL_INC_CREDIT2) 1287 #define F_ERR_BAD_UPFL_INC_CREDIT2 V_ERR_BAD_UPFL_INC_CREDIT2(1U) 1288 1289 #define S_ERR_BAD_UPFL_INC_CREDIT1 6 1290 #define V_ERR_BAD_UPFL_INC_CREDIT1(x) ((x) << S_ERR_BAD_UPFL_INC_CREDIT1) 1291 #define F_ERR_BAD_UPFL_INC_CREDIT1 V_ERR_BAD_UPFL_INC_CREDIT1(1U) 1292 1293 #define S_ERR_BAD_UPFL_INC_CREDIT0 5 1294 #define V_ERR_BAD_UPFL_INC_CREDIT0(x) ((x) << S_ERR_BAD_UPFL_INC_CREDIT0) 1295 #define F_ERR_BAD_UPFL_INC_CREDIT0 V_ERR_BAD_UPFL_INC_CREDIT0(1U) 1296 1297 #define S_ERR_PHYSADDR_LEN0_IDMA1 4 1298 #define V_ERR_PHYSADDR_LEN0_IDMA1(x) ((x) << S_ERR_PHYSADDR_LEN0_IDMA1) 1299 #define F_ERR_PHYSADDR_LEN0_IDMA1 V_ERR_PHYSADDR_LEN0_IDMA1(1U) 1300 1301 #define S_ERR_PHYSADDR_LEN0_IDMA0 3 1302 #define V_ERR_PHYSADDR_LEN0_IDMA0(x) ((x) << S_ERR_PHYSADDR_LEN0_IDMA0) 1303 #define F_ERR_PHYSADDR_LEN0_IDMA0 V_ERR_PHYSADDR_LEN0_IDMA0(1U) 1304 1305 #define S_ERR_FLM_INVALID_PKT_DROP1 2 1306 #define V_ERR_FLM_INVALID_PKT_DROP1(x) ((x) << S_ERR_FLM_INVALID_PKT_DROP1) 1307 #define F_ERR_FLM_INVALID_PKT_DROP1 V_ERR_FLM_INVALID_PKT_DROP1(1U) 1308 1309 #define S_ERR_FLM_INVALID_PKT_DROP0 1 1310 #define V_ERR_FLM_INVALID_PKT_DROP0(x) ((x) << S_ERR_FLM_INVALID_PKT_DROP0) 1311 #define F_ERR_FLM_INVALID_PKT_DROP0 V_ERR_FLM_INVALID_PKT_DROP0(1U) 1312 1313 #define S_ERR_UNEXPECTED_TIMER 0 1314 #define V_ERR_UNEXPECTED_TIMER(x) ((x) << S_ERR_UNEXPECTED_TIMER) 1315 #define F_ERR_UNEXPECTED_TIMER V_ERR_UNEXPECTED_TIMER(1U) 1316 1317 #define A_SGE_INT_ENABLE4 0x10e0 1318 #define A_SGE_STAT_TOTAL 0x10e4 1319 #define A_SGE_STAT_MATCH 0x10e8 1320 #define A_SGE_STAT_CFG 0x10ec 1321 1322 #define S_ITPOPMODE 8 1323 #define V_ITPOPMODE(x) ((x) << S_ITPOPMODE) 1324 #define F_ITPOPMODE V_ITPOPMODE(1U) 1325 1326 #define S_EGRCTXTOPMODE 6 1327 #define M_EGRCTXTOPMODE 0x3U 1328 #define V_EGRCTXTOPMODE(x) ((x) << S_EGRCTXTOPMODE) 1329 #define G_EGRCTXTOPMODE(x) (((x) >> S_EGRCTXTOPMODE) & M_EGRCTXTOPMODE) 1330 1331 #define S_INGCTXTOPMODE 4 1332 #define M_INGCTXTOPMODE 0x3U 1333 #define V_INGCTXTOPMODE(x) ((x) << S_INGCTXTOPMODE) 1334 #define G_INGCTXTOPMODE(x) (((x) >> S_INGCTXTOPMODE) & M_INGCTXTOPMODE) 1335 1336 #define S_STATMODE 2 1337 #define M_STATMODE 0x3U 1338 #define V_STATMODE(x) ((x) << S_STATMODE) 1339 #define G_STATMODE(x) (((x) >> S_STATMODE) & M_STATMODE) 1340 1341 #define S_STATSOURCE 0 1342 #define M_STATSOURCE 0x3U 1343 #define V_STATSOURCE(x) ((x) << S_STATSOURCE) 1344 #define G_STATSOURCE(x) (((x) >> S_STATSOURCE) & M_STATSOURCE) 1345 1346 #define A_SGE_HINT_CFG 0x10f0 1347 1348 #define S_HINTSALLOWEDNOHDR 6 1349 #define M_HINTSALLOWEDNOHDR 0x3fU 1350 #define V_HINTSALLOWEDNOHDR(x) ((x) << S_HINTSALLOWEDNOHDR) 1351 #define G_HINTSALLOWEDNOHDR(x) \ 1352 (((x) >> S_HINTSALLOWEDNOHDR) & M_HINTSALLOWEDNOHDR) 1353 1354 #define S_HINTSALLOWEDHDR 0 1355 #define M_HINTSALLOWEDHDR 0x3fU 1356 #define V_HINTSALLOWEDHDR(x) ((x) << S_HINTSALLOWEDHDR) 1357 #define G_HINTSALLOWEDHDR(x) (((x) >> S_HINTSALLOWEDHDR) & M_HINTSALLOWEDHDR) 1358 1359 #define A_SGE_INGRESS_QUEUES_PER_PAGE_PF 0x10f4 1360 #define A_SGE_INGRESS_QUEUES_PER_PAGE_VF 0x10f8 1361 #define A_SGE_PD_WRR_CONFIG 0x10fc 1362 1363 #define S_EDMA_WEIGHT 0 1364 #define M_EDMA_WEIGHT 0x3fU 1365 #define V_EDMA_WEIGHT(x) ((x) << S_EDMA_WEIGHT) 1366 #define G_EDMA_WEIGHT(x) (((x) >> S_EDMA_WEIGHT) & M_EDMA_WEIGHT) 1367 1368 #define A_SGE_ERROR_STATS 0x1100 1369 1370 #define S_UNCAPTURED_ERROR 18 1371 #define V_UNCAPTURED_ERROR(x) ((x) << S_UNCAPTURED_ERROR) 1372 #define F_UNCAPTURED_ERROR V_UNCAPTURED_ERROR(1U) 1373 1374 #define S_ERROR_QID_VALID 17 1375 #define V_ERROR_QID_VALID(x) ((x) << S_ERROR_QID_VALID) 1376 #define F_ERROR_QID_VALID V_ERROR_QID_VALID(1U) 1377 1378 #define S_ERROR_QID 0 1379 #define M_ERROR_QID 0x1ffffU 1380 #define V_ERROR_QID(x) ((x) << S_ERROR_QID) 1381 #define G_ERROR_QID(x) (((x) >> S_ERROR_QID) & M_ERROR_QID) 1382 1383 #define A_SGE_SHARED_TAG_CHAN_CFG 0x1104 1384 1385 #define S_MINTAG3 24 1386 #define M_MINTAG3 0xffU 1387 #define V_MINTAG3(x) ((x) << S_MINTAG3) 1388 #define G_MINTAG3(x) (((x) >> S_MINTAG3) & M_MINTAG3) 1389 1390 #define S_MINTAG2 16 1391 #define M_MINTAG2 0xffU 1392 #define V_MINTAG2(x) ((x) << S_MINTAG2) 1393 #define G_MINTAG2(x) (((x) >> S_MINTAG2) & M_MINTAG2) 1394 1395 #define S_MINTAG1 8 1396 #define M_MINTAG1 0xffU 1397 #define V_MINTAG1(x) ((x) << S_MINTAG1) 1398 #define G_MINTAG1(x) (((x) >> S_MINTAG1) & M_MINTAG1) 1399 1400 #define S_MINTAG0 0 1401 #define M_MINTAG0 0xffU 1402 #define V_MINTAG0(x) ((x) << S_MINTAG0) 1403 #define G_MINTAG0(x) (((x) >> S_MINTAG0) & M_MINTAG0) 1404 1405 #define A_SGE_SHARED_TAG_POOL_CFG 0x1108 1406 1407 #define S_TAGPOOLTOTAL 0 1408 #define M_TAGPOOLTOTAL 0xffU 1409 #define V_TAGPOOLTOTAL(x) ((x) << S_TAGPOOLTOTAL) 1410 #define G_TAGPOOLTOTAL(x) (((x) >> S_TAGPOOLTOTAL) & M_TAGPOOLTOTAL) 1411 1412 #define A_SGE_PC0_REQ_BIST_CMD 0x1180 1413 #define A_SGE_PC0_REQ_BIST_ERROR_CNT 0x1184 1414 #define A_SGE_PC1_REQ_BIST_CMD 0x1190 1415 #define A_SGE_PC1_REQ_BIST_ERROR_CNT 0x1194 1416 #define A_SGE_PC0_RSP_BIST_CMD 0x11a0 1417 #define A_SGE_PC0_RSP_BIST_ERROR_CNT 0x11a4 1418 #define A_SGE_PC1_RSP_BIST_CMD 0x11b0 1419 #define A_SGE_PC1_RSP_BIST_ERROR_CNT 0x11b4 1420 #define A_SGE_CTXT_CMD 0x11fc 1421 1422 #define S_BUSY 31 1423 #define V_BUSY(x) ((x) << S_BUSY) 1424 #define F_BUSY V_BUSY(1U) 1425 1426 #define S_CTXTOP 28 1427 #define M_CTXTOP 0x3U 1428 #define V_CTXTOP(x) ((x) << S_CTXTOP) 1429 #define G_CTXTOP(x) (((x) >> S_CTXTOP) & M_CTXTOP) 1430 1431 #define S_CTXTTYPE 24 1432 #define M_CTXTTYPE 0x3U 1433 #define V_CTXTTYPE(x) ((x) << S_CTXTTYPE) 1434 #define G_CTXTTYPE(x) (((x) >> S_CTXTTYPE) & M_CTXTTYPE) 1435 1436 #define S_CTXTQID 0 1437 #define M_CTXTQID 0x1ffffU 1438 #define V_CTXTQID(x) ((x) << S_CTXTQID) 1439 #define G_CTXTQID(x) (((x) >> S_CTXTQID) & M_CTXTQID) 1440 1441 #define A_SGE_CTXT_DATA0 0x1200 1442 #define A_SGE_CTXT_DATA1 0x1204 1443 #define A_SGE_CTXT_DATA2 0x1208 1444 #define A_SGE_CTXT_DATA3 0x120c 1445 #define A_SGE_CTXT_DATA4 0x1210 1446 #define A_SGE_CTXT_DATA5 0x1214 1447 #define A_SGE_CTXT_DATA6 0x1218 1448 #define A_SGE_CTXT_DATA7 0x121c 1449 #define A_SGE_CTXT_MASK0 0x1220 1450 #define A_SGE_CTXT_MASK1 0x1224 1451 #define A_SGE_CTXT_MASK2 0x1228 1452 #define A_SGE_CTXT_MASK3 0x122c 1453 #define A_SGE_CTXT_MASK4 0x1230 1454 #define A_SGE_CTXT_MASK5 0x1234 1455 #define A_SGE_CTXT_MASK6 0x1238 1456 #define A_SGE_CTXT_MASK7 0x123c 1457 #define A_SGE_QUEUE_BASE_MAP_HIGH 0x1300 1458 1459 #define S_EGRESS_LOG2SIZE 27 1460 #define M_EGRESS_LOG2SIZE 0x1fU 1461 #define V_EGRESS_LOG2SIZE(x) ((x) << S_EGRESS_LOG2SIZE) 1462 #define G_EGRESS_LOG2SIZE(x) (((x) >> S_EGRESS_LOG2SIZE) & M_EGRESS_LOG2SIZE) 1463 1464 #define S_EGRESS_BASE 10 1465 #define M_EGRESS_BASE 0x1ffffU 1466 #define V_EGRESS_BASE(x) ((x) << S_EGRESS_BASE) 1467 #define G_EGRESS_BASE(x) (((x) >> S_EGRESS_BASE) & M_EGRESS_BASE) 1468 1469 #define S_INGRESS2_LOG2SIZE 5 1470 #define M_INGRESS2_LOG2SIZE 0x1fU 1471 #define V_INGRESS2_LOG2SIZE(x) ((x) << S_INGRESS2_LOG2SIZE) 1472 #define G_INGRESS2_LOG2SIZE(x) \ 1473 (((x) >> S_INGRESS2_LOG2SIZE) & M_INGRESS2_LOG2SIZE) 1474 1475 #define S_INGRESS1_LOG2SIZE 0 1476 #define M_INGRESS1_LOG2SIZE 0x1fU 1477 #define V_INGRESS1_LOG2SIZE(x) ((x) << S_INGRESS1_LOG2SIZE) 1478 #define G_INGRESS1_LOG2SIZE(x) \ 1479 (((x) >> S_INGRESS1_LOG2SIZE) & M_INGRESS1_LOG2SIZE) 1480 1481 #define A_SGE_QUEUE_BASE_MAP_LOW 0x1304 1482 1483 #define S_INGRESS2_BASE 16 1484 #define M_INGRESS2_BASE 0xffffU 1485 #define V_INGRESS2_BASE(x) ((x) << S_INGRESS2_BASE) 1486 #define G_INGRESS2_BASE(x) (((x) >> S_INGRESS2_BASE) & M_INGRESS2_BASE) 1487 1488 #define S_INGRESS1_BASE 0 1489 #define M_INGRESS1_BASE 0xffffU 1490 #define V_INGRESS1_BASE(x) ((x) << S_INGRESS1_BASE) 1491 #define G_INGRESS1_BASE(x) (((x) >> S_INGRESS1_BASE) & M_INGRESS1_BASE) 1492 1493 #define A_SGE_LA_RDPTR_0 0x1800 1494 #define A_SGE_LA_RDDATA_0 0x1804 1495 #define A_SGE_LA_WRPTR_0 0x1808 1496 #define A_SGE_LA_RESERVED_0 0x180c 1497 #define A_SGE_LA_RDPTR_1 0x1810 1498 #define A_SGE_LA_RDDATA_1 0x1814 1499 #define A_SGE_LA_WRPTR_1 0x1818 1500 #define A_SGE_LA_RESERVED_1 0x181c 1501 #define A_SGE_LA_RDPTR_2 0x1820 1502 #define A_SGE_LA_RDDATA_2 0x1824 1503 #define A_SGE_LA_WRPTR_2 0x1828 1504 #define A_SGE_LA_RESERVED_2 0x182c 1505 #define A_SGE_LA_RDPTR_3 0x1830 1506 #define A_SGE_LA_RDDATA_3 0x1834 1507 #define A_SGE_LA_WRPTR_3 0x1838 1508 #define A_SGE_LA_RESERVED_3 0x183c 1509 #define A_SGE_LA_RDPTR_4 0x1840 1510 #define A_SGE_LA_RDDATA_4 0x1844 1511 #define A_SGE_LA_WRPTR_4 0x1848 1512 #define A_SGE_LA_RESERVED_4 0x184c 1513 #define A_SGE_LA_RDPTR_5 0x1850 1514 #define A_SGE_LA_RDDATA_5 0x1854 1515 #define A_SGE_LA_WRPTR_5 0x1858 1516 #define A_SGE_LA_RESERVED_5 0x185c 1517 #define A_SGE_LA_RDPTR_6 0x1860 1518 #define A_SGE_LA_RDDATA_6 0x1864 1519 #define A_SGE_LA_WRPTR_6 0x1868 1520 #define A_SGE_LA_RESERVED_6 0x186c 1521 #define A_SGE_LA_RDPTR_7 0x1870 1522 #define A_SGE_LA_RDDATA_7 0x1874 1523 #define A_SGE_LA_WRPTR_7 0x1878 1524 #define A_SGE_LA_RESERVED_7 0x187c 1525 #define A_SGE_LA_RDPTR_8 0x1880 1526 #define A_SGE_LA_RDDATA_8 0x1884 1527 #define A_SGE_LA_WRPTR_8 0x1888 1528 #define A_SGE_LA_RESERVED_8 0x188c 1529 #define A_SGE_LA_RDPTR_9 0x1890 1530 #define A_SGE_LA_RDDATA_9 0x1894 1531 #define A_SGE_LA_WRPTR_9 0x1898 1532 #define A_SGE_LA_RESERVED_9 0x189c 1533 #define A_SGE_LA_RDPTR_10 0x18a0 1534 #define A_SGE_LA_RDDATA_10 0x18a4 1535 #define A_SGE_LA_WRPTR_10 0x18a8 1536 #define A_SGE_LA_RESERVED_10 0x18ac 1537 #define A_SGE_LA_RDPTR_11 0x18b0 1538 #define A_SGE_LA_RDDATA_11 0x18b4 1539 #define A_SGE_LA_WRPTR_11 0x18b8 1540 #define A_SGE_LA_RESERVED_11 0x18bc 1541 #define A_SGE_LA_RDPTR_12 0x18c0 1542 #define A_SGE_LA_RDDATA_12 0x18c4 1543 #define A_SGE_LA_WRPTR_12 0x18c8 1544 #define A_SGE_LA_RESERVED_12 0x18cc 1545 #define A_SGE_LA_RDPTR_13 0x18d0 1546 #define A_SGE_LA_RDDATA_13 0x18d4 1547 #define A_SGE_LA_WRPTR_13 0x18d8 1548 #define A_SGE_LA_RESERVED_13 0x18dc 1549 #define A_SGE_LA_RDPTR_14 0x18e0 1550 #define A_SGE_LA_RDDATA_14 0x18e4 1551 #define A_SGE_LA_WRPTR_14 0x18e8 1552 #define A_SGE_LA_RESERVED_14 0x18ec 1553 #define A_SGE_LA_RDPTR_15 0x18f0 1554 #define A_SGE_LA_RDDATA_15 0x18f4 1555 #define A_SGE_LA_WRPTR_15 0x18f8 1556 #define A_SGE_LA_RESERVED_15 0x18fc 1557 1558 /* registers for module PCIE */ 1559 #define PCIE_BASE_ADDR 0x3000 1560 1561 #define A_PCIE_PF_CFG 0x40 1562 1563 #define S_INTXSTAT 16 1564 #define V_INTXSTAT(x) ((x) << S_INTXSTAT) 1565 #define F_INTXSTAT V_INTXSTAT(1U) 1566 1567 #define S_AUXPWRPMEN 15 1568 #define V_AUXPWRPMEN(x) ((x) << S_AUXPWRPMEN) 1569 #define F_AUXPWRPMEN V_AUXPWRPMEN(1U) 1570 1571 #define S_NOSOFTRESET 14 1572 #define V_NOSOFTRESET(x) ((x) << S_NOSOFTRESET) 1573 #define F_NOSOFTRESET V_NOSOFTRESET(1U) 1574 1575 #define S_AIVEC 4 1576 #define M_AIVEC 0x3ffU 1577 #define V_AIVEC(x) ((x) << S_AIVEC) 1578 #define G_AIVEC(x) (((x) >> S_AIVEC) & M_AIVEC) 1579 1580 #define S_INTXTYPE 2 1581 #define M_INTXTYPE 0x3U 1582 #define V_INTXTYPE(x) ((x) << S_INTXTYPE) 1583 #define G_INTXTYPE(x) (((x) >> S_INTXTYPE) & M_INTXTYPE) 1584 1585 #define S_D3HOTEN 1 1586 #define V_D3HOTEN(x) ((x) << S_D3HOTEN) 1587 #define F_D3HOTEN V_D3HOTEN(1U) 1588 1589 #define S_CLIDECEN 0 1590 #define V_CLIDECEN(x) ((x) << S_CLIDECEN) 1591 #define F_CLIDECEN V_CLIDECEN(1U) 1592 1593 #define A_PCIE_PF_CLI 0x44 1594 #define A_PCIE_PF_GEN_MSG 0x48 1595 1596 #define S_MSGTYPE 0 1597 #define M_MSGTYPE 0xffU 1598 #define V_MSGTYPE(x) ((x) << S_MSGTYPE) 1599 #define G_MSGTYPE(x) (((x) >> S_MSGTYPE) & M_MSGTYPE) 1600 1601 #define A_PCIE_PF_EXPROM_OFST 0x4c 1602 1603 #define S_OFFSET 10 1604 #define M_OFFSET 0x3fffU 1605 #define V_OFFSET(x) ((x) << S_OFFSET) 1606 #define G_OFFSET(x) (((x) >> S_OFFSET) & M_OFFSET) 1607 1608 #define A_PCIE_INT_ENABLE 0x3000 1609 1610 #define S_NONFATALERR 30 1611 #define V_NONFATALERR(x) ((x) << S_NONFATALERR) 1612 #define F_NONFATALERR V_NONFATALERR(1U) 1613 1614 #define S_UNXSPLCPLERR 29 1615 #define V_UNXSPLCPLERR(x) ((x) << S_UNXSPLCPLERR) 1616 #define F_UNXSPLCPLERR V_UNXSPLCPLERR(1U) 1617 1618 #define S_PCIEPINT 28 1619 #define V_PCIEPINT(x) ((x) << S_PCIEPINT) 1620 #define F_PCIEPINT V_PCIEPINT(1U) 1621 1622 #define S_PCIESINT 27 1623 #define V_PCIESINT(x) ((x) << S_PCIESINT) 1624 #define F_PCIESINT V_PCIESINT(1U) 1625 1626 #define S_RPLPERR 26 1627 #define V_RPLPERR(x) ((x) << S_RPLPERR) 1628 #define F_RPLPERR V_RPLPERR(1U) 1629 1630 #define S_RXWRPERR 25 1631 #define V_RXWRPERR(x) ((x) << S_RXWRPERR) 1632 #define F_RXWRPERR V_RXWRPERR(1U) 1633 1634 #define S_RXCPLPERR 24 1635 #define V_RXCPLPERR(x) ((x) << S_RXCPLPERR) 1636 #define F_RXCPLPERR V_RXCPLPERR(1U) 1637 1638 #define S_PIOTAGPERR 23 1639 #define V_PIOTAGPERR(x) ((x) << S_PIOTAGPERR) 1640 #define F_PIOTAGPERR V_PIOTAGPERR(1U) 1641 1642 #define S_MATAGPERR 22 1643 #define V_MATAGPERR(x) ((x) << S_MATAGPERR) 1644 #define F_MATAGPERR V_MATAGPERR(1U) 1645 1646 #define S_INTXCLRPERR 21 1647 #define V_INTXCLRPERR(x) ((x) << S_INTXCLRPERR) 1648 #define F_INTXCLRPERR V_INTXCLRPERR(1U) 1649 1650 #define S_FIDPERR 20 1651 #define V_FIDPERR(x) ((x) << S_FIDPERR) 1652 #define F_FIDPERR V_FIDPERR(1U) 1653 1654 #define S_CFGSNPPERR 19 1655 #define V_CFGSNPPERR(x) ((x) << S_CFGSNPPERR) 1656 #define F_CFGSNPPERR V_CFGSNPPERR(1U) 1657 1658 #define S_HRSPPERR 18 1659 #define V_HRSPPERR(x) ((x) << S_HRSPPERR) 1660 #define F_HRSPPERR V_HRSPPERR(1U) 1661 1662 #define S_HREQPERR 17 1663 #define V_HREQPERR(x) ((x) << S_HREQPERR) 1664 #define F_HREQPERR V_HREQPERR(1U) 1665 1666 #define S_HCNTPERR 16 1667 #define V_HCNTPERR(x) ((x) << S_HCNTPERR) 1668 #define F_HCNTPERR V_HCNTPERR(1U) 1669 1670 #define S_DRSPPERR 15 1671 #define V_DRSPPERR(x) ((x) << S_DRSPPERR) 1672 #define F_DRSPPERR V_DRSPPERR(1U) 1673 1674 #define S_DREQPERR 14 1675 #define V_DREQPERR(x) ((x) << S_DREQPERR) 1676 #define F_DREQPERR V_DREQPERR(1U) 1677 1678 #define S_DCNTPERR 13 1679 #define V_DCNTPERR(x) ((x) << S_DCNTPERR) 1680 #define F_DCNTPERR V_DCNTPERR(1U) 1681 1682 #define S_CRSPPERR 12 1683 #define V_CRSPPERR(x) ((x) << S_CRSPPERR) 1684 #define F_CRSPPERR V_CRSPPERR(1U) 1685 1686 #define S_CREQPERR 11 1687 #define V_CREQPERR(x) ((x) << S_CREQPERR) 1688 #define F_CREQPERR V_CREQPERR(1U) 1689 1690 #define S_CCNTPERR 10 1691 #define V_CCNTPERR(x) ((x) << S_CCNTPERR) 1692 #define F_CCNTPERR V_CCNTPERR(1U) 1693 1694 #define S_TARTAGPERR 9 1695 #define V_TARTAGPERR(x) ((x) << S_TARTAGPERR) 1696 #define F_TARTAGPERR V_TARTAGPERR(1U) 1697 1698 #define S_PIOREQPERR 8 1699 #define V_PIOREQPERR(x) ((x) << S_PIOREQPERR) 1700 #define F_PIOREQPERR V_PIOREQPERR(1U) 1701 1702 #define S_PIOCPLPERR 7 1703 #define V_PIOCPLPERR(x) ((x) << S_PIOCPLPERR) 1704 #define F_PIOCPLPERR V_PIOCPLPERR(1U) 1705 1706 #define S_MSIXDIPERR 6 1707 #define V_MSIXDIPERR(x) ((x) << S_MSIXDIPERR) 1708 #define F_MSIXDIPERR V_MSIXDIPERR(1U) 1709 1710 #define S_MSIXDATAPERR 5 1711 #define V_MSIXDATAPERR(x) ((x) << S_MSIXDATAPERR) 1712 #define F_MSIXDATAPERR V_MSIXDATAPERR(1U) 1713 1714 #define S_MSIXADDRHPERR 4 1715 #define V_MSIXADDRHPERR(x) ((x) << S_MSIXADDRHPERR) 1716 #define F_MSIXADDRHPERR V_MSIXADDRHPERR(1U) 1717 1718 #define S_MSIXADDRLPERR 3 1719 #define V_MSIXADDRLPERR(x) ((x) << S_MSIXADDRLPERR) 1720 #define F_MSIXADDRLPERR V_MSIXADDRLPERR(1U) 1721 1722 #define S_MSIDATAPERR 2 1723 #define V_MSIDATAPERR(x) ((x) << S_MSIDATAPERR) 1724 #define F_MSIDATAPERR V_MSIDATAPERR(1U) 1725 1726 #define S_MSIADDRHPERR 1 1727 #define V_MSIADDRHPERR(x) ((x) << S_MSIADDRHPERR) 1728 #define F_MSIADDRHPERR V_MSIADDRHPERR(1U) 1729 1730 #define S_MSIADDRLPERR 0 1731 #define V_MSIADDRLPERR(x) ((x) << S_MSIADDRLPERR) 1732 #define F_MSIADDRLPERR V_MSIADDRLPERR(1U) 1733 1734 #define A_PCIE_INT_CAUSE 0x3004 1735 #define A_PCIE_PERR_ENABLE 0x3008 1736 #define A_PCIE_PERR_INJECT 0x300c 1737 1738 #define S_IDE 0 1739 #define V_IDE(x) ((x) << S_IDE) 1740 #define F_IDE V_IDE(1U) 1741 1742 #define A_PCIE_NONFAT_ERR 0x3010 1743 1744 #define S_RDRSPERR 9 1745 #define V_RDRSPERR(x) ((x) << S_RDRSPERR) 1746 #define F_RDRSPERR V_RDRSPERR(1U) 1747 1748 #define S_VPDRSPERR 8 1749 #define V_VPDRSPERR(x) ((x) << S_VPDRSPERR) 1750 #define F_VPDRSPERR V_VPDRSPERR(1U) 1751 1752 #define S_POPD 7 1753 #define V_POPD(x) ((x) << S_POPD) 1754 #define F_POPD V_POPD(1U) 1755 1756 #define S_POPH 6 1757 #define V_POPH(x) ((x) << S_POPH) 1758 #define F_POPH V_POPH(1U) 1759 1760 #define S_POPC 5 1761 #define V_POPC(x) ((x) << S_POPC) 1762 #define F_POPC V_POPC(1U) 1763 1764 #define S_MEMREQ 4 1765 #define V_MEMREQ(x) ((x) << S_MEMREQ) 1766 #define F_MEMREQ V_MEMREQ(1U) 1767 1768 #define S_PIOREQ 3 1769 #define V_PIOREQ(x) ((x) << S_PIOREQ) 1770 #define F_PIOREQ V_PIOREQ(1U) 1771 1772 #define S_TAGDROP 2 1773 #define V_TAGDROP(x) ((x) << S_TAGDROP) 1774 #define F_TAGDROP V_TAGDROP(1U) 1775 1776 #define S_TAGCPL 1 1777 #define V_TAGCPL(x) ((x) << S_TAGCPL) 1778 #define F_TAGCPL V_TAGCPL(1U) 1779 1780 #define S_CFGSNP 0 1781 #define V_CFGSNP(x) ((x) << S_CFGSNP) 1782 #define F_CFGSNP V_CFGSNP(1U) 1783 1784 #define A_PCIE_CFG 0x3014 1785 1786 #define S_CFGDMAXPYLDSZRX 26 1787 #define M_CFGDMAXPYLDSZRX 0x7U 1788 #define V_CFGDMAXPYLDSZRX(x) ((x) << S_CFGDMAXPYLDSZRX) 1789 #define G_CFGDMAXPYLDSZRX(x) (((x) >> S_CFGDMAXPYLDSZRX) & M_CFGDMAXPYLDSZRX) 1790 1791 #define S_CFGDMAXPYLDSZTX 23 1792 #define M_CFGDMAXPYLDSZTX 0x7U 1793 #define V_CFGDMAXPYLDSZTX(x) ((x) << S_CFGDMAXPYLDSZTX) 1794 #define G_CFGDMAXPYLDSZTX(x) (((x) >> S_CFGDMAXPYLDSZTX) & M_CFGDMAXPYLDSZTX) 1795 1796 #define S_CFGDMAXRDREQSZ 20 1797 #define M_CFGDMAXRDREQSZ 0x7U 1798 #define V_CFGDMAXRDREQSZ(x) ((x) << S_CFGDMAXRDREQSZ) 1799 #define G_CFGDMAXRDREQSZ(x) (((x) >> S_CFGDMAXRDREQSZ) & M_CFGDMAXRDREQSZ) 1800 1801 #define S_MASYNCEN 19 1802 #define V_MASYNCEN(x) ((x) << S_MASYNCEN) 1803 #define F_MASYNCEN V_MASYNCEN(1U) 1804 1805 #define S_DCAENDMA 18 1806 #define V_DCAENDMA(x) ((x) << S_DCAENDMA) 1807 #define F_DCAENDMA V_DCAENDMA(1U) 1808 1809 #define S_DCAENCMD 17 1810 #define V_DCAENCMD(x) ((x) << S_DCAENCMD) 1811 #define F_DCAENCMD V_DCAENCMD(1U) 1812 1813 #define S_VFMSIPNDEN 16 1814 #define V_VFMSIPNDEN(x) ((x) << S_VFMSIPNDEN) 1815 #define F_VFMSIPNDEN V_VFMSIPNDEN(1U) 1816 1817 #define S_FORCETXERROR 15 1818 #define V_FORCETXERROR(x) ((x) << S_FORCETXERROR) 1819 #define F_FORCETXERROR V_FORCETXERROR(1U) 1820 1821 #define S_VPDREQPROTECT 14 1822 #define V_VPDREQPROTECT(x) ((x) << S_VPDREQPROTECT) 1823 #define F_VPDREQPROTECT V_VPDREQPROTECT(1U) 1824 1825 #define S_FIDTABLEINVALID 13 1826 #define V_FIDTABLEINVALID(x) ((x) << S_FIDTABLEINVALID) 1827 #define F_FIDTABLEINVALID V_FIDTABLEINVALID(1U) 1828 1829 #define S_BYPASSMSIXCACHE 12 1830 #define V_BYPASSMSIXCACHE(x) ((x) << S_BYPASSMSIXCACHE) 1831 #define F_BYPASSMSIXCACHE V_BYPASSMSIXCACHE(1U) 1832 1833 #define S_BYPASSMSICACHE 11 1834 #define V_BYPASSMSICACHE(x) ((x) << S_BYPASSMSICACHE) 1835 #define F_BYPASSMSICACHE V_BYPASSMSICACHE(1U) 1836 1837 #define S_SIMSPEED 10 1838 #define V_SIMSPEED(x) ((x) << S_SIMSPEED) 1839 #define F_SIMSPEED V_SIMSPEED(1U) 1840 1841 #define S_TC0_STAMP 9 1842 #define V_TC0_STAMP(x) ((x) << S_TC0_STAMP) 1843 #define F_TC0_STAMP V_TC0_STAMP(1U) 1844 1845 #define S_AI_TCVAL 6 1846 #define M_AI_TCVAL 0x7U 1847 #define V_AI_TCVAL(x) ((x) << S_AI_TCVAL) 1848 #define G_AI_TCVAL(x) (((x) >> S_AI_TCVAL) & M_AI_TCVAL) 1849 1850 #define S_DMASTOPEN 5 1851 #define V_DMASTOPEN(x) ((x) << S_DMASTOPEN) 1852 #define F_DMASTOPEN V_DMASTOPEN(1U) 1853 1854 #define S_DEVSTATERSTMODE 4 1855 #define V_DEVSTATERSTMODE(x) ((x) << S_DEVSTATERSTMODE) 1856 #define F_DEVSTATERSTMODE V_DEVSTATERSTMODE(1U) 1857 1858 #define S_HOTRSTPCIECRSTMODE 3 1859 #define V_HOTRSTPCIECRSTMODE(x) ((x) << S_HOTRSTPCIECRSTMODE) 1860 #define F_HOTRSTPCIECRSTMODE V_HOTRSTPCIECRSTMODE(1U) 1861 1862 #define S_DLDNPCIECRSTMODE 2 1863 #define V_DLDNPCIECRSTMODE(x) ((x) << S_DLDNPCIECRSTMODE) 1864 #define F_DLDNPCIECRSTMODE V_DLDNPCIECRSTMODE(1U) 1865 1866 #define S_DLDNPCIEPRECRSTMODE 1 1867 #define V_DLDNPCIEPRECRSTMODE(x) ((x) << S_DLDNPCIEPRECRSTMODE) 1868 #define F_DLDNPCIEPRECRSTMODE V_DLDNPCIEPRECRSTMODE(1U) 1869 1870 #define S_LINKDNRSTEN 0 1871 #define V_LINKDNRSTEN(x) ((x) << S_LINKDNRSTEN) 1872 #define F_LINKDNRSTEN V_LINKDNRSTEN(1U) 1873 1874 #define A_PCIE_DMA_CTRL 0x3018 1875 1876 #define S_LITTLEENDIAN 7 1877 #define V_LITTLEENDIAN(x) ((x) << S_LITTLEENDIAN) 1878 #define F_LITTLEENDIAN V_LITTLEENDIAN(1U) 1879 1880 #define A_PCIE_DMA_CFG 0x301c 1881 1882 #define S_MAXPYLDSIZE 28 1883 #define M_MAXPYLDSIZE 0x7U 1884 #define V_MAXPYLDSIZE(x) ((x) << S_MAXPYLDSIZE) 1885 #define G_MAXPYLDSIZE(x) (((x) >> S_MAXPYLDSIZE) & M_MAXPYLDSIZE) 1886 1887 #define S_MAXRDREQSIZE 25 1888 #define M_MAXRDREQSIZE 0x7U 1889 #define V_MAXRDREQSIZE(x) ((x) << S_MAXRDREQSIZE) 1890 #define G_MAXRDREQSIZE(x) (((x) >> S_MAXRDREQSIZE) & M_MAXRDREQSIZE) 1891 1892 #define S_DMA_MAXRSPCNT 16 1893 #define M_DMA_MAXRSPCNT 0x1ffU 1894 #define V_DMA_MAXRSPCNT(x) ((x) << S_DMA_MAXRSPCNT) 1895 #define G_DMA_MAXRSPCNT(x) (((x) >> S_DMA_MAXRSPCNT) & M_DMA_MAXRSPCNT) 1896 1897 #define S_DMA_MAXREQCNT 8 1898 #define M_DMA_MAXREQCNT 0xffU 1899 #define V_DMA_MAXREQCNT(x) ((x) << S_DMA_MAXREQCNT) 1900 #define G_DMA_MAXREQCNT(x) (((x) >> S_DMA_MAXREQCNT) & M_DMA_MAXREQCNT) 1901 1902 #define S_MAXTAG 0 1903 #define M_MAXTAG 0x7fU 1904 #define V_MAXTAG(x) ((x) << S_MAXTAG) 1905 #define G_MAXTAG(x) (((x) >> S_MAXTAG) & M_MAXTAG) 1906 1907 #define A_PCIE_DMA_STAT 0x3020 1908 1909 #define S_STATEREQ 28 1910 #define M_STATEREQ 0xfU 1911 #define V_STATEREQ(x) ((x) << S_STATEREQ) 1912 #define G_STATEREQ(x) (((x) >> S_STATEREQ) & M_STATEREQ) 1913 1914 #define S_DMA_RSPCNT 16 1915 #define M_DMA_RSPCNT 0xfffU 1916 #define V_DMA_RSPCNT(x) ((x) << S_DMA_RSPCNT) 1917 #define G_DMA_RSPCNT(x) (((x) >> S_DMA_RSPCNT) & M_DMA_RSPCNT) 1918 1919 #define S_STATEAREQ 13 1920 #define M_STATEAREQ 0x7U 1921 #define V_STATEAREQ(x) ((x) << S_STATEAREQ) 1922 #define G_STATEAREQ(x) (((x) >> S_STATEAREQ) & M_STATEAREQ) 1923 1924 #define S_TAGFREE 12 1925 #define V_TAGFREE(x) ((x) << S_TAGFREE) 1926 #define F_TAGFREE V_TAGFREE(1U) 1927 1928 #define S_DMA_REQCNT 0 1929 #define M_DMA_REQCNT 0x7ffU 1930 #define V_DMA_REQCNT(x) ((x) << S_DMA_REQCNT) 1931 #define G_DMA_REQCNT(x) (((x) >> S_DMA_REQCNT) & M_DMA_REQCNT) 1932 1933 #define A_PCIE_CMD_CTRL 0x303c 1934 #define A_PCIE_CMD_CFG 0x3040 1935 1936 #define S_MAXRSPCNT 16 1937 #define M_MAXRSPCNT 0xfU 1938 #define V_MAXRSPCNT(x) ((x) << S_MAXRSPCNT) 1939 #define G_MAXRSPCNT(x) (((x) >> S_MAXRSPCNT) & M_MAXRSPCNT) 1940 1941 #define S_MAXREQCNT 8 1942 #define M_MAXREQCNT 0x1fU 1943 #define V_MAXREQCNT(x) ((x) << S_MAXREQCNT) 1944 #define G_MAXREQCNT(x) (((x) >> S_MAXREQCNT) & M_MAXREQCNT) 1945 1946 #define A_PCIE_CMD_STAT 0x3044 1947 1948 #define S_RSPCNT 16 1949 #define M_RSPCNT 0x7fU 1950 #define V_RSPCNT(x) ((x) << S_RSPCNT) 1951 #define G_RSPCNT(x) (((x) >> S_RSPCNT) & M_RSPCNT) 1952 1953 #define S_REQCNT 0 1954 #define M_REQCNT 0xffU 1955 #define V_REQCNT(x) ((x) << S_REQCNT) 1956 #define G_REQCNT(x) (((x) >> S_REQCNT) & M_REQCNT) 1957 1958 #define A_PCIE_HMA_CTRL 0x3050 1959 1960 #define S_IPLTSSM 12 1961 #define M_IPLTSSM 0xfU 1962 #define V_IPLTSSM(x) ((x) << S_IPLTSSM) 1963 #define G_IPLTSSM(x) (((x) >> S_IPLTSSM) & M_IPLTSSM) 1964 1965 #define S_IPCONFIGDOWN 8 1966 #define M_IPCONFIGDOWN 0x7U 1967 #define V_IPCONFIGDOWN(x) ((x) << S_IPCONFIGDOWN) 1968 #define G_IPCONFIGDOWN(x) (((x) >> S_IPCONFIGDOWN) & M_IPCONFIGDOWN) 1969 1970 #define A_PCIE_HMA_CFG 0x3054 1971 1972 #define S_HMA_MAXRSPCNT 16 1973 #define M_HMA_MAXRSPCNT 0x1fU 1974 #define V_HMA_MAXRSPCNT(x) ((x) << S_HMA_MAXRSPCNT) 1975 #define G_HMA_MAXRSPCNT(x) (((x) >> S_HMA_MAXRSPCNT) & M_HMA_MAXRSPCNT) 1976 1977 #define A_PCIE_HMA_STAT 0x3058 1978 1979 #define S_HMA_RSPCNT 16 1980 #define M_HMA_RSPCNT 0xffU 1981 #define V_HMA_RSPCNT(x) ((x) << S_HMA_RSPCNT) 1982 #define G_HMA_RSPCNT(x) (((x) >> S_HMA_RSPCNT) & M_HMA_RSPCNT) 1983 1984 #define A_PCIE_PIO_FIFO_CFG 0x305c 1985 1986 #define S_CPLCONFIG 16 1987 #define M_CPLCONFIG 0xffffU 1988 #define V_CPLCONFIG(x) ((x) << S_CPLCONFIG) 1989 #define G_CPLCONFIG(x) (((x) >> S_CPLCONFIG) & M_CPLCONFIG) 1990 1991 #define S_PIOSTOPEN 12 1992 #define V_PIOSTOPEN(x) ((x) << S_PIOSTOPEN) 1993 #define F_PIOSTOPEN V_PIOSTOPEN(1U) 1994 1995 #define S_IPLANESWAP 11 1996 #define V_IPLANESWAP(x) ((x) << S_IPLANESWAP) 1997 #define F_IPLANESWAP V_IPLANESWAP(1U) 1998 1999 #define S_FORCESTRICTTS1 10 2000 #define V_FORCESTRICTTS1(x) ((x) << S_FORCESTRICTTS1) 2001 #define F_FORCESTRICTTS1 V_FORCESTRICTTS1(1U) 2002 2003 #define S_FORCEPROGRESSCNT 0 2004 #define M_FORCEPROGRESSCNT 0x3ffU 2005 #define V_FORCEPROGRESSCNT(x) ((x) << S_FORCEPROGRESSCNT) 2006 #define G_FORCEPROGRESSCNT(x) (((x) >> S_FORCEPROGRESSCNT) & M_FORCEPROGRESSCNT) 2007 2008 #define A_PCIE_CFG_SPACE_REQ 0x3060 2009 2010 #define S_ENABLE 30 2011 #define V_ENABLE(x) ((x) << S_ENABLE) 2012 #define F_ENABLE V_ENABLE(1U) 2013 2014 #define S_AI 29 2015 #define V_AI(x) ((x) << S_AI) 2016 #define F_AI V_AI(1U) 2017 2018 #define S_LOCALCFG 28 2019 #define V_LOCALCFG(x) ((x) << S_LOCALCFG) 2020 #define F_LOCALCFG V_LOCALCFG(1U) 2021 2022 #define S_BUS 20 2023 #define M_BUS 0xffU 2024 #define V_BUS(x) ((x) << S_BUS) 2025 #define G_BUS(x) (((x) >> S_BUS) & M_BUS) 2026 2027 #define S_DEVICE 15 2028 #define M_DEVICE 0x1fU 2029 #define V_DEVICE(x) ((x) << S_DEVICE) 2030 #define G_DEVICE(x) (((x) >> S_DEVICE) & M_DEVICE) 2031 2032 #define S_FUNCTION 12 2033 #define M_FUNCTION 0x7U 2034 #define V_FUNCTION(x) ((x) << S_FUNCTION) 2035 #define G_FUNCTION(x) (((x) >> S_FUNCTION) & M_FUNCTION) 2036 2037 #define S_EXTREGISTER 8 2038 #define M_EXTREGISTER 0xfU 2039 #define V_EXTREGISTER(x) ((x) << S_EXTREGISTER) 2040 #define G_EXTREGISTER(x) (((x) >> S_EXTREGISTER) & M_EXTREGISTER) 2041 2042 #define S_REGISTER 0 2043 #define M_REGISTER 0xffU 2044 #define V_REGISTER(x) ((x) << S_REGISTER) 2045 #define G_REGISTER(x) (((x) >> S_REGISTER) & M_REGISTER) 2046 2047 #define A_PCIE_CFG_SPACE_DATA 0x3064 2048 #define A_PCIE_MEM_ACCESS_BASE_WIN 0x3068 2049 2050 #define S_PCIEOFST 10 2051 #define M_PCIEOFST 0x3fffffU 2052 #define V_PCIEOFST(x) ((x) << S_PCIEOFST) 2053 #define G_PCIEOFST(x) (((x) >> S_PCIEOFST) & M_PCIEOFST) 2054 2055 #define S_BIR 8 2056 #define M_BIR 0x3U 2057 #define V_BIR(x) ((x) << S_BIR) 2058 #define G_BIR(x) (((x) >> S_BIR) & M_BIR) 2059 2060 #define S_WINDOW 0 2061 #define M_WINDOW 0xffU 2062 #define V_WINDOW(x) ((x) << S_WINDOW) 2063 #define G_WINDOW(x) (((x) >> S_WINDOW) & M_WINDOW) 2064 2065 #define A_PCIE_MEM_ACCESS_OFFSET 0x306c 2066 #define A_PCIE_MAILBOX_BASE_WIN 0x30a8 2067 2068 #define S_MBOXPCIEOFST 6 2069 #define M_MBOXPCIEOFST 0x3ffffffU 2070 #define V_MBOXPCIEOFST(x) ((x) << S_MBOXPCIEOFST) 2071 #define G_MBOXPCIEOFST(x) (((x) >> S_MBOXPCIEOFST) & M_MBOXPCIEOFST) 2072 2073 #define S_MBOXBIR 4 2074 #define M_MBOXBIR 0x3U 2075 #define V_MBOXBIR(x) ((x) << S_MBOXBIR) 2076 #define G_MBOXBIR(x) (((x) >> S_MBOXBIR) & M_MBOXBIR) 2077 2078 #define S_MBOXWIN 0 2079 #define M_MBOXWIN 0x3U 2080 #define V_MBOXWIN(x) ((x) << S_MBOXWIN) 2081 #define G_MBOXWIN(x) (((x) >> S_MBOXWIN) & M_MBOXWIN) 2082 2083 #define A_PCIE_MAILBOX_OFFSET 0x30ac 2084 #define A_PCIE_MA_CTRL 0x30b0 2085 2086 #define S_MA_TAGFREE 29 2087 #define V_MA_TAGFREE(x) ((x) << S_MA_TAGFREE) 2088 #define F_MA_TAGFREE V_MA_TAGFREE(1U) 2089 2090 #define S_MA_MAXRSPCNT 24 2091 #define M_MA_MAXRSPCNT 0x1fU 2092 #define V_MA_MAXRSPCNT(x) ((x) << S_MA_MAXRSPCNT) 2093 #define G_MA_MAXRSPCNT(x) (((x) >> S_MA_MAXRSPCNT) & M_MA_MAXRSPCNT) 2094 2095 #define S_MA_MAXREQCNT 16 2096 #define M_MA_MAXREQCNT 0x1fU 2097 #define V_MA_MAXREQCNT(x) ((x) << S_MA_MAXREQCNT) 2098 #define G_MA_MAXREQCNT(x) (((x) >> S_MA_MAXREQCNT) & M_MA_MAXREQCNT) 2099 2100 #define S_MA_LE 15 2101 #define V_MA_LE(x) ((x) << S_MA_LE) 2102 #define F_MA_LE V_MA_LE(1U) 2103 2104 #define S_MA_MAXPYLDSIZE 12 2105 #define M_MA_MAXPYLDSIZE 0x7U 2106 #define V_MA_MAXPYLDSIZE(x) ((x) << S_MA_MAXPYLDSIZE) 2107 #define G_MA_MAXPYLDSIZE(x) (((x) >> S_MA_MAXPYLDSIZE) & M_MA_MAXPYLDSIZE) 2108 2109 #define S_MA_MAXRDREQSIZE 8 2110 #define M_MA_MAXRDREQSIZE 0x7U 2111 #define V_MA_MAXRDREQSIZE(x) ((x) << S_MA_MAXRDREQSIZE) 2112 #define G_MA_MAXRDREQSIZE(x) (((x) >> S_MA_MAXRDREQSIZE) & M_MA_MAXRDREQSIZE) 2113 2114 #define S_MA_MAXTAG 0 2115 #define M_MA_MAXTAG 0x1fU 2116 #define V_MA_MAXTAG(x) ((x) << S_MA_MAXTAG) 2117 #define G_MA_MAXTAG(x) (((x) >> S_MA_MAXTAG) & M_MA_MAXTAG) 2118 2119 #define A_PCIE_MA_SYNC 0x30b4 2120 #define A_PCIE_FW 0x30b8 2121 #define A_PCIE_FW_PF 0x30bc 2122 #define A_PCIE_PIO_PAUSE 0x30dc 2123 2124 #define S_PIOPAUSEDONE 31 2125 #define V_PIOPAUSEDONE(x) ((x) << S_PIOPAUSEDONE) 2126 #define F_PIOPAUSEDONE V_PIOPAUSEDONE(1U) 2127 2128 #define S_PIOPAUSETIME 4 2129 #define M_PIOPAUSETIME 0xffffffU 2130 #define V_PIOPAUSETIME(x) ((x) << S_PIOPAUSETIME) 2131 #define G_PIOPAUSETIME(x) (((x) >> S_PIOPAUSETIME) & M_PIOPAUSETIME) 2132 2133 #define S_PIOPAUSE 0 2134 #define V_PIOPAUSE(x) ((x) << S_PIOPAUSE) 2135 #define F_PIOPAUSE V_PIOPAUSE(1U) 2136 2137 #define A_PCIE_SYS_CFG_READY 0x30e0 2138 #define A_PCIE_STATIC_CFG1 0x30e4 2139 2140 #define S_LINKDOWN_RESET_EN 26 2141 #define V_LINKDOWN_RESET_EN(x) ((x) << S_LINKDOWN_RESET_EN) 2142 #define F_LINKDOWN_RESET_EN V_LINKDOWN_RESET_EN(1U) 2143 2144 #define S_IN_WR_DISCONTIG 25 2145 #define V_IN_WR_DISCONTIG(x) ((x) << S_IN_WR_DISCONTIG) 2146 #define F_IN_WR_DISCONTIG V_IN_WR_DISCONTIG(1U) 2147 2148 #define S_IN_RD_CPLSIZE 22 2149 #define M_IN_RD_CPLSIZE 0x7U 2150 #define V_IN_RD_CPLSIZE(x) ((x) << S_IN_RD_CPLSIZE) 2151 #define G_IN_RD_CPLSIZE(x) (((x) >> S_IN_RD_CPLSIZE) & M_IN_RD_CPLSIZE) 2152 2153 #define S_IN_RD_BUFMODE 20 2154 #define M_IN_RD_BUFMODE 0x3U 2155 #define V_IN_RD_BUFMODE(x) ((x) << S_IN_RD_BUFMODE) 2156 #define G_IN_RD_BUFMODE(x) (((x) >> S_IN_RD_BUFMODE) & M_IN_RD_BUFMODE) 2157 2158 #define S_GBIF_NPTRANS_TOT 18 2159 #define M_GBIF_NPTRANS_TOT 0x3U 2160 #define V_GBIF_NPTRANS_TOT(x) ((x) << S_GBIF_NPTRANS_TOT) 2161 #define G_GBIF_NPTRANS_TOT(x) (((x) >> S_GBIF_NPTRANS_TOT) & M_GBIF_NPTRANS_TOT) 2162 2163 #define S_IN_PDAT_TOT 15 2164 #define M_IN_PDAT_TOT 0x7U 2165 #define V_IN_PDAT_TOT(x) ((x) << S_IN_PDAT_TOT) 2166 #define G_IN_PDAT_TOT(x) (((x) >> S_IN_PDAT_TOT) & M_IN_PDAT_TOT) 2167 2168 #define S_PCIE_NPTRANS_TOT 12 2169 #define M_PCIE_NPTRANS_TOT 0x7U 2170 #define V_PCIE_NPTRANS_TOT(x) ((x) << S_PCIE_NPTRANS_TOT) 2171 #define G_PCIE_NPTRANS_TOT(x) (((x) >> S_PCIE_NPTRANS_TOT) & M_PCIE_NPTRANS_TOT) 2172 2173 #define S_OUT_PDAT_TOT 9 2174 #define M_OUT_PDAT_TOT 0x7U 2175 #define V_OUT_PDAT_TOT(x) ((x) << S_OUT_PDAT_TOT) 2176 #define G_OUT_PDAT_TOT(x) (((x) >> S_OUT_PDAT_TOT) & M_OUT_PDAT_TOT) 2177 2178 #define S_GBIF_MAX_WRSIZE 6 2179 #define M_GBIF_MAX_WRSIZE 0x7U 2180 #define V_GBIF_MAX_WRSIZE(x) ((x) << S_GBIF_MAX_WRSIZE) 2181 #define G_GBIF_MAX_WRSIZE(x) (((x) >> S_GBIF_MAX_WRSIZE) & M_GBIF_MAX_WRSIZE) 2182 2183 #define S_GBIF_MAX_RDSIZE 3 2184 #define M_GBIF_MAX_RDSIZE 0x7U 2185 #define V_GBIF_MAX_RDSIZE(x) ((x) << S_GBIF_MAX_RDSIZE) 2186 #define G_GBIF_MAX_RDSIZE(x) (((x) >> S_GBIF_MAX_RDSIZE) & M_GBIF_MAX_RDSIZE) 2187 2188 #define S_PCIE_MAX_RDSIZE 0 2189 #define M_PCIE_MAX_RDSIZE 0x7U 2190 #define V_PCIE_MAX_RDSIZE(x) ((x) << S_PCIE_MAX_RDSIZE) 2191 #define G_PCIE_MAX_RDSIZE(x) (((x) >> S_PCIE_MAX_RDSIZE) & M_PCIE_MAX_RDSIZE) 2192 2193 #define A_PCIE_DBG_INDIR_REQ 0x30ec 2194 2195 #define S_DBGENABLE 31 2196 #define V_DBGENABLE(x) ((x) << S_DBGENABLE) 2197 #define F_DBGENABLE V_DBGENABLE(1U) 2198 2199 #define S_DBGAUTOINC 30 2200 #define V_DBGAUTOINC(x) ((x) << S_DBGAUTOINC) 2201 #define F_DBGAUTOINC V_DBGAUTOINC(1U) 2202 2203 #define S_POINTER 8 2204 #define M_POINTER 0xffffU 2205 #define V_POINTER(x) ((x) << S_POINTER) 2206 #define G_POINTER(x) (((x) >> S_POINTER) & M_POINTER) 2207 2208 #define S_SELECT 0 2209 #define M_SELECT 0xfU 2210 #define V_SELECT(x) ((x) << S_SELECT) 2211 #define G_SELECT(x) (((x) >> S_SELECT) & M_SELECT) 2212 2213 #define A_PCIE_DBG_INDIR_DATA_0 0x30f0 2214 #define A_PCIE_DBG_INDIR_DATA_1 0x30f4 2215 #define A_PCIE_DBG_INDIR_DATA_2 0x30f8 2216 #define A_PCIE_DBG_INDIR_DATA_3 0x30fc 2217 #define A_PCIE_FUNC_INT_CFG 0x3100 2218 2219 #define S_PBAOFST 28 2220 #define M_PBAOFST 0xfU 2221 #define V_PBAOFST(x) ((x) << S_PBAOFST) 2222 #define G_PBAOFST(x) (((x) >> S_PBAOFST) & M_PBAOFST) 2223 2224 #define S_TABOFST 24 2225 #define M_TABOFST 0xfU 2226 #define V_TABOFST(x) ((x) << S_TABOFST) 2227 #define G_TABOFST(x) (((x) >> S_TABOFST) & M_TABOFST) 2228 2229 #define S_VECNUM 12 2230 #define M_VECNUM 0x3ffU 2231 #define V_VECNUM(x) ((x) << S_VECNUM) 2232 #define G_VECNUM(x) (((x) >> S_VECNUM) & M_VECNUM) 2233 2234 #define S_VECBASE 0 2235 #define M_VECBASE 0x7ffU 2236 #define V_VECBASE(x) ((x) << S_VECBASE) 2237 #define G_VECBASE(x) (((x) >> S_VECBASE) & M_VECBASE) 2238 2239 #define A_PCIE_FUNC_CTL_STAT 0x3104 2240 2241 #define S_SENDFLRRSP 31 2242 #define V_SENDFLRRSP(x) ((x) << S_SENDFLRRSP) 2243 #define F_SENDFLRRSP V_SENDFLRRSP(1U) 2244 2245 #define S_IMMFLRRSP 24 2246 #define V_IMMFLRRSP(x) ((x) << S_IMMFLRRSP) 2247 #define F_IMMFLRRSP V_IMMFLRRSP(1U) 2248 2249 #define S_TXNDISABLE 20 2250 #define V_TXNDISABLE(x) ((x) << S_TXNDISABLE) 2251 #define F_TXNDISABLE V_TXNDISABLE(1U) 2252 2253 #define S_PNDTXNS 8 2254 #define M_PNDTXNS 0x3ffU 2255 #define V_PNDTXNS(x) ((x) << S_PNDTXNS) 2256 #define G_PNDTXNS(x) (((x) >> S_PNDTXNS) & M_PNDTXNS) 2257 2258 #define S_VFVLD 3 2259 #define V_VFVLD(x) ((x) << S_VFVLD) 2260 #define F_VFVLD V_VFVLD(1U) 2261 2262 #define S_PFNUM 0 2263 #define M_PFNUM 0x7U 2264 #define V_PFNUM(x) ((x) << S_PFNUM) 2265 #define G_PFNUM(x) (((x) >> S_PFNUM) & M_PFNUM) 2266 2267 #define A_PCIE_FID 0x3900 2268 2269 #define S_PAD 11 2270 #define V_PAD(x) ((x) << S_PAD) 2271 #define F_PAD V_PAD(1U) 2272 2273 #define S_TC 8 2274 #define M_TC 0x7U 2275 #define V_TC(x) ((x) << S_TC) 2276 #define G_TC(x) (((x) >> S_TC) & M_TC) 2277 2278 #define S_FUNC 0 2279 #define M_FUNC 0xffU 2280 #define V_FUNC(x) ((x) << S_FUNC) 2281 #define G_FUNC(x) (((x) >> S_FUNC) & M_FUNC) 2282 2283 #define A_PCIE_CORE_UTL_SYSTEM_BUS_CONTROL 0x5900 2284 2285 #define S_SMTD 27 2286 #define V_SMTD(x) ((x) << S_SMTD) 2287 #define F_SMTD V_SMTD(1U) 2288 2289 #define S_SSTD 26 2290 #define V_SSTD(x) ((x) << S_SSTD) 2291 #define F_SSTD V_SSTD(1U) 2292 2293 #define S_SWD0 23 2294 #define V_SWD0(x) ((x) << S_SWD0) 2295 #define F_SWD0 V_SWD0(1U) 2296 2297 #define S_SWD1 22 2298 #define V_SWD1(x) ((x) << S_SWD1) 2299 #define F_SWD1 V_SWD1(1U) 2300 2301 #define S_SWD2 21 2302 #define V_SWD2(x) ((x) << S_SWD2) 2303 #define F_SWD2 V_SWD2(1U) 2304 2305 #define S_SWD3 20 2306 #define V_SWD3(x) ((x) << S_SWD3) 2307 #define F_SWD3 V_SWD3(1U) 2308 2309 #define S_SWD4 19 2310 #define V_SWD4(x) ((x) << S_SWD4) 2311 #define F_SWD4 V_SWD4(1U) 2312 2313 #define S_SWD5 18 2314 #define V_SWD5(x) ((x) << S_SWD5) 2315 #define F_SWD5 V_SWD5(1U) 2316 2317 #define S_SWD6 17 2318 #define V_SWD6(x) ((x) << S_SWD6) 2319 #define F_SWD6 V_SWD6(1U) 2320 2321 #define S_SWD7 16 2322 #define V_SWD7(x) ((x) << S_SWD7) 2323 #define F_SWD7 V_SWD7(1U) 2324 2325 #define S_SWD8 15 2326 #define V_SWD8(x) ((x) << S_SWD8) 2327 #define F_SWD8 V_SWD8(1U) 2328 2329 #define S_SRD0 13 2330 #define V_SRD0(x) ((x) << S_SRD0) 2331 #define F_SRD0 V_SRD0(1U) 2332 2333 #define S_SRD1 12 2334 #define V_SRD1(x) ((x) << S_SRD1) 2335 #define F_SRD1 V_SRD1(1U) 2336 2337 #define S_SRD2 11 2338 #define V_SRD2(x) ((x) << S_SRD2) 2339 #define F_SRD2 V_SRD2(1U) 2340 2341 #define S_SRD3 10 2342 #define V_SRD3(x) ((x) << S_SRD3) 2343 #define F_SRD3 V_SRD3(1U) 2344 2345 #define S_SRD4 9 2346 #define V_SRD4(x) ((x) << S_SRD4) 2347 #define F_SRD4 V_SRD4(1U) 2348 2349 #define S_SRD5 8 2350 #define V_SRD5(x) ((x) << S_SRD5) 2351 #define F_SRD5 V_SRD5(1U) 2352 2353 #define S_SRD6 7 2354 #define V_SRD6(x) ((x) << S_SRD6) 2355 #define F_SRD6 V_SRD6(1U) 2356 2357 #define S_SRD7 6 2358 #define V_SRD7(x) ((x) << S_SRD7) 2359 #define F_SRD7 V_SRD7(1U) 2360 2361 #define S_SRD8 5 2362 #define V_SRD8(x) ((x) << S_SRD8) 2363 #define F_SRD8 V_SRD8(1U) 2364 2365 #define S_CRRE 3 2366 #define V_CRRE(x) ((x) << S_CRRE) 2367 #define F_CRRE V_CRRE(1U) 2368 2369 #define S_CRMC 0 2370 #define M_CRMC 0x7U 2371 #define V_CRMC(x) ((x) << S_CRMC) 2372 #define G_CRMC(x) (((x) >> S_CRMC) & M_CRMC) 2373 2374 #define A_PCIE_CORE_UTL_STATUS 0x5904 2375 2376 #define S_USBP 31 2377 #define V_USBP(x) ((x) << S_USBP) 2378 #define F_USBP V_USBP(1U) 2379 2380 #define S_UPEP 30 2381 #define V_UPEP(x) ((x) << S_UPEP) 2382 #define F_UPEP V_UPEP(1U) 2383 2384 #define S_RCEP 29 2385 #define V_RCEP(x) ((x) << S_RCEP) 2386 #define F_RCEP V_RCEP(1U) 2387 2388 #define S_EPEP 28 2389 #define V_EPEP(x) ((x) << S_EPEP) 2390 #define F_EPEP V_EPEP(1U) 2391 2392 #define S_USBS 27 2393 #define V_USBS(x) ((x) << S_USBS) 2394 #define F_USBS V_USBS(1U) 2395 2396 #define S_UPES 26 2397 #define V_UPES(x) ((x) << S_UPES) 2398 #define F_UPES V_UPES(1U) 2399 2400 #define S_RCES 25 2401 #define V_RCES(x) ((x) << S_RCES) 2402 #define F_RCES V_RCES(1U) 2403 2404 #define S_EPES 24 2405 #define V_EPES(x) ((x) << S_EPES) 2406 #define F_EPES V_EPES(1U) 2407 2408 #define A_PCIE_CORE_UTL_SYSTEM_BUS_AGENT_STATUS 0x5908 2409 2410 #define S_RNPP 31 2411 #define V_RNPP(x) ((x) << S_RNPP) 2412 #define F_RNPP V_RNPP(1U) 2413 2414 #define S_RPCP 29 2415 #define V_RPCP(x) ((x) << S_RPCP) 2416 #define F_RPCP V_RPCP(1U) 2417 2418 #define S_RCIP 27 2419 #define V_RCIP(x) ((x) << S_RCIP) 2420 #define F_RCIP V_RCIP(1U) 2421 2422 #define S_RCCP 26 2423 #define V_RCCP(x) ((x) << S_RCCP) 2424 #define F_RCCP V_RCCP(1U) 2425 2426 #define S_RFTP 23 2427 #define V_RFTP(x) ((x) << S_RFTP) 2428 #define F_RFTP V_RFTP(1U) 2429 2430 #define S_PTRP 20 2431 #define V_PTRP(x) ((x) << S_PTRP) 2432 #define F_PTRP V_PTRP(1U) 2433 2434 #define A_PCIE_CORE_UTL_SYSTEM_BUS_AGENT_ERROR_SEVERITY 0x590c 2435 2436 #define S_RNPS 31 2437 #define V_RNPS(x) ((x) << S_RNPS) 2438 #define F_RNPS V_RNPS(1U) 2439 2440 #define S_RPCS 29 2441 #define V_RPCS(x) ((x) << S_RPCS) 2442 #define F_RPCS V_RPCS(1U) 2443 2444 #define S_RCIS 27 2445 #define V_RCIS(x) ((x) << S_RCIS) 2446 #define F_RCIS V_RCIS(1U) 2447 2448 #define S_RCCS 26 2449 #define V_RCCS(x) ((x) << S_RCCS) 2450 #define F_RCCS V_RCCS(1U) 2451 2452 #define S_RFTS 23 2453 #define V_RFTS(x) ((x) << S_RFTS) 2454 #define F_RFTS V_RFTS(1U) 2455 2456 #define A_PCIE_CORE_UTL_SYSTEM_BUS_AGENT_INTERRUPT_ENABLE 0x5910 2457 2458 #define S_RNPI 31 2459 #define V_RNPI(x) ((x) << S_RNPI) 2460 #define F_RNPI V_RNPI(1U) 2461 2462 #define S_RPCI 29 2463 #define V_RPCI(x) ((x) << S_RPCI) 2464 #define F_RPCI V_RPCI(1U) 2465 2466 #define S_RCII 27 2467 #define V_RCII(x) ((x) << S_RCII) 2468 #define F_RCII V_RCII(1U) 2469 2470 #define S_RCCI 26 2471 #define V_RCCI(x) ((x) << S_RCCI) 2472 #define F_RCCI V_RCCI(1U) 2473 2474 #define S_RFTI 23 2475 #define V_RFTI(x) ((x) << S_RFTI) 2476 #define F_RFTI V_RFTI(1U) 2477 2478 #define A_PCIE_CORE_SYSTEM_BUS_BURST_SIZE_CONFIGURATION 0x5920 2479 2480 #define S_SBRS 28 2481 #define M_SBRS 0x7U 2482 #define V_SBRS(x) ((x) << S_SBRS) 2483 #define G_SBRS(x) (((x) >> S_SBRS) & M_SBRS) 2484 2485 #define S_OTWS 20 2486 #define M_OTWS 0x7U 2487 #define V_OTWS(x) ((x) << S_OTWS) 2488 #define G_OTWS(x) (((x) >> S_OTWS) & M_OTWS) 2489 2490 #define A_PCIE_CORE_REVISION_ID 0x5924 2491 2492 #define S_RVID 20 2493 #define M_RVID 0xfffU 2494 #define V_RVID(x) ((x) << S_RVID) 2495 #define G_RVID(x) (((x) >> S_RVID) & M_RVID) 2496 2497 #define S_BRVN 12 2498 #define M_BRVN 0xffU 2499 #define V_BRVN(x) ((x) << S_BRVN) 2500 #define G_BRVN(x) (((x) >> S_BRVN) & M_BRVN) 2501 2502 #define A_PCIE_CORE_OUTBOUND_POSTED_HEADER_BUFFER_ALLOCATION 0x5960 2503 2504 #define S_OP0H 24 2505 #define M_OP0H 0xfU 2506 #define V_OP0H(x) ((x) << S_OP0H) 2507 #define G_OP0H(x) (((x) >> S_OP0H) & M_OP0H) 2508 2509 #define S_OP1H 16 2510 #define M_OP1H 0xfU 2511 #define V_OP1H(x) ((x) << S_OP1H) 2512 #define G_OP1H(x) (((x) >> S_OP1H) & M_OP1H) 2513 2514 #define S_OP2H 8 2515 #define M_OP2H 0xfU 2516 #define V_OP2H(x) ((x) << S_OP2H) 2517 #define G_OP2H(x) (((x) >> S_OP2H) & M_OP2H) 2518 2519 #define S_OP3H 0 2520 #define M_OP3H 0xfU 2521 #define V_OP3H(x) ((x) << S_OP3H) 2522 #define G_OP3H(x) (((x) >> S_OP3H) & M_OP3H) 2523 2524 #define A_PCIE_CORE_OUTBOUND_POSTED_DATA_BUFFER_ALLOCATION 0x5968 2525 2526 #define S_OP0D 24 2527 #define M_OP0D 0x7fU 2528 #define V_OP0D(x) ((x) << S_OP0D) 2529 #define G_OP0D(x) (((x) >> S_OP0D) & M_OP0D) 2530 2531 #define S_OP1D 16 2532 #define M_OP1D 0x7fU 2533 #define V_OP1D(x) ((x) << S_OP1D) 2534 #define G_OP1D(x) (((x) >> S_OP1D) & M_OP1D) 2535 2536 #define S_OP2D 8 2537 #define M_OP2D 0x7fU 2538 #define V_OP2D(x) ((x) << S_OP2D) 2539 #define G_OP2D(x) (((x) >> S_OP2D) & M_OP2D) 2540 2541 #define S_OP3D 0 2542 #define M_OP3D 0x7fU 2543 #define V_OP3D(x) ((x) << S_OP3D) 2544 #define G_OP3D(x) (((x) >> S_OP3D) & M_OP3D) 2545 2546 #define A_PCIE_CORE_INBOUND_POSTED_HEADER_BUFFER_ALLOCATION 0x5970 2547 2548 #define S_IP0H 24 2549 #define M_IP0H 0x3fU 2550 #define V_IP0H(x) ((x) << S_IP0H) 2551 #define G_IP0H(x) (((x) >> S_IP0H) & M_IP0H) 2552 2553 #define S_IP1H 16 2554 #define M_IP1H 0x3fU 2555 #define V_IP1H(x) ((x) << S_IP1H) 2556 #define G_IP1H(x) (((x) >> S_IP1H) & M_IP1H) 2557 2558 #define S_IP2H 8 2559 #define M_IP2H 0x3fU 2560 #define V_IP2H(x) ((x) << S_IP2H) 2561 #define G_IP2H(x) (((x) >> S_IP2H) & M_IP2H) 2562 2563 #define S_IP3H 0 2564 #define M_IP3H 0x3fU 2565 #define V_IP3H(x) ((x) << S_IP3H) 2566 #define G_IP3H(x) (((x) >> S_IP3H) & M_IP3H) 2567 2568 #define A_PCIE_CORE_INBOUND_POSTED_DATA_BUFFER_ALLOCATION 0x5978 2569 2570 #define S_IP0D 24 2571 #define M_IP0D 0xffU 2572 #define V_IP0D(x) ((x) << S_IP0D) 2573 #define G_IP0D(x) (((x) >> S_IP0D) & M_IP0D) 2574 2575 #define S_IP1D 16 2576 #define M_IP1D 0xffU 2577 #define V_IP1D(x) ((x) << S_IP1D) 2578 #define G_IP1D(x) (((x) >> S_IP1D) & M_IP1D) 2579 2580 #define S_IP2D 8 2581 #define M_IP2D 0xffU 2582 #define V_IP2D(x) ((x) << S_IP2D) 2583 #define G_IP2D(x) (((x) >> S_IP2D) & M_IP2D) 2584 2585 #define S_IP3D 0 2586 #define M_IP3D 0xffU 2587 #define V_IP3D(x) ((x) << S_IP3D) 2588 #define G_IP3D(x) (((x) >> S_IP3D) & M_IP3D) 2589 2590 #define A_PCIE_CORE_OUTBOUND_NON_POSTED_BUFFER_ALLOCATION 0x5980 2591 2592 #define S_ON0H 24 2593 #define M_ON0H 0xfU 2594 #define V_ON0H(x) ((x) << S_ON0H) 2595 #define G_ON0H(x) (((x) >> S_ON0H) & M_ON0H) 2596 2597 #define S_ON1H 16 2598 #define M_ON1H 0xfU 2599 #define V_ON1H(x) ((x) << S_ON1H) 2600 #define G_ON1H(x) (((x) >> S_ON1H) & M_ON1H) 2601 2602 #define S_ON2H 8 2603 #define M_ON2H 0xfU 2604 #define V_ON2H(x) ((x) << S_ON2H) 2605 #define G_ON2H(x) (((x) >> S_ON2H) & M_ON2H) 2606 2607 #define S_ON3H 0 2608 #define M_ON3H 0xfU 2609 #define V_ON3H(x) ((x) << S_ON3H) 2610 #define G_ON3H(x) (((x) >> S_ON3H) & M_ON3H) 2611 2612 #define A_PCIE_CORE_INBOUND_NON_POSTED_REQUESTS_BUFFER_ALLOCATION 0x5988 2613 2614 #define S_IN0H 24 2615 #define M_IN0H 0x3fU 2616 #define V_IN0H(x) ((x) << S_IN0H) 2617 #define G_IN0H(x) (((x) >> S_IN0H) & M_IN0H) 2618 2619 #define S_IN1H 16 2620 #define M_IN1H 0x3fU 2621 #define V_IN1H(x) ((x) << S_IN1H) 2622 #define G_IN1H(x) (((x) >> S_IN1H) & M_IN1H) 2623 2624 #define S_IN2H 8 2625 #define M_IN2H 0x3fU 2626 #define V_IN2H(x) ((x) << S_IN2H) 2627 #define G_IN2H(x) (((x) >> S_IN2H) & M_IN2H) 2628 2629 #define S_IN3H 0 2630 #define M_IN3H 0x3fU 2631 #define V_IN3H(x) ((x) << S_IN3H) 2632 #define G_IN3H(x) (((x) >> S_IN3H) & M_IN3H) 2633 2634 #define A_PCIE_CORE_PCI_EXPRESS_TAGS_ALLOCATION 0x5990 2635 2636 #define S_OC0T 24 2637 #define M_OC0T 0xffU 2638 #define V_OC0T(x) ((x) << S_OC0T) 2639 #define G_OC0T(x) (((x) >> S_OC0T) & M_OC0T) 2640 2641 #define S_OC1T 16 2642 #define M_OC1T 0xffU 2643 #define V_OC1T(x) ((x) << S_OC1T) 2644 #define G_OC1T(x) (((x) >> S_OC1T) & M_OC1T) 2645 2646 #define S_OC2T 8 2647 #define M_OC2T 0xffU 2648 #define V_OC2T(x) ((x) << S_OC2T) 2649 #define G_OC2T(x) (((x) >> S_OC2T) & M_OC2T) 2650 2651 #define S_OC3T 0 2652 #define M_OC3T 0xffU 2653 #define V_OC3T(x) ((x) << S_OC3T) 2654 #define G_OC3T(x) (((x) >> S_OC3T) & M_OC3T) 2655 2656 #define A_PCIE_CORE_GBIF_READ_TAGS_ALLOCATION 0x5998 2657 2658 #define S_IC0T 24 2659 #define M_IC0T 0x3fU 2660 #define V_IC0T(x) ((x) << S_IC0T) 2661 #define G_IC0T(x) (((x) >> S_IC0T) & M_IC0T) 2662 2663 #define S_IC1T 16 2664 #define M_IC1T 0x3fU 2665 #define V_IC1T(x) ((x) << S_IC1T) 2666 #define G_IC1T(x) (((x) >> S_IC1T) & M_IC1T) 2667 2668 #define S_IC2T 8 2669 #define M_IC2T 0x3fU 2670 #define V_IC2T(x) ((x) << S_IC2T) 2671 #define G_IC2T(x) (((x) >> S_IC2T) & M_IC2T) 2672 2673 #define S_IC3T 0 2674 #define M_IC3T 0x3fU 2675 #define V_IC3T(x) ((x) << S_IC3T) 2676 #define G_IC3T(x) (((x) >> S_IC3T) & M_IC3T) 2677 2678 #define A_PCIE_CORE_UTL_PCI_EXPRESS_PORT_CONTROL 0x59a0 2679 2680 #define S_VRB0 31 2681 #define V_VRB0(x) ((x) << S_VRB0) 2682 #define F_VRB0 V_VRB0(1U) 2683 2684 #define S_VRB1 30 2685 #define V_VRB1(x) ((x) << S_VRB1) 2686 #define F_VRB1 V_VRB1(1U) 2687 2688 #define S_VRB2 29 2689 #define V_VRB2(x) ((x) << S_VRB2) 2690 #define F_VRB2 V_VRB2(1U) 2691 2692 #define S_VRB3 28 2693 #define V_VRB3(x) ((x) << S_VRB3) 2694 #define F_VRB3 V_VRB3(1U) 2695 2696 #define S_PSFE 26 2697 #define V_PSFE(x) ((x) << S_PSFE) 2698 #define F_PSFE V_PSFE(1U) 2699 2700 #define S_RVDE 25 2701 #define V_RVDE(x) ((x) << S_RVDE) 2702 #define F_RVDE V_RVDE(1U) 2703 2704 #define S_TXE0 23 2705 #define V_TXE0(x) ((x) << S_TXE0) 2706 #define F_TXE0 V_TXE0(1U) 2707 2708 #define S_TXE1 22 2709 #define V_TXE1(x) ((x) << S_TXE1) 2710 #define F_TXE1 V_TXE1(1U) 2711 2712 #define S_TXE2 21 2713 #define V_TXE2(x) ((x) << S_TXE2) 2714 #define F_TXE2 V_TXE2(1U) 2715 2716 #define S_TXE3 20 2717 #define V_TXE3(x) ((x) << S_TXE3) 2718 #define F_TXE3 V_TXE3(1U) 2719 2720 #define S_RPAM 13 2721 #define V_RPAM(x) ((x) << S_RPAM) 2722 #define F_RPAM V_RPAM(1U) 2723 2724 #define S_RTOS 4 2725 #define M_RTOS 0xfU 2726 #define V_RTOS(x) ((x) << S_RTOS) 2727 #define G_RTOS(x) (((x) >> S_RTOS) & M_RTOS) 2728 2729 #define A_PCIE_CORE_UTL_PCI_EXPRESS_PORT_STATUS 0x59a4 2730 2731 #define S_TPCP 30 2732 #define V_TPCP(x) ((x) << S_TPCP) 2733 #define F_TPCP V_TPCP(1U) 2734 2735 #define S_TNPP 29 2736 #define V_TNPP(x) ((x) << S_TNPP) 2737 #define F_TNPP V_TNPP(1U) 2738 2739 #define S_TFTP 28 2740 #define V_TFTP(x) ((x) << S_TFTP) 2741 #define F_TFTP V_TFTP(1U) 2742 2743 #define S_TCAP 27 2744 #define V_TCAP(x) ((x) << S_TCAP) 2745 #define F_TCAP V_TCAP(1U) 2746 2747 #define S_TCIP 26 2748 #define V_TCIP(x) ((x) << S_TCIP) 2749 #define F_TCIP V_TCIP(1U) 2750 2751 #define S_RCAP 25 2752 #define V_RCAP(x) ((x) << S_RCAP) 2753 #define F_RCAP V_RCAP(1U) 2754 2755 #define S_PLUP 23 2756 #define V_PLUP(x) ((x) << S_PLUP) 2757 #define F_PLUP V_PLUP(1U) 2758 2759 #define S_PLDN 22 2760 #define V_PLDN(x) ((x) << S_PLDN) 2761 #define F_PLDN V_PLDN(1U) 2762 2763 #define S_OTDD 21 2764 #define V_OTDD(x) ((x) << S_OTDD) 2765 #define F_OTDD V_OTDD(1U) 2766 2767 #define S_GTRP 20 2768 #define V_GTRP(x) ((x) << S_GTRP) 2769 #define F_GTRP V_GTRP(1U) 2770 2771 #define S_RDPE 18 2772 #define V_RDPE(x) ((x) << S_RDPE) 2773 #define F_RDPE V_RDPE(1U) 2774 2775 #define S_TDCE 17 2776 #define V_TDCE(x) ((x) << S_TDCE) 2777 #define F_TDCE V_TDCE(1U) 2778 2779 #define S_TDUE 16 2780 #define V_TDUE(x) ((x) << S_TDUE) 2781 #define F_TDUE V_TDUE(1U) 2782 2783 #define A_PCIE_CORE_UTL_PCI_EXPRESS_PORT_ERROR_SEVERITY 0x59a8 2784 2785 #define S_TPCS 30 2786 #define V_TPCS(x) ((x) << S_TPCS) 2787 #define F_TPCS V_TPCS(1U) 2788 2789 #define S_TNPS 29 2790 #define V_TNPS(x) ((x) << S_TNPS) 2791 #define F_TNPS V_TNPS(1U) 2792 2793 #define S_TFTS 28 2794 #define V_TFTS(x) ((x) << S_TFTS) 2795 #define F_TFTS V_TFTS(1U) 2796 2797 #define S_TCAS 27 2798 #define V_TCAS(x) ((x) << S_TCAS) 2799 #define F_TCAS V_TCAS(1U) 2800 2801 #define S_TCIS 26 2802 #define V_TCIS(x) ((x) << S_TCIS) 2803 #define F_TCIS V_TCIS(1U) 2804 2805 #define S_RCAS 25 2806 #define V_RCAS(x) ((x) << S_RCAS) 2807 #define F_RCAS V_RCAS(1U) 2808 2809 #define S_PLUS 23 2810 #define V_PLUS(x) ((x) << S_PLUS) 2811 #define F_PLUS V_PLUS(1U) 2812 2813 #define S_PLDS 22 2814 #define V_PLDS(x) ((x) << S_PLDS) 2815 #define F_PLDS V_PLDS(1U) 2816 2817 #define S_OTDS 21 2818 #define V_OTDS(x) ((x) << S_OTDS) 2819 #define F_OTDS V_OTDS(1U) 2820 2821 #define S_RDPS 18 2822 #define V_RDPS(x) ((x) << S_RDPS) 2823 #define F_RDPS V_RDPS(1U) 2824 2825 #define S_TDCS 17 2826 #define V_TDCS(x) ((x) << S_TDCS) 2827 #define F_TDCS V_TDCS(1U) 2828 2829 #define S_TDUS 16 2830 #define V_TDUS(x) ((x) << S_TDUS) 2831 #define F_TDUS V_TDUS(1U) 2832 2833 #define A_PCIE_CORE_UTL_PCI_EXPRESS_PORT_INTERRUPT_ENABLE 0x59ac 2834 2835 #define S_TPCI 30 2836 #define V_TPCI(x) ((x) << S_TPCI) 2837 #define F_TPCI V_TPCI(1U) 2838 2839 #define S_TNPI 29 2840 #define V_TNPI(x) ((x) << S_TNPI) 2841 #define F_TNPI V_TNPI(1U) 2842 2843 #define S_TFTI 28 2844 #define V_TFTI(x) ((x) << S_TFTI) 2845 #define F_TFTI V_TFTI(1U) 2846 2847 #define S_TCAI 27 2848 #define V_TCAI(x) ((x) << S_TCAI) 2849 #define F_TCAI V_TCAI(1U) 2850 2851 #define S_TCII 26 2852 #define V_TCII(x) ((x) << S_TCII) 2853 #define F_TCII V_TCII(1U) 2854 2855 #define S_RCAI 25 2856 #define V_RCAI(x) ((x) << S_RCAI) 2857 #define F_RCAI V_RCAI(1U) 2858 2859 #define S_PLUI 23 2860 #define V_PLUI(x) ((x) << S_PLUI) 2861 #define F_PLUI V_PLUI(1U) 2862 2863 #define S_PLDI 22 2864 #define V_PLDI(x) ((x) << S_PLDI) 2865 #define F_PLDI V_PLDI(1U) 2866 2867 #define S_OTDI 21 2868 #define V_OTDI(x) ((x) << S_OTDI) 2869 #define F_OTDI V_OTDI(1U) 2870 2871 #define A_PCIE_CORE_ROOT_COMPLEX_STATUS 0x59b0 2872 2873 #define S_RLCE 31 2874 #define V_RLCE(x) ((x) << S_RLCE) 2875 #define F_RLCE V_RLCE(1U) 2876 2877 #define S_RLNE 30 2878 #define V_RLNE(x) ((x) << S_RLNE) 2879 #define F_RLNE V_RLNE(1U) 2880 2881 #define S_RLFE 29 2882 #define V_RLFE(x) ((x) << S_RLFE) 2883 #define F_RLFE V_RLFE(1U) 2884 2885 #define S_RCPE 25 2886 #define V_RCPE(x) ((x) << S_RCPE) 2887 #define F_RCPE V_RCPE(1U) 2888 2889 #define S_RCTO 24 2890 #define V_RCTO(x) ((x) << S_RCTO) 2891 #define F_RCTO V_RCTO(1U) 2892 2893 #define S_PINA 23 2894 #define V_PINA(x) ((x) << S_PINA) 2895 #define F_PINA V_PINA(1U) 2896 2897 #define S_PINB 22 2898 #define V_PINB(x) ((x) << S_PINB) 2899 #define F_PINB V_PINB(1U) 2900 2901 #define S_PINC 21 2902 #define V_PINC(x) ((x) << S_PINC) 2903 #define F_PINC V_PINC(1U) 2904 2905 #define S_PIND 20 2906 #define V_PIND(x) ((x) << S_PIND) 2907 #define F_PIND V_PIND(1U) 2908 2909 #define S_ALER 19 2910 #define V_ALER(x) ((x) << S_ALER) 2911 #define F_ALER V_ALER(1U) 2912 2913 #define S_CRSE 18 2914 #define V_CRSE(x) ((x) << S_CRSE) 2915 #define F_CRSE V_CRSE(1U) 2916 2917 #define A_PCIE_CORE_ROOT_COMPLEX_ERROR_SEVERITY 0x59b4 2918 2919 #define S_RLCS 31 2920 #define V_RLCS(x) ((x) << S_RLCS) 2921 #define F_RLCS V_RLCS(1U) 2922 2923 #define S_RLNS 30 2924 #define V_RLNS(x) ((x) << S_RLNS) 2925 #define F_RLNS V_RLNS(1U) 2926 2927 #define S_RLFS 29 2928 #define V_RLFS(x) ((x) << S_RLFS) 2929 #define F_RLFS V_RLFS(1U) 2930 2931 #define S_RCPS 25 2932 #define V_RCPS(x) ((x) << S_RCPS) 2933 #define F_RCPS V_RCPS(1U) 2934 2935 #define S_RCTS 24 2936 #define V_RCTS(x) ((x) << S_RCTS) 2937 #define F_RCTS V_RCTS(1U) 2938 2939 #define S_PAAS 23 2940 #define V_PAAS(x) ((x) << S_PAAS) 2941 #define F_PAAS V_PAAS(1U) 2942 2943 #define S_PABS 22 2944 #define V_PABS(x) ((x) << S_PABS) 2945 #define F_PABS V_PABS(1U) 2946 2947 #define S_PACS 21 2948 #define V_PACS(x) ((x) << S_PACS) 2949 #define F_PACS V_PACS(1U) 2950 2951 #define S_PADS 20 2952 #define V_PADS(x) ((x) << S_PADS) 2953 #define F_PADS V_PADS(1U) 2954 2955 #define S_ALES 19 2956 #define V_ALES(x) ((x) << S_ALES) 2957 #define F_ALES V_ALES(1U) 2958 2959 #define S_CRSS 18 2960 #define V_CRSS(x) ((x) << S_CRSS) 2961 #define F_CRSS V_CRSS(1U) 2962 2963 #define A_PCIE_CORE_ROOT_COMPLEX_INTERRUPT_ENABLE 0x59b8 2964 2965 #define S_RLCI 31 2966 #define V_RLCI(x) ((x) << S_RLCI) 2967 #define F_RLCI V_RLCI(1U) 2968 2969 #define S_RLNI 30 2970 #define V_RLNI(x) ((x) << S_RLNI) 2971 #define F_RLNI V_RLNI(1U) 2972 2973 #define S_RLFI 29 2974 #define V_RLFI(x) ((x) << S_RLFI) 2975 #define F_RLFI V_RLFI(1U) 2976 2977 #define S_RCPI 25 2978 #define V_RCPI(x) ((x) << S_RCPI) 2979 #define F_RCPI V_RCPI(1U) 2980 2981 #define S_RCTI 24 2982 #define V_RCTI(x) ((x) << S_RCTI) 2983 #define F_RCTI V_RCTI(1U) 2984 2985 #define S_PAAI 23 2986 #define V_PAAI(x) ((x) << S_PAAI) 2987 #define F_PAAI V_PAAI(1U) 2988 2989 #define S_PABI 22 2990 #define V_PABI(x) ((x) << S_PABI) 2991 #define F_PABI V_PABI(1U) 2992 2993 #define S_PACI 21 2994 #define V_PACI(x) ((x) << S_PACI) 2995 #define F_PACI V_PACI(1U) 2996 2997 #define S_PADI 20 2998 #define V_PADI(x) ((x) << S_PADI) 2999 #define F_PADI V_PADI(1U) 3000 3001 #define S_ALEI 19 3002 #define V_ALEI(x) ((x) << S_ALEI) 3003 #define F_ALEI V_ALEI(1U) 3004 3005 #define S_CRSI 18 3006 #define V_CRSI(x) ((x) << S_CRSI) 3007 #define F_CRSI V_CRSI(1U) 3008 3009 #define A_PCIE_CORE_ENDPOINT_STATUS 0x59bc 3010 3011 #define S_PTOM 31 3012 #define V_PTOM(x) ((x) << S_PTOM) 3013 #define F_PTOM V_PTOM(1U) 3014 3015 #define S_ALEA 29 3016 #define V_ALEA(x) ((x) << S_ALEA) 3017 #define F_ALEA V_ALEA(1U) 3018 3019 #define S_PMC0 23 3020 #define V_PMC0(x) ((x) << S_PMC0) 3021 #define F_PMC0 V_PMC0(1U) 3022 3023 #define S_PMC1 22 3024 #define V_PMC1(x) ((x) << S_PMC1) 3025 #define F_PMC1 V_PMC1(1U) 3026 3027 #define S_PMC2 21 3028 #define V_PMC2(x) ((x) << S_PMC2) 3029 #define F_PMC2 V_PMC2(1U) 3030 3031 #define S_PMC3 20 3032 #define V_PMC3(x) ((x) << S_PMC3) 3033 #define F_PMC3 V_PMC3(1U) 3034 3035 #define S_PMC4 19 3036 #define V_PMC4(x) ((x) << S_PMC4) 3037 #define F_PMC4 V_PMC4(1U) 3038 3039 #define S_PMC5 18 3040 #define V_PMC5(x) ((x) << S_PMC5) 3041 #define F_PMC5 V_PMC5(1U) 3042 3043 #define S_PMC6 17 3044 #define V_PMC6(x) ((x) << S_PMC6) 3045 #define F_PMC6 V_PMC6(1U) 3046 3047 #define S_PMC7 16 3048 #define V_PMC7(x) ((x) << S_PMC7) 3049 #define F_PMC7 V_PMC7(1U) 3050 3051 #define A_PCIE_CORE_ENDPOINT_ERROR_SEVERITY 0x59c0 3052 3053 #define S_PTOS 31 3054 #define V_PTOS(x) ((x) << S_PTOS) 3055 #define F_PTOS V_PTOS(1U) 3056 3057 #define S_AENS 29 3058 #define V_AENS(x) ((x) << S_AENS) 3059 #define F_AENS V_AENS(1U) 3060 3061 #define S_PC0S 23 3062 #define V_PC0S(x) ((x) << S_PC0S) 3063 #define F_PC0S V_PC0S(1U) 3064 3065 #define S_PC1S 22 3066 #define V_PC1S(x) ((x) << S_PC1S) 3067 #define F_PC1S V_PC1S(1U) 3068 3069 #define S_PC2S 21 3070 #define V_PC2S(x) ((x) << S_PC2S) 3071 #define F_PC2S V_PC2S(1U) 3072 3073 #define S_PC3S 20 3074 #define V_PC3S(x) ((x) << S_PC3S) 3075 #define F_PC3S V_PC3S(1U) 3076 3077 #define S_PC4S 19 3078 #define V_PC4S(x) ((x) << S_PC4S) 3079 #define F_PC4S V_PC4S(1U) 3080 3081 #define S_PC5S 18 3082 #define V_PC5S(x) ((x) << S_PC5S) 3083 #define F_PC5S V_PC5S(1U) 3084 3085 #define S_PC6S 17 3086 #define V_PC6S(x) ((x) << S_PC6S) 3087 #define F_PC6S V_PC6S(1U) 3088 3089 #define S_PC7S 16 3090 #define V_PC7S(x) ((x) << S_PC7S) 3091 #define F_PC7S V_PC7S(1U) 3092 3093 #define S_PME0 15 3094 #define V_PME0(x) ((x) << S_PME0) 3095 #define F_PME0 V_PME0(1U) 3096 3097 #define S_PME1 14 3098 #define V_PME1(x) ((x) << S_PME1) 3099 #define F_PME1 V_PME1(1U) 3100 3101 #define S_PME2 13 3102 #define V_PME2(x) ((x) << S_PME2) 3103 #define F_PME2 V_PME2(1U) 3104 3105 #define S_PME3 12 3106 #define V_PME3(x) ((x) << S_PME3) 3107 #define F_PME3 V_PME3(1U) 3108 3109 #define S_PME4 11 3110 #define V_PME4(x) ((x) << S_PME4) 3111 #define F_PME4 V_PME4(1U) 3112 3113 #define S_PME5 10 3114 #define V_PME5(x) ((x) << S_PME5) 3115 #define F_PME5 V_PME5(1U) 3116 3117 #define S_PME6 9 3118 #define V_PME6(x) ((x) << S_PME6) 3119 #define F_PME6 V_PME6(1U) 3120 3121 #define S_PME7 8 3122 #define V_PME7(x) ((x) << S_PME7) 3123 #define F_PME7 V_PME7(1U) 3124 3125 #define A_PCIE_CORE_ENDPOINT_INTERRUPT_ENABLE 0x59c4 3126 3127 #define S_PTOI 31 3128 #define V_PTOI(x) ((x) << S_PTOI) 3129 #define F_PTOI V_PTOI(1U) 3130 3131 #define S_AENI 29 3132 #define V_AENI(x) ((x) << S_AENI) 3133 #define F_AENI V_AENI(1U) 3134 3135 #define S_PC0I 23 3136 #define V_PC0I(x) ((x) << S_PC0I) 3137 #define F_PC0I V_PC0I(1U) 3138 3139 #define S_PC1I 22 3140 #define V_PC1I(x) ((x) << S_PC1I) 3141 #define F_PC1I V_PC1I(1U) 3142 3143 #define S_PC2I 21 3144 #define V_PC2I(x) ((x) << S_PC2I) 3145 #define F_PC2I V_PC2I(1U) 3146 3147 #define S_PC3I 20 3148 #define V_PC3I(x) ((x) << S_PC3I) 3149 #define F_PC3I V_PC3I(1U) 3150 3151 #define S_PC4I 19 3152 #define V_PC4I(x) ((x) << S_PC4I) 3153 #define F_PC4I V_PC4I(1U) 3154 3155 #define S_PC5I 18 3156 #define V_PC5I(x) ((x) << S_PC5I) 3157 #define F_PC5I V_PC5I(1U) 3158 3159 #define S_PC6I 17 3160 #define V_PC6I(x) ((x) << S_PC6I) 3161 #define F_PC6I V_PC6I(1U) 3162 3163 #define S_PC7I 16 3164 #define V_PC7I(x) ((x) << S_PC7I) 3165 #define F_PC7I V_PC7I(1U) 3166 3167 #define A_PCIE_CORE_PCI_POWER_MANAGEMENT_CONTROL_1 0x59c8 3168 3169 #define S_TOAK 31 3170 #define V_TOAK(x) ((x) << S_TOAK) 3171 #define F_TOAK V_TOAK(1U) 3172 3173 #define S_L1RS 23 3174 #define V_L1RS(x) ((x) << S_L1RS) 3175 #define F_L1RS V_L1RS(1U) 3176 3177 #define S_L23S 22 3178 #define V_L23S(x) ((x) << S_L23S) 3179 #define F_L23S V_L23S(1U) 3180 3181 #define S_AL1S 21 3182 #define V_AL1S(x) ((x) << S_AL1S) 3183 #define F_AL1S V_AL1S(1U) 3184 3185 #define S_ALET 19 3186 #define V_ALET(x) ((x) << S_ALET) 3187 #define F_ALET V_ALET(1U) 3188 3189 #define A_PCIE_CORE_PCI_POWER_MANAGEMENT_CONTROL_2 0x59cc 3190 3191 #define S_CPM0 30 3192 #define M_CPM0 0x3U 3193 #define V_CPM0(x) ((x) << S_CPM0) 3194 #define G_CPM0(x) (((x) >> S_CPM0) & M_CPM0) 3195 3196 #define S_CPM1 28 3197 #define M_CPM1 0x3U 3198 #define V_CPM1(x) ((x) << S_CPM1) 3199 #define G_CPM1(x) (((x) >> S_CPM1) & M_CPM1) 3200 3201 #define S_CPM2 26 3202 #define M_CPM2 0x3U 3203 #define V_CPM2(x) ((x) << S_CPM2) 3204 #define G_CPM2(x) (((x) >> S_CPM2) & M_CPM2) 3205 3206 #define S_CPM3 24 3207 #define M_CPM3 0x3U 3208 #define V_CPM3(x) ((x) << S_CPM3) 3209 #define G_CPM3(x) (((x) >> S_CPM3) & M_CPM3) 3210 3211 #define S_CPM4 22 3212 #define M_CPM4 0x3U 3213 #define V_CPM4(x) ((x) << S_CPM4) 3214 #define G_CPM4(x) (((x) >> S_CPM4) & M_CPM4) 3215 3216 #define S_CPM5 20 3217 #define M_CPM5 0x3U 3218 #define V_CPM5(x) ((x) << S_CPM5) 3219 #define G_CPM5(x) (((x) >> S_CPM5) & M_CPM5) 3220 3221 #define S_CPM6 18 3222 #define M_CPM6 0x3U 3223 #define V_CPM6(x) ((x) << S_CPM6) 3224 #define G_CPM6(x) (((x) >> S_CPM6) & M_CPM6) 3225 3226 #define S_CPM7 16 3227 #define M_CPM7 0x3U 3228 #define V_CPM7(x) ((x) << S_CPM7) 3229 #define G_CPM7(x) (((x) >> S_CPM7) & M_CPM7) 3230 3231 #define S_OPM0 14 3232 #define M_OPM0 0x3U 3233 #define V_OPM0(x) ((x) << S_OPM0) 3234 #define G_OPM0(x) (((x) >> S_OPM0) & M_OPM0) 3235 3236 #define S_OPM1 12 3237 #define M_OPM1 0x3U 3238 #define V_OPM1(x) ((x) << S_OPM1) 3239 #define G_OPM1(x) (((x) >> S_OPM1) & M_OPM1) 3240 3241 #define S_OPM2 10 3242 #define M_OPM2 0x3U 3243 #define V_OPM2(x) ((x) << S_OPM2) 3244 #define G_OPM2(x) (((x) >> S_OPM2) & M_OPM2) 3245 3246 #define S_OPM3 8 3247 #define M_OPM3 0x3U 3248 #define V_OPM3(x) ((x) << S_OPM3) 3249 #define G_OPM3(x) (((x) >> S_OPM3) & M_OPM3) 3250 3251 #define S_OPM4 6 3252 #define M_OPM4 0x3U 3253 #define V_OPM4(x) ((x) << S_OPM4) 3254 #define G_OPM4(x) (((x) >> S_OPM4) & M_OPM4) 3255 3256 #define S_OPM5 4 3257 #define M_OPM5 0x3U 3258 #define V_OPM5(x) ((x) << S_OPM5) 3259 #define G_OPM5(x) (((x) >> S_OPM5) & M_OPM5) 3260 3261 #define S_OPM6 2 3262 #define M_OPM6 0x3U 3263 #define V_OPM6(x) ((x) << S_OPM6) 3264 #define G_OPM6(x) (((x) >> S_OPM6) & M_OPM6) 3265 3266 #define S_OPM7 0 3267 #define M_OPM7 0x3U 3268 #define V_OPM7(x) ((x) << S_OPM7) 3269 #define G_OPM7(x) (((x) >> S_OPM7) & M_OPM7) 3270 3271 #define A_PCIE_CORE_GENERAL_PURPOSE_CONTROL_1 0x59d0 3272 #define A_PCIE_CORE_GENERAL_PURPOSE_CONTROL_2 0x59d4 3273 #define A_PCIE_REVISION 0x5a00 3274 #define A_PCIE_PDEBUG_INDEX 0x5a04 3275 3276 #define S_PDEBUGSELH 16 3277 #define M_PDEBUGSELH 0x3fU 3278 #define V_PDEBUGSELH(x) ((x) << S_PDEBUGSELH) 3279 #define G_PDEBUGSELH(x) (((x) >> S_PDEBUGSELH) & M_PDEBUGSELH) 3280 3281 #define S_PDEBUGSELL 0 3282 #define M_PDEBUGSELL 0x3fU 3283 #define V_PDEBUGSELL(x) ((x) << S_PDEBUGSELL) 3284 #define G_PDEBUGSELL(x) (((x) >> S_PDEBUGSELL) & M_PDEBUGSELL) 3285 3286 #define A_PCIE_PDEBUG_DATA_HIGH 0x5a08 3287 #define A_PCIE_PDEBUG_DATA_LOW 0x5a0c 3288 #define A_PCIE_CDEBUG_INDEX 0x5a10 3289 3290 #define S_CDEBUGSELH 16 3291 #define M_CDEBUGSELH 0xffU 3292 #define V_CDEBUGSELH(x) ((x) << S_CDEBUGSELH) 3293 #define G_CDEBUGSELH(x) (((x) >> S_CDEBUGSELH) & M_CDEBUGSELH) 3294 3295 #define S_CDEBUGSELL 0 3296 #define M_CDEBUGSELL 0xffU 3297 #define V_CDEBUGSELL(x) ((x) << S_CDEBUGSELL) 3298 #define G_CDEBUGSELL(x) (((x) >> S_CDEBUGSELL) & M_CDEBUGSELL) 3299 3300 #define A_PCIE_CDEBUG_DATA_HIGH 0x5a14 3301 #define A_PCIE_CDEBUG_DATA_LOW 0x5a18 3302 #define A_PCIE_DMAW_SOP_CNT 0x5a1c 3303 3304 #define S_CH3 24 3305 #define M_CH3 0xffU 3306 #define V_CH3(x) ((x) << S_CH3) 3307 #define G_CH3(x) (((x) >> S_CH3) & M_CH3) 3308 3309 #define S_CH2 16 3310 #define M_CH2 0xffU 3311 #define V_CH2(x) ((x) << S_CH2) 3312 #define G_CH2(x) (((x) >> S_CH2) & M_CH2) 3313 3314 #define S_CH1 8 3315 #define M_CH1 0xffU 3316 #define V_CH1(x) ((x) << S_CH1) 3317 #define G_CH1(x) (((x) >> S_CH1) & M_CH1) 3318 3319 #define S_CH0 0 3320 #define M_CH0 0xffU 3321 #define V_CH0(x) ((x) << S_CH0) 3322 #define G_CH0(x) (((x) >> S_CH0) & M_CH0) 3323 3324 #define A_PCIE_DMAW_EOP_CNT 0x5a20 3325 #define A_PCIE_DMAR_REQ_CNT 0x5a24 3326 #define A_PCIE_DMAR_RSP_SOP_CNT 0x5a28 3327 #define A_PCIE_DMAR_RSP_EOP_CNT 0x5a2c 3328 #define A_PCIE_DMAR_RSP_ERR_CNT 0x5a30 3329 #define A_PCIE_DMAI_CNT 0x5a34 3330 #define A_PCIE_CMDW_CNT 0x5a38 3331 3332 #define S_CH1_EOP 24 3333 #define M_CH1_EOP 0xffU 3334 #define V_CH1_EOP(x) ((x) << S_CH1_EOP) 3335 #define G_CH1_EOP(x) (((x) >> S_CH1_EOP) & M_CH1_EOP) 3336 3337 #define S_CH1_SOP 16 3338 #define M_CH1_SOP 0xffU 3339 #define V_CH1_SOP(x) ((x) << S_CH1_SOP) 3340 #define G_CH1_SOP(x) (((x) >> S_CH1_SOP) & M_CH1_SOP) 3341 3342 #define S_CH0_EOP 8 3343 #define M_CH0_EOP 0xffU 3344 #define V_CH0_EOP(x) ((x) << S_CH0_EOP) 3345 #define G_CH0_EOP(x) (((x) >> S_CH0_EOP) & M_CH0_EOP) 3346 3347 #define S_CH0_SOP 0 3348 #define M_CH0_SOP 0xffU 3349 #define V_CH0_SOP(x) ((x) << S_CH0_SOP) 3350 #define G_CH0_SOP(x) (((x) >> S_CH0_SOP) & M_CH0_SOP) 3351 3352 #define A_PCIE_CMDR_REQ_CNT 0x5a3c 3353 #define A_PCIE_CMDR_RSP_CNT 0x5a40 3354 #define A_PCIE_CMDR_RSP_ERR_CNT 0x5a44 3355 #define A_PCIE_HMA_REQ_CNT 0x5a48 3356 3357 #define S_CH0_READ 16 3358 #define M_CH0_READ 0xffU 3359 #define V_CH0_READ(x) ((x) << S_CH0_READ) 3360 #define G_CH0_READ(x) (((x) >> S_CH0_READ) & M_CH0_READ) 3361 3362 #define S_CH0_WEOP 8 3363 #define M_CH0_WEOP 0xffU 3364 #define V_CH0_WEOP(x) ((x) << S_CH0_WEOP) 3365 #define G_CH0_WEOP(x) (((x) >> S_CH0_WEOP) & M_CH0_WEOP) 3366 3367 #define S_CH0_WSOP 0 3368 #define M_CH0_WSOP 0xffU 3369 #define V_CH0_WSOP(x) ((x) << S_CH0_WSOP) 3370 #define G_CH0_WSOP(x) (((x) >> S_CH0_WSOP) & M_CH0_WSOP) 3371 3372 #define A_PCIE_HMA_RSP_CNT 0x5a4c 3373 #define A_PCIE_DMA10_RSP_FREE 0x5a50 3374 3375 #define S_CH1_RSP_FREE 16 3376 #define M_CH1_RSP_FREE 0xfffU 3377 #define V_CH1_RSP_FREE(x) ((x) << S_CH1_RSP_FREE) 3378 #define G_CH1_RSP_FREE(x) (((x) >> S_CH1_RSP_FREE) & M_CH1_RSP_FREE) 3379 3380 #define S_CH0_RSP_FREE 0 3381 #define M_CH0_RSP_FREE 0xfffU 3382 #define V_CH0_RSP_FREE(x) ((x) << S_CH0_RSP_FREE) 3383 #define G_CH0_RSP_FREE(x) (((x) >> S_CH0_RSP_FREE) & M_CH0_RSP_FREE) 3384 3385 #define A_PCIE_DMA32_RSP_FREE 0x5a54 3386 3387 #define S_CH3_RSP_FREE 16 3388 #define M_CH3_RSP_FREE 0xfffU 3389 #define V_CH3_RSP_FREE(x) ((x) << S_CH3_RSP_FREE) 3390 #define G_CH3_RSP_FREE(x) (((x) >> S_CH3_RSP_FREE) & M_CH3_RSP_FREE) 3391 3392 #define S_CH2_RSP_FREE 0 3393 #define M_CH2_RSP_FREE 0xfffU 3394 #define V_CH2_RSP_FREE(x) ((x) << S_CH2_RSP_FREE) 3395 #define G_CH2_RSP_FREE(x) (((x) >> S_CH2_RSP_FREE) & M_CH2_RSP_FREE) 3396 3397 #define A_PCIE_CMD_RSP_FREE 0x5a58 3398 3399 #define S_CMD_CH1_RSP_FREE 16 3400 #define M_CMD_CH1_RSP_FREE 0x7fU 3401 #define V_CMD_CH1_RSP_FREE(x) ((x) << S_CMD_CH1_RSP_FREE) 3402 #define G_CMD_CH1_RSP_FREE(x) (((x) >> S_CMD_CH1_RSP_FREE) & M_CMD_CH1_RSP_FREE) 3403 3404 #define S_CMD_CH0_RSP_FREE 0 3405 #define M_CMD_CH0_RSP_FREE 0x7fU 3406 #define V_CMD_CH0_RSP_FREE(x) ((x) << S_CMD_CH0_RSP_FREE) 3407 #define G_CMD_CH0_RSP_FREE(x) (((x) >> S_CMD_CH0_RSP_FREE) & M_CMD_CH0_RSP_FREE) 3408 3409 #define A_PCIE_HMA_RSP_FREE 0x5a5c 3410 #define A_PCIE_BUS_MST_STAT_0 0x5a60 3411 #define A_PCIE_BUS_MST_STAT_1 0x5a64 3412 #define A_PCIE_BUS_MST_STAT_2 0x5a68 3413 #define A_PCIE_BUS_MST_STAT_3 0x5a6c 3414 #define A_PCIE_BUS_MST_STAT_4 0x5a70 3415 #define A_PCIE_BUS_MST_STAT_5 0x5a74 3416 #define A_PCIE_BUS_MST_STAT_6 0x5a78 3417 #define A_PCIE_BUS_MST_STAT_7 0x5a7c 3418 #define A_PCIE_RSP_ERR_STAT_0 0x5a80 3419 #define A_PCIE_RSP_ERR_STAT_1 0x5a84 3420 #define A_PCIE_RSP_ERR_STAT_2 0x5a88 3421 #define A_PCIE_RSP_ERR_STAT_3 0x5a8c 3422 #define A_PCIE_RSP_ERR_STAT_4 0x5a90 3423 #define A_PCIE_RSP_ERR_STAT_5 0x5a94 3424 #define A_PCIE_RSP_ERR_STAT_6 0x5a98 3425 #define A_PCIE_RSP_ERR_STAT_7 0x5a9c 3426 #define A_PCIE_MSI_EN_0 0x5aa0 3427 #define A_PCIE_MSI_EN_1 0x5aa4 3428 #define A_PCIE_MSI_EN_2 0x5aa8 3429 #define A_PCIE_MSI_EN_3 0x5aac 3430 #define A_PCIE_MSI_EN_4 0x5ab0 3431 #define A_PCIE_MSI_EN_5 0x5ab4 3432 #define A_PCIE_MSI_EN_6 0x5ab8 3433 #define A_PCIE_MSI_EN_7 0x5abc 3434 #define A_PCIE_MSIX_EN_0 0x5ac0 3435 #define A_PCIE_MSIX_EN_1 0x5ac4 3436 #define A_PCIE_MSIX_EN_2 0x5ac8 3437 #define A_PCIE_MSIX_EN_3 0x5acc 3438 #define A_PCIE_MSIX_EN_4 0x5ad0 3439 #define A_PCIE_MSIX_EN_5 0x5ad4 3440 #define A_PCIE_MSIX_EN_6 0x5ad8 3441 #define A_PCIE_MSIX_EN_7 0x5adc 3442 #define A_PCIE_DMA_BUF_CTL 0x5ae0 3443 3444 #define S_BUFRDCNT 18 3445 #define M_BUFRDCNT 0x3fffU 3446 #define V_BUFRDCNT(x) ((x) << S_BUFRDCNT) 3447 #define G_BUFRDCNT(x) (((x) >> S_BUFRDCNT) & M_BUFRDCNT) 3448 3449 #define S_BUFWRCNT 9 3450 #define M_BUFWRCNT 0x1ffU 3451 #define V_BUFWRCNT(x) ((x) << S_BUFWRCNT) 3452 #define G_BUFWRCNT(x) (((x) >> S_BUFWRCNT) & M_BUFWRCNT) 3453 3454 #define S_MAXBUFWRREQ 0 3455 #define M_MAXBUFWRREQ 0x1ffU 3456 #define V_MAXBUFWRREQ(x) ((x) << S_MAXBUFWRREQ) 3457 #define G_MAXBUFWRREQ(x) (((x) >> S_MAXBUFWRREQ) & M_MAXBUFWRREQ) 3458 3459 /* registers for module DBG */ 3460 #define DBG_BASE_ADDR 0x6000 3461 3462 #define A_DBG_DBG0_CFG 0x6000 3463 3464 #define S_MODULESELECT 12 3465 #define M_MODULESELECT 0xffU 3466 #define V_MODULESELECT(x) ((x) << S_MODULESELECT) 3467 #define G_MODULESELECT(x) (((x) >> S_MODULESELECT) & M_MODULESELECT) 3468 3469 #define S_REGSELECT 4 3470 #define M_REGSELECT 0xffU 3471 #define V_REGSELECT(x) ((x) << S_REGSELECT) 3472 #define G_REGSELECT(x) (((x) >> S_REGSELECT) & M_REGSELECT) 3473 3474 #define S_CLKSELECT 0 3475 #define M_CLKSELECT 0xfU 3476 #define V_CLKSELECT(x) ((x) << S_CLKSELECT) 3477 #define G_CLKSELECT(x) (((x) >> S_CLKSELECT) & M_CLKSELECT) 3478 3479 #define A_DBG_DBG0_EN 0x6004 3480 3481 #define S_PORTEN_PONR 16 3482 #define V_PORTEN_PONR(x) ((x) << S_PORTEN_PONR) 3483 #define F_PORTEN_PONR V_PORTEN_PONR(1U) 3484 3485 #define S_PORTEN_POND 12 3486 #define V_PORTEN_POND(x) ((x) << S_PORTEN_POND) 3487 #define F_PORTEN_POND V_PORTEN_POND(1U) 3488 3489 #define S_SDRHALFWORD0 8 3490 #define V_SDRHALFWORD0(x) ((x) << S_SDRHALFWORD0) 3491 #define F_SDRHALFWORD0 V_SDRHALFWORD0(1U) 3492 3493 #define S_DDREN 4 3494 #define V_DDREN(x) ((x) << S_DDREN) 3495 #define F_DDREN V_DDREN(1U) 3496 3497 #define S_DBG_PORTEN 0 3498 #define V_DBG_PORTEN(x) ((x) << S_DBG_PORTEN) 3499 #define F_DBG_PORTEN V_DBG_PORTEN(1U) 3500 3501 #define A_DBG_DBG1_CFG 0x6008 3502 #define A_DBG_DBG1_EN 0x600c 3503 #define A_DBG_GPIO_EN 0x6010 3504 3505 #define S_GPIO15_OEN 31 3506 #define V_GPIO15_OEN(x) ((x) << S_GPIO15_OEN) 3507 #define F_GPIO15_OEN V_GPIO15_OEN(1U) 3508 3509 #define S_GPIO14_OEN 30 3510 #define V_GPIO14_OEN(x) ((x) << S_GPIO14_OEN) 3511 #define F_GPIO14_OEN V_GPIO14_OEN(1U) 3512 3513 #define S_GPIO13_OEN 29 3514 #define V_GPIO13_OEN(x) ((x) << S_GPIO13_OEN) 3515 #define F_GPIO13_OEN V_GPIO13_OEN(1U) 3516 3517 #define S_GPIO12_OEN 28 3518 #define V_GPIO12_OEN(x) ((x) << S_GPIO12_OEN) 3519 #define F_GPIO12_OEN V_GPIO12_OEN(1U) 3520 3521 #define S_GPIO11_OEN 27 3522 #define V_GPIO11_OEN(x) ((x) << S_GPIO11_OEN) 3523 #define F_GPIO11_OEN V_GPIO11_OEN(1U) 3524 3525 #define S_GPIO10_OEN 26 3526 #define V_GPIO10_OEN(x) ((x) << S_GPIO10_OEN) 3527 #define F_GPIO10_OEN V_GPIO10_OEN(1U) 3528 3529 #define S_GPIO9_OEN 25 3530 #define V_GPIO9_OEN(x) ((x) << S_GPIO9_OEN) 3531 #define F_GPIO9_OEN V_GPIO9_OEN(1U) 3532 3533 #define S_GPIO8_OEN 24 3534 #define V_GPIO8_OEN(x) ((x) << S_GPIO8_OEN) 3535 #define F_GPIO8_OEN V_GPIO8_OEN(1U) 3536 3537 #define S_GPIO7_OEN 23 3538 #define V_GPIO7_OEN(x) ((x) << S_GPIO7_OEN) 3539 #define F_GPIO7_OEN V_GPIO7_OEN(1U) 3540 3541 #define S_GPIO6_OEN 22 3542 #define V_GPIO6_OEN(x) ((x) << S_GPIO6_OEN) 3543 #define F_GPIO6_OEN V_GPIO6_OEN(1U) 3544 3545 #define S_GPIO5_OEN 21 3546 #define V_GPIO5_OEN(x) ((x) << S_GPIO5_OEN) 3547 #define F_GPIO5_OEN V_GPIO5_OEN(1U) 3548 3549 #define S_GPIO4_OEN 20 3550 #define V_GPIO4_OEN(x) ((x) << S_GPIO4_OEN) 3551 #define F_GPIO4_OEN V_GPIO4_OEN(1U) 3552 3553 #define S_GPIO3_OEN 19 3554 #define V_GPIO3_OEN(x) ((x) << S_GPIO3_OEN) 3555 #define F_GPIO3_OEN V_GPIO3_OEN(1U) 3556 3557 #define S_GPIO2_OEN 18 3558 #define V_GPIO2_OEN(x) ((x) << S_GPIO2_OEN) 3559 #define F_GPIO2_OEN V_GPIO2_OEN(1U) 3560 3561 #define S_GPIO1_OEN 17 3562 #define V_GPIO1_OEN(x) ((x) << S_GPIO1_OEN) 3563 #define F_GPIO1_OEN V_GPIO1_OEN(1U) 3564 3565 #define S_GPIO0_OEN 16 3566 #define V_GPIO0_OEN(x) ((x) << S_GPIO0_OEN) 3567 #define F_GPIO0_OEN V_GPIO0_OEN(1U) 3568 3569 #define S_GPIO15_OUT_VAL 15 3570 #define V_GPIO15_OUT_VAL(x) ((x) << S_GPIO15_OUT_VAL) 3571 #define F_GPIO15_OUT_VAL V_GPIO15_OUT_VAL(1U) 3572 3573 #define S_GPIO14_OUT_VAL 14 3574 #define V_GPIO14_OUT_VAL(x) ((x) << S_GPIO14_OUT_VAL) 3575 #define F_GPIO14_OUT_VAL V_GPIO14_OUT_VAL(1U) 3576 3577 #define S_GPIO13_OUT_VAL 13 3578 #define V_GPIO13_OUT_VAL(x) ((x) << S_GPIO13_OUT_VAL) 3579 #define F_GPIO13_OUT_VAL V_GPIO13_OUT_VAL(1U) 3580 3581 #define S_GPIO12_OUT_VAL 12 3582 #define V_GPIO12_OUT_VAL(x) ((x) << S_GPIO12_OUT_VAL) 3583 #define F_GPIO12_OUT_VAL V_GPIO12_OUT_VAL(1U) 3584 3585 #define S_GPIO11_OUT_VAL 11 3586 #define V_GPIO11_OUT_VAL(x) ((x) << S_GPIO11_OUT_VAL) 3587 #define F_GPIO11_OUT_VAL V_GPIO11_OUT_VAL(1U) 3588 3589 #define S_GPIO10_OUT_VAL 10 3590 #define V_GPIO10_OUT_VAL(x) ((x) << S_GPIO10_OUT_VAL) 3591 #define F_GPIO10_OUT_VAL V_GPIO10_OUT_VAL(1U) 3592 3593 #define S_GPIO9_OUT_VAL 9 3594 #define V_GPIO9_OUT_VAL(x) ((x) << S_GPIO9_OUT_VAL) 3595 #define F_GPIO9_OUT_VAL V_GPIO9_OUT_VAL(1U) 3596 3597 #define S_GPIO8_OUT_VAL 8 3598 #define V_GPIO8_OUT_VAL(x) ((x) << S_GPIO8_OUT_VAL) 3599 #define F_GPIO8_OUT_VAL V_GPIO8_OUT_VAL(1U) 3600 3601 #define S_GPIO7_OUT_VAL 7 3602 #define V_GPIO7_OUT_VAL(x) ((x) << S_GPIO7_OUT_VAL) 3603 #define F_GPIO7_OUT_VAL V_GPIO7_OUT_VAL(1U) 3604 3605 #define S_GPIO6_OUT_VAL 6 3606 #define V_GPIO6_OUT_VAL(x) ((x) << S_GPIO6_OUT_VAL) 3607 #define F_GPIO6_OUT_VAL V_GPIO6_OUT_VAL(1U) 3608 3609 #define S_GPIO5_OUT_VAL 5 3610 #define V_GPIO5_OUT_VAL(x) ((x) << S_GPIO5_OUT_VAL) 3611 #define F_GPIO5_OUT_VAL V_GPIO5_OUT_VAL(1U) 3612 3613 #define S_GPIO4_OUT_VAL 4 3614 #define V_GPIO4_OUT_VAL(x) ((x) << S_GPIO4_OUT_VAL) 3615 #define F_GPIO4_OUT_VAL V_GPIO4_OUT_VAL(1U) 3616 3617 #define S_GPIO3_OUT_VAL 3 3618 #define V_GPIO3_OUT_VAL(x) ((x) << S_GPIO3_OUT_VAL) 3619 #define F_GPIO3_OUT_VAL V_GPIO3_OUT_VAL(1U) 3620 3621 #define S_GPIO2_OUT_VAL 2 3622 #define V_GPIO2_OUT_VAL(x) ((x) << S_GPIO2_OUT_VAL) 3623 #define F_GPIO2_OUT_VAL V_GPIO2_OUT_VAL(1U) 3624 3625 #define S_GPIO1_OUT_VAL 1 3626 #define V_GPIO1_OUT_VAL(x) ((x) << S_GPIO1_OUT_VAL) 3627 #define F_GPIO1_OUT_VAL V_GPIO1_OUT_VAL(1U) 3628 3629 #define S_GPIO0_OUT_VAL 0 3630 #define V_GPIO0_OUT_VAL(x) ((x) << S_GPIO0_OUT_VAL) 3631 #define F_GPIO0_OUT_VAL V_GPIO0_OUT_VAL(1U) 3632 3633 #define A_DBG_GPIO_IN 0x6014 3634 3635 #define S_GPIO15_CHG_DET 31 3636 #define V_GPIO15_CHG_DET(x) ((x) << S_GPIO15_CHG_DET) 3637 #define F_GPIO15_CHG_DET V_GPIO15_CHG_DET(1U) 3638 3639 #define S_GPIO14_CHG_DET 30 3640 #define V_GPIO14_CHG_DET(x) ((x) << S_GPIO14_CHG_DET) 3641 #define F_GPIO14_CHG_DET V_GPIO14_CHG_DET(1U) 3642 3643 #define S_GPIO13_CHG_DET 29 3644 #define V_GPIO13_CHG_DET(x) ((x) << S_GPIO13_CHG_DET) 3645 #define F_GPIO13_CHG_DET V_GPIO13_CHG_DET(1U) 3646 3647 #define S_GPIO12_CHG_DET 28 3648 #define V_GPIO12_CHG_DET(x) ((x) << S_GPIO12_CHG_DET) 3649 #define F_GPIO12_CHG_DET V_GPIO12_CHG_DET(1U) 3650 3651 #define S_GPIO11_CHG_DET 27 3652 #define V_GPIO11_CHG_DET(x) ((x) << S_GPIO11_CHG_DET) 3653 #define F_GPIO11_CHG_DET V_GPIO11_CHG_DET(1U) 3654 3655 #define S_GPIO10_CHG_DET 26 3656 #define V_GPIO10_CHG_DET(x) ((x) << S_GPIO10_CHG_DET) 3657 #define F_GPIO10_CHG_DET V_GPIO10_CHG_DET(1U) 3658 3659 #define S_GPIO9_CHG_DET 25 3660 #define V_GPIO9_CHG_DET(x) ((x) << S_GPIO9_CHG_DET) 3661 #define F_GPIO9_CHG_DET V_GPIO9_CHG_DET(1U) 3662 3663 #define S_GPIO8_CHG_DET 24 3664 #define V_GPIO8_CHG_DET(x) ((x) << S_GPIO8_CHG_DET) 3665 #define F_GPIO8_CHG_DET V_GPIO8_CHG_DET(1U) 3666 3667 #define S_GPIO7_CHG_DET 23 3668 #define V_GPIO7_CHG_DET(x) ((x) << S_GPIO7_CHG_DET) 3669 #define F_GPIO7_CHG_DET V_GPIO7_CHG_DET(1U) 3670 3671 #define S_GPIO6_CHG_DET 22 3672 #define V_GPIO6_CHG_DET(x) ((x) << S_GPIO6_CHG_DET) 3673 #define F_GPIO6_CHG_DET V_GPIO6_CHG_DET(1U) 3674 3675 #define S_GPIO5_CHG_DET 21 3676 #define V_GPIO5_CHG_DET(x) ((x) << S_GPIO5_CHG_DET) 3677 #define F_GPIO5_CHG_DET V_GPIO5_CHG_DET(1U) 3678 3679 #define S_GPIO4_CHG_DET 20 3680 #define V_GPIO4_CHG_DET(x) ((x) << S_GPIO4_CHG_DET) 3681 #define F_GPIO4_CHG_DET V_GPIO4_CHG_DET(1U) 3682 3683 #define S_GPIO3_CHG_DET 19 3684 #define V_GPIO3_CHG_DET(x) ((x) << S_GPIO3_CHG_DET) 3685 #define F_GPIO3_CHG_DET V_GPIO3_CHG_DET(1U) 3686 3687 #define S_GPIO2_CHG_DET 18 3688 #define V_GPIO2_CHG_DET(x) ((x) << S_GPIO2_CHG_DET) 3689 #define F_GPIO2_CHG_DET V_GPIO2_CHG_DET(1U) 3690 3691 #define S_GPIO1_CHG_DET 17 3692 #define V_GPIO1_CHG_DET(x) ((x) << S_GPIO1_CHG_DET) 3693 #define F_GPIO1_CHG_DET V_GPIO1_CHG_DET(1U) 3694 3695 #define S_GPIO0_CHG_DET 16 3696 #define V_GPIO0_CHG_DET(x) ((x) << S_GPIO0_CHG_DET) 3697 #define F_GPIO0_CHG_DET V_GPIO0_CHG_DET(1U) 3698 3699 #define S_GPIO15_IN 15 3700 #define V_GPIO15_IN(x) ((x) << S_GPIO15_IN) 3701 #define F_GPIO15_IN V_GPIO15_IN(1U) 3702 3703 #define S_GPIO14_IN 14 3704 #define V_GPIO14_IN(x) ((x) << S_GPIO14_IN) 3705 #define F_GPIO14_IN V_GPIO14_IN(1U) 3706 3707 #define S_GPIO13_IN 13 3708 #define V_GPIO13_IN(x) ((x) << S_GPIO13_IN) 3709 #define F_GPIO13_IN V_GPIO13_IN(1U) 3710 3711 #define S_GPIO12_IN 12 3712 #define V_GPIO12_IN(x) ((x) << S_GPIO12_IN) 3713 #define F_GPIO12_IN V_GPIO12_IN(1U) 3714 3715 #define S_GPIO11_IN 11 3716 #define V_GPIO11_IN(x) ((x) << S_GPIO11_IN) 3717 #define F_GPIO11_IN V_GPIO11_IN(1U) 3718 3719 #define S_GPIO10_IN 10 3720 #define V_GPIO10_IN(x) ((x) << S_GPIO10_IN) 3721 #define F_GPIO10_IN V_GPIO10_IN(1U) 3722 3723 #define S_GPIO9_IN 9 3724 #define V_GPIO9_IN(x) ((x) << S_GPIO9_IN) 3725 #define F_GPIO9_IN V_GPIO9_IN(1U) 3726 3727 #define S_GPIO8_IN 8 3728 #define V_GPIO8_IN(x) ((x) << S_GPIO8_IN) 3729 #define F_GPIO8_IN V_GPIO8_IN(1U) 3730 3731 #define S_GPIO7_IN 7 3732 #define V_GPIO7_IN(x) ((x) << S_GPIO7_IN) 3733 #define F_GPIO7_IN V_GPIO7_IN(1U) 3734 3735 #define S_GPIO6_IN 6 3736 #define V_GPIO6_IN(x) ((x) << S_GPIO6_IN) 3737 #define F_GPIO6_IN V_GPIO6_IN(1U) 3738 3739 #define S_GPIO5_IN 5 3740 #define V_GPIO5_IN(x) ((x) << S_GPIO5_IN) 3741 #define F_GPIO5_IN V_GPIO5_IN(1U) 3742 3743 #define S_GPIO4_IN 4 3744 #define V_GPIO4_IN(x) ((x) << S_GPIO4_IN) 3745 #define F_GPIO4_IN V_GPIO4_IN(1U) 3746 3747 #define S_GPIO3_IN 3 3748 #define V_GPIO3_IN(x) ((x) << S_GPIO3_IN) 3749 #define F_GPIO3_IN V_GPIO3_IN(1U) 3750 3751 #define S_GPIO2_IN 2 3752 #define V_GPIO2_IN(x) ((x) << S_GPIO2_IN) 3753 #define F_GPIO2_IN V_GPIO2_IN(1U) 3754 3755 #define S_GPIO1_IN 1 3756 #define V_GPIO1_IN(x) ((x) << S_GPIO1_IN) 3757 #define F_GPIO1_IN V_GPIO1_IN(1U) 3758 3759 #define S_GPIO0_IN 0 3760 #define V_GPIO0_IN(x) ((x) << S_GPIO0_IN) 3761 #define F_GPIO0_IN V_GPIO0_IN(1U) 3762 3763 #define A_DBG_INT_ENABLE 0x6018 3764 3765 #define S_IBM_FDL_FAIL_INT_ENBL 25 3766 #define V_IBM_FDL_FAIL_INT_ENBL(x) ((x) << S_IBM_FDL_FAIL_INT_ENBL) 3767 #define F_IBM_FDL_FAIL_INT_ENBL V_IBM_FDL_FAIL_INT_ENBL(1U) 3768 3769 #define S_ARM_FAIL_INT_ENBL 24 3770 #define V_ARM_FAIL_INT_ENBL(x) ((x) << S_ARM_FAIL_INT_ENBL) 3771 #define F_ARM_FAIL_INT_ENBL V_ARM_FAIL_INT_ENBL(1U) 3772 3773 #define S_ARM_ERROR_OUT_INT_ENBL 23 3774 #define V_ARM_ERROR_OUT_INT_ENBL(x) ((x) << S_ARM_ERROR_OUT_INT_ENBL) 3775 #define F_ARM_ERROR_OUT_INT_ENBL V_ARM_ERROR_OUT_INT_ENBL(1U) 3776 3777 #define S_PLL_LOCK_LOST_INT_ENBL 22 3778 #define V_PLL_LOCK_LOST_INT_ENBL(x) ((x) << S_PLL_LOCK_LOST_INT_ENBL) 3779 #define F_PLL_LOCK_LOST_INT_ENBL V_PLL_LOCK_LOST_INT_ENBL(1U) 3780 3781 #define S_C_LOCK 21 3782 #define V_C_LOCK(x) ((x) << S_C_LOCK) 3783 #define F_C_LOCK V_C_LOCK(1U) 3784 3785 #define S_M_LOCK 20 3786 #define V_M_LOCK(x) ((x) << S_M_LOCK) 3787 #define F_M_LOCK V_M_LOCK(1U) 3788 3789 #define S_U_LOCK 19 3790 #define V_U_LOCK(x) ((x) << S_U_LOCK) 3791 #define F_U_LOCK V_U_LOCK(1U) 3792 3793 #define S_PCIE_LOCK 18 3794 #define V_PCIE_LOCK(x) ((x) << S_PCIE_LOCK) 3795 #define F_PCIE_LOCK V_PCIE_LOCK(1U) 3796 3797 #define S_KX_LOCK 17 3798 #define V_KX_LOCK(x) ((x) << S_KX_LOCK) 3799 #define F_KX_LOCK V_KX_LOCK(1U) 3800 3801 #define S_KR_LOCK 16 3802 #define V_KR_LOCK(x) ((x) << S_KR_LOCK) 3803 #define F_KR_LOCK V_KR_LOCK(1U) 3804 3805 #define S_GPIO15 15 3806 #define V_GPIO15(x) ((x) << S_GPIO15) 3807 #define F_GPIO15 V_GPIO15(1U) 3808 3809 #define S_GPIO14 14 3810 #define V_GPIO14(x) ((x) << S_GPIO14) 3811 #define F_GPIO14 V_GPIO14(1U) 3812 3813 #define S_GPIO13 13 3814 #define V_GPIO13(x) ((x) << S_GPIO13) 3815 #define F_GPIO13 V_GPIO13(1U) 3816 3817 #define S_GPIO12 12 3818 #define V_GPIO12(x) ((x) << S_GPIO12) 3819 #define F_GPIO12 V_GPIO12(1U) 3820 3821 #define S_GPIO11 11 3822 #define V_GPIO11(x) ((x) << S_GPIO11) 3823 #define F_GPIO11 V_GPIO11(1U) 3824 3825 #define S_GPIO10 10 3826 #define V_GPIO10(x) ((x) << S_GPIO10) 3827 #define F_GPIO10 V_GPIO10(1U) 3828 3829 #define S_GPIO9 9 3830 #define V_GPIO9(x) ((x) << S_GPIO9) 3831 #define F_GPIO9 V_GPIO9(1U) 3832 3833 #define S_GPIO8 8 3834 #define V_GPIO8(x) ((x) << S_GPIO8) 3835 #define F_GPIO8 V_GPIO8(1U) 3836 3837 #define S_GPIO7 7 3838 #define V_GPIO7(x) ((x) << S_GPIO7) 3839 #define F_GPIO7 V_GPIO7(1U) 3840 3841 #define S_GPIO6 6 3842 #define V_GPIO6(x) ((x) << S_GPIO6) 3843 #define F_GPIO6 V_GPIO6(1U) 3844 3845 #define S_GPIO5 5 3846 #define V_GPIO5(x) ((x) << S_GPIO5) 3847 #define F_GPIO5 V_GPIO5(1U) 3848 3849 #define S_GPIO4 4 3850 #define V_GPIO4(x) ((x) << S_GPIO4) 3851 #define F_GPIO4 V_GPIO4(1U) 3852 3853 #define S_GPIO3 3 3854 #define V_GPIO3(x) ((x) << S_GPIO3) 3855 #define F_GPIO3 V_GPIO3(1U) 3856 3857 #define S_GPIO2 2 3858 #define V_GPIO2(x) ((x) << S_GPIO2) 3859 #define F_GPIO2 V_GPIO2(1U) 3860 3861 #define S_GPIO1 1 3862 #define V_GPIO1(x) ((x) << S_GPIO1) 3863 #define F_GPIO1 V_GPIO1(1U) 3864 3865 #define S_GPIO0 0 3866 #define V_GPIO0(x) ((x) << S_GPIO0) 3867 #define F_GPIO0 V_GPIO0(1U) 3868 3869 #define A_DBG_INT_CAUSE 0x601c 3870 3871 #define S_IBM_FDL_FAIL_INT_CAUSE 25 3872 #define V_IBM_FDL_FAIL_INT_CAUSE(x) ((x) << S_IBM_FDL_FAIL_INT_CAUSE) 3873 #define F_IBM_FDL_FAIL_INT_CAUSE V_IBM_FDL_FAIL_INT_CAUSE(1U) 3874 3875 #define S_ARM_FAIL_INT_CAUSE 24 3876 #define V_ARM_FAIL_INT_CAUSE(x) ((x) << S_ARM_FAIL_INT_CAUSE) 3877 #define F_ARM_FAIL_INT_CAUSE V_ARM_FAIL_INT_CAUSE(1U) 3878 3879 #define S_ARM_ERROR_OUT_INT_CAUSE 23 3880 #define V_ARM_ERROR_OUT_INT_CAUSE(x) ((x) << S_ARM_ERROR_OUT_INT_CAUSE) 3881 #define F_ARM_ERROR_OUT_INT_CAUSE V_ARM_ERROR_OUT_INT_CAUSE(1U) 3882 3883 #define S_PLL_LOCK_LOST_INT_CAUSE 22 3884 #define V_PLL_LOCK_LOST_INT_CAUSE(x) ((x) << S_PLL_LOCK_LOST_INT_CAUSE) 3885 #define F_PLL_LOCK_LOST_INT_CAUSE V_PLL_LOCK_LOST_INT_CAUSE(1U) 3886 3887 #define A_DBG_DBG0_RST_VALUE 0x6020 3888 3889 #define S_DEBUGDATA 0 3890 #define M_DEBUGDATA 0xffffU 3891 #define V_DEBUGDATA(x) ((x) << S_DEBUGDATA) 3892 #define G_DEBUGDATA(x) (((x) >> S_DEBUGDATA) & M_DEBUGDATA) 3893 3894 #define A_DBG_OVERWRSERCFG_EN 0x6024 3895 3896 #define S_OVERWRSERCFG_EN 0 3897 #define V_OVERWRSERCFG_EN(x) ((x) << S_OVERWRSERCFG_EN) 3898 #define F_OVERWRSERCFG_EN V_OVERWRSERCFG_EN(1U) 3899 3900 #define A_DBG_PLL_OCLK_PAD_EN 0x6028 3901 3902 #define S_PCIE_OCLK_EN 20 3903 #define V_PCIE_OCLK_EN(x) ((x) << S_PCIE_OCLK_EN) 3904 #define F_PCIE_OCLK_EN V_PCIE_OCLK_EN(1U) 3905 3906 #define S_KX_OCLK_EN 16 3907 #define V_KX_OCLK_EN(x) ((x) << S_KX_OCLK_EN) 3908 #define F_KX_OCLK_EN V_KX_OCLK_EN(1U) 3909 3910 #define S_U_OCLK_EN 12 3911 #define V_U_OCLK_EN(x) ((x) << S_U_OCLK_EN) 3912 #define F_U_OCLK_EN V_U_OCLK_EN(1U) 3913 3914 #define S_KR_OCLK_EN 8 3915 #define V_KR_OCLK_EN(x) ((x) << S_KR_OCLK_EN) 3916 #define F_KR_OCLK_EN V_KR_OCLK_EN(1U) 3917 3918 #define S_M_OCLK_EN 4 3919 #define V_M_OCLK_EN(x) ((x) << S_M_OCLK_EN) 3920 #define F_M_OCLK_EN V_M_OCLK_EN(1U) 3921 3922 #define S_C_OCLK_EN 0 3923 #define V_C_OCLK_EN(x) ((x) << S_C_OCLK_EN) 3924 #define F_C_OCLK_EN V_C_OCLK_EN(1U) 3925 3926 #define A_DBG_PLL_LOCK 0x602c 3927 3928 #define S_PLL_P_LOCK 20 3929 #define V_PLL_P_LOCK(x) ((x) << S_PLL_P_LOCK) 3930 #define F_PLL_P_LOCK V_PLL_P_LOCK(1U) 3931 3932 #define S_PLL_KX_LOCK 16 3933 #define V_PLL_KX_LOCK(x) ((x) << S_PLL_KX_LOCK) 3934 #define F_PLL_KX_LOCK V_PLL_KX_LOCK(1U) 3935 3936 #define S_PLL_U_LOCK 12 3937 #define V_PLL_U_LOCK(x) ((x) << S_PLL_U_LOCK) 3938 #define F_PLL_U_LOCK V_PLL_U_LOCK(1U) 3939 3940 #define S_PLL_KR_LOCK 8 3941 #define V_PLL_KR_LOCK(x) ((x) << S_PLL_KR_LOCK) 3942 #define F_PLL_KR_LOCK V_PLL_KR_LOCK(1U) 3943 3944 #define S_PLL_M_LOCK 4 3945 #define V_PLL_M_LOCK(x) ((x) << S_PLL_M_LOCK) 3946 #define F_PLL_M_LOCK V_PLL_M_LOCK(1U) 3947 3948 #define S_PLL_C_LOCK 0 3949 #define V_PLL_C_LOCK(x) ((x) << S_PLL_C_LOCK) 3950 #define F_PLL_C_LOCK V_PLL_C_LOCK(1U) 3951 3952 #define A_DBG_GPIO_ACT_LOW 0x6030 3953 3954 #define S_P_LOCK_ACT_LOW 21 3955 #define V_P_LOCK_ACT_LOW(x) ((x) << S_P_LOCK_ACT_LOW) 3956 #define F_P_LOCK_ACT_LOW V_P_LOCK_ACT_LOW(1U) 3957 3958 #define S_C_LOCK_ACT_LOW 20 3959 #define V_C_LOCK_ACT_LOW(x) ((x) << S_C_LOCK_ACT_LOW) 3960 #define F_C_LOCK_ACT_LOW V_C_LOCK_ACT_LOW(1U) 3961 3962 #define S_M_LOCK_ACT_LOW 19 3963 #define V_M_LOCK_ACT_LOW(x) ((x) << S_M_LOCK_ACT_LOW) 3964 #define F_M_LOCK_ACT_LOW V_M_LOCK_ACT_LOW(1U) 3965 3966 #define S_U_LOCK_ACT_LOW 18 3967 #define V_U_LOCK_ACT_LOW(x) ((x) << S_U_LOCK_ACT_LOW) 3968 #define F_U_LOCK_ACT_LOW V_U_LOCK_ACT_LOW(1U) 3969 3970 #define S_KR_LOCK_ACT_LOW 17 3971 #define V_KR_LOCK_ACT_LOW(x) ((x) << S_KR_LOCK_ACT_LOW) 3972 #define F_KR_LOCK_ACT_LOW V_KR_LOCK_ACT_LOW(1U) 3973 3974 #define S_KX_LOCK_ACT_LOW 16 3975 #define V_KX_LOCK_ACT_LOW(x) ((x) << S_KX_LOCK_ACT_LOW) 3976 #define F_KX_LOCK_ACT_LOW V_KX_LOCK_ACT_LOW(1U) 3977 3978 #define S_GPIO15_ACT_LOW 15 3979 #define V_GPIO15_ACT_LOW(x) ((x) << S_GPIO15_ACT_LOW) 3980 #define F_GPIO15_ACT_LOW V_GPIO15_ACT_LOW(1U) 3981 3982 #define S_GPIO14_ACT_LOW 14 3983 #define V_GPIO14_ACT_LOW(x) ((x) << S_GPIO14_ACT_LOW) 3984 #define F_GPIO14_ACT_LOW V_GPIO14_ACT_LOW(1U) 3985 3986 #define S_GPIO13_ACT_LOW 13 3987 #define V_GPIO13_ACT_LOW(x) ((x) << S_GPIO13_ACT_LOW) 3988 #define F_GPIO13_ACT_LOW V_GPIO13_ACT_LOW(1U) 3989 3990 #define S_GPIO12_ACT_LOW 12 3991 #define V_GPIO12_ACT_LOW(x) ((x) << S_GPIO12_ACT_LOW) 3992 #define F_GPIO12_ACT_LOW V_GPIO12_ACT_LOW(1U) 3993 3994 #define S_GPIO11_ACT_LOW 11 3995 #define V_GPIO11_ACT_LOW(x) ((x) << S_GPIO11_ACT_LOW) 3996 #define F_GPIO11_ACT_LOW V_GPIO11_ACT_LOW(1U) 3997 3998 #define S_GPIO10_ACT_LOW 10 3999 #define V_GPIO10_ACT_LOW(x) ((x) << S_GPIO10_ACT_LOW) 4000 #define F_GPIO10_ACT_LOW V_GPIO10_ACT_LOW(1U) 4001 4002 #define S_GPIO9_ACT_LOW 9 4003 #define V_GPIO9_ACT_LOW(x) ((x) << S_GPIO9_ACT_LOW) 4004 #define F_GPIO9_ACT_LOW V_GPIO9_ACT_LOW(1U) 4005 4006 #define S_GPIO8_ACT_LOW 8 4007 #define V_GPIO8_ACT_LOW(x) ((x) << S_GPIO8_ACT_LOW) 4008 #define F_GPIO8_ACT_LOW V_GPIO8_ACT_LOW(1U) 4009 4010 #define S_GPIO7_ACT_LOW 7 4011 #define V_GPIO7_ACT_LOW(x) ((x) << S_GPIO7_ACT_LOW) 4012 #define F_GPIO7_ACT_LOW V_GPIO7_ACT_LOW(1U) 4013 4014 #define S_GPIO6_ACT_LOW 6 4015 #define V_GPIO6_ACT_LOW(x) ((x) << S_GPIO6_ACT_LOW) 4016 #define F_GPIO6_ACT_LOW V_GPIO6_ACT_LOW(1U) 4017 4018 #define S_GPIO5_ACT_LOW 5 4019 #define V_GPIO5_ACT_LOW(x) ((x) << S_GPIO5_ACT_LOW) 4020 #define F_GPIO5_ACT_LOW V_GPIO5_ACT_LOW(1U) 4021 4022 #define S_GPIO4_ACT_LOW 4 4023 #define V_GPIO4_ACT_LOW(x) ((x) << S_GPIO4_ACT_LOW) 4024 #define F_GPIO4_ACT_LOW V_GPIO4_ACT_LOW(1U) 4025 4026 #define S_GPIO3_ACT_LOW 3 4027 #define V_GPIO3_ACT_LOW(x) ((x) << S_GPIO3_ACT_LOW) 4028 #define F_GPIO3_ACT_LOW V_GPIO3_ACT_LOW(1U) 4029 4030 #define S_GPIO2_ACT_LOW 2 4031 #define V_GPIO2_ACT_LOW(x) ((x) << S_GPIO2_ACT_LOW) 4032 #define F_GPIO2_ACT_LOW V_GPIO2_ACT_LOW(1U) 4033 4034 #define S_GPIO1_ACT_LOW 1 4035 #define V_GPIO1_ACT_LOW(x) ((x) << S_GPIO1_ACT_LOW) 4036 #define F_GPIO1_ACT_LOW V_GPIO1_ACT_LOW(1U) 4037 4038 #define S_GPIO0_ACT_LOW 0 4039 #define V_GPIO0_ACT_LOW(x) ((x) << S_GPIO0_ACT_LOW) 4040 #define F_GPIO0_ACT_LOW V_GPIO0_ACT_LOW(1U) 4041 4042 #define A_DBG_EFUSE_BYTE0_3 0x6034 4043 #define A_DBG_EFUSE_BYTE4_7 0x6038 4044 #define A_DBG_EFUSE_BYTE8_11 0x603c 4045 #define A_DBG_EFUSE_BYTE12_15 0x6040 4046 #define A_DBG_STATIC_U_PLL_CONF 0x6044 4047 4048 #define S_STATIC_U_PLL_MULT 23 4049 #define M_STATIC_U_PLL_MULT 0x1ffU 4050 #define V_STATIC_U_PLL_MULT(x) ((x) << S_STATIC_U_PLL_MULT) 4051 #define G_STATIC_U_PLL_MULT(x) \ 4052 (((x) >> S_STATIC_U_PLL_MULT) & M_STATIC_U_PLL_MULT) 4053 4054 #define S_STATIC_U_PLL_PREDIV 18 4055 #define M_STATIC_U_PLL_PREDIV 0x1fU 4056 #define V_STATIC_U_PLL_PREDIV(x) ((x) << S_STATIC_U_PLL_PREDIV) 4057 #define G_STATIC_U_PLL_PREDIV(x) \ 4058 (((x) >> S_STATIC_U_PLL_PREDIV) & M_STATIC_U_PLL_PREDIV) 4059 4060 #define S_STATIC_U_PLL_RANGEA 14 4061 #define M_STATIC_U_PLL_RANGEA 0xfU 4062 #define V_STATIC_U_PLL_RANGEA(x) ((x) << S_STATIC_U_PLL_RANGEA) 4063 #define G_STATIC_U_PLL_RANGEA(x) \ 4064 (((x) >> S_STATIC_U_PLL_RANGEA) & M_STATIC_U_PLL_RANGEA) 4065 4066 #define S_STATIC_U_PLL_RANGEB 10 4067 #define M_STATIC_U_PLL_RANGEB 0xfU 4068 #define V_STATIC_U_PLL_RANGEB(x) ((x) << S_STATIC_U_PLL_RANGEB) 4069 #define G_STATIC_U_PLL_RANGEB(x) \ 4070 (((x) >> S_STATIC_U_PLL_RANGEB) & M_STATIC_U_PLL_RANGEB) 4071 4072 #define S_STATIC_U_PLL_TUNE 0 4073 #define M_STATIC_U_PLL_TUNE 0x3ffU 4074 #define V_STATIC_U_PLL_TUNE(x) ((x) << S_STATIC_U_PLL_TUNE) 4075 #define G_STATIC_U_PLL_TUNE(x) \ 4076 (((x) >> S_STATIC_U_PLL_TUNE) & M_STATIC_U_PLL_TUNE) 4077 4078 #define A_DBG_STATIC_C_PLL_CONF 0x6048 4079 4080 #define S_STATIC_C_PLL_MULT 23 4081 #define M_STATIC_C_PLL_MULT 0x1ffU 4082 #define V_STATIC_C_PLL_MULT(x) ((x) << S_STATIC_C_PLL_MULT) 4083 #define G_STATIC_C_PLL_MULT(x) \ 4084 (((x) >> S_STATIC_C_PLL_MULT) & M_STATIC_C_PLL_MULT) 4085 4086 #define S_STATIC_C_PLL_PREDIV 18 4087 #define M_STATIC_C_PLL_PREDIV 0x1fU 4088 #define V_STATIC_C_PLL_PREDIV(x) ((x) << S_STATIC_C_PLL_PREDIV) 4089 #define G_STATIC_C_PLL_PREDIV(x) \ 4090 (((x) >> S_STATIC_C_PLL_PREDIV) & M_STATIC_C_PLL_PREDIV) 4091 4092 #define S_STATIC_C_PLL_RANGEA 14 4093 #define M_STATIC_C_PLL_RANGEA 0xfU 4094 #define V_STATIC_C_PLL_RANGEA(x) ((x) << S_STATIC_C_PLL_RANGEA) 4095 #define G_STATIC_C_PLL_RANGEA(x) \ 4096 (((x) >> S_STATIC_C_PLL_RANGEA) & M_STATIC_C_PLL_RANGEA) 4097 4098 #define S_STATIC_C_PLL_RANGEB 10 4099 #define M_STATIC_C_PLL_RANGEB 0xfU 4100 #define V_STATIC_C_PLL_RANGEB(x) ((x) << S_STATIC_C_PLL_RANGEB) 4101 #define G_STATIC_C_PLL_RANGEB(x) \ 4102 (((x) >> S_STATIC_C_PLL_RANGEB) & M_STATIC_C_PLL_RANGEB) 4103 4104 #define S_STATIC_C_PLL_TUNE 0 4105 #define M_STATIC_C_PLL_TUNE 0x3ffU 4106 #define V_STATIC_C_PLL_TUNE(x) ((x) << S_STATIC_C_PLL_TUNE) 4107 #define G_STATIC_C_PLL_TUNE(x) \ 4108 (((x) >> S_STATIC_C_PLL_TUNE) & M_STATIC_C_PLL_TUNE) 4109 4110 #define A_DBG_STATIC_M_PLL_CONF 0x604c 4111 4112 #define S_STATIC_M_PLL_MULT 23 4113 #define M_STATIC_M_PLL_MULT 0x1ffU 4114 #define V_STATIC_M_PLL_MULT(x) ((x) << S_STATIC_M_PLL_MULT) 4115 #define G_STATIC_M_PLL_MULT(x) \ 4116 (((x) >> S_STATIC_M_PLL_MULT) & M_STATIC_M_PLL_MULT) 4117 4118 #define S_STATIC_M_PLL_PREDIV 18 4119 #define M_STATIC_M_PLL_PREDIV 0x1fU 4120 #define V_STATIC_M_PLL_PREDIV(x) ((x) << S_STATIC_M_PLL_PREDIV) 4121 #define G_STATIC_M_PLL_PREDIV(x) \ 4122 (((x) >> S_STATIC_M_PLL_PREDIV) & M_STATIC_M_PLL_PREDIV) 4123 4124 #define S_STATIC_M_PLL_RANGEA 14 4125 #define M_STATIC_M_PLL_RANGEA 0xfU 4126 #define V_STATIC_M_PLL_RANGEA(x) ((x) << S_STATIC_M_PLL_RANGEA) 4127 #define G_STATIC_M_PLL_RANGEA(x) \ 4128 (((x) >> S_STATIC_M_PLL_RANGEA) & M_STATIC_M_PLL_RANGEA) 4129 4130 #define S_STATIC_M_PLL_RANGEB 10 4131 #define M_STATIC_M_PLL_RANGEB 0xfU 4132 #define V_STATIC_M_PLL_RANGEB(x) ((x) << S_STATIC_M_PLL_RANGEB) 4133 #define G_STATIC_M_PLL_RANGEB(x) \ 4134 (((x) >> S_STATIC_M_PLL_RANGEB) & M_STATIC_M_PLL_RANGEB) 4135 4136 #define S_STATIC_M_PLL_TUNE 0 4137 #define M_STATIC_M_PLL_TUNE 0x3ffU 4138 #define V_STATIC_M_PLL_TUNE(x) ((x) << S_STATIC_M_PLL_TUNE) 4139 #define G_STATIC_M_PLL_TUNE(x) \ 4140 (((x) >> S_STATIC_M_PLL_TUNE) & M_STATIC_M_PLL_TUNE) 4141 4142 #define A_DBG_STATIC_KX_PLL_CONF 0x6050 4143 4144 #define S_STATIC_KX_PLL_C 21 4145 #define M_STATIC_KX_PLL_C 0xffU 4146 #define V_STATIC_KX_PLL_C(x) ((x) << S_STATIC_KX_PLL_C) 4147 #define G_STATIC_KX_PLL_C(x) (((x) >> S_STATIC_KX_PLL_C) & M_STATIC_KX_PLL_C) 4148 4149 #define S_STATIC_KX_PLL_M 15 4150 #define M_STATIC_KX_PLL_M 0x3fU 4151 #define V_STATIC_KX_PLL_M(x) ((x) << S_STATIC_KX_PLL_M) 4152 #define G_STATIC_KX_PLL_M(x) (((x) >> S_STATIC_KX_PLL_M) & M_STATIC_KX_PLL_M) 4153 4154 #define S_STATIC_KX_PLL_N1 11 4155 #define M_STATIC_KX_PLL_N1 0xfU 4156 #define V_STATIC_KX_PLL_N1(x) ((x) << S_STATIC_KX_PLL_N1) 4157 #define G_STATIC_KX_PLL_N1(x) (((x) >> S_STATIC_KX_PLL_N1) & M_STATIC_KX_PLL_N1) 4158 4159 #define S_STATIC_KX_PLL_N2 7 4160 #define M_STATIC_KX_PLL_N2 0xfU 4161 #define V_STATIC_KX_PLL_N2(x) ((x) << S_STATIC_KX_PLL_N2) 4162 #define G_STATIC_KX_PLL_N2(x) (((x) >> S_STATIC_KX_PLL_N2) & M_STATIC_KX_PLL_N2) 4163 4164 #define S_STATIC_KX_PLL_N3 3 4165 #define M_STATIC_KX_PLL_N3 0xfU 4166 #define V_STATIC_KX_PLL_N3(x) ((x) << S_STATIC_KX_PLL_N3) 4167 #define G_STATIC_KX_PLL_N3(x) (((x) >> S_STATIC_KX_PLL_N3) & M_STATIC_KX_PLL_N3) 4168 4169 #define S_STATIC_KX_PLL_P 0 4170 #define M_STATIC_KX_PLL_P 0x7U 4171 #define V_STATIC_KX_PLL_P(x) ((x) << S_STATIC_KX_PLL_P) 4172 #define G_STATIC_KX_PLL_P(x) (((x) >> S_STATIC_KX_PLL_P) & M_STATIC_KX_PLL_P) 4173 4174 #define A_DBG_STATIC_KR_PLL_CONF 0x6054 4175 4176 #define S_STATIC_KR_PLL_C 21 4177 #define M_STATIC_KR_PLL_C 0xffU 4178 #define V_STATIC_KR_PLL_C(x) ((x) << S_STATIC_KR_PLL_C) 4179 #define G_STATIC_KR_PLL_C(x) (((x) >> S_STATIC_KR_PLL_C) & M_STATIC_KR_PLL_C) 4180 4181 #define S_STATIC_KR_PLL_M 15 4182 #define M_STATIC_KR_PLL_M 0x3fU 4183 #define V_STATIC_KR_PLL_M(x) ((x) << S_STATIC_KR_PLL_M) 4184 #define G_STATIC_KR_PLL_M(x) (((x) >> S_STATIC_KR_PLL_M) & M_STATIC_KR_PLL_M) 4185 4186 #define S_STATIC_KR_PLL_N1 11 4187 #define M_STATIC_KR_PLL_N1 0xfU 4188 #define V_STATIC_KR_PLL_N1(x) ((x) << S_STATIC_KR_PLL_N1) 4189 #define G_STATIC_KR_PLL_N1(x) (((x) >> S_STATIC_KR_PLL_N1) & M_STATIC_KR_PLL_N1) 4190 4191 #define S_STATIC_KR_PLL_N2 7 4192 #define M_STATIC_KR_PLL_N2 0xfU 4193 #define V_STATIC_KR_PLL_N2(x) ((x) << S_STATIC_KR_PLL_N2) 4194 #define G_STATIC_KR_PLL_N2(x) (((x) >> S_STATIC_KR_PLL_N2) & M_STATIC_KR_PLL_N2) 4195 4196 #define S_STATIC_KR_PLL_N3 3 4197 #define M_STATIC_KR_PLL_N3 0xfU 4198 #define V_STATIC_KR_PLL_N3(x) ((x) << S_STATIC_KR_PLL_N3) 4199 #define G_STATIC_KR_PLL_N3(x) (((x) >> S_STATIC_KR_PLL_N3) & M_STATIC_KR_PLL_N3) 4200 4201 #define S_STATIC_KR_PLL_P 0 4202 #define M_STATIC_KR_PLL_P 0x7U 4203 #define V_STATIC_KR_PLL_P(x) ((x) << S_STATIC_KR_PLL_P) 4204 #define G_STATIC_KR_PLL_P(x) (((x) >> S_STATIC_KR_PLL_P) & M_STATIC_KR_PLL_P) 4205 4206 #define A_DBG_EXTRA_STATIC_BITS_CONF 0x6058 4207 4208 #define S_STATIC_M_PLL_RESET 30 4209 #define V_STATIC_M_PLL_RESET(x) ((x) << S_STATIC_M_PLL_RESET) 4210 #define F_STATIC_M_PLL_RESET V_STATIC_M_PLL_RESET(1U) 4211 4212 #define S_STATIC_M_PLL_SLEEP 29 4213 #define V_STATIC_M_PLL_SLEEP(x) ((x) << S_STATIC_M_PLL_SLEEP) 4214 #define F_STATIC_M_PLL_SLEEP V_STATIC_M_PLL_SLEEP(1U) 4215 4216 #define S_STATIC_M_PLL_BYPASS 28 4217 #define V_STATIC_M_PLL_BYPASS(x) ((x) << S_STATIC_M_PLL_BYPASS) 4218 #define F_STATIC_M_PLL_BYPASS V_STATIC_M_PLL_BYPASS(1U) 4219 4220 #define S_STATIC_MPLL_CLK_SEL 27 4221 #define V_STATIC_MPLL_CLK_SEL(x) ((x) << S_STATIC_MPLL_CLK_SEL) 4222 #define F_STATIC_MPLL_CLK_SEL V_STATIC_MPLL_CLK_SEL(1U) 4223 4224 #define S_STATIC_U_PLL_SLEEP 26 4225 #define V_STATIC_U_PLL_SLEEP(x) ((x) << S_STATIC_U_PLL_SLEEP) 4226 #define F_STATIC_U_PLL_SLEEP V_STATIC_U_PLL_SLEEP(1U) 4227 4228 #define S_STATIC_C_PLL_SLEEP 25 4229 #define V_STATIC_C_PLL_SLEEP(x) ((x) << S_STATIC_C_PLL_SLEEP) 4230 #define F_STATIC_C_PLL_SLEEP V_STATIC_C_PLL_SLEEP(1U) 4231 4232 #define S_STATIC_LVDS_CLKOUT_SEL 23 4233 #define M_STATIC_LVDS_CLKOUT_SEL 0x3U 4234 #define V_STATIC_LVDS_CLKOUT_SEL(x) ((x) << S_STATIC_LVDS_CLKOUT_SEL) 4235 #define G_STATIC_LVDS_CLKOUT_SEL(x) \ 4236 (((x) >> S_STATIC_LVDS_CLKOUT_SEL) & M_STATIC_LVDS_CLKOUT_SEL) 4237 4238 #define S_STATIC_LVDS_CLKOUT_EN 22 4239 #define V_STATIC_LVDS_CLKOUT_EN(x) ((x) << S_STATIC_LVDS_CLKOUT_EN) 4240 #define F_STATIC_LVDS_CLKOUT_EN V_STATIC_LVDS_CLKOUT_EN(1U) 4241 4242 #define S_STATIC_CCLK_FREQ_SEL 20 4243 #define M_STATIC_CCLK_FREQ_SEL 0x3U 4244 #define V_STATIC_CCLK_FREQ_SEL(x) ((x) << S_STATIC_CCLK_FREQ_SEL) 4245 #define G_STATIC_CCLK_FREQ_SEL(x) \ 4246 (((x) >> S_STATIC_CCLK_FREQ_SEL) & M_STATIC_CCLK_FREQ_SEL) 4247 4248 #define S_STATIC_UCLK_FREQ_SEL 18 4249 #define M_STATIC_UCLK_FREQ_SEL 0x3U 4250 #define V_STATIC_UCLK_FREQ_SEL(x) ((x) << S_STATIC_UCLK_FREQ_SEL) 4251 #define G_STATIC_UCLK_FREQ_SEL(x) \ 4252 (((x) >> S_STATIC_UCLK_FREQ_SEL) & M_STATIC_UCLK_FREQ_SEL) 4253 4254 #define S_EXPHYCLK_SEL_EN 17 4255 #define V_EXPHYCLK_SEL_EN(x) ((x) << S_EXPHYCLK_SEL_EN) 4256 #define F_EXPHYCLK_SEL_EN V_EXPHYCLK_SEL_EN(1U) 4257 4258 #define S_EXPHYCLK_SEL 15 4259 #define M_EXPHYCLK_SEL 0x3U 4260 #define V_EXPHYCLK_SEL(x) ((x) << S_EXPHYCLK_SEL) 4261 #define G_EXPHYCLK_SEL(x) (((x) >> S_EXPHYCLK_SEL) & M_EXPHYCLK_SEL) 4262 4263 #define S_STATIC_U_PLL_BYPASS 14 4264 #define V_STATIC_U_PLL_BYPASS(x) ((x) << S_STATIC_U_PLL_BYPASS) 4265 #define F_STATIC_U_PLL_BYPASS V_STATIC_U_PLL_BYPASS(1U) 4266 4267 #define S_STATIC_C_PLL_BYPASS 13 4268 #define V_STATIC_C_PLL_BYPASS(x) ((x) << S_STATIC_C_PLL_BYPASS) 4269 #define F_STATIC_C_PLL_BYPASS V_STATIC_C_PLL_BYPASS(1U) 4270 4271 #define S_STATIC_KR_PLL_BYPASS 12 4272 #define V_STATIC_KR_PLL_BYPASS(x) ((x) << S_STATIC_KR_PLL_BYPASS) 4273 #define F_STATIC_KR_PLL_BYPASS V_STATIC_KR_PLL_BYPASS(1U) 4274 4275 #define S_STATIC_KX_PLL_BYPASS 11 4276 #define V_STATIC_KX_PLL_BYPASS(x) ((x) << S_STATIC_KX_PLL_BYPASS) 4277 #define F_STATIC_KX_PLL_BYPASS V_STATIC_KX_PLL_BYPASS(1U) 4278 4279 #define S_STATIC_KX_PLL_V 7 4280 #define M_STATIC_KX_PLL_V 0xfU 4281 #define V_STATIC_KX_PLL_V(x) ((x) << S_STATIC_KX_PLL_V) 4282 #define G_STATIC_KX_PLL_V(x) (((x) >> S_STATIC_KX_PLL_V) & M_STATIC_KX_PLL_V) 4283 4284 #define S_STATIC_KR_PLL_V 3 4285 #define M_STATIC_KR_PLL_V 0xfU 4286 #define V_STATIC_KR_PLL_V(x) ((x) << S_STATIC_KR_PLL_V) 4287 #define G_STATIC_KR_PLL_V(x) (((x) >> S_STATIC_KR_PLL_V) & M_STATIC_KR_PLL_V) 4288 4289 #define S_PSRO_SEL 0 4290 #define M_PSRO_SEL 0x7U 4291 #define V_PSRO_SEL(x) ((x) << S_PSRO_SEL) 4292 #define G_PSRO_SEL(x) (((x) >> S_PSRO_SEL) & M_PSRO_SEL) 4293 4294 #define A_DBG_STATIC_OCLK_MUXSEL_CONF 0x605c 4295 4296 #define S_M_OCLK_MUXSEL 12 4297 #define V_M_OCLK_MUXSEL(x) ((x) << S_M_OCLK_MUXSEL) 4298 #define F_M_OCLK_MUXSEL V_M_OCLK_MUXSEL(1U) 4299 4300 #define S_C_OCLK_MUXSEL 10 4301 #define M_C_OCLK_MUXSEL 0x3U 4302 #define V_C_OCLK_MUXSEL(x) ((x) << S_C_OCLK_MUXSEL) 4303 #define G_C_OCLK_MUXSEL(x) (((x) >> S_C_OCLK_MUXSEL) & M_C_OCLK_MUXSEL) 4304 4305 #define S_U_OCLK_MUXSEL 8 4306 #define M_U_OCLK_MUXSEL 0x3U 4307 #define V_U_OCLK_MUXSEL(x) ((x) << S_U_OCLK_MUXSEL) 4308 #define G_U_OCLK_MUXSEL(x) (((x) >> S_U_OCLK_MUXSEL) & M_U_OCLK_MUXSEL) 4309 4310 #define S_P_OCLK_MUXSEL 6 4311 #define M_P_OCLK_MUXSEL 0x3U 4312 #define V_P_OCLK_MUXSEL(x) ((x) << S_P_OCLK_MUXSEL) 4313 #define G_P_OCLK_MUXSEL(x) (((x) >> S_P_OCLK_MUXSEL) & M_P_OCLK_MUXSEL) 4314 4315 #define S_KX_OCLK_MUXSEL 3 4316 #define M_KX_OCLK_MUXSEL 0x7U 4317 #define V_KX_OCLK_MUXSEL(x) ((x) << S_KX_OCLK_MUXSEL) 4318 #define G_KX_OCLK_MUXSEL(x) (((x) >> S_KX_OCLK_MUXSEL) & M_KX_OCLK_MUXSEL) 4319 4320 #define S_KR_OCLK_MUXSEL 0 4321 #define M_KR_OCLK_MUXSEL 0x7U 4322 #define V_KR_OCLK_MUXSEL(x) ((x) << S_KR_OCLK_MUXSEL) 4323 #define G_KR_OCLK_MUXSEL(x) (((x) >> S_KR_OCLK_MUXSEL) & M_KR_OCLK_MUXSEL) 4324 4325 #define A_DBG_TRACE0_CONF_COMPREG0 0x6060 4326 #define A_DBG_TRACE0_CONF_COMPREG1 0x6064 4327 #define A_DBG_TRACE1_CONF_COMPREG0 0x6068 4328 #define A_DBG_TRACE1_CONF_COMPREG1 0x606c 4329 #define A_DBG_TRACE0_CONF_MASKREG0 0x6070 4330 #define A_DBG_TRACE0_CONF_MASKREG1 0x6074 4331 #define A_DBG_TRACE1_CONF_MASKREG0 0x6078 4332 #define A_DBG_TRACE1_CONF_MASKREG1 0x607c 4333 #define A_DBG_TRACE_COUNTER 0x6080 4334 4335 #define S_COUNTER1 16 4336 #define M_COUNTER1 0xffffU 4337 #define V_COUNTER1(x) ((x) << S_COUNTER1) 4338 #define G_COUNTER1(x) (((x) >> S_COUNTER1) & M_COUNTER1) 4339 4340 #define S_COUNTER0 0 4341 #define M_COUNTER0 0xffffU 4342 #define V_COUNTER0(x) ((x) << S_COUNTER0) 4343 #define G_COUNTER0(x) (((x) >> S_COUNTER0) & M_COUNTER0) 4344 4345 #define A_DBG_STATIC_REFCLK_PERIOD 0x6084 4346 4347 #define S_STATIC_REFCLK_PERIOD 0 4348 #define M_STATIC_REFCLK_PERIOD 0xffffU 4349 #define V_STATIC_REFCLK_PERIOD(x) ((x) << S_STATIC_REFCLK_PERIOD) 4350 #define G_STATIC_REFCLK_PERIOD(x) \ 4351 (((x) >> S_STATIC_REFCLK_PERIOD) & M_STATIC_REFCLK_PERIOD) 4352 4353 #define A_DBG_TRACE_CONF 0x6088 4354 4355 #define S_DBG_TRACE_OPERATE_WITH_TRG 5 4356 #define V_DBG_TRACE_OPERATE_WITH_TRG(x) ((x) << S_DBG_TRACE_OPERATE_WITH_TRG) 4357 #define F_DBG_TRACE_OPERATE_WITH_TRG V_DBG_TRACE_OPERATE_WITH_TRG(1U) 4358 4359 #define S_DBG_TRACE_OPERATE_EN 4 4360 #define V_DBG_TRACE_OPERATE_EN(x) ((x) << S_DBG_TRACE_OPERATE_EN) 4361 #define F_DBG_TRACE_OPERATE_EN V_DBG_TRACE_OPERATE_EN(1U) 4362 4363 #define S_DBG_OPERATE_INDV_COMBINED 3 4364 #define V_DBG_OPERATE_INDV_COMBINED(x) ((x) << S_DBG_OPERATE_INDV_COMBINED) 4365 #define F_DBG_OPERATE_INDV_COMBINED V_DBG_OPERATE_INDV_COMBINED(1U) 4366 4367 #define S_DBG_OPERATE_ORDER_OF_TRIGGER 2 4368 #define V_DBG_OPERATE_ORDER_OF_TRIGGER(x) \ 4369 ((x) << S_DBG_OPERATE_ORDER_OF_TRIGGER) 4370 #define F_DBG_OPERATE_ORDER_OF_TRIGGER V_DBG_OPERATE_ORDER_OF_TRIGGER(1U) 4371 4372 #define S_DBG_OPERATE_SGL_DBL_TRIGGER 1 4373 #define V_DBG_OPERATE_SGL_DBL_TRIGGER(x) ((x) << S_DBG_OPERATE_SGL_DBL_TRIGGER) 4374 #define F_DBG_OPERATE_SGL_DBL_TRIGGER V_DBG_OPERATE_SGL_DBL_TRIGGER(1U) 4375 4376 #define S_DBG_OPERATE0_OR_1 0 4377 #define V_DBG_OPERATE0_OR_1(x) ((x) << S_DBG_OPERATE0_OR_1) 4378 #define F_DBG_OPERATE0_OR_1 V_DBG_OPERATE0_OR_1(1U) 4379 4380 #define A_DBG_TRACE_RDEN 0x608c 4381 4382 #define S_RD_ADDR1 10 4383 #define M_RD_ADDR1 0xffU 4384 #define V_RD_ADDR1(x) ((x) << S_RD_ADDR1) 4385 #define G_RD_ADDR1(x) (((x) >> S_RD_ADDR1) & M_RD_ADDR1) 4386 4387 #define S_RD_ADDR0 2 4388 #define M_RD_ADDR0 0xffU 4389 #define V_RD_ADDR0(x) ((x) << S_RD_ADDR0) 4390 #define G_RD_ADDR0(x) (((x) >> S_RD_ADDR0) & M_RD_ADDR0) 4391 4392 #define S_RD_EN1 1 4393 #define V_RD_EN1(x) ((x) << S_RD_EN1) 4394 #define F_RD_EN1 V_RD_EN1(1U) 4395 4396 #define S_RD_EN0 0 4397 #define V_RD_EN0(x) ((x) << S_RD_EN0) 4398 #define F_RD_EN0 V_RD_EN0(1U) 4399 4400 #define A_DBG_TRACE_WRADDR 0x6090 4401 4402 #define S_WR_POINTER_ADDR1 16 4403 #define M_WR_POINTER_ADDR1 0xffU 4404 #define V_WR_POINTER_ADDR1(x) ((x) << S_WR_POINTER_ADDR1) 4405 #define G_WR_POINTER_ADDR1(x) (((x) >> S_WR_POINTER_ADDR1) & M_WR_POINTER_ADDR1) 4406 4407 #define S_WR_POINTER_ADDR0 0 4408 #define M_WR_POINTER_ADDR0 0xffU 4409 #define V_WR_POINTER_ADDR0(x) ((x) << S_WR_POINTER_ADDR0) 4410 #define G_WR_POINTER_ADDR0(x) (((x) >> S_WR_POINTER_ADDR0) & M_WR_POINTER_ADDR0) 4411 4412 #define A_DBG_TRACE0_DATA_OUT 0x6094 4413 #define A_DBG_TRACE1_DATA_OUT 0x6098 4414 #define A_DBG_PVT_REG_CALIBRATE_CTL 0x6100 4415 4416 #define S_HALT_CALIBRATE 1 4417 #define V_HALT_CALIBRATE(x) ((x) << S_HALT_CALIBRATE) 4418 #define F_HALT_CALIBRATE V_HALT_CALIBRATE(1U) 4419 4420 #define S_RESET_CALIBRATE 0 4421 #define V_RESET_CALIBRATE(x) ((x) << S_RESET_CALIBRATE) 4422 #define F_RESET_CALIBRATE V_RESET_CALIBRATE(1U) 4423 4424 #define A_DBG_PVT_REG_UPDATE_CTL 0x6104 4425 4426 #define S_FAST_UPDATE 8 4427 #define V_FAST_UPDATE(x) ((x) << S_FAST_UPDATE) 4428 #define F_FAST_UPDATE V_FAST_UPDATE(1U) 4429 4430 #define S_FORCE_REG_IN_VALUE 2 4431 #define V_FORCE_REG_IN_VALUE(x) ((x) << S_FORCE_REG_IN_VALUE) 4432 #define F_FORCE_REG_IN_VALUE V_FORCE_REG_IN_VALUE(1U) 4433 4434 #define S_HALT_UPDATE 1 4435 #define V_HALT_UPDATE(x) ((x) << S_HALT_UPDATE) 4436 #define F_HALT_UPDATE V_HALT_UPDATE(1U) 4437 4438 #define A_DBG_PVT_REG_LAST_MEASUREMENT 0x6108 4439 4440 #define S_LAST_MEASUREMENT_SELECT 8 4441 #define M_LAST_MEASUREMENT_SELECT 0x3U 4442 #define V_LAST_MEASUREMENT_SELECT(x) ((x) << S_LAST_MEASUREMENT_SELECT) 4443 #define G_LAST_MEASUREMENT_SELECT(x) \ 4444 (((x) >> S_LAST_MEASUREMENT_SELECT) & M_LAST_MEASUREMENT_SELECT) 4445 4446 #define S_LAST_MEASUREMENT_RESULT_BANK_B 4 4447 #define M_LAST_MEASUREMENT_RESULT_BANK_B 0xfU 4448 #define V_LAST_MEASUREMENT_RESULT_BANK_B(x) \ 4449 ((x) << S_LAST_MEASUREMENT_RESULT_BANK_B) 4450 #define G_LAST_MEASUREMENT_RESULT_BANK_B(x) \ 4451 (((x) >> S_LAST_MEASUREMENT_RESULT_BANK_B) & \ 4452 M_LAST_MEASUREMENT_RESULT_BANK_B) 4453 4454 #define S_LAST_MEASUREMENT_RESULT_BANK_A 0 4455 #define M_LAST_MEASUREMENT_RESULT_BANK_A 0xfU 4456 #define V_LAST_MEASUREMENT_RESULT_BANK_A(x) \ 4457 ((x) << S_LAST_MEASUREMENT_RESULT_BANK_A) 4458 #define G_LAST_MEASUREMENT_RESULT_BANK_A(x) \ 4459 (((x) >> S_LAST_MEASUREMENT_RESULT_BANK_A) & \ 4460 M_LAST_MEASUREMENT_RESULT_BANK_A) 4461 4462 #define A_DBG_PVT_REG_DRVN 0x610c 4463 4464 #define S_PVT_REG_DRVN_EN 8 4465 #define V_PVT_REG_DRVN_EN(x) ((x) << S_PVT_REG_DRVN_EN) 4466 #define F_PVT_REG_DRVN_EN V_PVT_REG_DRVN_EN(1U) 4467 4468 #define S_PVT_REG_DRVN_B 4 4469 #define M_PVT_REG_DRVN_B 0xfU 4470 #define V_PVT_REG_DRVN_B(x) ((x) << S_PVT_REG_DRVN_B) 4471 #define G_PVT_REG_DRVN_B(x) (((x) >> S_PVT_REG_DRVN_B) & M_PVT_REG_DRVN_B) 4472 4473 #define S_PVT_REG_DRVN_A 0 4474 #define M_PVT_REG_DRVN_A 0xfU 4475 #define V_PVT_REG_DRVN_A(x) ((x) << S_PVT_REG_DRVN_A) 4476 #define G_PVT_REG_DRVN_A(x) (((x) >> S_PVT_REG_DRVN_A) & M_PVT_REG_DRVN_A) 4477 4478 #define A_DBG_PVT_REG_DRVP 0x6110 4479 4480 #define S_PVT_REG_DRVP_EN 8 4481 #define V_PVT_REG_DRVP_EN(x) ((x) << S_PVT_REG_DRVP_EN) 4482 #define F_PVT_REG_DRVP_EN V_PVT_REG_DRVP_EN(1U) 4483 4484 #define S_PVT_REG_DRVP_B 4 4485 #define M_PVT_REG_DRVP_B 0xfU 4486 #define V_PVT_REG_DRVP_B(x) ((x) << S_PVT_REG_DRVP_B) 4487 #define G_PVT_REG_DRVP_B(x) (((x) >> S_PVT_REG_DRVP_B) & M_PVT_REG_DRVP_B) 4488 4489 #define S_PVT_REG_DRVP_A 0 4490 #define M_PVT_REG_DRVP_A 0xfU 4491 #define V_PVT_REG_DRVP_A(x) ((x) << S_PVT_REG_DRVP_A) 4492 #define G_PVT_REG_DRVP_A(x) (((x) >> S_PVT_REG_DRVP_A) & M_PVT_REG_DRVP_A) 4493 4494 #define A_DBG_PVT_REG_TERMN 0x6114 4495 4496 #define S_PVT_REG_TERMN_EN 8 4497 #define V_PVT_REG_TERMN_EN(x) ((x) << S_PVT_REG_TERMN_EN) 4498 #define F_PVT_REG_TERMN_EN V_PVT_REG_TERMN_EN(1U) 4499 4500 #define S_PVT_REG_TERMN_B 4 4501 #define M_PVT_REG_TERMN_B 0xfU 4502 #define V_PVT_REG_TERMN_B(x) ((x) << S_PVT_REG_TERMN_B) 4503 #define G_PVT_REG_TERMN_B(x) (((x) >> S_PVT_REG_TERMN_B) & M_PVT_REG_TERMN_B) 4504 4505 #define S_PVT_REG_TERMN_A 0 4506 #define M_PVT_REG_TERMN_A 0xfU 4507 #define V_PVT_REG_TERMN_A(x) ((x) << S_PVT_REG_TERMN_A) 4508 #define G_PVT_REG_TERMN_A(x) (((x) >> S_PVT_REG_TERMN_A) & M_PVT_REG_TERMN_A) 4509 4510 #define A_DBG_PVT_REG_TERMP 0x6118 4511 4512 #define S_PVT_REG_TERMP_EN 8 4513 #define V_PVT_REG_TERMP_EN(x) ((x) << S_PVT_REG_TERMP_EN) 4514 #define F_PVT_REG_TERMP_EN V_PVT_REG_TERMP_EN(1U) 4515 4516 #define S_PVT_REG_TERMP_B 4 4517 #define M_PVT_REG_TERMP_B 0xfU 4518 #define V_PVT_REG_TERMP_B(x) ((x) << S_PVT_REG_TERMP_B) 4519 #define G_PVT_REG_TERMP_B(x) (((x) >> S_PVT_REG_TERMP_B) & M_PVT_REG_TERMP_B) 4520 4521 #define S_PVT_REG_TERMP_A 0 4522 #define M_PVT_REG_TERMP_A 0xfU 4523 #define V_PVT_REG_TERMP_A(x) ((x) << S_PVT_REG_TERMP_A) 4524 #define G_PVT_REG_TERMP_A(x) (((x) >> S_PVT_REG_TERMP_A) & M_PVT_REG_TERMP_A) 4525 4526 #define A_DBG_PVT_REG_THRESHOLD 0x611c 4527 4528 #define S_PVT_CALIBRATION_DONE 8 4529 #define V_PVT_CALIBRATION_DONE(x) ((x) << S_PVT_CALIBRATION_DONE) 4530 #define F_PVT_CALIBRATION_DONE V_PVT_CALIBRATION_DONE(1U) 4531 4532 #define S_THRESHOLD_TERMP_MAX_SYNC 7 4533 #define V_THRESHOLD_TERMP_MAX_SYNC(x) ((x) << S_THRESHOLD_TERMP_MAX_SYNC) 4534 #define F_THRESHOLD_TERMP_MAX_SYNC V_THRESHOLD_TERMP_MAX_SYNC(1U) 4535 4536 #define S_THRESHOLD_TERMP_MIN_SYNC 6 4537 #define V_THRESHOLD_TERMP_MIN_SYNC(x) ((x) << S_THRESHOLD_TERMP_MIN_SYNC) 4538 #define F_THRESHOLD_TERMP_MIN_SYNC V_THRESHOLD_TERMP_MIN_SYNC(1U) 4539 4540 #define S_THRESHOLD_TERMN_MAX_SYNC 5 4541 #define V_THRESHOLD_TERMN_MAX_SYNC(x) ((x) << S_THRESHOLD_TERMN_MAX_SYNC) 4542 #define F_THRESHOLD_TERMN_MAX_SYNC V_THRESHOLD_TERMN_MAX_SYNC(1U) 4543 4544 #define S_THRESHOLD_TERMN_MIN_SYNC 4 4545 #define V_THRESHOLD_TERMN_MIN_SYNC(x) ((x) << S_THRESHOLD_TERMN_MIN_SYNC) 4546 #define F_THRESHOLD_TERMN_MIN_SYNC V_THRESHOLD_TERMN_MIN_SYNC(1U) 4547 4548 #define S_THRESHOLD_DRVP_MAX_SYNC 3 4549 #define V_THRESHOLD_DRVP_MAX_SYNC(x) ((x) << S_THRESHOLD_DRVP_MAX_SYNC) 4550 #define F_THRESHOLD_DRVP_MAX_SYNC V_THRESHOLD_DRVP_MAX_SYNC(1U) 4551 4552 #define S_THRESHOLD_DRVP_MIN_SYNC 2 4553 #define V_THRESHOLD_DRVP_MIN_SYNC(x) ((x) << S_THRESHOLD_DRVP_MIN_SYNC) 4554 #define F_THRESHOLD_DRVP_MIN_SYNC V_THRESHOLD_DRVP_MIN_SYNC(1U) 4555 4556 #define S_THRESHOLD_DRVN_MAX_SYNC 1 4557 #define V_THRESHOLD_DRVN_MAX_SYNC(x) ((x) << S_THRESHOLD_DRVN_MAX_SYNC) 4558 #define F_THRESHOLD_DRVN_MAX_SYNC V_THRESHOLD_DRVN_MAX_SYNC(1U) 4559 4560 #define S_THRESHOLD_DRVN_MIN_SYNC 0 4561 #define V_THRESHOLD_DRVN_MIN_SYNC(x) ((x) << S_THRESHOLD_DRVN_MIN_SYNC) 4562 #define F_THRESHOLD_DRVN_MIN_SYNC V_THRESHOLD_DRVN_MIN_SYNC(1U) 4563 4564 #define A_DBG_PVT_REG_IN_TERMP 0x6120 4565 4566 #define S_REG_IN_TERMP_B 4 4567 #define M_REG_IN_TERMP_B 0xfU 4568 #define V_REG_IN_TERMP_B(x) ((x) << S_REG_IN_TERMP_B) 4569 #define G_REG_IN_TERMP_B(x) (((x) >> S_REG_IN_TERMP_B) & M_REG_IN_TERMP_B) 4570 4571 #define S_REG_IN_TERMP_A 0 4572 #define M_REG_IN_TERMP_A 0xfU 4573 #define V_REG_IN_TERMP_A(x) ((x) << S_REG_IN_TERMP_A) 4574 #define G_REG_IN_TERMP_A(x) (((x) >> S_REG_IN_TERMP_A) & M_REG_IN_TERMP_A) 4575 4576 #define A_DBG_PVT_REG_IN_TERMN 0x6124 4577 4578 #define S_REG_IN_TERMN_B 4 4579 #define M_REG_IN_TERMN_B 0xfU 4580 #define V_REG_IN_TERMN_B(x) ((x) << S_REG_IN_TERMN_B) 4581 #define G_REG_IN_TERMN_B(x) (((x) >> S_REG_IN_TERMN_B) & M_REG_IN_TERMN_B) 4582 4583 #define S_REG_IN_TERMN_A 0 4584 #define M_REG_IN_TERMN_A 0xfU 4585 #define V_REG_IN_TERMN_A(x) ((x) << S_REG_IN_TERMN_A) 4586 #define G_REG_IN_TERMN_A(x) (((x) >> S_REG_IN_TERMN_A) & M_REG_IN_TERMN_A) 4587 4588 #define A_DBG_PVT_REG_IN_DRVP 0x6128 4589 4590 #define S_REG_IN_DRVP_B 4 4591 #define M_REG_IN_DRVP_B 0xfU 4592 #define V_REG_IN_DRVP_B(x) ((x) << S_REG_IN_DRVP_B) 4593 #define G_REG_IN_DRVP_B(x) (((x) >> S_REG_IN_DRVP_B) & M_REG_IN_DRVP_B) 4594 4595 #define S_REG_IN_DRVP_A 0 4596 #define M_REG_IN_DRVP_A 0xfU 4597 #define V_REG_IN_DRVP_A(x) ((x) << S_REG_IN_DRVP_A) 4598 #define G_REG_IN_DRVP_A(x) (((x) >> S_REG_IN_DRVP_A) & M_REG_IN_DRVP_A) 4599 4600 #define A_DBG_PVT_REG_IN_DRVN 0x612c 4601 4602 #define S_REG_IN_DRVN_B 4 4603 #define M_REG_IN_DRVN_B 0xfU 4604 #define V_REG_IN_DRVN_B(x) ((x) << S_REG_IN_DRVN_B) 4605 #define G_REG_IN_DRVN_B(x) (((x) >> S_REG_IN_DRVN_B) & M_REG_IN_DRVN_B) 4606 4607 #define S_REG_IN_DRVN_A 0 4608 #define M_REG_IN_DRVN_A 0xfU 4609 #define V_REG_IN_DRVN_A(x) ((x) << S_REG_IN_DRVN_A) 4610 #define G_REG_IN_DRVN_A(x) (((x) >> S_REG_IN_DRVN_A) & M_REG_IN_DRVN_A) 4611 4612 #define A_DBG_PVT_REG_OUT_TERMP 0x6130 4613 4614 #define S_REG_OUT_TERMP_B 4 4615 #define M_REG_OUT_TERMP_B 0xfU 4616 #define V_REG_OUT_TERMP_B(x) ((x) << S_REG_OUT_TERMP_B) 4617 #define G_REG_OUT_TERMP_B(x) (((x) >> S_REG_OUT_TERMP_B) & M_REG_OUT_TERMP_B) 4618 4619 #define S_REG_OUT_TERMP_A 0 4620 #define M_REG_OUT_TERMP_A 0xfU 4621 #define V_REG_OUT_TERMP_A(x) ((x) << S_REG_OUT_TERMP_A) 4622 #define G_REG_OUT_TERMP_A(x) (((x) >> S_REG_OUT_TERMP_A) & M_REG_OUT_TERMP_A) 4623 4624 #define A_DBG_PVT_REG_OUT_TERMN 0x6134 4625 4626 #define S_REG_OUT_TERMN_B 4 4627 #define M_REG_OUT_TERMN_B 0xfU 4628 #define V_REG_OUT_TERMN_B(x) ((x) << S_REG_OUT_TERMN_B) 4629 #define G_REG_OUT_TERMN_B(x) (((x) >> S_REG_OUT_TERMN_B) & M_REG_OUT_TERMN_B) 4630 4631 #define S_REG_OUT_TERMN_A 0 4632 #define M_REG_OUT_TERMN_A 0xfU 4633 #define V_REG_OUT_TERMN_A(x) ((x) << S_REG_OUT_TERMN_A) 4634 #define G_REG_OUT_TERMN_A(x) (((x) >> S_REG_OUT_TERMN_A) & M_REG_OUT_TERMN_A) 4635 4636 #define A_DBG_PVT_REG_OUT_DRVP 0x6138 4637 4638 #define S_REG_OUT_DRVP_B 4 4639 #define M_REG_OUT_DRVP_B 0xfU 4640 #define V_REG_OUT_DRVP_B(x) ((x) << S_REG_OUT_DRVP_B) 4641 #define G_REG_OUT_DRVP_B(x) (((x) >> S_REG_OUT_DRVP_B) & M_REG_OUT_DRVP_B) 4642 4643 #define S_REG_OUT_DRVP_A 0 4644 #define M_REG_OUT_DRVP_A 0xfU 4645 #define V_REG_OUT_DRVP_A(x) ((x) << S_REG_OUT_DRVP_A) 4646 #define G_REG_OUT_DRVP_A(x) (((x) >> S_REG_OUT_DRVP_A) & M_REG_OUT_DRVP_A) 4647 4648 #define A_DBG_PVT_REG_OUT_DRVN 0x613c 4649 4650 #define S_REG_OUT_DRVN_B 4 4651 #define M_REG_OUT_DRVN_B 0xfU 4652 #define V_REG_OUT_DRVN_B(x) ((x) << S_REG_OUT_DRVN_B) 4653 #define G_REG_OUT_DRVN_B(x) (((x) >> S_REG_OUT_DRVN_B) & M_REG_OUT_DRVN_B) 4654 4655 #define S_REG_OUT_DRVN_A 0 4656 #define M_REG_OUT_DRVN_A 0xfU 4657 #define V_REG_OUT_DRVN_A(x) ((x) << S_REG_OUT_DRVN_A) 4658 #define G_REG_OUT_DRVN_A(x) (((x) >> S_REG_OUT_DRVN_A) & M_REG_OUT_DRVN_A) 4659 4660 #define A_DBG_PVT_REG_HISTORY_TERMP 0x6140 4661 4662 #define S_TERMP_B_HISTORY 4 4663 #define M_TERMP_B_HISTORY 0xfU 4664 #define V_TERMP_B_HISTORY(x) ((x) << S_TERMP_B_HISTORY) 4665 #define G_TERMP_B_HISTORY(x) (((x) >> S_TERMP_B_HISTORY) & M_TERMP_B_HISTORY) 4666 4667 #define S_TERMP_A_HISTORY 0 4668 #define M_TERMP_A_HISTORY 0xfU 4669 #define V_TERMP_A_HISTORY(x) ((x) << S_TERMP_A_HISTORY) 4670 #define G_TERMP_A_HISTORY(x) (((x) >> S_TERMP_A_HISTORY) & M_TERMP_A_HISTORY) 4671 4672 #define A_DBG_PVT_REG_HISTORY_TERMN 0x6144 4673 4674 #define S_TERMN_B_HISTORY 4 4675 #define M_TERMN_B_HISTORY 0xfU 4676 #define V_TERMN_B_HISTORY(x) ((x) << S_TERMN_B_HISTORY) 4677 #define G_TERMN_B_HISTORY(x) (((x) >> S_TERMN_B_HISTORY) & M_TERMN_B_HISTORY) 4678 4679 #define S_TERMN_A_HISTORY 0 4680 #define M_TERMN_A_HISTORY 0xfU 4681 #define V_TERMN_A_HISTORY(x) ((x) << S_TERMN_A_HISTORY) 4682 #define G_TERMN_A_HISTORY(x) (((x) >> S_TERMN_A_HISTORY) & M_TERMN_A_HISTORY) 4683 4684 #define A_DBG_PVT_REG_HISTORY_DRVP 0x6148 4685 4686 #define S_DRVP_B_HISTORY 4 4687 #define M_DRVP_B_HISTORY 0xfU 4688 #define V_DRVP_B_HISTORY(x) ((x) << S_DRVP_B_HISTORY) 4689 #define G_DRVP_B_HISTORY(x) (((x) >> S_DRVP_B_HISTORY) & M_DRVP_B_HISTORY) 4690 4691 #define S_DRVP_A_HISTORY 0 4692 #define M_DRVP_A_HISTORY 0xfU 4693 #define V_DRVP_A_HISTORY(x) ((x) << S_DRVP_A_HISTORY) 4694 #define G_DRVP_A_HISTORY(x) (((x) >> S_DRVP_A_HISTORY) & M_DRVP_A_HISTORY) 4695 4696 #define A_DBG_PVT_REG_HISTORY_DRVN 0x614c 4697 4698 #define S_DRVN_B_HISTORY 4 4699 #define M_DRVN_B_HISTORY 0xfU 4700 #define V_DRVN_B_HISTORY(x) ((x) << S_DRVN_B_HISTORY) 4701 #define G_DRVN_B_HISTORY(x) (((x) >> S_DRVN_B_HISTORY) & M_DRVN_B_HISTORY) 4702 4703 #define S_DRVN_A_HISTORY 0 4704 #define M_DRVN_A_HISTORY 0xfU 4705 #define V_DRVN_A_HISTORY(x) ((x) << S_DRVN_A_HISTORY) 4706 #define G_DRVN_A_HISTORY(x) (((x) >> S_DRVN_A_HISTORY) & M_DRVN_A_HISTORY) 4707 4708 #define A_DBG_PVT_REG_SAMPLE_WAIT_CLKS 0x6150 4709 4710 #define S_SAMPLE_WAIT_CLKS 0 4711 #define M_SAMPLE_WAIT_CLKS 0x1fU 4712 #define V_SAMPLE_WAIT_CLKS(x) ((x) << S_SAMPLE_WAIT_CLKS) 4713 #define G_SAMPLE_WAIT_CLKS(x) (((x) >> S_SAMPLE_WAIT_CLKS) & M_SAMPLE_WAIT_CLKS) 4714 4715 /* registers for module MC */ 4716 #define MC_BASE_ADDR 0x6200 4717 4718 #define A_MC_PCTL_SCFG 0x6200 4719 4720 #define S_RKINF_EN 5 4721 #define V_RKINF_EN(x) ((x) << S_RKINF_EN) 4722 #define F_RKINF_EN V_RKINF_EN(1U) 4723 4724 #define S_DUAL_PCTL_EN 4 4725 #define V_DUAL_PCTL_EN(x) ((x) << S_DUAL_PCTL_EN) 4726 #define F_DUAL_PCTL_EN V_DUAL_PCTL_EN(1U) 4727 4728 #define S_SLAVE_MODE 3 4729 #define V_SLAVE_MODE(x) ((x) << S_SLAVE_MODE) 4730 #define F_SLAVE_MODE V_SLAVE_MODE(1U) 4731 4732 #define S_LOOPBACK_EN 1 4733 #define V_LOOPBACK_EN(x) ((x) << S_LOOPBACK_EN) 4734 #define F_LOOPBACK_EN V_LOOPBACK_EN(1U) 4735 4736 #define S_HW_LOW_POWER_EN 0 4737 #define V_HW_LOW_POWER_EN(x) ((x) << S_HW_LOW_POWER_EN) 4738 #define F_HW_LOW_POWER_EN V_HW_LOW_POWER_EN(1U) 4739 4740 #define A_MC_PCTL_SCTL 0x6204 4741 4742 #define S_STATE_CMD 0 4743 #define M_STATE_CMD 0x7U 4744 #define V_STATE_CMD(x) ((x) << S_STATE_CMD) 4745 #define G_STATE_CMD(x) (((x) >> S_STATE_CMD) & M_STATE_CMD) 4746 4747 #define A_MC_PCTL_STAT 0x6208 4748 4749 #define S_CTL_STAT 0 4750 #define M_CTL_STAT 0x7U 4751 #define V_CTL_STAT(x) ((x) << S_CTL_STAT) 4752 #define G_CTL_STAT(x) (((x) >> S_CTL_STAT) & M_CTL_STAT) 4753 4754 #define A_MC_PCTL_MCMD 0x6240 4755 4756 #define S_START_CMD 31 4757 #define V_START_CMD(x) ((x) << S_START_CMD) 4758 #define F_START_CMD V_START_CMD(1U) 4759 4760 #define S_CMD_ADD_DEL 24 4761 #define M_CMD_ADD_DEL 0xfU 4762 #define V_CMD_ADD_DEL(x) ((x) << S_CMD_ADD_DEL) 4763 #define G_CMD_ADD_DEL(x) (((x) >> S_CMD_ADD_DEL) & M_CMD_ADD_DEL) 4764 4765 #define S_RANK_SEL 20 4766 #define M_RANK_SEL 0xfU 4767 #define V_RANK_SEL(x) ((x) << S_RANK_SEL) 4768 #define G_RANK_SEL(x) (((x) >> S_RANK_SEL) & M_RANK_SEL) 4769 4770 #define S_BANK_ADDR 17 4771 #define M_BANK_ADDR 0x7U 4772 #define V_BANK_ADDR(x) ((x) << S_BANK_ADDR) 4773 #define G_BANK_ADDR(x) (((x) >> S_BANK_ADDR) & M_BANK_ADDR) 4774 4775 #define S_CMD_ADDR 4 4776 #define M_CMD_ADDR 0x1fffU 4777 #define V_CMD_ADDR(x) ((x) << S_CMD_ADDR) 4778 #define G_CMD_ADDR(x) (((x) >> S_CMD_ADDR) & M_CMD_ADDR) 4779 4780 #define S_CMD_OPCODE 0 4781 #define M_CMD_OPCODE 0x7U 4782 #define V_CMD_OPCODE(x) ((x) << S_CMD_OPCODE) 4783 #define G_CMD_OPCODE(x) (((x) >> S_CMD_OPCODE) & M_CMD_OPCODE) 4784 4785 #define A_MC_PCTL_POWCTL 0x6244 4786 4787 #define S_POWER_UP_START 0 4788 #define V_POWER_UP_START(x) ((x) << S_POWER_UP_START) 4789 #define F_POWER_UP_START V_POWER_UP_START(1U) 4790 4791 #define A_MC_PCTL_POWSTAT 0x6248 4792 4793 #define S_PHY_CALIBDONE 1 4794 #define V_PHY_CALIBDONE(x) ((x) << S_PHY_CALIBDONE) 4795 #define F_PHY_CALIBDONE V_PHY_CALIBDONE(1U) 4796 4797 #define S_POWER_UP_DONE 0 4798 #define V_POWER_UP_DONE(x) ((x) << S_POWER_UP_DONE) 4799 #define F_POWER_UP_DONE V_POWER_UP_DONE(1U) 4800 4801 #define A_MC_PCTL_MCFG 0x6280 4802 4803 #define S_TFAW_CFG 18 4804 #define M_TFAW_CFG 0x3U 4805 #define V_TFAW_CFG(x) ((x) << S_TFAW_CFG) 4806 #define G_TFAW_CFG(x) (((x) >> S_TFAW_CFG) & M_TFAW_CFG) 4807 4808 #define S_PD_EXIT_MODE 17 4809 #define V_PD_EXIT_MODE(x) ((x) << S_PD_EXIT_MODE) 4810 #define F_PD_EXIT_MODE V_PD_EXIT_MODE(1U) 4811 4812 #define S_PD_TYPE 16 4813 #define V_PD_TYPE(x) ((x) << S_PD_TYPE) 4814 #define F_PD_TYPE V_PD_TYPE(1U) 4815 4816 #define S_PD_IDLE 8 4817 #define M_PD_IDLE 0xffU 4818 #define V_PD_IDLE(x) ((x) << S_PD_IDLE) 4819 #define G_PD_IDLE(x) (((x) >> S_PD_IDLE) & M_PD_IDLE) 4820 4821 #define S_PAGE_POLICY 6 4822 #define M_PAGE_POLICY 0x3U 4823 #define V_PAGE_POLICY(x) ((x) << S_PAGE_POLICY) 4824 #define G_PAGE_POLICY(x) (((x) >> S_PAGE_POLICY) & M_PAGE_POLICY) 4825 4826 #define S_DDR3_EN 5 4827 #define V_DDR3_EN(x) ((x) << S_DDR3_EN) 4828 #define F_DDR3_EN V_DDR3_EN(1U) 4829 4830 #define S_TWO_T_EN 3 4831 #define V_TWO_T_EN(x) ((x) << S_TWO_T_EN) 4832 #define F_TWO_T_EN V_TWO_T_EN(1U) 4833 4834 #define S_BL8INT_EN 2 4835 #define V_BL8INT_EN(x) ((x) << S_BL8INT_EN) 4836 #define F_BL8INT_EN V_BL8INT_EN(1U) 4837 4838 #define S_MEM_BL 0 4839 #define V_MEM_BL(x) ((x) << S_MEM_BL) 4840 #define F_MEM_BL V_MEM_BL(1U) 4841 4842 #define A_MC_PCTL_PPCFG 0x6284 4843 4844 #define S_RPMEM_DIS 1 4845 #define M_RPMEM_DIS 0xffU 4846 #define V_RPMEM_DIS(x) ((x) << S_RPMEM_DIS) 4847 #define G_RPMEM_DIS(x) (((x) >> S_RPMEM_DIS) & M_RPMEM_DIS) 4848 4849 #define S_PPMEM_EN 0 4850 #define V_PPMEM_EN(x) ((x) << S_PPMEM_EN) 4851 #define F_PPMEM_EN V_PPMEM_EN(1U) 4852 4853 #define A_MC_PCTL_MSTAT 0x6288 4854 4855 #define S_POWER_DOWN 0 4856 #define V_POWER_DOWN(x) ((x) << S_POWER_DOWN) 4857 #define F_POWER_DOWN V_POWER_DOWN(1U) 4858 4859 #define A_MC_PCTL_ODTCFG 0x628c 4860 4861 #define S_RANK3_ODT_DEFAULT 28 4862 #define V_RANK3_ODT_DEFAULT(x) ((x) << S_RANK3_ODT_DEFAULT) 4863 #define F_RANK3_ODT_DEFAULT V_RANK3_ODT_DEFAULT(1U) 4864 4865 #define S_RANK3_ODT_WRITE_SEL 27 4866 #define V_RANK3_ODT_WRITE_SEL(x) ((x) << S_RANK3_ODT_WRITE_SEL) 4867 #define F_RANK3_ODT_WRITE_SEL V_RANK3_ODT_WRITE_SEL(1U) 4868 4869 #define S_RANK3_ODT_WRITE_NSE 26 4870 #define V_RANK3_ODT_WRITE_NSE(x) ((x) << S_RANK3_ODT_WRITE_NSE) 4871 #define F_RANK3_ODT_WRITE_NSE V_RANK3_ODT_WRITE_NSE(1U) 4872 4873 #define S_RANK3_ODT_READ_SEL 25 4874 #define V_RANK3_ODT_READ_SEL(x) ((x) << S_RANK3_ODT_READ_SEL) 4875 #define F_RANK3_ODT_READ_SEL V_RANK3_ODT_READ_SEL(1U) 4876 4877 #define S_RANK3_ODT_READ_NSEL 24 4878 #define V_RANK3_ODT_READ_NSEL(x) ((x) << S_RANK3_ODT_READ_NSEL) 4879 #define F_RANK3_ODT_READ_NSEL V_RANK3_ODT_READ_NSEL(1U) 4880 4881 #define S_RANK2_ODT_DEFAULT 20 4882 #define V_RANK2_ODT_DEFAULT(x) ((x) << S_RANK2_ODT_DEFAULT) 4883 #define F_RANK2_ODT_DEFAULT V_RANK2_ODT_DEFAULT(1U) 4884 4885 #define S_RANK2_ODT_WRITE_SEL 19 4886 #define V_RANK2_ODT_WRITE_SEL(x) ((x) << S_RANK2_ODT_WRITE_SEL) 4887 #define F_RANK2_ODT_WRITE_SEL V_RANK2_ODT_WRITE_SEL(1U) 4888 4889 #define S_RANK2_ODT_WRITE_NSEL 18 4890 #define V_RANK2_ODT_WRITE_NSEL(x) ((x) << S_RANK2_ODT_WRITE_NSEL) 4891 #define F_RANK2_ODT_WRITE_NSEL V_RANK2_ODT_WRITE_NSEL(1U) 4892 4893 #define S_RANK2_ODT_READ_SEL 17 4894 #define V_RANK2_ODT_READ_SEL(x) ((x) << S_RANK2_ODT_READ_SEL) 4895 #define F_RANK2_ODT_READ_SEL V_RANK2_ODT_READ_SEL(1U) 4896 4897 #define S_RANK2_ODT_READ_NSEL 16 4898 #define V_RANK2_ODT_READ_NSEL(x) ((x) << S_RANK2_ODT_READ_NSEL) 4899 #define F_RANK2_ODT_READ_NSEL V_RANK2_ODT_READ_NSEL(1U) 4900 4901 #define S_RANK1_ODT_DEFAULT 12 4902 #define V_RANK1_ODT_DEFAULT(x) ((x) << S_RANK1_ODT_DEFAULT) 4903 #define F_RANK1_ODT_DEFAULT V_RANK1_ODT_DEFAULT(1U) 4904 4905 #define S_RANK1_ODT_WRITE_SEL 11 4906 #define V_RANK1_ODT_WRITE_SEL(x) ((x) << S_RANK1_ODT_WRITE_SEL) 4907 #define F_RANK1_ODT_WRITE_SEL V_RANK1_ODT_WRITE_SEL(1U) 4908 4909 #define S_RANK1_ODT_WRITE_NSEL 10 4910 #define V_RANK1_ODT_WRITE_NSEL(x) ((x) << S_RANK1_ODT_WRITE_NSEL) 4911 #define F_RANK1_ODT_WRITE_NSEL V_RANK1_ODT_WRITE_NSEL(1U) 4912 4913 #define S_RANK1_ODT_READ_SEL 9 4914 #define V_RANK1_ODT_READ_SEL(x) ((x) << S_RANK1_ODT_READ_SEL) 4915 #define F_RANK1_ODT_READ_SEL V_RANK1_ODT_READ_SEL(1U) 4916 4917 #define S_RANK1_ODT_READ_NSEL 8 4918 #define V_RANK1_ODT_READ_NSEL(x) ((x) << S_RANK1_ODT_READ_NSEL) 4919 #define F_RANK1_ODT_READ_NSEL V_RANK1_ODT_READ_NSEL(1U) 4920 4921 #define S_RANK0_ODT_DEFAULT 4 4922 #define V_RANK0_ODT_DEFAULT(x) ((x) << S_RANK0_ODT_DEFAULT) 4923 #define F_RANK0_ODT_DEFAULT V_RANK0_ODT_DEFAULT(1U) 4924 4925 #define S_RANK0_ODT_WRITE_SEL 3 4926 #define V_RANK0_ODT_WRITE_SEL(x) ((x) << S_RANK0_ODT_WRITE_SEL) 4927 #define F_RANK0_ODT_WRITE_SEL V_RANK0_ODT_WRITE_SEL(1U) 4928 4929 #define S_RANK0_ODT_WRITE_NSEL 2 4930 #define V_RANK0_ODT_WRITE_NSEL(x) ((x) << S_RANK0_ODT_WRITE_NSEL) 4931 #define F_RANK0_ODT_WRITE_NSEL V_RANK0_ODT_WRITE_NSEL(1U) 4932 4933 #define S_RANK0_ODT_READ_SEL 1 4934 #define V_RANK0_ODT_READ_SEL(x) ((x) << S_RANK0_ODT_READ_SEL) 4935 #define F_RANK0_ODT_READ_SEL V_RANK0_ODT_READ_SEL(1U) 4936 4937 #define S_RANK0_ODT_READ_NSEL 0 4938 #define V_RANK0_ODT_READ_NSEL(x) ((x) << S_RANK0_ODT_READ_NSEL) 4939 #define F_RANK0_ODT_READ_NSEL V_RANK0_ODT_READ_NSEL(1U) 4940 4941 #define A_MC_PCTL_DQSECFG 0x6290 4942 4943 #define S_DV_ALAT 20 4944 #define M_DV_ALAT 0xfU 4945 #define V_DV_ALAT(x) ((x) << S_DV_ALAT) 4946 #define G_DV_ALAT(x) (((x) >> S_DV_ALAT) & M_DV_ALAT) 4947 4948 #define S_DV_ALEN 16 4949 #define M_DV_ALEN 0x3U 4950 #define V_DV_ALEN(x) ((x) << S_DV_ALEN) 4951 #define G_DV_ALEN(x) (((x) >> S_DV_ALEN) & M_DV_ALEN) 4952 4953 #define S_DSE_ALAT 12 4954 #define M_DSE_ALAT 0xfU 4955 #define V_DSE_ALAT(x) ((x) << S_DSE_ALAT) 4956 #define G_DSE_ALAT(x) (((x) >> S_DSE_ALAT) & M_DSE_ALAT) 4957 4958 #define S_DSE_ALEN 8 4959 #define M_DSE_ALEN 0x3U 4960 #define V_DSE_ALEN(x) ((x) << S_DSE_ALEN) 4961 #define G_DSE_ALEN(x) (((x) >> S_DSE_ALEN) & M_DSE_ALEN) 4962 4963 #define S_QSE_ALAT 4 4964 #define M_QSE_ALAT 0xfU 4965 #define V_QSE_ALAT(x) ((x) << S_QSE_ALAT) 4966 #define G_QSE_ALAT(x) (((x) >> S_QSE_ALAT) & M_QSE_ALAT) 4967 4968 #define S_QSE_ALEN 0 4969 #define M_QSE_ALEN 0x3U 4970 #define V_QSE_ALEN(x) ((x) << S_QSE_ALEN) 4971 #define G_QSE_ALEN(x) (((x) >> S_QSE_ALEN) & M_QSE_ALEN) 4972 4973 #define A_MC_PCTL_DTUPDES 0x6294 4974 4975 #define S_DTU_RD_MISSING 13 4976 #define V_DTU_RD_MISSING(x) ((x) << S_DTU_RD_MISSING) 4977 #define F_DTU_RD_MISSING V_DTU_RD_MISSING(1U) 4978 4979 #define S_DTU_EAFFL 9 4980 #define M_DTU_EAFFL 0xfU 4981 #define V_DTU_EAFFL(x) ((x) << S_DTU_EAFFL) 4982 #define G_DTU_EAFFL(x) (((x) >> S_DTU_EAFFL) & M_DTU_EAFFL) 4983 4984 #define S_DTU_RANDOM_ERROR 8 4985 #define V_DTU_RANDOM_ERROR(x) ((x) << S_DTU_RANDOM_ERROR) 4986 #define F_DTU_RANDOM_ERROR V_DTU_RANDOM_ERROR(1U) 4987 4988 #define S_DTU_ERROR_B7 7 4989 #define V_DTU_ERROR_B7(x) ((x) << S_DTU_ERROR_B7) 4990 #define F_DTU_ERROR_B7 V_DTU_ERROR_B7(1U) 4991 4992 #define S_DTU_ERR_B6 6 4993 #define V_DTU_ERR_B6(x) ((x) << S_DTU_ERR_B6) 4994 #define F_DTU_ERR_B6 V_DTU_ERR_B6(1U) 4995 4996 #define S_DTU_ERR_B5 5 4997 #define V_DTU_ERR_B5(x) ((x) << S_DTU_ERR_B5) 4998 #define F_DTU_ERR_B5 V_DTU_ERR_B5(1U) 4999 5000 #define S_DTU_ERR_B4 4 5001 #define V_DTU_ERR_B4(x) ((x) << S_DTU_ERR_B4) 5002 #define F_DTU_ERR_B4 V_DTU_ERR_B4(1U) 5003 5004 #define S_DTU_ERR_B3 3 5005 #define V_DTU_ERR_B3(x) ((x) << S_DTU_ERR_B3) 5006 #define F_DTU_ERR_B3 V_DTU_ERR_B3(1U) 5007 5008 #define S_DTU_ERR_B2 2 5009 #define V_DTU_ERR_B2(x) ((x) << S_DTU_ERR_B2) 5010 #define F_DTU_ERR_B2 V_DTU_ERR_B2(1U) 5011 5012 #define S_DTU_ERR_B1 1 5013 #define V_DTU_ERR_B1(x) ((x) << S_DTU_ERR_B1) 5014 #define F_DTU_ERR_B1 V_DTU_ERR_B1(1U) 5015 5016 #define S_DTU_ERR_B0 0 5017 #define V_DTU_ERR_B0(x) ((x) << S_DTU_ERR_B0) 5018 #define F_DTU_ERR_B0 V_DTU_ERR_B0(1U) 5019 5020 #define A_MC_PCTL_DTUNA 0x6298 5021 #define A_MC_PCTL_DTUNE 0x629c 5022 #define A_MC_PCTL_DTUPRDO 0x62a0 5023 5024 #define S_DTU_ALLBITS_1 16 5025 #define M_DTU_ALLBITS_1 0xffffU 5026 #define V_DTU_ALLBITS_1(x) ((x) << S_DTU_ALLBITS_1) 5027 #define G_DTU_ALLBITS_1(x) (((x) >> S_DTU_ALLBITS_1) & M_DTU_ALLBITS_1) 5028 5029 #define S_DTU_ALLBITS_0 0 5030 #define M_DTU_ALLBITS_0 0xffffU 5031 #define V_DTU_ALLBITS_0(x) ((x) << S_DTU_ALLBITS_0) 5032 #define G_DTU_ALLBITS_0(x) (((x) >> S_DTU_ALLBITS_0) & M_DTU_ALLBITS_0) 5033 5034 #define A_MC_PCTL_DTUPRD1 0x62a4 5035 5036 #define S_DTU_ALLBITS_3 16 5037 #define M_DTU_ALLBITS_3 0xffffU 5038 #define V_DTU_ALLBITS_3(x) ((x) << S_DTU_ALLBITS_3) 5039 #define G_DTU_ALLBITS_3(x) (((x) >> S_DTU_ALLBITS_3) & M_DTU_ALLBITS_3) 5040 5041 #define S_DTU_ALLBITS_2 0 5042 #define M_DTU_ALLBITS_2 0xffffU 5043 #define V_DTU_ALLBITS_2(x) ((x) << S_DTU_ALLBITS_2) 5044 #define G_DTU_ALLBITS_2(x) (((x) >> S_DTU_ALLBITS_2) & M_DTU_ALLBITS_2) 5045 5046 #define A_MC_PCTL_DTUPRD2 0x62a8 5047 5048 #define S_DTU_ALLBITS_5 16 5049 #define M_DTU_ALLBITS_5 0xffffU 5050 #define V_DTU_ALLBITS_5(x) ((x) << S_DTU_ALLBITS_5) 5051 #define G_DTU_ALLBITS_5(x) (((x) >> S_DTU_ALLBITS_5) & M_DTU_ALLBITS_5) 5052 5053 #define S_DTU_ALLBITS_4 0 5054 #define M_DTU_ALLBITS_4 0xffffU 5055 #define V_DTU_ALLBITS_4(x) ((x) << S_DTU_ALLBITS_4) 5056 #define G_DTU_ALLBITS_4(x) (((x) >> S_DTU_ALLBITS_4) & M_DTU_ALLBITS_4) 5057 5058 #define A_MC_PCTL_DTUPRD3 0x62ac 5059 5060 #define S_DTU_ALLBITS_7 16 5061 #define M_DTU_ALLBITS_7 0xffffU 5062 #define V_DTU_ALLBITS_7(x) ((x) << S_DTU_ALLBITS_7) 5063 #define G_DTU_ALLBITS_7(x) (((x) >> S_DTU_ALLBITS_7) & M_DTU_ALLBITS_7) 5064 5065 #define S_DTU_ALLBITS_6 0 5066 #define M_DTU_ALLBITS_6 0xffffU 5067 #define V_DTU_ALLBITS_6(x) ((x) << S_DTU_ALLBITS_6) 5068 #define G_DTU_ALLBITS_6(x) (((x) >> S_DTU_ALLBITS_6) & M_DTU_ALLBITS_6) 5069 5070 #define A_MC_PCTL_DTUAWDT 0x62b0 5071 5072 #define S_NUMBER_RANKS 9 5073 #define M_NUMBER_RANKS 0x3U 5074 #define V_NUMBER_RANKS(x) ((x) << S_NUMBER_RANKS) 5075 #define G_NUMBER_RANKS(x) (((x) >> S_NUMBER_RANKS) & M_NUMBER_RANKS) 5076 5077 #define S_ROW_ADDR_WIDTH 6 5078 #define M_ROW_ADDR_WIDTH 0x3U 5079 #define V_ROW_ADDR_WIDTH(x) ((x) << S_ROW_ADDR_WIDTH) 5080 #define G_ROW_ADDR_WIDTH(x) (((x) >> S_ROW_ADDR_WIDTH) & M_ROW_ADDR_WIDTH) 5081 5082 #define S_BANK_ADDR_WIDTH 3 5083 #define M_BANK_ADDR_WIDTH 0x3U 5084 #define V_BANK_ADDR_WIDTH(x) ((x) << S_BANK_ADDR_WIDTH) 5085 #define G_BANK_ADDR_WIDTH(x) (((x) >> S_BANK_ADDR_WIDTH) & M_BANK_ADDR_WIDTH) 5086 5087 #define S_COLUMN_ADDR_WIDTH 0 5088 #define M_COLUMN_ADDR_WIDTH 0x3U 5089 #define V_COLUMN_ADDR_WIDTH(x) ((x) << S_COLUMN_ADDR_WIDTH) 5090 #define G_COLUMN_ADDR_WIDTH(x) \ 5091 (((x) >> S_COLUMN_ADDR_WIDTH) & M_COLUMN_ADDR_WIDTH) 5092 5093 #define A_MC_PCTL_TOGCNT1U 0x62c0 5094 5095 #define S_TOGGLE_COUNTER_1U 0 5096 #define M_TOGGLE_COUNTER_1U 0x3ffU 5097 #define V_TOGGLE_COUNTER_1U(x) ((x) << S_TOGGLE_COUNTER_1U) 5098 #define G_TOGGLE_COUNTER_1U(x) \ 5099 (((x) >> S_TOGGLE_COUNTER_1U) & M_TOGGLE_COUNTER_1U) 5100 5101 #define A_MC_PCTL_TINIT 0x62c4 5102 5103 #define S_T_INIT 0 5104 #define M_T_INIT 0x1ffU 5105 #define V_T_INIT(x) ((x) << S_T_INIT) 5106 #define G_T_INIT(x) (((x) >> S_T_INIT) & M_T_INIT) 5107 5108 #define A_MC_PCTL_TRSTH 0x62c8 5109 5110 #define S_T_RSTH 0 5111 #define M_T_RSTH 0x3ffU 5112 #define V_T_RSTH(x) ((x) << S_T_RSTH) 5113 #define G_T_RSTH(x) (((x) >> S_T_RSTH) & M_T_RSTH) 5114 5115 #define A_MC_PCTL_TOGCNT100N 0x62cc 5116 5117 #define S_TOGGLE_COUNTER_100N 0 5118 #define M_TOGGLE_COUNTER_100N 0x7fU 5119 #define V_TOGGLE_COUNTER_100N(x) ((x) << S_TOGGLE_COUNTER_100N) 5120 #define G_TOGGLE_COUNTER_100N(x) \ 5121 (((x) >> S_TOGGLE_COUNTER_100N) & M_TOGGLE_COUNTER_100N) 5122 5123 #define A_MC_PCTL_TREFI 0x62d0 5124 5125 #define S_T_REFI 0 5126 #define M_T_REFI 0xffU 5127 #define V_T_REFI(x) ((x) << S_T_REFI) 5128 #define G_T_REFI(x) (((x) >> S_T_REFI) & M_T_REFI) 5129 5130 #define A_MC_PCTL_TMRD 0x62d4 5131 5132 #define S_T_MRD 0 5133 #define M_T_MRD 0x7U 5134 #define V_T_MRD(x) ((x) << S_T_MRD) 5135 #define G_T_MRD(x) (((x) >> S_T_MRD) & M_T_MRD) 5136 5137 #define A_MC_PCTL_TRFC 0x62d8 5138 5139 #define S_T_RFC 0 5140 #define M_T_RFC 0xffU 5141 #define V_T_RFC(x) ((x) << S_T_RFC) 5142 #define G_T_RFC(x) (((x) >> S_T_RFC) & M_T_RFC) 5143 5144 #define A_MC_PCTL_TRP 0x62dc 5145 5146 #define S_T_RP 0 5147 #define M_T_RP 0xfU 5148 #define V_T_RP(x) ((x) << S_T_RP) 5149 #define G_T_RP(x) (((x) >> S_T_RP) & M_T_RP) 5150 5151 #define A_MC_PCTL_TRTW 0x62e0 5152 5153 #define S_T_RTW 0 5154 #define M_T_RTW 0x7U 5155 #define V_T_RTW(x) ((x) << S_T_RTW) 5156 #define G_T_RTW(x) (((x) >> S_T_RTW) & M_T_RTW) 5157 5158 #define A_MC_PCTL_TAL 0x62e4 5159 5160 #define S_T_AL 0 5161 #define M_T_AL 0xfU 5162 #define V_T_AL(x) ((x) << S_T_AL) 5163 #define G_T_AL(x) (((x) >> S_T_AL) & M_T_AL) 5164 5165 #define A_MC_PCTL_TCL 0x62e8 5166 5167 #define S_T_CL 0 5168 #define M_T_CL 0xfU 5169 #define V_T_CL(x) ((x) << S_T_CL) 5170 #define G_T_CL(x) (((x) >> S_T_CL) & M_T_CL) 5171 5172 #define A_MC_PCTL_TCWL 0x62ec 5173 5174 #define S_T_CWL 0 5175 #define M_T_CWL 0xfU 5176 #define V_T_CWL(x) ((x) << S_T_CWL) 5177 #define G_T_CWL(x) (((x) >> S_T_CWL) & M_T_CWL) 5178 5179 #define A_MC_PCTL_TRAS 0x62f0 5180 5181 #define S_T_RAS 0 5182 #define M_T_RAS 0x3fU 5183 #define V_T_RAS(x) ((x) << S_T_RAS) 5184 #define G_T_RAS(x) (((x) >> S_T_RAS) & M_T_RAS) 5185 5186 #define A_MC_PCTL_TRC 0x62f4 5187 5188 #define S_T_RC 0 5189 #define M_T_RC 0x3fU 5190 #define V_T_RC(x) ((x) << S_T_RC) 5191 #define G_T_RC(x) (((x) >> S_T_RC) & M_T_RC) 5192 5193 #define A_MC_PCTL_TRCD 0x62f8 5194 5195 #define S_T_RCD 0 5196 #define M_T_RCD 0xfU 5197 #define V_T_RCD(x) ((x) << S_T_RCD) 5198 #define G_T_RCD(x) (((x) >> S_T_RCD) & M_T_RCD) 5199 5200 #define A_MC_PCTL_TRRD 0x62fc 5201 5202 #define S_T_RRD 0 5203 #define M_T_RRD 0xfU 5204 #define V_T_RRD(x) ((x) << S_T_RRD) 5205 #define G_T_RRD(x) (((x) >> S_T_RRD) & M_T_RRD) 5206 5207 #define A_MC_PCTL_TRTP 0x6300 5208 5209 #define S_T_RTP 0 5210 #define M_T_RTP 0x7U 5211 #define V_T_RTP(x) ((x) << S_T_RTP) 5212 #define G_T_RTP(x) (((x) >> S_T_RTP) & M_T_RTP) 5213 5214 #define A_MC_PCTL_TWR 0x6304 5215 5216 #define S_T_WR 0 5217 #define M_T_WR 0x7U 5218 #define V_T_WR(x) ((x) << S_T_WR) 5219 #define G_T_WR(x) (((x) >> S_T_WR) & M_T_WR) 5220 5221 #define A_MC_PCTL_TWTR 0x6308 5222 5223 #define S_T_WTR 0 5224 #define M_T_WTR 0x7U 5225 #define V_T_WTR(x) ((x) << S_T_WTR) 5226 #define G_T_WTR(x) (((x) >> S_T_WTR) & M_T_WTR) 5227 5228 #define A_MC_PCTL_TEXSR 0x630c 5229 5230 #define S_T_EXSR 0 5231 #define M_T_EXSR 0x3ffU 5232 #define V_T_EXSR(x) ((x) << S_T_EXSR) 5233 #define G_T_EXSR(x) (((x) >> S_T_EXSR) & M_T_EXSR) 5234 5235 #define A_MC_PCTL_TXP 0x6310 5236 5237 #define S_T_XP 0 5238 #define M_T_XP 0x7U 5239 #define V_T_XP(x) ((x) << S_T_XP) 5240 #define G_T_XP(x) (((x) >> S_T_XP) & M_T_XP) 5241 5242 #define A_MC_PCTL_TXPDLL 0x6314 5243 5244 #define S_T_XPDLL 0 5245 #define M_T_XPDLL 0x3fU 5246 #define V_T_XPDLL(x) ((x) << S_T_XPDLL) 5247 #define G_T_XPDLL(x) (((x) >> S_T_XPDLL) & M_T_XPDLL) 5248 5249 #define A_MC_PCTL_TZQCS 0x6318 5250 5251 #define S_T_ZQCS 0 5252 #define M_T_ZQCS 0x7fU 5253 #define V_T_ZQCS(x) ((x) << S_T_ZQCS) 5254 #define G_T_ZQCS(x) (((x) >> S_T_ZQCS) & M_T_ZQCS) 5255 5256 #define A_MC_PCTL_TZQCSI 0x631c 5257 5258 #define S_T_ZQCSI 0 5259 #define M_T_ZQCSI 0xfffU 5260 #define V_T_ZQCSI(x) ((x) << S_T_ZQCSI) 5261 #define G_T_ZQCSI(x) (((x) >> S_T_ZQCSI) & M_T_ZQCSI) 5262 5263 #define A_MC_PCTL_TDQS 0x6320 5264 5265 #define S_T_DQS 0 5266 #define M_T_DQS 0x7U 5267 #define V_T_DQS(x) ((x) << S_T_DQS) 5268 #define G_T_DQS(x) (((x) >> S_T_DQS) & M_T_DQS) 5269 5270 #define A_MC_PCTL_TCKSRE 0x6324 5271 5272 #define S_T_CKSRE 0 5273 #define M_T_CKSRE 0xfU 5274 #define V_T_CKSRE(x) ((x) << S_T_CKSRE) 5275 #define G_T_CKSRE(x) (((x) >> S_T_CKSRE) & M_T_CKSRE) 5276 5277 #define A_MC_PCTL_TCKSRX 0x6328 5278 5279 #define S_T_CKSRX 0 5280 #define M_T_CKSRX 0xfU 5281 #define V_T_CKSRX(x) ((x) << S_T_CKSRX) 5282 #define G_T_CKSRX(x) (((x) >> S_T_CKSRX) & M_T_CKSRX) 5283 5284 #define A_MC_PCTL_TCKE 0x632c 5285 5286 #define S_T_CKE 0 5287 #define M_T_CKE 0x7U 5288 #define V_T_CKE(x) ((x) << S_T_CKE) 5289 #define G_T_CKE(x) (((x) >> S_T_CKE) & M_T_CKE) 5290 5291 #define A_MC_PCTL_TMOD 0x6330 5292 5293 #define S_T_MOD 0 5294 #define M_T_MOD 0xfU 5295 #define V_T_MOD(x) ((x) << S_T_MOD) 5296 #define G_T_MOD(x) (((x) >> S_T_MOD) & M_T_MOD) 5297 5298 #define A_MC_PCTL_TRSTL 0x6334 5299 5300 #define S_RSTHOLD 0 5301 #define M_RSTHOLD 0x7fU 5302 #define V_RSTHOLD(x) ((x) << S_RSTHOLD) 5303 #define G_RSTHOLD(x) (((x) >> S_RSTHOLD) & M_RSTHOLD) 5304 5305 #define A_MC_PCTL_TZQCL 0x6338 5306 5307 #define S_T_ZQCL 0 5308 #define M_T_ZQCL 0x3ffU 5309 #define V_T_ZQCL(x) ((x) << S_T_ZQCL) 5310 #define G_T_ZQCL(x) (((x) >> S_T_ZQCL) & M_T_ZQCL) 5311 5312 #define A_MC_PCTL_DWLCFG0 0x6370 5313 5314 #define S_T_ADWL_VEC 0 5315 #define M_T_ADWL_VEC 0x1ffU 5316 #define V_T_ADWL_VEC(x) ((x) << S_T_ADWL_VEC) 5317 #define G_T_ADWL_VEC(x) (((x) >> S_T_ADWL_VEC) & M_T_ADWL_VEC) 5318 5319 #define A_MC_PCTL_DWLCFG1 0x6374 5320 #define A_MC_PCTL_DWLCFG2 0x6378 5321 #define A_MC_PCTL_DWLCFG3 0x637c 5322 #define A_MC_PCTL_ECCCFG 0x6380 5323 5324 #define S_INLINE_SYN_EN 4 5325 #define V_INLINE_SYN_EN(x) ((x) << S_INLINE_SYN_EN) 5326 #define F_INLINE_SYN_EN V_INLINE_SYN_EN(1U) 5327 5328 #define S_ECC_EN 3 5329 #define V_ECC_EN(x) ((x) << S_ECC_EN) 5330 #define F_ECC_EN V_ECC_EN(1U) 5331 5332 #define S_ECC_INTR_EN 2 5333 #define V_ECC_INTR_EN(x) ((x) << S_ECC_INTR_EN) 5334 #define F_ECC_INTR_EN V_ECC_INTR_EN(1U) 5335 5336 #define A_MC_PCTL_ECCTST 0x6384 5337 5338 #define S_ECC_TEST_MASK 0 5339 #define M_ECC_TEST_MASK 0xffU 5340 #define V_ECC_TEST_MASK(x) ((x) << S_ECC_TEST_MASK) 5341 #define G_ECC_TEST_MASK(x) (((x) >> S_ECC_TEST_MASK) & M_ECC_TEST_MASK) 5342 5343 #define A_MC_PCTL_ECCCLR 0x6388 5344 5345 #define S_CLR_ECC_LOG 1 5346 #define V_CLR_ECC_LOG(x) ((x) << S_CLR_ECC_LOG) 5347 #define F_CLR_ECC_LOG V_CLR_ECC_LOG(1U) 5348 5349 #define S_CLR_ECC_INTR 0 5350 #define V_CLR_ECC_INTR(x) ((x) << S_CLR_ECC_INTR) 5351 #define F_CLR_ECC_INTR V_CLR_ECC_INTR(1U) 5352 5353 #define A_MC_PCTL_ECCLOG 0x638c 5354 #define A_MC_PCTL_DTUWACTL 0x6400 5355 5356 #define S_DTU_WR_RANK 30 5357 #define M_DTU_WR_RANK 0x3U 5358 #define V_DTU_WR_RANK(x) ((x) << S_DTU_WR_RANK) 5359 #define G_DTU_WR_RANK(x) (((x) >> S_DTU_WR_RANK) & M_DTU_WR_RANK) 5360 5361 #define S_DTU_WR_ROW 13 5362 #define M_DTU_WR_ROW 0x1ffffU 5363 #define V_DTU_WR_ROW(x) ((x) << S_DTU_WR_ROW) 5364 #define G_DTU_WR_ROW(x) (((x) >> S_DTU_WR_ROW) & M_DTU_WR_ROW) 5365 5366 #define S_DTU_WR_BANK 10 5367 #define M_DTU_WR_BANK 0x7U 5368 #define V_DTU_WR_BANK(x) ((x) << S_DTU_WR_BANK) 5369 #define G_DTU_WR_BANK(x) (((x) >> S_DTU_WR_BANK) & M_DTU_WR_BANK) 5370 5371 #define S_DTU_WR_COL 0 5372 #define M_DTU_WR_COL 0x3ffU 5373 #define V_DTU_WR_COL(x) ((x) << S_DTU_WR_COL) 5374 #define G_DTU_WR_COL(x) (((x) >> S_DTU_WR_COL) & M_DTU_WR_COL) 5375 5376 #define A_MC_PCTL_DTURACTL 0x6404 5377 5378 #define S_DTU_RD_RANK 30 5379 #define M_DTU_RD_RANK 0x3U 5380 #define V_DTU_RD_RANK(x) ((x) << S_DTU_RD_RANK) 5381 #define G_DTU_RD_RANK(x) (((x) >> S_DTU_RD_RANK) & M_DTU_RD_RANK) 5382 5383 #define S_DTU_RD_ROW 13 5384 #define M_DTU_RD_ROW 0x1ffffU 5385 #define V_DTU_RD_ROW(x) ((x) << S_DTU_RD_ROW) 5386 #define G_DTU_RD_ROW(x) (((x) >> S_DTU_RD_ROW) & M_DTU_RD_ROW) 5387 5388 #define S_DTU_RD_BANK 10 5389 #define M_DTU_RD_BANK 0x7U 5390 #define V_DTU_RD_BANK(x) ((x) << S_DTU_RD_BANK) 5391 #define G_DTU_RD_BANK(x) (((x) >> S_DTU_RD_BANK) & M_DTU_RD_BANK) 5392 5393 #define S_DTU_RD_COL 0 5394 #define M_DTU_RD_COL 0x3ffU 5395 #define V_DTU_RD_COL(x) ((x) << S_DTU_RD_COL) 5396 #define G_DTU_RD_COL(x) (((x) >> S_DTU_RD_COL) & M_DTU_RD_COL) 5397 5398 #define A_MC_PCTL_DTUCFG 0x6408 5399 5400 #define S_DTU_ROW_INCREMENTS 16 5401 #define M_DTU_ROW_INCREMENTS 0x7fU 5402 #define V_DTU_ROW_INCREMENTS(x) ((x) << S_DTU_ROW_INCREMENTS) 5403 #define G_DTU_ROW_INCREMENTS(x) \ 5404 (((x) >> S_DTU_ROW_INCREMENTS) & M_DTU_ROW_INCREMENTS) 5405 5406 #define S_DTU_WR_MULTI_RD 15 5407 #define V_DTU_WR_MULTI_RD(x) ((x) << S_DTU_WR_MULTI_RD) 5408 #define F_DTU_WR_MULTI_RD V_DTU_WR_MULTI_RD(1U) 5409 5410 #define S_DTU_DATA_MASK_EN 14 5411 #define V_DTU_DATA_MASK_EN(x) ((x) << S_DTU_DATA_MASK_EN) 5412 #define F_DTU_DATA_MASK_EN V_DTU_DATA_MASK_EN(1U) 5413 5414 #define S_DTU_TARGET_LANE 10 5415 #define M_DTU_TARGET_LANE 0xfU 5416 #define V_DTU_TARGET_LANE(x) ((x) << S_DTU_TARGET_LANE) 5417 #define G_DTU_TARGET_LANE(x) (((x) >> S_DTU_TARGET_LANE) & M_DTU_TARGET_LANE) 5418 5419 #define S_DTU_GENERATE_RANDOM 9 5420 #define V_DTU_GENERATE_RANDOM(x) ((x) << S_DTU_GENERATE_RANDOM) 5421 #define F_DTU_GENERATE_RANDOM V_DTU_GENERATE_RANDOM(1U) 5422 5423 #define S_DTU_INCR_BANKS 8 5424 #define V_DTU_INCR_BANKS(x) ((x) << S_DTU_INCR_BANKS) 5425 #define F_DTU_INCR_BANKS V_DTU_INCR_BANKS(1U) 5426 5427 #define S_DTU_INCR_COLS 7 5428 #define V_DTU_INCR_COLS(x) ((x) << S_DTU_INCR_COLS) 5429 #define F_DTU_INCR_COLS V_DTU_INCR_COLS(1U) 5430 5431 #define S_DTU_NALEN 1 5432 #define M_DTU_NALEN 0x3fU 5433 #define V_DTU_NALEN(x) ((x) << S_DTU_NALEN) 5434 #define G_DTU_NALEN(x) (((x) >> S_DTU_NALEN) & M_DTU_NALEN) 5435 5436 #define S_DTU_ENABLE 0 5437 #define V_DTU_ENABLE(x) ((x) << S_DTU_ENABLE) 5438 #define F_DTU_ENABLE V_DTU_ENABLE(1U) 5439 5440 #define A_MC_PCTL_DTUECTL 0x640c 5441 5442 #define S_WR_MULTI_RD_RST 2 5443 #define V_WR_MULTI_RD_RST(x) ((x) << S_WR_MULTI_RD_RST) 5444 #define F_WR_MULTI_RD_RST V_WR_MULTI_RD_RST(1U) 5445 5446 #define S_RUN_ERROR_REPORTS 1 5447 #define V_RUN_ERROR_REPORTS(x) ((x) << S_RUN_ERROR_REPORTS) 5448 #define F_RUN_ERROR_REPORTS V_RUN_ERROR_REPORTS(1U) 5449 5450 #define S_RUN_DTU 0 5451 #define V_RUN_DTU(x) ((x) << S_RUN_DTU) 5452 #define F_RUN_DTU V_RUN_DTU(1U) 5453 5454 #define A_MC_PCTL_DTUWD0 0x6410 5455 5456 #define S_DTU_WR_BYTE3 24 5457 #define M_DTU_WR_BYTE3 0xffU 5458 #define V_DTU_WR_BYTE3(x) ((x) << S_DTU_WR_BYTE3) 5459 #define G_DTU_WR_BYTE3(x) (((x) >> S_DTU_WR_BYTE3) & M_DTU_WR_BYTE3) 5460 5461 #define S_DTU_WR_BYTE2 16 5462 #define M_DTU_WR_BYTE2 0xffU 5463 #define V_DTU_WR_BYTE2(x) ((x) << S_DTU_WR_BYTE2) 5464 #define G_DTU_WR_BYTE2(x) (((x) >> S_DTU_WR_BYTE2) & M_DTU_WR_BYTE2) 5465 5466 #define S_DTU_WR_BYTE1 8 5467 #define M_DTU_WR_BYTE1 0xffU 5468 #define V_DTU_WR_BYTE1(x) ((x) << S_DTU_WR_BYTE1) 5469 #define G_DTU_WR_BYTE1(x) (((x) >> S_DTU_WR_BYTE1) & M_DTU_WR_BYTE1) 5470 5471 #define S_DTU_WR_BYTE0 0 5472 #define M_DTU_WR_BYTE0 0xffU 5473 #define V_DTU_WR_BYTE0(x) ((x) << S_DTU_WR_BYTE0) 5474 #define G_DTU_WR_BYTE0(x) (((x) >> S_DTU_WR_BYTE0) & M_DTU_WR_BYTE0) 5475 5476 #define A_MC_PCTL_DTUWD1 0x6414 5477 5478 #define S_DTU_WR_BYTE7 24 5479 #define M_DTU_WR_BYTE7 0xffU 5480 #define V_DTU_WR_BYTE7(x) ((x) << S_DTU_WR_BYTE7) 5481 #define G_DTU_WR_BYTE7(x) (((x) >> S_DTU_WR_BYTE7) & M_DTU_WR_BYTE7) 5482 5483 #define S_DTU_WR_BYTE6 16 5484 #define M_DTU_WR_BYTE6 0xffU 5485 #define V_DTU_WR_BYTE6(x) ((x) << S_DTU_WR_BYTE6) 5486 #define G_DTU_WR_BYTE6(x) (((x) >> S_DTU_WR_BYTE6) & M_DTU_WR_BYTE6) 5487 5488 #define S_DTU_WR_BYTE5 8 5489 #define M_DTU_WR_BYTE5 0xffU 5490 #define V_DTU_WR_BYTE5(x) ((x) << S_DTU_WR_BYTE5) 5491 #define G_DTU_WR_BYTE5(x) (((x) >> S_DTU_WR_BYTE5) & M_DTU_WR_BYTE5) 5492 5493 #define S_DTU_WR_BYTE4 0 5494 #define M_DTU_WR_BYTE4 0xffU 5495 #define V_DTU_WR_BYTE4(x) ((x) << S_DTU_WR_BYTE4) 5496 #define G_DTU_WR_BYTE4(x) (((x) >> S_DTU_WR_BYTE4) & M_DTU_WR_BYTE4) 5497 5498 #define A_MC_PCTL_DTUWD2 0x6418 5499 5500 #define S_DTU_WR_BYTE11 24 5501 #define M_DTU_WR_BYTE11 0xffU 5502 #define V_DTU_WR_BYTE11(x) ((x) << S_DTU_WR_BYTE11) 5503 #define G_DTU_WR_BYTE11(x) (((x) >> S_DTU_WR_BYTE11) & M_DTU_WR_BYTE11) 5504 5505 #define S_DTU_WR_BYTE10 16 5506 #define M_DTU_WR_BYTE10 0xffU 5507 #define V_DTU_WR_BYTE10(x) ((x) << S_DTU_WR_BYTE10) 5508 #define G_DTU_WR_BYTE10(x) (((x) >> S_DTU_WR_BYTE10) & M_DTU_WR_BYTE10) 5509 5510 #define S_DTU_WR_BYTE9 8 5511 #define M_DTU_WR_BYTE9 0xffU 5512 #define V_DTU_WR_BYTE9(x) ((x) << S_DTU_WR_BYTE9) 5513 #define G_DTU_WR_BYTE9(x) (((x) >> S_DTU_WR_BYTE9) & M_DTU_WR_BYTE9) 5514 5515 #define S_DTU_WR_BYTE8 0 5516 #define M_DTU_WR_BYTE8 0xffU 5517 #define V_DTU_WR_BYTE8(x) ((x) << S_DTU_WR_BYTE8) 5518 #define G_DTU_WR_BYTE8(x) (((x) >> S_DTU_WR_BYTE8) & M_DTU_WR_BYTE8) 5519 5520 #define A_MC_PCTL_DTUWD3 0x641c 5521 5522 #define S_DTU_WR_BYTE15 24 5523 #define M_DTU_WR_BYTE15 0xffU 5524 #define V_DTU_WR_BYTE15(x) ((x) << S_DTU_WR_BYTE15) 5525 #define G_DTU_WR_BYTE15(x) (((x) >> S_DTU_WR_BYTE15) & M_DTU_WR_BYTE15) 5526 5527 #define S_DTU_WR_BYTE14 16 5528 #define M_DTU_WR_BYTE14 0xffU 5529 #define V_DTU_WR_BYTE14(x) ((x) << S_DTU_WR_BYTE14) 5530 #define G_DTU_WR_BYTE14(x) (((x) >> S_DTU_WR_BYTE14) & M_DTU_WR_BYTE14) 5531 5532 #define S_DTU_WR_BYTE13 8 5533 #define M_DTU_WR_BYTE13 0xffU 5534 #define V_DTU_WR_BYTE13(x) ((x) << S_DTU_WR_BYTE13) 5535 #define G_DTU_WR_BYTE13(x) (((x) >> S_DTU_WR_BYTE13) & M_DTU_WR_BYTE13) 5536 5537 #define S_DTU_WR_BYTE12 0 5538 #define M_DTU_WR_BYTE12 0xffU 5539 #define V_DTU_WR_BYTE12(x) ((x) << S_DTU_WR_BYTE12) 5540 #define G_DTU_WR_BYTE12(x) (((x) >> S_DTU_WR_BYTE12) & M_DTU_WR_BYTE12) 5541 5542 #define A_MC_PCTL_DTUWDM 0x6420 5543 5544 #define S_DM_WR_BYTE0 0 5545 #define M_DM_WR_BYTE0 0xffffU 5546 #define V_DM_WR_BYTE0(x) ((x) << S_DM_WR_BYTE0) 5547 #define G_DM_WR_BYTE0(x) (((x) >> S_DM_WR_BYTE0) & M_DM_WR_BYTE0) 5548 5549 #define A_MC_PCTL_DTURD0 0x6424 5550 5551 #define S_DTU_RD_BYTE3 24 5552 #define M_DTU_RD_BYTE3 0xffU 5553 #define V_DTU_RD_BYTE3(x) ((x) << S_DTU_RD_BYTE3) 5554 #define G_DTU_RD_BYTE3(x) (((x) >> S_DTU_RD_BYTE3) & M_DTU_RD_BYTE3) 5555 5556 #define S_DTU_RD_BYTE2 16 5557 #define M_DTU_RD_BYTE2 0xffU 5558 #define V_DTU_RD_BYTE2(x) ((x) << S_DTU_RD_BYTE2) 5559 #define G_DTU_RD_BYTE2(x) (((x) >> S_DTU_RD_BYTE2) & M_DTU_RD_BYTE2) 5560 5561 #define S_DTU_RD_BYTE1 8 5562 #define M_DTU_RD_BYTE1 0xffU 5563 #define V_DTU_RD_BYTE1(x) ((x) << S_DTU_RD_BYTE1) 5564 #define G_DTU_RD_BYTE1(x) (((x) >> S_DTU_RD_BYTE1) & M_DTU_RD_BYTE1) 5565 5566 #define S_DTU_RD_BYTE0 0 5567 #define M_DTU_RD_BYTE0 0xffU 5568 #define V_DTU_RD_BYTE0(x) ((x) << S_DTU_RD_BYTE0) 5569 #define G_DTU_RD_BYTE0(x) (((x) >> S_DTU_RD_BYTE0) & M_DTU_RD_BYTE0) 5570 5571 #define A_MC_PCTL_DTURD1 0x6428 5572 5573 #define S_DTU_RD_BYTE7 24 5574 #define M_DTU_RD_BYTE7 0xffU 5575 #define V_DTU_RD_BYTE7(x) ((x) << S_DTU_RD_BYTE7) 5576 #define G_DTU_RD_BYTE7(x) (((x) >> S_DTU_RD_BYTE7) & M_DTU_RD_BYTE7) 5577 5578 #define S_DTU_RD_BYTE6 16 5579 #define M_DTU_RD_BYTE6 0xffU 5580 #define V_DTU_RD_BYTE6(x) ((x) << S_DTU_RD_BYTE6) 5581 #define G_DTU_RD_BYTE6(x) (((x) >> S_DTU_RD_BYTE6) & M_DTU_RD_BYTE6) 5582 5583 #define S_DTU_RD_BYTE5 8 5584 #define M_DTU_RD_BYTE5 0xffU 5585 #define V_DTU_RD_BYTE5(x) ((x) << S_DTU_RD_BYTE5) 5586 #define G_DTU_RD_BYTE5(x) (((x) >> S_DTU_RD_BYTE5) & M_DTU_RD_BYTE5) 5587 5588 #define S_DTU_RD_BYTE4 0 5589 #define M_DTU_RD_BYTE4 0xffU 5590 #define V_DTU_RD_BYTE4(x) ((x) << S_DTU_RD_BYTE4) 5591 #define G_DTU_RD_BYTE4(x) (((x) >> S_DTU_RD_BYTE4) & M_DTU_RD_BYTE4) 5592 5593 #define A_MC_PCTL_DTURD2 0x642c 5594 5595 #define S_DTU_RD_BYTE11 24 5596 #define M_DTU_RD_BYTE11 0xffU 5597 #define V_DTU_RD_BYTE11(x) ((x) << S_DTU_RD_BYTE11) 5598 #define G_DTU_RD_BYTE11(x) (((x) >> S_DTU_RD_BYTE11) & M_DTU_RD_BYTE11) 5599 5600 #define S_DTU_RD_BYTE10 16 5601 #define M_DTU_RD_BYTE10 0xffU 5602 #define V_DTU_RD_BYTE10(x) ((x) << S_DTU_RD_BYTE10) 5603 #define G_DTU_RD_BYTE10(x) (((x) >> S_DTU_RD_BYTE10) & M_DTU_RD_BYTE10) 5604 5605 #define S_DTU_RD_BYTE9 8 5606 #define M_DTU_RD_BYTE9 0xffU 5607 #define V_DTU_RD_BYTE9(x) ((x) << S_DTU_RD_BYTE9) 5608 #define G_DTU_RD_BYTE9(x) (((x) >> S_DTU_RD_BYTE9) & M_DTU_RD_BYTE9) 5609 5610 #define S_DTU_RD_BYTE8 0 5611 #define M_DTU_RD_BYTE8 0xffU 5612 #define V_DTU_RD_BYTE8(x) ((x) << S_DTU_RD_BYTE8) 5613 #define G_DTU_RD_BYTE8(x) (((x) >> S_DTU_RD_BYTE8) & M_DTU_RD_BYTE8) 5614 5615 #define A_MC_PCTL_DTURD3 0x6430 5616 5617 #define S_DTU_RD_BYTE15 24 5618 #define M_DTU_RD_BYTE15 0xffU 5619 #define V_DTU_RD_BYTE15(x) ((x) << S_DTU_RD_BYTE15) 5620 #define G_DTU_RD_BYTE15(x) (((x) >> S_DTU_RD_BYTE15) & M_DTU_RD_BYTE15) 5621 5622 #define S_DTU_RD_BYTE14 16 5623 #define M_DTU_RD_BYTE14 0xffU 5624 #define V_DTU_RD_BYTE14(x) ((x) << S_DTU_RD_BYTE14) 5625 #define G_DTU_RD_BYTE14(x) (((x) >> S_DTU_RD_BYTE14) & M_DTU_RD_BYTE14) 5626 5627 #define S_DTU_RD_BYTE13 8 5628 #define M_DTU_RD_BYTE13 0xffU 5629 #define V_DTU_RD_BYTE13(x) ((x) << S_DTU_RD_BYTE13) 5630 #define G_DTU_RD_BYTE13(x) (((x) >> S_DTU_RD_BYTE13) & M_DTU_RD_BYTE13) 5631 5632 #define S_DTU_RD_BYTE12 0 5633 #define M_DTU_RD_BYTE12 0xffU 5634 #define V_DTU_RD_BYTE12(x) ((x) << S_DTU_RD_BYTE12) 5635 #define G_DTU_RD_BYTE12(x) (((x) >> S_DTU_RD_BYTE12) & M_DTU_RD_BYTE12) 5636 5637 #define A_MC_DTULFSRWD 0x6434 5638 #define A_MC_PCTL_DTULFSRRD 0x6438 5639 #define A_MC_PCTL_DTUEAF 0x643c 5640 5641 #define S_EA_RANK 30 5642 #define M_EA_RANK 0x3U 5643 #define V_EA_RANK(x) ((x) << S_EA_RANK) 5644 #define G_EA_RANK(x) (((x) >> S_EA_RANK) & M_EA_RANK) 5645 5646 #define S_EA_ROW 13 5647 #define M_EA_ROW 0x1ffffU 5648 #define V_EA_ROW(x) ((x) << S_EA_ROW) 5649 #define G_EA_ROW(x) (((x) >> S_EA_ROW) & M_EA_ROW) 5650 5651 #define S_EA_BANK 10 5652 #define M_EA_BANK 0x7U 5653 #define V_EA_BANK(x) ((x) << S_EA_BANK) 5654 #define G_EA_BANK(x) (((x) >> S_EA_BANK) & M_EA_BANK) 5655 5656 #define S_EA_COLUMN 0 5657 #define M_EA_COLUMN 0x3ffU 5658 #define V_EA_COLUMN(x) ((x) << S_EA_COLUMN) 5659 #define G_EA_COLUMN(x) (((x) >> S_EA_COLUMN) & M_EA_COLUMN) 5660 5661 #define A_MC_PCTL_PHYPVTCFG 0x6500 5662 5663 #define S_PVT_UPD_REQ_EN 15 5664 #define V_PVT_UPD_REQ_EN(x) ((x) << S_PVT_UPD_REQ_EN) 5665 #define F_PVT_UPD_REQ_EN V_PVT_UPD_REQ_EN(1U) 5666 5667 #define S_PVT_UPD_TRIG_POL 14 5668 #define V_PVT_UPD_TRIG_POL(x) ((x) << S_PVT_UPD_TRIG_POL) 5669 #define F_PVT_UPD_TRIG_POL V_PVT_UPD_TRIG_POL(1U) 5670 5671 #define S_PVT_UPD_TRIG_TYPE 12 5672 #define V_PVT_UPD_TRIG_TYPE(x) ((x) << S_PVT_UPD_TRIG_TYPE) 5673 #define F_PVT_UPD_TRIG_TYPE V_PVT_UPD_TRIG_TYPE(1U) 5674 5675 #define S_PVT_UPD_DONE_POL 10 5676 #define V_PVT_UPD_DONE_POL(x) ((x) << S_PVT_UPD_DONE_POL) 5677 #define F_PVT_UPD_DONE_POL V_PVT_UPD_DONE_POL(1U) 5678 5679 #define S_PVT_UPD_DONE_TYPE 8 5680 #define M_PVT_UPD_DONE_TYPE 0x3U 5681 #define V_PVT_UPD_DONE_TYPE(x) ((x) << S_PVT_UPD_DONE_TYPE) 5682 #define G_PVT_UPD_DONE_TYPE(x) \ 5683 (((x) >> S_PVT_UPD_DONE_TYPE) & M_PVT_UPD_DONE_TYPE) 5684 5685 #define S_PHY_UPD_REQ_EN 7 5686 #define V_PHY_UPD_REQ_EN(x) ((x) << S_PHY_UPD_REQ_EN) 5687 #define F_PHY_UPD_REQ_EN V_PHY_UPD_REQ_EN(1U) 5688 5689 #define S_PHY_UPD_TRIG_POL 6 5690 #define V_PHY_UPD_TRIG_POL(x) ((x) << S_PHY_UPD_TRIG_POL) 5691 #define F_PHY_UPD_TRIG_POL V_PHY_UPD_TRIG_POL(1U) 5692 5693 #define S_PHY_UPD_TRIG_TYPE 4 5694 #define V_PHY_UPD_TRIG_TYPE(x) ((x) << S_PHY_UPD_TRIG_TYPE) 5695 #define F_PHY_UPD_TRIG_TYPE V_PHY_UPD_TRIG_TYPE(1U) 5696 5697 #define S_PHY_UPD_DONE_POL 2 5698 #define V_PHY_UPD_DONE_POL(x) ((x) << S_PHY_UPD_DONE_POL) 5699 #define F_PHY_UPD_DONE_POL V_PHY_UPD_DONE_POL(1U) 5700 5701 #define S_PHY_UPD_DONE_TYPE 0 5702 #define M_PHY_UPD_DONE_TYPE 0x3U 5703 #define V_PHY_UPD_DONE_TYPE(x) ((x) << S_PHY_UPD_DONE_TYPE) 5704 #define G_PHY_UPD_DONE_TYPE(x) \ 5705 (((x) >> S_PHY_UPD_DONE_TYPE) & M_PHY_UPD_DONE_TYPE) 5706 5707 #define A_MC_PCTL_PHYPVTSTAT 0x6504 5708 5709 #define S_I_PVT_UPD_TRIG 5 5710 #define V_I_PVT_UPD_TRIG(x) ((x) << S_I_PVT_UPD_TRIG) 5711 #define F_I_PVT_UPD_TRIG V_I_PVT_UPD_TRIG(1U) 5712 5713 #define S_I_PVT_UPD_DONE 4 5714 #define V_I_PVT_UPD_DONE(x) ((x) << S_I_PVT_UPD_DONE) 5715 #define F_I_PVT_UPD_DONE V_I_PVT_UPD_DONE(1U) 5716 5717 #define S_I_PHY_UPD_TRIG 1 5718 #define V_I_PHY_UPD_TRIG(x) ((x) << S_I_PHY_UPD_TRIG) 5719 #define F_I_PHY_UPD_TRIG V_I_PHY_UPD_TRIG(1U) 5720 5721 #define S_I_PHY_UPD_DONE 0 5722 #define V_I_PHY_UPD_DONE(x) ((x) << S_I_PHY_UPD_DONE) 5723 #define F_I_PHY_UPD_DONE V_I_PHY_UPD_DONE(1U) 5724 5725 #define A_MC_PCTL_PHYTUPDON 0x6508 5726 5727 #define S_PHY_T_UPDON 0 5728 #define M_PHY_T_UPDON 0xffU 5729 #define V_PHY_T_UPDON(x) ((x) << S_PHY_T_UPDON) 5730 #define G_PHY_T_UPDON(x) (((x) >> S_PHY_T_UPDON) & M_PHY_T_UPDON) 5731 5732 #define A_MC_PCTL_PHYTUPDDLY 0x650c 5733 5734 #define S_PHY_T_UPDDLY 0 5735 #define M_PHY_T_UPDDLY 0xfU 5736 #define V_PHY_T_UPDDLY(x) ((x) << S_PHY_T_UPDDLY) 5737 #define G_PHY_T_UPDDLY(x) (((x) >> S_PHY_T_UPDDLY) & M_PHY_T_UPDDLY) 5738 5739 #define A_MC_PCTL_PVTTUPON 0x6510 5740 5741 #define S_PVT_T_UPDON 0 5742 #define M_PVT_T_UPDON 0xffU 5743 #define V_PVT_T_UPDON(x) ((x) << S_PVT_T_UPDON) 5744 #define G_PVT_T_UPDON(x) (((x) >> S_PVT_T_UPDON) & M_PVT_T_UPDON) 5745 5746 #define A_MC_PCTL_PVTTUPDDLY 0x6514 5747 5748 #define S_PVT_T_UPDDLY 0 5749 #define M_PVT_T_UPDDLY 0xfU 5750 #define V_PVT_T_UPDDLY(x) ((x) << S_PVT_T_UPDDLY) 5751 #define G_PVT_T_UPDDLY(x) (((x) >> S_PVT_T_UPDDLY) & M_PVT_T_UPDDLY) 5752 5753 #define A_MC_PCTL_PHYPVTUPDI 0x6518 5754 5755 #define S_PHYPVT_T_UPDI 0 5756 #define M_PHYPVT_T_UPDI 0xffU 5757 #define V_PHYPVT_T_UPDI(x) ((x) << S_PHYPVT_T_UPDI) 5758 #define G_PHYPVT_T_UPDI(x) (((x) >> S_PHYPVT_T_UPDI) & M_PHYPVT_T_UPDI) 5759 5760 #define A_MC_PCTL_PHYIOCRV1 0x651c 5761 5762 #define S_BYTE_OE_CTL 16 5763 #define M_BYTE_OE_CTL 0x3U 5764 #define V_BYTE_OE_CTL(x) ((x) << S_BYTE_OE_CTL) 5765 #define G_BYTE_OE_CTL(x) (((x) >> S_BYTE_OE_CTL) & M_BYTE_OE_CTL) 5766 5767 #define S_DYN_SOC_ODT_ALAT 12 5768 #define M_DYN_SOC_ODT_ALAT 0xfU 5769 #define V_DYN_SOC_ODT_ALAT(x) ((x) << S_DYN_SOC_ODT_ALAT) 5770 #define G_DYN_SOC_ODT_ALAT(x) (((x) >> S_DYN_SOC_ODT_ALAT) & M_DYN_SOC_ODT_ALAT) 5771 5772 #define S_DYN_SOC_ODT_ATEN 8 5773 #define M_DYN_SOC_ODT_ATEN 0x3U 5774 #define V_DYN_SOC_ODT_ATEN(x) ((x) << S_DYN_SOC_ODT_ATEN) 5775 #define G_DYN_SOC_ODT_ATEN(x) (((x) >> S_DYN_SOC_ODT_ATEN) & M_DYN_SOC_ODT_ATEN) 5776 5777 #define S_DYN_SOC_ODT 2 5778 #define V_DYN_SOC_ODT(x) ((x) << S_DYN_SOC_ODT) 5779 #define F_DYN_SOC_ODT V_DYN_SOC_ODT(1U) 5780 5781 #define S_SOC_ODT_EN 0 5782 #define V_SOC_ODT_EN(x) ((x) << S_SOC_ODT_EN) 5783 #define F_SOC_ODT_EN V_SOC_ODT_EN(1U) 5784 5785 #define A_MC_PCTL_PHYTUPDWAIT 0x6520 5786 5787 #define S_PHY_T_UPDWAIT 0 5788 #define M_PHY_T_UPDWAIT 0x3fU 5789 #define V_PHY_T_UPDWAIT(x) ((x) << S_PHY_T_UPDWAIT) 5790 #define G_PHY_T_UPDWAIT(x) (((x) >> S_PHY_T_UPDWAIT) & M_PHY_T_UPDWAIT) 5791 5792 #define A_MC_PCTL_PVTTUPDWAIT 0x6524 5793 5794 #define S_PVT_T_UPDWAIT 0 5795 #define M_PVT_T_UPDWAIT 0x3fU 5796 #define V_PVT_T_UPDWAIT(x) ((x) << S_PVT_T_UPDWAIT) 5797 #define G_PVT_T_UPDWAIT(x) (((x) >> S_PVT_T_UPDWAIT) & M_PVT_T_UPDWAIT) 5798 5799 #define A_MC_DDR3PHYAC_GCR 0x6a00 5800 5801 #define S_WLRANK 8 5802 #define M_WLRANK 0x3U 5803 #define V_WLRANK(x) ((x) << S_WLRANK) 5804 #define G_WLRANK(x) (((x) >> S_WLRANK) & M_WLRANK) 5805 5806 #define S_FDEPTH 6 5807 #define M_FDEPTH 0x3U 5808 #define V_FDEPTH(x) ((x) << S_FDEPTH) 5809 #define G_FDEPTH(x) (((x) >> S_FDEPTH) & M_FDEPTH) 5810 5811 #define S_LPFDEPTH 4 5812 #define M_LPFDEPTH 0x3U 5813 #define V_LPFDEPTH(x) ((x) << S_LPFDEPTH) 5814 #define G_LPFDEPTH(x) (((x) >> S_LPFDEPTH) & M_LPFDEPTH) 5815 5816 #define S_LPFEN 3 5817 #define V_LPFEN(x) ((x) << S_LPFEN) 5818 #define F_LPFEN V_LPFEN(1U) 5819 5820 #define S_WL 2 5821 #define V_WL(x) ((x) << S_WL) 5822 #define F_WL V_WL(1U) 5823 5824 #define S_CAL 1 5825 #define V_CAL(x) ((x) << S_CAL) 5826 #define F_CAL V_CAL(1U) 5827 5828 #define S_MDLEN 0 5829 #define V_MDLEN(x) ((x) << S_MDLEN) 5830 #define F_MDLEN V_MDLEN(1U) 5831 5832 #define A_MC_DDR3PHYAC_RCR0 0x6a04 5833 5834 #define S_OCPONR 8 5835 #define V_OCPONR(x) ((x) << S_OCPONR) 5836 #define F_OCPONR V_OCPONR(1U) 5837 5838 #define S_OCPOND 7 5839 #define V_OCPOND(x) ((x) << S_OCPOND) 5840 #define F_OCPOND V_OCPOND(1U) 5841 5842 #define S_OCOEN 6 5843 #define V_OCOEN(x) ((x) << S_OCOEN) 5844 #define F_OCOEN V_OCOEN(1U) 5845 5846 #define S_CKEPONR 5 5847 #define V_CKEPONR(x) ((x) << S_CKEPONR) 5848 #define F_CKEPONR V_CKEPONR(1U) 5849 5850 #define S_CKEPOND 4 5851 #define V_CKEPOND(x) ((x) << S_CKEPOND) 5852 #define F_CKEPOND V_CKEPOND(1U) 5853 5854 #define S_CKEOEN 3 5855 #define V_CKEOEN(x) ((x) << S_CKEOEN) 5856 #define F_CKEOEN V_CKEOEN(1U) 5857 5858 #define S_CKPONR 2 5859 #define V_CKPONR(x) ((x) << S_CKPONR) 5860 #define F_CKPONR V_CKPONR(1U) 5861 5862 #define S_CKPOND 1 5863 #define V_CKPOND(x) ((x) << S_CKPOND) 5864 #define F_CKPOND V_CKPOND(1U) 5865 5866 #define S_CKOEN 0 5867 #define V_CKOEN(x) ((x) << S_CKOEN) 5868 #define F_CKOEN V_CKOEN(1U) 5869 5870 #define A_MC_DDR3PHYAC_ACCR 0x6a14 5871 5872 #define S_ACPONR 8 5873 #define V_ACPONR(x) ((x) << S_ACPONR) 5874 #define F_ACPONR V_ACPONR(1U) 5875 5876 #define S_ACPOND 7 5877 #define V_ACPOND(x) ((x) << S_ACPOND) 5878 #define F_ACPOND V_ACPOND(1U) 5879 5880 #define S_ACOEN 6 5881 #define V_ACOEN(x) ((x) << S_ACOEN) 5882 #define F_ACOEN V_ACOEN(1U) 5883 5884 #define S_CK5PONR 5 5885 #define V_CK5PONR(x) ((x) << S_CK5PONR) 5886 #define F_CK5PONR V_CK5PONR(1U) 5887 5888 #define S_CK5POND 4 5889 #define V_CK5POND(x) ((x) << S_CK5POND) 5890 #define F_CK5POND V_CK5POND(1U) 5891 5892 #define S_CK5OEN 3 5893 #define V_CK5OEN(x) ((x) << S_CK5OEN) 5894 #define F_CK5OEN V_CK5OEN(1U) 5895 5896 #define S_CK4PONR 2 5897 #define V_CK4PONR(x) ((x) << S_CK4PONR) 5898 #define F_CK4PONR V_CK4PONR(1U) 5899 5900 #define S_CK4POND 1 5901 #define V_CK4POND(x) ((x) << S_CK4POND) 5902 #define F_CK4POND V_CK4POND(1U) 5903 5904 #define S_CK4OEN 0 5905 #define V_CK4OEN(x) ((x) << S_CK4OEN) 5906 #define F_CK4OEN V_CK4OEN(1U) 5907 5908 #define A_MC_DDR3PHYAC_GSR 0x6a18 5909 5910 #define S_WLERR 4 5911 #define V_WLERR(x) ((x) << S_WLERR) 5912 #define F_WLERR V_WLERR(1U) 5913 5914 #define S_INIT 3 5915 #define V_INIT(x) ((x) << S_INIT) 5916 #define F_INIT V_INIT(1U) 5917 5918 #define S_ACCAL 0 5919 #define V_ACCAL(x) ((x) << S_ACCAL) 5920 #define F_ACCAL V_ACCAL(1U) 5921 5922 #define A_MC_DDR3PHYAC_ECSR 0x6a1c 5923 5924 #define S_WLDEC 1 5925 #define V_WLDEC(x) ((x) << S_WLDEC) 5926 #define F_WLDEC V_WLDEC(1U) 5927 5928 #define S_WLINC 0 5929 #define V_WLINC(x) ((x) << S_WLINC) 5930 #define F_WLINC V_WLINC(1U) 5931 5932 #define A_MC_DDR3PHYAC_OCSR 0x6a20 5933 #define A_MC_DDR3PHYAC_MDIPR 0x6a24 5934 5935 #define S_PRD 0 5936 #define M_PRD 0x3ffU 5937 #define V_PRD(x) ((x) << S_PRD) 5938 #define G_PRD(x) (((x) >> S_PRD) & M_PRD) 5939 5940 #define A_MC_DDR3PHYAC_MDTPR 0x6a28 5941 #define A_MC_DDR3PHYAC_MDPPR0 0x6a2c 5942 #define A_MC_DDR3PHYAC_MDPPR1 0x6a30 5943 #define A_MC_DDR3PHYAC_PMBDR0 0x6a34 5944 5945 #define S_DFLTDLY 0 5946 #define M_DFLTDLY 0x7fU 5947 #define V_DFLTDLY(x) ((x) << S_DFLTDLY) 5948 #define G_DFLTDLY(x) (((x) >> S_DFLTDLY) & M_DFLTDLY) 5949 5950 #define A_MC_DDR3PHYAC_PMBDR1 0x6a38 5951 #define A_MC_DDR3PHYAC_ACR 0x6a60 5952 5953 #define S_TSEL 9 5954 #define V_TSEL(x) ((x) << S_TSEL) 5955 #define F_TSEL V_TSEL(1U) 5956 5957 #define S_ISEL 7 5958 #define M_ISEL 0x3U 5959 #define V_ISEL(x) ((x) << S_ISEL) 5960 #define G_ISEL(x) (((x) >> S_ISEL) & M_ISEL) 5961 5962 #define S_CALBYP 2 5963 #define V_CALBYP(x) ((x) << S_CALBYP) 5964 #define F_CALBYP V_CALBYP(1U) 5965 5966 #define S_SDRSELINV 1 5967 #define V_SDRSELINV(x) ((x) << S_SDRSELINV) 5968 #define F_SDRSELINV V_SDRSELINV(1U) 5969 5970 #define S_CKINV 0 5971 #define V_CKINV(x) ((x) << S_CKINV) 5972 #define F_CKINV V_CKINV(1U) 5973 5974 #define A_MC_DDR3PHYAC_PSCR 0x6a64 5975 5976 #define S_PSCALE 0 5977 #define M_PSCALE 0x3ffU 5978 #define V_PSCALE(x) ((x) << S_PSCALE) 5979 #define G_PSCALE(x) (((x) >> S_PSCALE) & M_PSCALE) 5980 5981 #define A_MC_DDR3PHYAC_PRCR 0x6a68 5982 5983 #define S_PHYINIT 9 5984 #define V_PHYINIT(x) ((x) << S_PHYINIT) 5985 #define F_PHYINIT V_PHYINIT(1U) 5986 5987 #define S_PHYHRST 7 5988 #define V_PHYHRST(x) ((x) << S_PHYHRST) 5989 #define F_PHYHRST V_PHYHRST(1U) 5990 5991 #define S_RSTCLKS 3 5992 #define M_RSTCLKS 0xfU 5993 #define V_RSTCLKS(x) ((x) << S_RSTCLKS) 5994 #define G_RSTCLKS(x) (((x) >> S_RSTCLKS) & M_RSTCLKS) 5995 5996 #define S_PLLPD 2 5997 #define V_PLLPD(x) ((x) << S_PLLPD) 5998 #define F_PLLPD V_PLLPD(1U) 5999 6000 #define S_PLLRST 1 6001 #define V_PLLRST(x) ((x) << S_PLLRST) 6002 #define F_PLLRST V_PLLRST(1U) 6003 6004 #define S_PHYRST 0 6005 #define V_PHYRST(x) ((x) << S_PHYRST) 6006 #define F_PHYRST V_PHYRST(1U) 6007 6008 #define A_MC_DDR3PHYAC_PLLCR0 0x6a6c 6009 6010 #define S_RSTCXKS 4 6011 #define M_RSTCXKS 0x1fU 6012 #define V_RSTCXKS(x) ((x) << S_RSTCXKS) 6013 #define G_RSTCXKS(x) (((x) >> S_RSTCXKS) & M_RSTCXKS) 6014 6015 #define S_ICPSEL 3 6016 #define V_ICPSEL(x) ((x) << S_ICPSEL) 6017 #define F_ICPSEL V_ICPSEL(1U) 6018 6019 #define S_TESTA 0 6020 #define M_TESTA 0x7U 6021 #define V_TESTA(x) ((x) << S_TESTA) 6022 #define G_TESTA(x) (((x) >> S_TESTA) & M_TESTA) 6023 6024 #define A_MC_DDR3PHYAC_PLLCR1 0x6a70 6025 6026 #define S_BYPASS 9 6027 #define V_BYPASS(x) ((x) << S_BYPASS) 6028 #define F_BYPASS V_BYPASS(1U) 6029 6030 #define S_BDIV 3 6031 #define M_BDIV 0x3U 6032 #define V_BDIV(x) ((x) << S_BDIV) 6033 #define G_BDIV(x) (((x) >> S_BDIV) & M_BDIV) 6034 6035 #define S_TESTD 0 6036 #define M_TESTD 0x7U 6037 #define V_TESTD(x) ((x) << S_TESTD) 6038 #define G_TESTD(x) (((x) >> S_TESTD) & M_TESTD) 6039 6040 #define A_MC_DDR3PHYAC_CLKENR 0x6a78 6041 6042 #define S_CKCLKEN 3 6043 #define M_CKCLKEN 0x3fU 6044 #define V_CKCLKEN(x) ((x) << S_CKCLKEN) 6045 #define G_CKCLKEN(x) (((x) >> S_CKCLKEN) & M_CKCLKEN) 6046 6047 #define S_HDRCLKEN 2 6048 #define V_HDRCLKEN(x) ((x) << S_HDRCLKEN) 6049 #define F_HDRCLKEN V_HDRCLKEN(1U) 6050 6051 #define S_SDRCLKEN 1 6052 #define V_SDRCLKEN(x) ((x) << S_SDRCLKEN) 6053 #define F_SDRCLKEN V_SDRCLKEN(1U) 6054 6055 #define S_DDRCLKEN 0 6056 #define V_DDRCLKEN(x) ((x) << S_DDRCLKEN) 6057 #define F_DDRCLKEN V_DDRCLKEN(1U) 6058 6059 #define A_MC_DDR3PHYDATX8_GCR 0x6b00 6060 6061 #define S_PONR 6 6062 #define V_PONR(x) ((x) << S_PONR) 6063 #define F_PONR V_PONR(1U) 6064 6065 #define S_POND 5 6066 #define V_POND(x) ((x) << S_POND) 6067 #define F_POND V_POND(1U) 6068 6069 #define S_RDBDVT 4 6070 #define V_RDBDVT(x) ((x) << S_RDBDVT) 6071 #define F_RDBDVT V_RDBDVT(1U) 6072 6073 #define S_WDBDVT 3 6074 #define V_WDBDVT(x) ((x) << S_WDBDVT) 6075 #define F_WDBDVT V_WDBDVT(1U) 6076 6077 #define S_RDSDVT 2 6078 #define V_RDSDVT(x) ((x) << S_RDSDVT) 6079 #define F_RDSDVT V_RDSDVT(1U) 6080 6081 #define S_WDSDVT 1 6082 #define V_WDSDVT(x) ((x) << S_WDSDVT) 6083 #define F_WDSDVT V_WDSDVT(1U) 6084 6085 #define S_WLSDVT 0 6086 #define V_WLSDVT(x) ((x) << S_WLSDVT) 6087 #define F_WLSDVT V_WLSDVT(1U) 6088 6089 #define A_MC_DDR3PHYDATX8_WDSDR 0x6b04 6090 6091 #define S_WDSDR_DLY 0 6092 #define M_WDSDR_DLY 0x3ffU 6093 #define V_WDSDR_DLY(x) ((x) << S_WDSDR_DLY) 6094 #define G_WDSDR_DLY(x) (((x) >> S_WDSDR_DLY) & M_WDSDR_DLY) 6095 6096 #define A_MC_DDR3PHYDATX8_WLDPR 0x6b08 6097 #define A_MC_DDR3PHYDATX8_WLDR 0x6b0c 6098 6099 #define S_WL_DLY 0 6100 #define M_WL_DLY 0x3ffU 6101 #define V_WL_DLY(x) ((x) << S_WL_DLY) 6102 #define G_WL_DLY(x) (((x) >> S_WL_DLY) & M_WL_DLY) 6103 6104 #define A_MC_DDR3PHYDATX8_WDBDR0 0x6b1c 6105 6106 #define S_DLY 0 6107 #define M_DLY 0x7fU 6108 #define V_DLY(x) ((x) << S_DLY) 6109 #define G_DLY(x) (((x) >> S_DLY) & M_DLY) 6110 6111 #define A_MC_DDR3PHYDATX8_WDBDR1 0x6b20 6112 #define A_MC_DDR3PHYDATX8_WDBDR2 0x6b24 6113 #define A_MC_DDR3PHYDATX8_WDBDR3 0x6b28 6114 #define A_MC_DDR3PHYDATX8_WDBDR4 0x6b2c 6115 #define A_MC_DDR3PHYDATX8_WDBDR5 0x6b30 6116 #define A_MC_DDR3PHYDATX8_WDBDR6 0x6b34 6117 #define A_MC_DDR3PHYDATX8_WDBDR7 0x6b38 6118 #define A_MC_DDR3PHYDATX8_WDBDR8 0x6b3c 6119 #define A_MC_DDR3PHYDATX8_WDBDMR 0x6b40 6120 6121 #define S_MAXDLY 0 6122 #define M_MAXDLY 0x7fU 6123 #define V_MAXDLY(x) ((x) << S_MAXDLY) 6124 #define G_MAXDLY(x) (((x) >> S_MAXDLY) & M_MAXDLY) 6125 6126 #define A_MC_DDR3PHYDATX8_RDSDR 0x6b44 6127 6128 #define S_RDSDR_DLY 0 6129 #define M_RDSDR_DLY 0x3ffU 6130 #define V_RDSDR_DLY(x) ((x) << S_RDSDR_DLY) 6131 #define G_RDSDR_DLY(x) (((x) >> S_RDSDR_DLY) & M_RDSDR_DLY) 6132 6133 #define A_MC_DDR3PHYDATX8_RDBDR0 0x6b48 6134 #define A_MC_DDR3PHYDATX8_RDBDR1 0x6b4c 6135 #define A_MC_DDR3PHYDATX8_RDBDR2 0x6b50 6136 #define A_MC_DDR3PHYDATX8_RDBDR3 0x6b54 6137 #define A_MC_DDR3PHYDATX8_RDBDR4 0x6b58 6138 #define A_MC_DDR3PHYDATX8_RDBDR5 0x6b5c 6139 #define A_MC_DDR3PHYDATX8_RDBDR6 0x6b60 6140 #define A_MC_DDR3PHYDATX8_RDBDR7 0x6b64 6141 #define A_MC_DDR3PHYDATX8_RDBDMR 0x6b68 6142 #define A_MC_DDR3PHYDATX8_PMBDR0 0x6b6c 6143 #define A_MC_DDR3PHYDATX8_PMBDR1 0x6b70 6144 #define A_MC_DDR3PHYDATX8_PMBDR2 0x6b74 6145 #define A_MC_DDR3PHYDATX8_PMBDR3 0x6b78 6146 #define A_MC_DDR3PHYDATX8_WDBDPR 0x6b7c 6147 6148 #define S_DP_DLY 0 6149 #define M_DP_DLY 0x1ffU 6150 #define V_DP_DLY(x) ((x) << S_DP_DLY) 6151 #define G_DP_DLY(x) (((x) >> S_DP_DLY) & M_DP_DLY) 6152 6153 #define A_MC_DDR3PHYDATX8_RDBDPR 0x6b80 6154 #define A_MC_DDR3PHYDATX8_GSR 0x6b84 6155 6156 #define S_WLDONE 3 6157 #define V_WLDONE(x) ((x) << S_WLDONE) 6158 #define F_WLDONE V_WLDONE(1U) 6159 6160 #define S_WLCAL 2 6161 #define V_WLCAL(x) ((x) << S_WLCAL) 6162 #define F_WLCAL V_WLCAL(1U) 6163 6164 #define S_READ 1 6165 #define V_READ(x) ((x) << S_READ) 6166 #define F_READ V_READ(1U) 6167 6168 #define S_RDQSCAL 0 6169 #define V_RDQSCAL(x) ((x) << S_RDQSCAL) 6170 #define F_RDQSCAL V_RDQSCAL(1U) 6171 6172 #define A_MC_DDR3PHYDATX8_ACR 0x6bf0 6173 6174 #define S_PHYHSRST 9 6175 #define V_PHYHSRST(x) ((x) << S_PHYHSRST) 6176 #define F_PHYHSRST V_PHYHSRST(1U) 6177 6178 #define S_WLSTEP 8 6179 #define V_WLSTEP(x) ((x) << S_WLSTEP) 6180 #define F_WLSTEP V_WLSTEP(1U) 6181 6182 #define S_SDR_SEL_INV 2 6183 #define V_SDR_SEL_INV(x) ((x) << S_SDR_SEL_INV) 6184 #define F_SDR_SEL_INV V_SDR_SEL_INV(1U) 6185 6186 #define S_DDRSELINV 1 6187 #define V_DDRSELINV(x) ((x) << S_DDRSELINV) 6188 #define F_DDRSELINV V_DDRSELINV(1U) 6189 6190 #define S_DSINV 0 6191 #define V_DSINV(x) ((x) << S_DSINV) 6192 #define F_DSINV V_DSINV(1U) 6193 6194 #define A_MC_DDR3PHYDATX8_RSR 0x6bf4 6195 6196 #define S_WLRANKSEL 9 6197 #define V_WLRANKSEL(x) ((x) << S_WLRANKSEL) 6198 #define F_WLRANKSEL V_WLRANKSEL(1U) 6199 6200 #define S_RANK 0 6201 #define M_RANK 0x3U 6202 #define V_RANK(x) ((x) << S_RANK) 6203 #define G_RANK(x) (((x) >> S_RANK) & M_RANK) 6204 6205 #define A_MC_DDR3PHYDATX8_CLKENR 0x6bf8 6206 6207 #define S_DTOSEL 8 6208 #define M_DTOSEL 0x3U 6209 #define V_DTOSEL(x) ((x) << S_DTOSEL) 6210 #define G_DTOSEL(x) (((x) >> S_DTOSEL) & M_DTOSEL) 6211 6212 #define A_MC_PVT_REG_CALIBRATE_CTL 0x7400 6213 #define A_MC_PVT_REG_UPDATE_CTL 0x7404 6214 #define A_MC_PVT_REG_LAST_MEASUREMENT 0x7408 6215 #define A_MC_PVT_REG_DRVN 0x740c 6216 #define A_MC_PVT_REG_DRVP 0x7410 6217 #define A_MC_PVT_REG_TERMN 0x7414 6218 #define A_MC_PVT_REG_TERMP 0x7418 6219 #define A_MC_PVT_REG_THRESHOLD 0x741c 6220 #define A_MC_PVT_REG_IN_TERMP 0x7420 6221 #define A_MC_PVT_REG_IN_TERMN 0x7424 6222 #define A_MC_PVT_REG_IN_DRVP 0x7428 6223 #define A_MC_PVT_REG_IN_DRVN 0x742c 6224 #define A_MC_PVT_REG_OUT_TERMP 0x7430 6225 #define A_MC_PVT_REG_OUT_TERMN 0x7434 6226 #define A_MC_PVT_REG_OUT_DRVP 0x7438 6227 #define A_MC_PVT_REG_OUT_DRVN 0x743c 6228 #define A_MC_PVT_REG_HISTORY_TERMP 0x7440 6229 #define A_MC_PVT_REG_HISTORY_TERMN 0x7444 6230 #define A_MC_PVT_REG_HISTORY_DRVP 0x7448 6231 #define A_MC_PVT_REG_HISTORY_DRVN 0x744c 6232 #define A_MC_PVT_REG_SAMPLE_WAIT_CLKS 0x7450 6233 #define A_MC_DDRPHY_RST_CTRL 0x7500 6234 6235 #define S_DDRIO_ENABLE 1 6236 #define V_DDRIO_ENABLE(x) ((x) << S_DDRIO_ENABLE) 6237 #define F_DDRIO_ENABLE V_DDRIO_ENABLE(1U) 6238 6239 #define S_PHY_RST_N 0 6240 #define V_PHY_RST_N(x) ((x) << S_PHY_RST_N) 6241 #define F_PHY_RST_N V_PHY_RST_N(1U) 6242 6243 #define A_MC_PERFORMANCE_CTRL 0x7504 6244 6245 #define S_STALL_CHK_BIT 2 6246 #define V_STALL_CHK_BIT(x) ((x) << S_STALL_CHK_BIT) 6247 #define F_STALL_CHK_BIT V_STALL_CHK_BIT(1U) 6248 6249 #define S_DDR3_BRC_MODE 1 6250 #define V_DDR3_BRC_MODE(x) ((x) << S_DDR3_BRC_MODE) 6251 #define F_DDR3_BRC_MODE V_DDR3_BRC_MODE(1U) 6252 6253 #define S_RMW_PERF_CTRL 0 6254 #define V_RMW_PERF_CTRL(x) ((x) << S_RMW_PERF_CTRL) 6255 #define F_RMW_PERF_CTRL V_RMW_PERF_CTRL(1U) 6256 6257 #define A_MC_ECC_CTRL 0x7508 6258 6259 #define S_ECC_BYPASS_BIST 1 6260 #define V_ECC_BYPASS_BIST(x) ((x) << S_ECC_BYPASS_BIST) 6261 #define F_ECC_BYPASS_BIST V_ECC_BYPASS_BIST(1U) 6262 6263 #define S_ECC_DISABLE 0 6264 #define V_ECC_DISABLE(x) ((x) << S_ECC_DISABLE) 6265 #define F_ECC_DISABLE V_ECC_DISABLE(1U) 6266 6267 #define A_MC_PAR_ENABLE 0x750c 6268 6269 #define S_ECC_UE_PAR_ENABLE 3 6270 #define V_ECC_UE_PAR_ENABLE(x) ((x) << S_ECC_UE_PAR_ENABLE) 6271 #define F_ECC_UE_PAR_ENABLE V_ECC_UE_PAR_ENABLE(1U) 6272 6273 #define S_ECC_CE_PAR_ENABLE 2 6274 #define V_ECC_CE_PAR_ENABLE(x) ((x) << S_ECC_CE_PAR_ENABLE) 6275 #define F_ECC_CE_PAR_ENABLE V_ECC_CE_PAR_ENABLE(1U) 6276 6277 #define S_PERR_REG_INT_ENABLE 1 6278 #define V_PERR_REG_INT_ENABLE(x) ((x) << S_PERR_REG_INT_ENABLE) 6279 #define F_PERR_REG_INT_ENABLE V_PERR_REG_INT_ENABLE(1U) 6280 6281 #define S_PERR_BLK_INT_ENABLE 0 6282 #define V_PERR_BLK_INT_ENABLE(x) ((x) << S_PERR_BLK_INT_ENABLE) 6283 #define F_PERR_BLK_INT_ENABLE V_PERR_BLK_INT_ENABLE(1U) 6284 6285 #define A_MC_PAR_CAUSE 0x7510 6286 6287 #define S_ECC_UE_PAR_CAUSE 3 6288 #define V_ECC_UE_PAR_CAUSE(x) ((x) << S_ECC_UE_PAR_CAUSE) 6289 #define F_ECC_UE_PAR_CAUSE V_ECC_UE_PAR_CAUSE(1U) 6290 6291 #define S_ECC_CE_PAR_CAUSE 2 6292 #define V_ECC_CE_PAR_CAUSE(x) ((x) << S_ECC_CE_PAR_CAUSE) 6293 #define F_ECC_CE_PAR_CAUSE V_ECC_CE_PAR_CAUSE(1U) 6294 6295 #define S_FIFOR_PAR_CAUSE 1 6296 #define V_FIFOR_PAR_CAUSE(x) ((x) << S_FIFOR_PAR_CAUSE) 6297 #define F_FIFOR_PAR_CAUSE V_FIFOR_PAR_CAUSE(1U) 6298 6299 #define S_RDATA_FIFOR_PAR_CAUSE 0 6300 #define V_RDATA_FIFOR_PAR_CAUSE(x) ((x) << S_RDATA_FIFOR_PAR_CAUSE) 6301 #define F_RDATA_FIFOR_PAR_CAUSE V_RDATA_FIFOR_PAR_CAUSE(1U) 6302 6303 #define A_MC_INT_ENABLE 0x7514 6304 6305 #define S_ECC_UE_INT_ENABLE 2 6306 #define V_ECC_UE_INT_ENABLE(x) ((x) << S_ECC_UE_INT_ENABLE) 6307 #define F_ECC_UE_INT_ENABLE V_ECC_UE_INT_ENABLE(1U) 6308 6309 #define S_ECC_CE_INT_ENABLE 1 6310 #define V_ECC_CE_INT_ENABLE(x) ((x) << S_ECC_CE_INT_ENABLE) 6311 #define F_ECC_CE_INT_ENABLE V_ECC_CE_INT_ENABLE(1U) 6312 6313 #define S_PERR_INT_ENABLE 0 6314 #define V_PERR_INT_ENABLE(x) ((x) << S_PERR_INT_ENABLE) 6315 #define F_PERR_INT_ENABLE V_PERR_INT_ENABLE(1U) 6316 6317 #define A_MC_INT_CAUSE 0x7518 6318 6319 #define S_ECC_UE_INT_CAUSE 2 6320 #define V_ECC_UE_INT_CAUSE(x) ((x) << S_ECC_UE_INT_CAUSE) 6321 #define F_ECC_UE_INT_CAUSE V_ECC_UE_INT_CAUSE(1U) 6322 6323 #define S_ECC_CE_INT_CAUSE 1 6324 #define V_ECC_CE_INT_CAUSE(x) ((x) << S_ECC_CE_INT_CAUSE) 6325 #define F_ECC_CE_INT_CAUSE V_ECC_CE_INT_CAUSE(1U) 6326 6327 #define S_PERR_INT_CAUSE 0 6328 #define V_PERR_INT_CAUSE(x) ((x) << S_PERR_INT_CAUSE) 6329 #define F_PERR_INT_CAUSE V_PERR_INT_CAUSE(1U) 6330 6331 #define A_MC_ECC_STATUS 0x751c 6332 6333 #define S_ECC_CECNT 16 6334 #define M_ECC_CECNT 0xffffU 6335 #define V_ECC_CECNT(x) ((x) << S_ECC_CECNT) 6336 #define G_ECC_CECNT(x) (((x) >> S_ECC_CECNT) & M_ECC_CECNT) 6337 6338 #define S_ECC_UECNT 0 6339 #define M_ECC_UECNT 0xffffU 6340 #define V_ECC_UECNT(x) ((x) << S_ECC_UECNT) 6341 #define G_ECC_UECNT(x) (((x) >> S_ECC_UECNT) & M_ECC_UECNT) 6342 6343 #define A_MC_PHY_CTRL 0x7520 6344 6345 #define S_CTLPHYRR 0 6346 #define V_CTLPHYRR(x) ((x) << S_CTLPHYRR) 6347 #define F_CTLPHYRR V_CTLPHYRR(1U) 6348 6349 #define A_MC_STATIC_CFG_STATUS 0x7524 6350 6351 #define S_STATIC_MODE 9 6352 #define V_STATIC_MODE(x) ((x) << S_STATIC_MODE) 6353 #define F_STATIC_MODE V_STATIC_MODE(1U) 6354 6355 #define S_STATIC_DEN 6 6356 #define M_STATIC_DEN 0x7U 6357 #define V_STATIC_DEN(x) ((x) << S_STATIC_DEN) 6358 #define G_STATIC_DEN(x) (((x) >> S_STATIC_DEN) & M_STATIC_DEN) 6359 6360 #define S_STATIC_ORG 5 6361 #define V_STATIC_ORG(x) ((x) << S_STATIC_ORG) 6362 #define F_STATIC_ORG V_STATIC_ORG(1U) 6363 6364 #define S_STATIC_RKS 4 6365 #define V_STATIC_RKS(x) ((x) << S_STATIC_RKS) 6366 #define F_STATIC_RKS V_STATIC_RKS(1U) 6367 6368 #define S_STATIC_WIDTH 1 6369 #define M_STATIC_WIDTH 0x7U 6370 #define V_STATIC_WIDTH(x) ((x) << S_STATIC_WIDTH) 6371 #define G_STATIC_WIDTH(x) (((x) >> S_STATIC_WIDTH) & M_STATIC_WIDTH) 6372 6373 #define S_STATIC_SLOW 0 6374 #define V_STATIC_SLOW(x) ((x) << S_STATIC_SLOW) 6375 #define F_STATIC_SLOW V_STATIC_SLOW(1U) 6376 6377 #define A_MC_CORE_PCTL_STAT 0x7528 6378 6379 #define S_PCTL_ACCESS_STAT 0 6380 #define M_PCTL_ACCESS_STAT 0x7U 6381 #define V_PCTL_ACCESS_STAT(x) ((x) << S_PCTL_ACCESS_STAT) 6382 #define G_PCTL_ACCESS_STAT(x) (((x) >> S_PCTL_ACCESS_STAT) & M_PCTL_ACCESS_STAT) 6383 6384 #define A_MC_DEBUG_CNT 0x752c 6385 6386 #define S_WDATA_OCNT 8 6387 #define M_WDATA_OCNT 0x1fU 6388 #define V_WDATA_OCNT(x) ((x) << S_WDATA_OCNT) 6389 #define G_WDATA_OCNT(x) (((x) >> S_WDATA_OCNT) & M_WDATA_OCNT) 6390 6391 #define S_RDATA_OCNT 0 6392 #define M_RDATA_OCNT 0x1fU 6393 #define V_RDATA_OCNT(x) ((x) << S_RDATA_OCNT) 6394 #define G_RDATA_OCNT(x) (((x) >> S_RDATA_OCNT) & M_RDATA_OCNT) 6395 6396 #define A_MC_BONUS 0x7530 6397 #define A_MC_BIST_CMD 0x7600 6398 6399 #define S_START_BIST 31 6400 #define V_START_BIST(x) ((x) << S_START_BIST) 6401 #define F_START_BIST V_START_BIST(1U) 6402 6403 #define S_BIST_CMD_GAP 8 6404 #define M_BIST_CMD_GAP 0xffU 6405 #define V_BIST_CMD_GAP(x) ((x) << S_BIST_CMD_GAP) 6406 #define G_BIST_CMD_GAP(x) (((x) >> S_BIST_CMD_GAP) & M_BIST_CMD_GAP) 6407 6408 #define S_BIST_OPCODE 0 6409 #define M_BIST_OPCODE 0x3U 6410 #define V_BIST_OPCODE(x) ((x) << S_BIST_OPCODE) 6411 #define G_BIST_OPCODE(x) (((x) >> S_BIST_OPCODE) & M_BIST_OPCODE) 6412 6413 #define A_MC_BIST_CMD_ADDR 0x7604 6414 #define A_MC_BIST_CMD_LEN 0x7608 6415 #define A_MC_BIST_DATA_PATTERN 0x760c 6416 6417 #define S_BIST_DATA_TYPE 0 6418 #define M_BIST_DATA_TYPE 0xfU 6419 #define V_BIST_DATA_TYPE(x) ((x) << S_BIST_DATA_TYPE) 6420 #define G_BIST_DATA_TYPE(x) (((x) >> S_BIST_DATA_TYPE) & M_BIST_DATA_TYPE) 6421 6422 #define A_MC_BIST_USER_WDATA0 0x7614 6423 #define A_MC_BIST_USER_WDATA1 0x7618 6424 #define A_MC_BIST_USER_WDATA2 0x761c 6425 6426 #define S_USER_DATA2 0 6427 #define M_USER_DATA2 0xffU 6428 #define V_USER_DATA2(x) ((x) << S_USER_DATA2) 6429 #define G_USER_DATA2(x) (((x) >> S_USER_DATA2) & M_USER_DATA2) 6430 6431 #define A_MC_BIST_NUM_ERR 0x7680 6432 #define A_MC_BIST_ERR_FIRST_ADDR 0x7684 6433 #define A_MC_BIST_STATUS_RDATA 0x7688 6434 6435 /* registers for module MA */ 6436 #define MA_BASE_ADDR 0x7700 6437 6438 #define A_MA_CLIENT0_RD_LATENCY_THRESHOLD 0x7700 6439 6440 #define S_THRESHOLD1 17 6441 #define M_THRESHOLD1 0x7fffU 6442 #define V_THRESHOLD1(x) ((x) << S_THRESHOLD1) 6443 #define G_THRESHOLD1(x) (((x) >> S_THRESHOLD1) & M_THRESHOLD1) 6444 6445 #define S_THRESHOLD1_EN 16 6446 #define V_THRESHOLD1_EN(x) ((x) << S_THRESHOLD1_EN) 6447 #define F_THRESHOLD1_EN V_THRESHOLD1_EN(1U) 6448 6449 #define S_THRESHOLD0 1 6450 #define M_THRESHOLD0 0x7fffU 6451 #define V_THRESHOLD0(x) ((x) << S_THRESHOLD0) 6452 #define G_THRESHOLD0(x) (((x) >> S_THRESHOLD0) & M_THRESHOLD0) 6453 6454 #define S_THRESHOLD0_EN 0 6455 #define V_THRESHOLD0_EN(x) ((x) << S_THRESHOLD0_EN) 6456 #define F_THRESHOLD0_EN V_THRESHOLD0_EN(1U) 6457 6458 #define A_MA_CLIENT0_WR_LATENCY_THRESHOLD 0x7704 6459 #define A_MA_CLIENT1_RD_LATENCY_THRESHOLD 0x7708 6460 #define A_MA_CLIENT1_WR_LATENCY_THRESHOLD 0x770c 6461 #define A_MA_CLIENT2_RD_LATENCY_THRESHOLD 0x7710 6462 #define A_MA_CLIENT2_WR_LATENCY_THRESHOLD 0x7714 6463 #define A_MA_CLIENT3_RD_LATENCY_THRESHOLD 0x7718 6464 #define A_MA_CLIENT3_WR_LATENCY_THRESHOLD 0x771c 6465 #define A_MA_CLIENT4_RD_LATENCY_THRESHOLD 0x7720 6466 #define A_MA_CLIENT4_WR_LATENCY_THRESHOLD 0x7724 6467 #define A_MA_CLIENT5_RD_LATENCY_THRESHOLD 0x7728 6468 #define A_MA_CLIENT5_WR_LATENCY_THRESHOLD 0x772c 6469 #define A_MA_CLIENT6_RD_LATENCY_THRESHOLD 0x7730 6470 #define A_MA_CLIENT6_WR_LATENCY_THRESHOLD 0x7734 6471 #define A_MA_CLIENT7_RD_LATENCY_THRESHOLD 0x7738 6472 #define A_MA_CLIENT7_WR_LATENCY_THRESHOLD 0x773c 6473 #define A_MA_CLIENT8_RD_LATENCY_THRESHOLD 0x7740 6474 #define A_MA_CLIENT8_WR_LATENCY_THRESHOLD 0x7744 6475 #define A_MA_CLIENT9_RD_LATENCY_THRESHOLD 0x7748 6476 #define A_MA_CLIENT9_WR_LATENCY_THRESHOLD 0x774c 6477 #define A_MA_CLIENT10_RD_LATENCY_THRESHOLD 0x7750 6478 #define A_MA_CLIENT10_WR_LATENCY_THRESHOLD 0x7754 6479 #define A_MA_CLIENT11_RD_LATENCY_THRESHOLD 0x7758 6480 #define A_MA_CLIENT11_WR_LATENCY_THRESHOLD 0x775c 6481 #define A_MA_CLIENT12_RD_LATENCY_THRESHOLD 0x7760 6482 #define A_MA_CLIENT12_WR_LATENCY_THRESHOLD 0x7764 6483 #define A_MA_SGE_TH0_DEBUG_CNT 0x7768 6484 6485 #define S_DBG_READ_DATA_CNT 24 6486 #define M_DBG_READ_DATA_CNT 0xffU 6487 #define V_DBG_READ_DATA_CNT(x) ((x) << S_DBG_READ_DATA_CNT) 6488 #define G_DBG_READ_DATA_CNT(x) \ 6489 (((x) >> S_DBG_READ_DATA_CNT) & M_DBG_READ_DATA_CNT) 6490 6491 #define S_DBG_READ_REQ_CNT 16 6492 #define M_DBG_READ_REQ_CNT 0xffU 6493 #define V_DBG_READ_REQ_CNT(x) ((x) << S_DBG_READ_REQ_CNT) 6494 #define G_DBG_READ_REQ_CNT(x) (((x) >> S_DBG_READ_REQ_CNT) & M_DBG_READ_REQ_CNT) 6495 6496 #define S_DBG_WRITE_DATA_CNT 8 6497 #define M_DBG_WRITE_DATA_CNT 0xffU 6498 #define V_DBG_WRITE_DATA_CNT(x) ((x) << S_DBG_WRITE_DATA_CNT) 6499 #define G_DBG_WRITE_DATA_CNT(x) \ 6500 (((x) >> S_DBG_WRITE_DATA_CNT) & M_DBG_WRITE_DATA_CNT) 6501 6502 #define S_DBG_WRITE_REQ_CNT 0 6503 #define M_DBG_WRITE_REQ_CNT 0xffU 6504 #define V_DBG_WRITE_REQ_CNT(x) ((x) << S_DBG_WRITE_REQ_CNT) 6505 #define G_DBG_WRITE_REQ_CNT(x) \ 6506 (((x) >> S_DBG_WRITE_REQ_CNT) & M_DBG_WRITE_REQ_CNT) 6507 6508 #define A_MA_SGE_TH1_DEBUG_CNT 0x776c 6509 #define A_MA_ULPTX_DEBUG_CNT 0x7770 6510 #define A_MA_ULPRX_DEBUG_CNT 0x7774 6511 #define A_MA_ULPTXRX_DEBUG_CNT 0x7778 6512 #define A_MA_TP_TH0_DEBUG_CNT 0x777c 6513 #define A_MA_TP_TH1_DEBUG_CNT 0x7780 6514 #define A_MA_LE_DEBUG_CNT 0x7784 6515 #define A_MA_CIM_DEBUG_CNT 0x7788 6516 #define A_MA_PCIE_DEBUG_CNT 0x778c 6517 #define A_MA_PMTX_DEBUG_CNT 0x7790 6518 #define A_MA_PMRX_DEBUG_CNT 0x7794 6519 #define A_MA_HMA_DEBUG_CNT 0x7798 6520 #define A_MA_EDRAM0_BAR 0x77c0 6521 6522 #define S_EDRAM0_BASE 16 6523 #define M_EDRAM0_BASE 0xfffU 6524 #define V_EDRAM0_BASE(x) ((x) << S_EDRAM0_BASE) 6525 #define G_EDRAM0_BASE(x) (((x) >> S_EDRAM0_BASE) & M_EDRAM0_BASE) 6526 6527 #define S_EDRAM0_SIZE 0 6528 #define M_EDRAM0_SIZE 0xfffU 6529 #define V_EDRAM0_SIZE(x) ((x) << S_EDRAM0_SIZE) 6530 #define G_EDRAM0_SIZE(x) (((x) >> S_EDRAM0_SIZE) & M_EDRAM0_SIZE) 6531 6532 #define A_MA_EDRAM1_BAR 0x77c4 6533 6534 #define S_EDRAM1_BASE 16 6535 #define M_EDRAM1_BASE 0xfffU 6536 #define V_EDRAM1_BASE(x) ((x) << S_EDRAM1_BASE) 6537 #define G_EDRAM1_BASE(x) (((x) >> S_EDRAM1_BASE) & M_EDRAM1_BASE) 6538 6539 #define S_EDRAM1_SIZE 0 6540 #define M_EDRAM1_SIZE 0xfffU 6541 #define V_EDRAM1_SIZE(x) ((x) << S_EDRAM1_SIZE) 6542 #define G_EDRAM1_SIZE(x) (((x) >> S_EDRAM1_SIZE) & M_EDRAM1_SIZE) 6543 6544 #define A_MA_EXT_MEMORY_BAR 0x77c8 6545 6546 #define S_EXT_MEM_BASE 16 6547 #define M_EXT_MEM_BASE 0xfffU 6548 #define V_EXT_MEM_BASE(x) ((x) << S_EXT_MEM_BASE) 6549 #define G_EXT_MEM_BASE(x) (((x) >> S_EXT_MEM_BASE) & M_EXT_MEM_BASE) 6550 6551 #define S_EXT_MEM_SIZE 0 6552 #define M_EXT_MEM_SIZE 0xfffU 6553 #define V_EXT_MEM_SIZE(x) ((x) << S_EXT_MEM_SIZE) 6554 #define G_EXT_MEM_SIZE(x) (((x) >> S_EXT_MEM_SIZE) & M_EXT_MEM_SIZE) 6555 6556 #define A_MA_HOST_MEMORY_BAR 0x77cc 6557 6558 #define S_HMA_BASE 16 6559 #define M_HMA_BASE 0xfffU 6560 #define V_HMA_BASE(x) ((x) << S_HMA_BASE) 6561 #define G_HMA_BASE(x) (((x) >> S_HMA_BASE) & M_HMA_BASE) 6562 6563 #define S_HMA_SIZE 0 6564 #define M_HMA_SIZE 0xfffU 6565 #define V_HMA_SIZE(x) ((x) << S_HMA_SIZE) 6566 #define G_HMA_SIZE(x) (((x) >> S_HMA_SIZE) & M_HMA_SIZE) 6567 6568 #define A_MA_EXT_MEM_PAGE_SIZE 0x77d0 6569 6570 #define S_BRC_MODE 2 6571 #define V_BRC_MODE(x) ((x) << S_BRC_MODE) 6572 #define F_BRC_MODE V_BRC_MODE(1U) 6573 6574 #define S_EXT_MEM_PAGE_SIZE 0 6575 #define M_EXT_MEM_PAGE_SIZE 0x3U 6576 #define V_EXT_MEM_PAGE_SIZE(x) ((x) << S_EXT_MEM_PAGE_SIZE) 6577 #define G_EXT_MEM_PAGE_SIZE(x) \ 6578 (((x) >> S_EXT_MEM_PAGE_SIZE) & M_EXT_MEM_PAGE_SIZE) 6579 6580 #define A_MA_ARB_CTRL 0x77d4 6581 6582 #define S_DIS_PAGE_HINT 1 6583 #define V_DIS_PAGE_HINT(x) ((x) << S_DIS_PAGE_HINT) 6584 #define F_DIS_PAGE_HINT V_DIS_PAGE_HINT(1U) 6585 6586 #define S_DIS_ADV_ARB 0 6587 #define V_DIS_ADV_ARB(x) ((x) << S_DIS_ADV_ARB) 6588 #define F_DIS_ADV_ARB V_DIS_ADV_ARB(1U) 6589 6590 #define A_MA_TARGET_MEM_ENABLE 0x77d8 6591 6592 #define S_HMA_ENABLE 3 6593 #define V_HMA_ENABLE(x) ((x) << S_HMA_ENABLE) 6594 #define F_HMA_ENABLE V_HMA_ENABLE(1U) 6595 6596 #define S_EXT_MEM_ENABLE 2 6597 #define V_EXT_MEM_ENABLE(x) ((x) << S_EXT_MEM_ENABLE) 6598 #define F_EXT_MEM_ENABLE V_EXT_MEM_ENABLE(1U) 6599 6600 #define S_EDRAM1_ENABLE 1 6601 #define V_EDRAM1_ENABLE(x) ((x) << S_EDRAM1_ENABLE) 6602 #define F_EDRAM1_ENABLE V_EDRAM1_ENABLE(1U) 6603 6604 #define S_EDRAM0_ENABLE 0 6605 #define V_EDRAM0_ENABLE(x) ((x) << S_EDRAM0_ENABLE) 6606 #define F_EDRAM0_ENABLE V_EDRAM0_ENABLE(1U) 6607 6608 #define A_MA_INT_ENABLE 0x77dc 6609 6610 #define S_MEM_PERR_INT_ENABLE 1 6611 #define V_MEM_PERR_INT_ENABLE(x) ((x) << S_MEM_PERR_INT_ENABLE) 6612 #define F_MEM_PERR_INT_ENABLE V_MEM_PERR_INT_ENABLE(1U) 6613 6614 #define S_MEM_WRAP_INT_ENABLE 0 6615 #define V_MEM_WRAP_INT_ENABLE(x) ((x) << S_MEM_WRAP_INT_ENABLE) 6616 #define F_MEM_WRAP_INT_ENABLE V_MEM_WRAP_INT_ENABLE(1U) 6617 6618 #define A_MA_INT_CAUSE 0x77e0 6619 6620 #define S_MEM_PERR_INT_CAUSE 1 6621 #define V_MEM_PERR_INT_CAUSE(x) ((x) << S_MEM_PERR_INT_CAUSE) 6622 #define F_MEM_PERR_INT_CAUSE V_MEM_PERR_INT_CAUSE(1U) 6623 6624 #define S_MEM_WRAP_INT_CAUSE 0 6625 #define V_MEM_WRAP_INT_CAUSE(x) ((x) << S_MEM_WRAP_INT_CAUSE) 6626 #define F_MEM_WRAP_INT_CAUSE V_MEM_WRAP_INT_CAUSE(1U) 6627 6628 #define A_MA_INT_WRAP_STATUS 0x77e4 6629 6630 #define S_MEM_WRAP_ADDRESS 4 6631 #define M_MEM_WRAP_ADDRESS 0xfffffffU 6632 #define V_MEM_WRAP_ADDRESS(x) ((x) << S_MEM_WRAP_ADDRESS) 6633 #define G_MEM_WRAP_ADDRESS(x) (((x) >> S_MEM_WRAP_ADDRESS) & M_MEM_WRAP_ADDRESS) 6634 6635 #define S_MEM_WRAP_CLIENT_NUM 0 6636 #define M_MEM_WRAP_CLIENT_NUM 0xfU 6637 #define V_MEM_WRAP_CLIENT_NUM(x) ((x) << S_MEM_WRAP_CLIENT_NUM) 6638 #define G_MEM_WRAP_CLIENT_NUM(x) \ 6639 (((x) >> S_MEM_WRAP_CLIENT_NUM) & M_MEM_WRAP_CLIENT_NUM) 6640 6641 #define A_MA_TP_THREAD1_MAPPER 0x77e8 6642 6643 #define S_TP_THREAD1_EN 0 6644 #define M_TP_THREAD1_EN 0xffU 6645 #define V_TP_THREAD1_EN(x) ((x) << S_TP_THREAD1_EN) 6646 #define G_TP_THREAD1_EN(x) (((x) >> S_TP_THREAD1_EN) & M_TP_THREAD1_EN) 6647 6648 #define A_MA_SGE_THREAD1_MAPPER 0x77ec 6649 6650 #define S_SGE_THREAD1_EN 0 6651 #define M_SGE_THREAD1_EN 0xffU 6652 #define V_SGE_THREAD1_EN(x) ((x) << S_SGE_THREAD1_EN) 6653 #define G_SGE_THREAD1_EN(x) (((x) >> S_SGE_THREAD1_EN) & M_SGE_THREAD1_EN) 6654 6655 #define A_MA_PARITY_ERROR_ENABLE 0x77f0 6656 6657 #define S_TP_DMARBT_PAR_ERROR_EN 31 6658 #define V_TP_DMARBT_PAR_ERROR_EN(x) ((x) << S_TP_DMARBT_PAR_ERROR_EN) 6659 #define F_TP_DMARBT_PAR_ERROR_EN V_TP_DMARBT_PAR_ERROR_EN(1U) 6660 6661 #define S_LOGIC_FIFO_PAR_ERROR_EN 30 6662 #define V_LOGIC_FIFO_PAR_ERROR_EN(x) ((x) << S_LOGIC_FIFO_PAR_ERROR_EN) 6663 #define F_LOGIC_FIFO_PAR_ERROR_EN V_LOGIC_FIFO_PAR_ERROR_EN(1U) 6664 6665 #define S_ARB3_PAR_WRQUEUE_ERROR_EN 29 6666 #define V_ARB3_PAR_WRQUEUE_ERROR_EN(x) ((x) << S_ARB3_PAR_WRQUEUE_ERROR_EN) 6667 #define F_ARB3_PAR_WRQUEUE_ERROR_EN V_ARB3_PAR_WRQUEUE_ERROR_EN(1U) 6668 6669 #define S_ARB2_PAR_WRQUEUE_ERROR_EN 28 6670 #define V_ARB2_PAR_WRQUEUE_ERROR_EN(x) ((x) << S_ARB2_PAR_WRQUEUE_ERROR_EN) 6671 #define F_ARB2_PAR_WRQUEUE_ERROR_EN V_ARB2_PAR_WRQUEUE_ERROR_EN(1U) 6672 6673 #define S_ARB1_PAR_WRQUEUE_ERROR_EN 27 6674 #define V_ARB1_PAR_WRQUEUE_ERROR_EN(x) ((x) << S_ARB1_PAR_WRQUEUE_ERROR_EN) 6675 #define F_ARB1_PAR_WRQUEUE_ERROR_EN V_ARB1_PAR_WRQUEUE_ERROR_EN(1U) 6676 6677 #define S_ARB0_PAR_WRQUEUE_ERROR_EN 26 6678 #define V_ARB0_PAR_WRQUEUE_ERROR_EN(x) ((x) << S_ARB0_PAR_WRQUEUE_ERROR_EN) 6679 #define F_ARB0_PAR_WRQUEUE_ERROR_EN V_ARB0_PAR_WRQUEUE_ERROR_EN(1U) 6680 6681 #define S_ARB3_PAR_RDQUEUE_ERROR_EN 25 6682 #define V_ARB3_PAR_RDQUEUE_ERROR_EN(x) ((x) << S_ARB3_PAR_RDQUEUE_ERROR_EN) 6683 #define F_ARB3_PAR_RDQUEUE_ERROR_EN V_ARB3_PAR_RDQUEUE_ERROR_EN(1U) 6684 6685 #define S_ARB2_PAR_RDQUEUE_ERROR_EN 24 6686 #define V_ARB2_PAR_RDQUEUE_ERROR_EN(x) ((x) << S_ARB2_PAR_RDQUEUE_ERROR_EN) 6687 #define F_ARB2_PAR_RDQUEUE_ERROR_EN V_ARB2_PAR_RDQUEUE_ERROR_EN(1U) 6688 6689 #define S_ARB1_PAR_RDQUEUE_ERROR_EN 23 6690 #define V_ARB1_PAR_RDQUEUE_ERROR_EN(x) ((x) << S_ARB1_PAR_RDQUEUE_ERROR_EN) 6691 #define F_ARB1_PAR_RDQUEUE_ERROR_EN V_ARB1_PAR_RDQUEUE_ERROR_EN(1U) 6692 6693 #define S_ARB0_PAR_RDQUEUE_ERROR_EN 22 6694 #define V_ARB0_PAR_RDQUEUE_ERROR_EN(x) ((x) << S_ARB0_PAR_RDQUEUE_ERROR_EN) 6695 #define F_ARB0_PAR_RDQUEUE_ERROR_EN V_ARB0_PAR_RDQUEUE_ERROR_EN(1U) 6696 6697 #define S_CL10_PAR_WRQUEUE_ERROR_EN 21 6698 #define V_CL10_PAR_WRQUEUE_ERROR_EN(x) ((x) << S_CL10_PAR_WRQUEUE_ERROR_EN) 6699 #define F_CL10_PAR_WRQUEUE_ERROR_EN V_CL10_PAR_WRQUEUE_ERROR_EN(1U) 6700 6701 #define S_CL9_PAR_WRQUEUE_ERROR_EN 20 6702 #define V_CL9_PAR_WRQUEUE_ERROR_EN(x) ((x) << S_CL9_PAR_WRQUEUE_ERROR_EN) 6703 #define F_CL9_PAR_WRQUEUE_ERROR_EN V_CL9_PAR_WRQUEUE_ERROR_EN(1U) 6704 6705 #define S_CL8_PAR_WRQUEUE_ERROR_EN 19 6706 #define V_CL8_PAR_WRQUEUE_ERROR_EN(x) ((x) << S_CL8_PAR_WRQUEUE_ERROR_EN) 6707 #define F_CL8_PAR_WRQUEUE_ERROR_EN V_CL8_PAR_WRQUEUE_ERROR_EN(1U) 6708 6709 #define S_CL7_PAR_WRQUEUE_ERROR_EN 18 6710 #define V_CL7_PAR_WRQUEUE_ERROR_EN(x) ((x) << S_CL7_PAR_WRQUEUE_ERROR_EN) 6711 #define F_CL7_PAR_WRQUEUE_ERROR_EN V_CL7_PAR_WRQUEUE_ERROR_EN(1U) 6712 6713 #define S_CL6_PAR_WRQUEUE_ERROR_EN 17 6714 #define V_CL6_PAR_WRQUEUE_ERROR_EN(x) ((x) << S_CL6_PAR_WRQUEUE_ERROR_EN) 6715 #define F_CL6_PAR_WRQUEUE_ERROR_EN V_CL6_PAR_WRQUEUE_ERROR_EN(1U) 6716 6717 #define S_CL5_PAR_WRQUEUE_ERROR_EN 16 6718 #define V_CL5_PAR_WRQUEUE_ERROR_EN(x) ((x) << S_CL5_PAR_WRQUEUE_ERROR_EN) 6719 #define F_CL5_PAR_WRQUEUE_ERROR_EN V_CL5_PAR_WRQUEUE_ERROR_EN(1U) 6720 6721 #define S_CL4_PAR_WRQUEUE_ERROR_EN 15 6722 #define V_CL4_PAR_WRQUEUE_ERROR_EN(x) ((x) << S_CL4_PAR_WRQUEUE_ERROR_EN) 6723 #define F_CL4_PAR_WRQUEUE_ERROR_EN V_CL4_PAR_WRQUEUE_ERROR_EN(1U) 6724 6725 #define S_CL3_PAR_WRQUEUE_ERROR_EN 14 6726 #define V_CL3_PAR_WRQUEUE_ERROR_EN(x) ((x) << S_CL3_PAR_WRQUEUE_ERROR_EN) 6727 #define F_CL3_PAR_WRQUEUE_ERROR_EN V_CL3_PAR_WRQUEUE_ERROR_EN(1U) 6728 6729 #define S_CL2_PAR_WRQUEUE_ERROR_EN 13 6730 #define V_CL2_PAR_WRQUEUE_ERROR_EN(x) ((x) << S_CL2_PAR_WRQUEUE_ERROR_EN) 6731 #define F_CL2_PAR_WRQUEUE_ERROR_EN V_CL2_PAR_WRQUEUE_ERROR_EN(1U) 6732 6733 #define S_CL1_PAR_WRQUEUE_ERROR_EN 12 6734 #define V_CL1_PAR_WRQUEUE_ERROR_EN(x) ((x) << S_CL1_PAR_WRQUEUE_ERROR_EN) 6735 #define F_CL1_PAR_WRQUEUE_ERROR_EN V_CL1_PAR_WRQUEUE_ERROR_EN(1U) 6736 6737 #define S_CL0_PAR_WRQUEUE_ERROR_EN 11 6738 #define V_CL0_PAR_WRQUEUE_ERROR_EN(x) ((x) << S_CL0_PAR_WRQUEUE_ERROR_EN) 6739 #define F_CL0_PAR_WRQUEUE_ERROR_EN V_CL0_PAR_WRQUEUE_ERROR_EN(1U) 6740 6741 #define S_CL10_PAR_RDQUEUE_ERROR_EN 10 6742 #define V_CL10_PAR_RDQUEUE_ERROR_EN(x) ((x) << S_CL10_PAR_RDQUEUE_ERROR_EN) 6743 #define F_CL10_PAR_RDQUEUE_ERROR_EN V_CL10_PAR_RDQUEUE_ERROR_EN(1U) 6744 6745 #define S_CL9_PAR_RDQUEUE_ERROR_EN 9 6746 #define V_CL9_PAR_RDQUEUE_ERROR_EN(x) ((x) << S_CL9_PAR_RDQUEUE_ERROR_EN) 6747 #define F_CL9_PAR_RDQUEUE_ERROR_EN V_CL9_PAR_RDQUEUE_ERROR_EN(1U) 6748 6749 #define S_CL8_PAR_RDQUEUE_ERROR_EN 8 6750 #define V_CL8_PAR_RDQUEUE_ERROR_EN(x) ((x) << S_CL8_PAR_RDQUEUE_ERROR_EN) 6751 #define F_CL8_PAR_RDQUEUE_ERROR_EN V_CL8_PAR_RDQUEUE_ERROR_EN(1U) 6752 6753 #define S_CL7_PAR_RDQUEUE_ERROR_EN 7 6754 #define V_CL7_PAR_RDQUEUE_ERROR_EN(x) ((x) << S_CL7_PAR_RDQUEUE_ERROR_EN) 6755 #define F_CL7_PAR_RDQUEUE_ERROR_EN V_CL7_PAR_RDQUEUE_ERROR_EN(1U) 6756 6757 #define S_CL6_PAR_RDQUEUE_ERROR_EN 6 6758 #define V_CL6_PAR_RDQUEUE_ERROR_EN(x) ((x) << S_CL6_PAR_RDQUEUE_ERROR_EN) 6759 #define F_CL6_PAR_RDQUEUE_ERROR_EN V_CL6_PAR_RDQUEUE_ERROR_EN(1U) 6760 6761 #define S_CL5_PAR_RDQUEUE_ERROR_EN 5 6762 #define V_CL5_PAR_RDQUEUE_ERROR_EN(x) ((x) << S_CL5_PAR_RDQUEUE_ERROR_EN) 6763 #define F_CL5_PAR_RDQUEUE_ERROR_EN V_CL5_PAR_RDQUEUE_ERROR_EN(1U) 6764 6765 #define S_CL4_PAR_RDQUEUE_ERROR_EN 4 6766 #define V_CL4_PAR_RDQUEUE_ERROR_EN(x) ((x) << S_CL4_PAR_RDQUEUE_ERROR_EN) 6767 #define F_CL4_PAR_RDQUEUE_ERROR_EN V_CL4_PAR_RDQUEUE_ERROR_EN(1U) 6768 6769 #define S_CL3_PAR_RDQUEUE_ERROR_EN 3 6770 #define V_CL3_PAR_RDQUEUE_ERROR_EN(x) ((x) << S_CL3_PAR_RDQUEUE_ERROR_EN) 6771 #define F_CL3_PAR_RDQUEUE_ERROR_EN V_CL3_PAR_RDQUEUE_ERROR_EN(1U) 6772 6773 #define S_CL2_PAR_RDQUEUE_ERROR_EN 2 6774 #define V_CL2_PAR_RDQUEUE_ERROR_EN(x) ((x) << S_CL2_PAR_RDQUEUE_ERROR_EN) 6775 #define F_CL2_PAR_RDQUEUE_ERROR_EN V_CL2_PAR_RDQUEUE_ERROR_EN(1U) 6776 6777 #define S_CL1_PAR_RDQUEUE_ERROR_EN 1 6778 #define V_CL1_PAR_RDQUEUE_ERROR_EN(x) ((x) << S_CL1_PAR_RDQUEUE_ERROR_EN) 6779 #define F_CL1_PAR_RDQUEUE_ERROR_EN V_CL1_PAR_RDQUEUE_ERROR_EN(1U) 6780 6781 #define S_CL0_PAR_RDQUEUE_ERROR_EN 0 6782 #define V_CL0_PAR_RDQUEUE_ERROR_EN(x) ((x) << S_CL0_PAR_RDQUEUE_ERROR_EN) 6783 #define F_CL0_PAR_RDQUEUE_ERROR_EN V_CL0_PAR_RDQUEUE_ERROR_EN(1U) 6784 6785 #define A_MA_PARITY_ERROR_STATUS 0x77f4 6786 6787 #define S_TP_DMARBT_PAR_ERROR 31 6788 #define V_TP_DMARBT_PAR_ERROR(x) ((x) << S_TP_DMARBT_PAR_ERROR) 6789 #define F_TP_DMARBT_PAR_ERROR V_TP_DMARBT_PAR_ERROR(1U) 6790 6791 #define S_LOGIC_FIFO_PAR_ERROR 30 6792 #define V_LOGIC_FIFO_PAR_ERROR(x) ((x) << S_LOGIC_FIFO_PAR_ERROR) 6793 #define F_LOGIC_FIFO_PAR_ERROR V_LOGIC_FIFO_PAR_ERROR(1U) 6794 6795 #define S_ARB3_PAR_WRQUEUE_ERROR 29 6796 #define V_ARB3_PAR_WRQUEUE_ERROR(x) ((x) << S_ARB3_PAR_WRQUEUE_ERROR) 6797 #define F_ARB3_PAR_WRQUEUE_ERROR V_ARB3_PAR_WRQUEUE_ERROR(1U) 6798 6799 #define S_ARB2_PAR_WRQUEUE_ERROR 28 6800 #define V_ARB2_PAR_WRQUEUE_ERROR(x) ((x) << S_ARB2_PAR_WRQUEUE_ERROR) 6801 #define F_ARB2_PAR_WRQUEUE_ERROR V_ARB2_PAR_WRQUEUE_ERROR(1U) 6802 6803 #define S_ARB1_PAR_WRQUEUE_ERROR 27 6804 #define V_ARB1_PAR_WRQUEUE_ERROR(x) ((x) << S_ARB1_PAR_WRQUEUE_ERROR) 6805 #define F_ARB1_PAR_WRQUEUE_ERROR V_ARB1_PAR_WRQUEUE_ERROR(1U) 6806 6807 #define S_ARB0_PAR_WRQUEUE_ERROR 26 6808 #define V_ARB0_PAR_WRQUEUE_ERROR(x) ((x) << S_ARB0_PAR_WRQUEUE_ERROR) 6809 #define F_ARB0_PAR_WRQUEUE_ERROR V_ARB0_PAR_WRQUEUE_ERROR(1U) 6810 6811 #define S_ARB3_PAR_RDQUEUE_ERROR 25 6812 #define V_ARB3_PAR_RDQUEUE_ERROR(x) ((x) << S_ARB3_PAR_RDQUEUE_ERROR) 6813 #define F_ARB3_PAR_RDQUEUE_ERROR V_ARB3_PAR_RDQUEUE_ERROR(1U) 6814 6815 #define S_ARB2_PAR_RDQUEUE_ERROR 24 6816 #define V_ARB2_PAR_RDQUEUE_ERROR(x) ((x) << S_ARB2_PAR_RDQUEUE_ERROR) 6817 #define F_ARB2_PAR_RDQUEUE_ERROR V_ARB2_PAR_RDQUEUE_ERROR(1U) 6818 6819 #define S_ARB1_PAR_RDQUEUE_ERROR 23 6820 #define V_ARB1_PAR_RDQUEUE_ERROR(x) ((x) << S_ARB1_PAR_RDQUEUE_ERROR) 6821 #define F_ARB1_PAR_RDQUEUE_ERROR V_ARB1_PAR_RDQUEUE_ERROR(1U) 6822 6823 #define S_ARB0_PAR_RDQUEUE_ERROR 22 6824 #define V_ARB0_PAR_RDQUEUE_ERROR(x) ((x) << S_ARB0_PAR_RDQUEUE_ERROR) 6825 #define F_ARB0_PAR_RDQUEUE_ERROR V_ARB0_PAR_RDQUEUE_ERROR(1U) 6826 6827 #define S_CL10_PAR_WRQUEUE_ERROR 21 6828 #define V_CL10_PAR_WRQUEUE_ERROR(x) ((x) << S_CL10_PAR_WRQUEUE_ERROR) 6829 #define F_CL10_PAR_WRQUEUE_ERROR V_CL10_PAR_WRQUEUE_ERROR(1U) 6830 6831 #define S_CL9_PAR_WRQUEUE_ERROR 20 6832 #define V_CL9_PAR_WRQUEUE_ERROR(x) ((x) << S_CL9_PAR_WRQUEUE_ERROR) 6833 #define F_CL9_PAR_WRQUEUE_ERROR V_CL9_PAR_WRQUEUE_ERROR(1U) 6834 6835 #define S_CL8_PAR_WRQUEUE_ERROR 19 6836 #define V_CL8_PAR_WRQUEUE_ERROR(x) ((x) << S_CL8_PAR_WRQUEUE_ERROR) 6837 #define F_CL8_PAR_WRQUEUE_ERROR V_CL8_PAR_WRQUEUE_ERROR(1U) 6838 6839 #define S_CL7_PAR_WRQUEUE_ERROR 18 6840 #define V_CL7_PAR_WRQUEUE_ERROR(x) ((x) << S_CL7_PAR_WRQUEUE_ERROR) 6841 #define F_CL7_PAR_WRQUEUE_ERROR V_CL7_PAR_WRQUEUE_ERROR(1U) 6842 6843 #define S_CL6_PAR_WRQUEUE_ERROR 17 6844 #define V_CL6_PAR_WRQUEUE_ERROR(x) ((x) << S_CL6_PAR_WRQUEUE_ERROR) 6845 #define F_CL6_PAR_WRQUEUE_ERROR V_CL6_PAR_WRQUEUE_ERROR(1U) 6846 6847 #define S_CL5_PAR_WRQUEUE_ERROR 16 6848 #define V_CL5_PAR_WRQUEUE_ERROR(x) ((x) << S_CL5_PAR_WRQUEUE_ERROR) 6849 #define F_CL5_PAR_WRQUEUE_ERROR V_CL5_PAR_WRQUEUE_ERROR(1U) 6850 6851 #define S_CL4_PAR_WRQUEUE_ERROR 15 6852 #define V_CL4_PAR_WRQUEUE_ERROR(x) ((x) << S_CL4_PAR_WRQUEUE_ERROR) 6853 #define F_CL4_PAR_WRQUEUE_ERROR V_CL4_PAR_WRQUEUE_ERROR(1U) 6854 6855 #define S_CL3_PAR_WRQUEUE_ERROR 14 6856 #define V_CL3_PAR_WRQUEUE_ERROR(x) ((x) << S_CL3_PAR_WRQUEUE_ERROR) 6857 #define F_CL3_PAR_WRQUEUE_ERROR V_CL3_PAR_WRQUEUE_ERROR(1U) 6858 6859 #define S_CL2_PAR_WRQUEUE_ERROR 13 6860 #define V_CL2_PAR_WRQUEUE_ERROR(x) ((x) << S_CL2_PAR_WRQUEUE_ERROR) 6861 #define F_CL2_PAR_WRQUEUE_ERROR V_CL2_PAR_WRQUEUE_ERROR(1U) 6862 6863 #define S_CL1_PAR_WRQUEUE_ERROR 12 6864 #define V_CL1_PAR_WRQUEUE_ERROR(x) ((x) << S_CL1_PAR_WRQUEUE_ERROR) 6865 #define F_CL1_PAR_WRQUEUE_ERROR V_CL1_PAR_WRQUEUE_ERROR(1U) 6866 6867 #define S_CL0_PAR_WRQUEUE_ERROR 11 6868 #define V_CL0_PAR_WRQUEUE_ERROR(x) ((x) << S_CL0_PAR_WRQUEUE_ERROR) 6869 #define F_CL0_PAR_WRQUEUE_ERROR V_CL0_PAR_WRQUEUE_ERROR(1U) 6870 6871 #define S_CL10_PAR_RDQUEUE_ERROR 10 6872 #define V_CL10_PAR_RDQUEUE_ERROR(x) ((x) << S_CL10_PAR_RDQUEUE_ERROR) 6873 #define F_CL10_PAR_RDQUEUE_ERROR V_CL10_PAR_RDQUEUE_ERROR(1U) 6874 6875 #define S_CL9_PAR_RDQUEUE_ERROR 9 6876 #define V_CL9_PAR_RDQUEUE_ERROR(x) ((x) << S_CL9_PAR_RDQUEUE_ERROR) 6877 #define F_CL9_PAR_RDQUEUE_ERROR V_CL9_PAR_RDQUEUE_ERROR(1U) 6878 6879 #define S_CL8_PAR_RDQUEUE_ERROR 8 6880 #define V_CL8_PAR_RDQUEUE_ERROR(x) ((x) << S_CL8_PAR_RDQUEUE_ERROR) 6881 #define F_CL8_PAR_RDQUEUE_ERROR V_CL8_PAR_RDQUEUE_ERROR(1U) 6882 6883 #define S_CL7_PAR_RDQUEUE_ERROR 7 6884 #define V_CL7_PAR_RDQUEUE_ERROR(x) ((x) << S_CL7_PAR_RDQUEUE_ERROR) 6885 #define F_CL7_PAR_RDQUEUE_ERROR V_CL7_PAR_RDQUEUE_ERROR(1U) 6886 6887 #define S_CL6_PAR_RDQUEUE_ERROR 6 6888 #define V_CL6_PAR_RDQUEUE_ERROR(x) ((x) << S_CL6_PAR_RDQUEUE_ERROR) 6889 #define F_CL6_PAR_RDQUEUE_ERROR V_CL6_PAR_RDQUEUE_ERROR(1U) 6890 6891 #define S_CL5_PAR_RDQUEUE_ERROR 5 6892 #define V_CL5_PAR_RDQUEUE_ERROR(x) ((x) << S_CL5_PAR_RDQUEUE_ERROR) 6893 #define F_CL5_PAR_RDQUEUE_ERROR V_CL5_PAR_RDQUEUE_ERROR(1U) 6894 6895 #define S_CL4_PAR_RDQUEUE_ERROR 4 6896 #define V_CL4_PAR_RDQUEUE_ERROR(x) ((x) << S_CL4_PAR_RDQUEUE_ERROR) 6897 #define F_CL4_PAR_RDQUEUE_ERROR V_CL4_PAR_RDQUEUE_ERROR(1U) 6898 6899 #define S_CL3_PAR_RDQUEUE_ERROR 3 6900 #define V_CL3_PAR_RDQUEUE_ERROR(x) ((x) << S_CL3_PAR_RDQUEUE_ERROR) 6901 #define F_CL3_PAR_RDQUEUE_ERROR V_CL3_PAR_RDQUEUE_ERROR(1U) 6902 6903 #define S_CL2_PAR_RDQUEUE_ERROR 2 6904 #define V_CL2_PAR_RDQUEUE_ERROR(x) ((x) << S_CL2_PAR_RDQUEUE_ERROR) 6905 #define F_CL2_PAR_RDQUEUE_ERROR V_CL2_PAR_RDQUEUE_ERROR(1U) 6906 6907 #define S_CL1_PAR_RDQUEUE_ERROR 1 6908 #define V_CL1_PAR_RDQUEUE_ERROR(x) ((x) << S_CL1_PAR_RDQUEUE_ERROR) 6909 #define F_CL1_PAR_RDQUEUE_ERROR V_CL1_PAR_RDQUEUE_ERROR(1U) 6910 6911 #define S_CL0_PAR_RDQUEUE_ERROR 0 6912 #define V_CL0_PAR_RDQUEUE_ERROR(x) ((x) << S_CL0_PAR_RDQUEUE_ERROR) 6913 #define F_CL0_PAR_RDQUEUE_ERROR V_CL0_PAR_RDQUEUE_ERROR(1U) 6914 6915 #define A_MA_SGE_PCIE_COHERANCY_CTRL 0x77f8 6916 6917 #define S_BONUS_REG 6 6918 #define M_BONUS_REG 0x3ffffffU 6919 #define V_BONUS_REG(x) ((x) << S_BONUS_REG) 6920 #define G_BONUS_REG(x) (((x) >> S_BONUS_REG) & M_BONUS_REG) 6921 6922 #define S_COHERANCY_CMD_TYPE 4 6923 #define M_COHERANCY_CMD_TYPE 0x3U 6924 #define V_COHERANCY_CMD_TYPE(x) ((x) << S_COHERANCY_CMD_TYPE) 6925 #define G_COHERANCY_CMD_TYPE(x) \ 6926 (((x) >> S_COHERANCY_CMD_TYPE) & M_COHERANCY_CMD_TYPE) 6927 6928 #define S_COHERANCY_THREAD_NUM 1 6929 #define M_COHERANCY_THREAD_NUM 0x7U 6930 #define V_COHERANCY_THREAD_NUM(x) ((x) << S_COHERANCY_THREAD_NUM) 6931 #define G_COHERANCY_THREAD_NUM(x) \ 6932 (((x) >> S_COHERANCY_THREAD_NUM) & M_COHERANCY_THREAD_NUM) 6933 6934 #define S_COHERANCY_ENABLE 0 6935 #define V_COHERANCY_ENABLE(x) ((x) << S_COHERANCY_ENABLE) 6936 #define F_COHERANCY_ENABLE V_COHERANCY_ENABLE(1U) 6937 6938 #define A_MA_ERROR_ENABLE 0x77fc 6939 6940 #define S_UE_ENABLE 0 6941 #define V_UE_ENABLE(x) ((x) << S_UE_ENABLE) 6942 #define F_UE_ENABLE V_UE_ENABLE(1U) 6943 6944 /* registers for module EDC_0 */ 6945 #define EDC_0_BASE_ADDR 0x7900 6946 6947 #define A_EDC_REF 0x7900 6948 6949 #define S_EDC_INST_NUM 18 6950 #define V_EDC_INST_NUM(x) ((x) << S_EDC_INST_NUM) 6951 #define F_EDC_INST_NUM V_EDC_INST_NUM(1U) 6952 6953 #define S_ENABLE_PERF 17 6954 #define V_ENABLE_PERF(x) ((x) << S_ENABLE_PERF) 6955 #define F_ENABLE_PERF V_ENABLE_PERF(1U) 6956 6957 #define S_ECC_BYPASS 16 6958 #define V_ECC_BYPASS(x) ((x) << S_ECC_BYPASS) 6959 #define F_ECC_BYPASS V_ECC_BYPASS(1U) 6960 6961 #define S_REFFREQ 0 6962 #define M_REFFREQ 0xffffU 6963 #define V_REFFREQ(x) ((x) << S_REFFREQ) 6964 #define G_REFFREQ(x) (((x) >> S_REFFREQ) & M_REFFREQ) 6965 6966 #define A_EDC_BIST_CMD 0x7904 6967 #define A_EDC_BIST_CMD_ADDR 0x7908 6968 #define A_EDC_BIST_CMD_LEN 0x790c 6969 #define A_EDC_BIST_DATA_PATTERN 0x7910 6970 #define A_EDC_BIST_USER_WDATA0 0x7914 6971 #define A_EDC_BIST_USER_WDATA1 0x7918 6972 #define A_EDC_BIST_USER_WDATA2 0x791c 6973 #define A_EDC_BIST_NUM_ERR 0x7920 6974 #define A_EDC_BIST_ERR_FIRST_ADDR 0x7924 6975 #define A_EDC_BIST_STATUS_RDATA 0x7928 6976 #define A_EDC_PAR_ENABLE 0x7970 6977 6978 #define S_ECC_UE 2 6979 #define V_ECC_UE(x) ((x) << S_ECC_UE) 6980 #define F_ECC_UE V_ECC_UE(1U) 6981 6982 #define S_ECC_CE 1 6983 #define V_ECC_CE(x) ((x) << S_ECC_CE) 6984 #define F_ECC_CE V_ECC_CE(1U) 6985 6986 #define A_EDC_INT_ENABLE 0x7974 6987 #define A_EDC_INT_CAUSE 0x7978 6988 6989 #define S_ECC_UE_PAR 5 6990 #define V_ECC_UE_PAR(x) ((x) << S_ECC_UE_PAR) 6991 #define F_ECC_UE_PAR V_ECC_UE_PAR(1U) 6992 6993 #define S_ECC_CE_PAR 4 6994 #define V_ECC_CE_PAR(x) ((x) << S_ECC_CE_PAR) 6995 #define F_ECC_CE_PAR V_ECC_CE_PAR(1U) 6996 6997 #define S_PERR_PAR_CAUSE 3 6998 #define V_PERR_PAR_CAUSE(x) ((x) << S_PERR_PAR_CAUSE) 6999 #define F_PERR_PAR_CAUSE V_PERR_PAR_CAUSE(1U) 7000 7001 #define A_EDC_ECC_STATUS 0x797c 7002 7003 /* registers for module EDC_1 */ 7004 #define EDC_1_BASE_ADDR 0x7980 7005 7006 /* registers for module HMA */ 7007 #define HMA_BASE_ADDR 0x7a00 7008 7009 /* registers for module CIM */ 7010 #define CIM_BASE_ADDR 0x7b00 7011 7012 #define A_CIM_VF_EXT_MAILBOX_CTRL 0x0 7013 7014 #define S_VFMBGENERIC 4 7015 #define M_VFMBGENERIC 0xfU 7016 #define V_VFMBGENERIC(x) ((x) << S_VFMBGENERIC) 7017 #define G_VFMBGENERIC(x) (((x) >> S_VFMBGENERIC) & M_VFMBGENERIC) 7018 7019 #define A_CIM_VF_EXT_MAILBOX_STATUS 0x4 7020 7021 #define S_MBVFREADY 0 7022 #define V_MBVFREADY(x) ((x) << S_MBVFREADY) 7023 #define F_MBVFREADY V_MBVFREADY(1U) 7024 7025 #define A_CIM_PF_MAILBOX_DATA 0x240 7026 #define A_CIM_PF_MAILBOX_CTRL 0x280 7027 7028 #define S_MBGENERIC 4 7029 #define M_MBGENERIC 0xfffffffU 7030 #define V_MBGENERIC(x) ((x) << S_MBGENERIC) 7031 #define G_MBGENERIC(x) (((x) >> S_MBGENERIC) & M_MBGENERIC) 7032 7033 #define S_MBMSGVALID 3 7034 #define V_MBMSGVALID(x) ((x) << S_MBMSGVALID) 7035 #define F_MBMSGVALID V_MBMSGVALID(1U) 7036 7037 #define S_MBINTREQ 2 7038 #define V_MBINTREQ(x) ((x) << S_MBINTREQ) 7039 #define F_MBINTREQ V_MBINTREQ(1U) 7040 7041 #define S_MBOWNER 0 7042 #define M_MBOWNER 0x3U 7043 #define V_MBOWNER(x) ((x) << S_MBOWNER) 7044 #define G_MBOWNER(x) (((x) >> S_MBOWNER) & M_MBOWNER) 7045 7046 #define A_CIM_PF_MAILBOX_ACC_STATUS 0x284 7047 7048 #define S_MBWRBUSY 31 7049 #define V_MBWRBUSY(x) ((x) << S_MBWRBUSY) 7050 #define F_MBWRBUSY V_MBWRBUSY(1U) 7051 7052 #define A_CIM_PF_HOST_INT_ENABLE 0x288 7053 7054 #define S_MBMSGRDYINTEN 19 7055 #define V_MBMSGRDYINTEN(x) ((x) << S_MBMSGRDYINTEN) 7056 #define F_MBMSGRDYINTEN V_MBMSGRDYINTEN(1U) 7057 7058 #define A_CIM_PF_HOST_INT_CAUSE 0x28c 7059 7060 #define S_MBMSGRDYINT 19 7061 #define V_MBMSGRDYINT(x) ((x) << S_MBMSGRDYINT) 7062 #define F_MBMSGRDYINT V_MBMSGRDYINT(1U) 7063 7064 #define A_CIM_BOOT_CFG 0x7b00 7065 7066 #define S_BOOTADDR 8 7067 #define M_BOOTADDR 0xffffffU 7068 #define V_BOOTADDR(x) ((x) << S_BOOTADDR) 7069 #define G_BOOTADDR(x) (((x) >> S_BOOTADDR) & M_BOOTADDR) 7070 7071 #define S_UPGEN 2 7072 #define M_UPGEN 0x3fU 7073 #define V_UPGEN(x) ((x) << S_UPGEN) 7074 #define G_UPGEN(x) (((x) >> S_UPGEN) & M_UPGEN) 7075 7076 #define S_BOOTSDRAM 1 7077 #define V_BOOTSDRAM(x) ((x) << S_BOOTSDRAM) 7078 #define F_BOOTSDRAM V_BOOTSDRAM(1U) 7079 7080 #define S_UPCRST 0 7081 #define V_UPCRST(x) ((x) << S_UPCRST) 7082 #define F_UPCRST V_UPCRST(1U) 7083 7084 #define A_CIM_FLASH_BASE_ADDR 0x7b04 7085 7086 #define S_FLASHBASEADDR 6 7087 #define M_FLASHBASEADDR 0x3ffffU 7088 #define V_FLASHBASEADDR(x) ((x) << S_FLASHBASEADDR) 7089 #define G_FLASHBASEADDR(x) (((x) >> S_FLASHBASEADDR) & M_FLASHBASEADDR) 7090 7091 #define A_CIM_FLASH_ADDR_SIZE 0x7b08 7092 7093 #define S_FLASHADDRSIZE 4 7094 #define M_FLASHADDRSIZE 0xfffffU 7095 #define V_FLASHADDRSIZE(x) ((x) << S_FLASHADDRSIZE) 7096 #define G_FLASHADDRSIZE(x) (((x) >> S_FLASHADDRSIZE) & M_FLASHADDRSIZE) 7097 7098 #define A_CIM_EEPROM_BASE_ADDR 0x7b0c 7099 7100 #define S_EEPROMBASEADDR 6 7101 #define M_EEPROMBASEADDR 0x3ffffU 7102 #define V_EEPROMBASEADDR(x) ((x) << S_EEPROMBASEADDR) 7103 #define G_EEPROMBASEADDR(x) (((x) >> S_EEPROMBASEADDR) & M_EEPROMBASEADDR) 7104 7105 #define A_CIM_EEPROM_ADDR_SIZE 0x7b10 7106 7107 #define S_EEPROMADDRSIZE 4 7108 #define M_EEPROMADDRSIZE 0xfffffU 7109 #define V_EEPROMADDRSIZE(x) ((x) << S_EEPROMADDRSIZE) 7110 #define G_EEPROMADDRSIZE(x) (((x) >> S_EEPROMADDRSIZE) & M_EEPROMADDRSIZE) 7111 7112 #define A_CIM_SDRAM_BASE_ADDR 0x7b14 7113 7114 #define S_SDRAMBASEADDR 6 7115 #define M_SDRAMBASEADDR 0x3ffffffU 7116 #define V_SDRAMBASEADDR(x) ((x) << S_SDRAMBASEADDR) 7117 #define G_SDRAMBASEADDR(x) (((x) >> S_SDRAMBASEADDR) & M_SDRAMBASEADDR) 7118 7119 #define A_CIM_SDRAM_ADDR_SIZE 0x7b18 7120 7121 #define S_SDRAMADDRSIZE 4 7122 #define M_SDRAMADDRSIZE 0xfffffffU 7123 #define V_SDRAMADDRSIZE(x) ((x) << S_SDRAMADDRSIZE) 7124 #define G_SDRAMADDRSIZE(x) (((x) >> S_SDRAMADDRSIZE) & M_SDRAMADDRSIZE) 7125 7126 #define A_CIM_EXTMEM2_BASE_ADDR 0x7b1c 7127 7128 #define S_EXTMEM2BASEADDR 6 7129 #define M_EXTMEM2BASEADDR 0x3ffffffU 7130 #define V_EXTMEM2BASEADDR(x) ((x) << S_EXTMEM2BASEADDR) 7131 #define G_EXTMEM2BASEADDR(x) (((x) >> S_EXTMEM2BASEADDR) & M_EXTMEM2BASEADDR) 7132 7133 #define A_CIM_EXTMEM2_ADDR_SIZE 0x7b20 7134 7135 #define S_EXTMEM2ADDRSIZE 4 7136 #define M_EXTMEM2ADDRSIZE 0xfffffffU 7137 #define V_EXTMEM2ADDRSIZE(x) ((x) << S_EXTMEM2ADDRSIZE) 7138 #define G_EXTMEM2ADDRSIZE(x) (((x) >> S_EXTMEM2ADDRSIZE) & M_EXTMEM2ADDRSIZE) 7139 7140 #define A_CIM_UP_SPARE_INT 0x7b24 7141 7142 #define S_TDEBUGINT 4 7143 #define V_TDEBUGINT(x) ((x) << S_TDEBUGINT) 7144 #define F_TDEBUGINT V_TDEBUGINT(1U) 7145 7146 #define S_BOOTVECSEL 3 7147 #define V_BOOTVECSEL(x) ((x) << S_BOOTVECSEL) 7148 #define F_BOOTVECSEL V_BOOTVECSEL(1U) 7149 7150 #define S_UPSPAREINT 0 7151 #define M_UPSPAREINT 0x7U 7152 #define V_UPSPAREINT(x) ((x) << S_UPSPAREINT) 7153 #define G_UPSPAREINT(x) (((x) >> S_UPSPAREINT) & M_UPSPAREINT) 7154 7155 #define A_CIM_HOST_INT_ENABLE 0x7b28 7156 7157 #define S_TIEQOUTPARERRINTEN 20 7158 #define V_TIEQOUTPARERRINTEN(x) ((x) << S_TIEQOUTPARERRINTEN) 7159 #define F_TIEQOUTPARERRINTEN V_TIEQOUTPARERRINTEN(1U) 7160 7161 #define S_TIEQINPARERRINTEN 19 7162 #define V_TIEQINPARERRINTEN(x) ((x) << S_TIEQINPARERRINTEN) 7163 #define F_TIEQINPARERRINTEN V_TIEQINPARERRINTEN(1U) 7164 7165 #define S_MBHOSTPARERR 18 7166 #define V_MBHOSTPARERR(x) ((x) << S_MBHOSTPARERR) 7167 #define F_MBHOSTPARERR V_MBHOSTPARERR(1U) 7168 7169 #define S_MBUPPARERR 17 7170 #define V_MBUPPARERR(x) ((x) << S_MBUPPARERR) 7171 #define F_MBUPPARERR V_MBUPPARERR(1U) 7172 7173 #define S_IBQTP0PARERR 16 7174 #define V_IBQTP0PARERR(x) ((x) << S_IBQTP0PARERR) 7175 #define F_IBQTP0PARERR V_IBQTP0PARERR(1U) 7176 7177 #define S_IBQTP1PARERR 15 7178 #define V_IBQTP1PARERR(x) ((x) << S_IBQTP1PARERR) 7179 #define F_IBQTP1PARERR V_IBQTP1PARERR(1U) 7180 7181 #define S_IBQULPPARERR 14 7182 #define V_IBQULPPARERR(x) ((x) << S_IBQULPPARERR) 7183 #define F_IBQULPPARERR V_IBQULPPARERR(1U) 7184 7185 #define S_IBQSGELOPARERR 13 7186 #define V_IBQSGELOPARERR(x) ((x) << S_IBQSGELOPARERR) 7187 #define F_IBQSGELOPARERR V_IBQSGELOPARERR(1U) 7188 7189 #define S_IBQSGEHIPARERR 12 7190 #define V_IBQSGEHIPARERR(x) ((x) << S_IBQSGEHIPARERR) 7191 #define F_IBQSGEHIPARERR V_IBQSGEHIPARERR(1U) 7192 7193 #define S_IBQNCSIPARERR 11 7194 #define V_IBQNCSIPARERR(x) ((x) << S_IBQNCSIPARERR) 7195 #define F_IBQNCSIPARERR V_IBQNCSIPARERR(1U) 7196 7197 #define S_OBQULP0PARERR 10 7198 #define V_OBQULP0PARERR(x) ((x) << S_OBQULP0PARERR) 7199 #define F_OBQULP0PARERR V_OBQULP0PARERR(1U) 7200 7201 #define S_OBQULP1PARERR 9 7202 #define V_OBQULP1PARERR(x) ((x) << S_OBQULP1PARERR) 7203 #define F_OBQULP1PARERR V_OBQULP1PARERR(1U) 7204 7205 #define S_OBQULP2PARERR 8 7206 #define V_OBQULP2PARERR(x) ((x) << S_OBQULP2PARERR) 7207 #define F_OBQULP2PARERR V_OBQULP2PARERR(1U) 7208 7209 #define S_OBQULP3PARERR 7 7210 #define V_OBQULP3PARERR(x) ((x) << S_OBQULP3PARERR) 7211 #define F_OBQULP3PARERR V_OBQULP3PARERR(1U) 7212 7213 #define S_OBQSGEPARERR 6 7214 #define V_OBQSGEPARERR(x) ((x) << S_OBQSGEPARERR) 7215 #define F_OBQSGEPARERR V_OBQSGEPARERR(1U) 7216 7217 #define S_OBQNCSIPARERR 5 7218 #define V_OBQNCSIPARERR(x) ((x) << S_OBQNCSIPARERR) 7219 #define F_OBQNCSIPARERR V_OBQNCSIPARERR(1U) 7220 7221 #define S_TIMER1INTEN 3 7222 #define V_TIMER1INTEN(x) ((x) << S_TIMER1INTEN) 7223 #define F_TIMER1INTEN V_TIMER1INTEN(1U) 7224 7225 #define S_TIMER0INTEN 2 7226 #define V_TIMER0INTEN(x) ((x) << S_TIMER0INTEN) 7227 #define F_TIMER0INTEN V_TIMER0INTEN(1U) 7228 7229 #define S_PREFDROPINTEN 1 7230 #define V_PREFDROPINTEN(x) ((x) << S_PREFDROPINTEN) 7231 #define F_PREFDROPINTEN V_PREFDROPINTEN(1U) 7232 7233 #define A_CIM_HOST_INT_CAUSE 0x7b2c 7234 7235 #define S_TIEQOUTPARERRINT 20 7236 #define V_TIEQOUTPARERRINT(x) ((x) << S_TIEQOUTPARERRINT) 7237 #define F_TIEQOUTPARERRINT V_TIEQOUTPARERRINT(1U) 7238 7239 #define S_TIEQINPARERRINT 19 7240 #define V_TIEQINPARERRINT(x) ((x) << S_TIEQINPARERRINT) 7241 #define F_TIEQINPARERRINT V_TIEQINPARERRINT(1U) 7242 7243 #define S_TIMER1INT 3 7244 #define V_TIMER1INT(x) ((x) << S_TIMER1INT) 7245 #define F_TIMER1INT V_TIMER1INT(1U) 7246 7247 #define S_TIMER0INT 2 7248 #define V_TIMER0INT(x) ((x) << S_TIMER0INT) 7249 #define F_TIMER0INT V_TIMER0INT(1U) 7250 7251 #define S_PREFDROPINT 1 7252 #define V_PREFDROPINT(x) ((x) << S_PREFDROPINT) 7253 #define F_PREFDROPINT V_PREFDROPINT(1U) 7254 7255 #define S_UPACCNONZERO 0 7256 #define V_UPACCNONZERO(x) ((x) << S_UPACCNONZERO) 7257 #define F_UPACCNONZERO V_UPACCNONZERO(1U) 7258 7259 #define A_CIM_HOST_UPACC_INT_ENABLE 0x7b30 7260 7261 #define S_EEPROMWRINTEN 30 7262 #define V_EEPROMWRINTEN(x) ((x) << S_EEPROMWRINTEN) 7263 #define F_EEPROMWRINTEN V_EEPROMWRINTEN(1U) 7264 7265 #define S_TIMEOUTMAINTEN 29 7266 #define V_TIMEOUTMAINTEN(x) ((x) << S_TIMEOUTMAINTEN) 7267 #define F_TIMEOUTMAINTEN V_TIMEOUTMAINTEN(1U) 7268 7269 #define S_TIMEOUTINTEN 28 7270 #define V_TIMEOUTINTEN(x) ((x) << S_TIMEOUTINTEN) 7271 #define F_TIMEOUTINTEN V_TIMEOUTINTEN(1U) 7272 7273 #define S_RSPOVRLOOKUPINTEN 27 7274 #define V_RSPOVRLOOKUPINTEN(x) ((x) << S_RSPOVRLOOKUPINTEN) 7275 #define F_RSPOVRLOOKUPINTEN V_RSPOVRLOOKUPINTEN(1U) 7276 7277 #define S_REQOVRLOOKUPINTEN 26 7278 #define V_REQOVRLOOKUPINTEN(x) ((x) << S_REQOVRLOOKUPINTEN) 7279 #define F_REQOVRLOOKUPINTEN V_REQOVRLOOKUPINTEN(1U) 7280 7281 #define S_BLKWRPLINTEN 25 7282 #define V_BLKWRPLINTEN(x) ((x) << S_BLKWRPLINTEN) 7283 #define F_BLKWRPLINTEN V_BLKWRPLINTEN(1U) 7284 7285 #define S_BLKRDPLINTEN 24 7286 #define V_BLKRDPLINTEN(x) ((x) << S_BLKRDPLINTEN) 7287 #define F_BLKRDPLINTEN V_BLKRDPLINTEN(1U) 7288 7289 #define S_SGLWRPLINTEN 23 7290 #define V_SGLWRPLINTEN(x) ((x) << S_SGLWRPLINTEN) 7291 #define F_SGLWRPLINTEN V_SGLWRPLINTEN(1U) 7292 7293 #define S_SGLRDPLINTEN 22 7294 #define V_SGLRDPLINTEN(x) ((x) << S_SGLRDPLINTEN) 7295 #define F_SGLRDPLINTEN V_SGLRDPLINTEN(1U) 7296 7297 #define S_BLKWRCTLINTEN 21 7298 #define V_BLKWRCTLINTEN(x) ((x) << S_BLKWRCTLINTEN) 7299 #define F_BLKWRCTLINTEN V_BLKWRCTLINTEN(1U) 7300 7301 #define S_BLKRDCTLINTEN 20 7302 #define V_BLKRDCTLINTEN(x) ((x) << S_BLKRDCTLINTEN) 7303 #define F_BLKRDCTLINTEN V_BLKRDCTLINTEN(1U) 7304 7305 #define S_SGLWRCTLINTEN 19 7306 #define V_SGLWRCTLINTEN(x) ((x) << S_SGLWRCTLINTEN) 7307 #define F_SGLWRCTLINTEN V_SGLWRCTLINTEN(1U) 7308 7309 #define S_SGLRDCTLINTEN 18 7310 #define V_SGLRDCTLINTEN(x) ((x) << S_SGLRDCTLINTEN) 7311 #define F_SGLRDCTLINTEN V_SGLRDCTLINTEN(1U) 7312 7313 #define S_BLKWREEPROMINTEN 17 7314 #define V_BLKWREEPROMINTEN(x) ((x) << S_BLKWREEPROMINTEN) 7315 #define F_BLKWREEPROMINTEN V_BLKWREEPROMINTEN(1U) 7316 7317 #define S_BLKRDEEPROMINTEN 16 7318 #define V_BLKRDEEPROMINTEN(x) ((x) << S_BLKRDEEPROMINTEN) 7319 #define F_BLKRDEEPROMINTEN V_BLKRDEEPROMINTEN(1U) 7320 7321 #define S_SGLWREEPROMINTEN 15 7322 #define V_SGLWREEPROMINTEN(x) ((x) << S_SGLWREEPROMINTEN) 7323 #define F_SGLWREEPROMINTEN V_SGLWREEPROMINTEN(1U) 7324 7325 #define S_SGLRDEEPROMINTEN 14 7326 #define V_SGLRDEEPROMINTEN(x) ((x) << S_SGLRDEEPROMINTEN) 7327 #define F_SGLRDEEPROMINTEN V_SGLRDEEPROMINTEN(1U) 7328 7329 #define S_BLKWRFLASHINTEN 13 7330 #define V_BLKWRFLASHINTEN(x) ((x) << S_BLKWRFLASHINTEN) 7331 #define F_BLKWRFLASHINTEN V_BLKWRFLASHINTEN(1U) 7332 7333 #define S_BLKRDFLASHINTEN 12 7334 #define V_BLKRDFLASHINTEN(x) ((x) << S_BLKRDFLASHINTEN) 7335 #define F_BLKRDFLASHINTEN V_BLKRDFLASHINTEN(1U) 7336 7337 #define S_SGLWRFLASHINTEN 11 7338 #define V_SGLWRFLASHINTEN(x) ((x) << S_SGLWRFLASHINTEN) 7339 #define F_SGLWRFLASHINTEN V_SGLWRFLASHINTEN(1U) 7340 7341 #define S_SGLRDFLASHINTEN 10 7342 #define V_SGLRDFLASHINTEN(x) ((x) << S_SGLRDFLASHINTEN) 7343 #define F_SGLRDFLASHINTEN V_SGLRDFLASHINTEN(1U) 7344 7345 #define S_BLKWRBOOTINTEN 9 7346 #define V_BLKWRBOOTINTEN(x) ((x) << S_BLKWRBOOTINTEN) 7347 #define F_BLKWRBOOTINTEN V_BLKWRBOOTINTEN(1U) 7348 7349 #define S_BLKRDBOOTINTEN 8 7350 #define V_BLKRDBOOTINTEN(x) ((x) << S_BLKRDBOOTINTEN) 7351 #define F_BLKRDBOOTINTEN V_BLKRDBOOTINTEN(1U) 7352 7353 #define S_SGLWRBOOTINTEN 7 7354 #define V_SGLWRBOOTINTEN(x) ((x) << S_SGLWRBOOTINTEN) 7355 #define F_SGLWRBOOTINTEN V_SGLWRBOOTINTEN(1U) 7356 7357 #define S_SGLRDBOOTINTEN 6 7358 #define V_SGLRDBOOTINTEN(x) ((x) << S_SGLRDBOOTINTEN) 7359 #define F_SGLRDBOOTINTEN V_SGLRDBOOTINTEN(1U) 7360 7361 #define S_ILLWRBEINTEN 5 7362 #define V_ILLWRBEINTEN(x) ((x) << S_ILLWRBEINTEN) 7363 #define F_ILLWRBEINTEN V_ILLWRBEINTEN(1U) 7364 7365 #define S_ILLRDBEINTEN 4 7366 #define V_ILLRDBEINTEN(x) ((x) << S_ILLRDBEINTEN) 7367 #define F_ILLRDBEINTEN V_ILLRDBEINTEN(1U) 7368 7369 #define S_ILLRDINTEN 3 7370 #define V_ILLRDINTEN(x) ((x) << S_ILLRDINTEN) 7371 #define F_ILLRDINTEN V_ILLRDINTEN(1U) 7372 7373 #define S_ILLWRINTEN 2 7374 #define V_ILLWRINTEN(x) ((x) << S_ILLWRINTEN) 7375 #define F_ILLWRINTEN V_ILLWRINTEN(1U) 7376 7377 #define S_ILLTRANSINTEN 1 7378 #define V_ILLTRANSINTEN(x) ((x) << S_ILLTRANSINTEN) 7379 #define F_ILLTRANSINTEN V_ILLTRANSINTEN(1U) 7380 7381 #define S_RSVDSPACEINTEN 0 7382 #define V_RSVDSPACEINTEN(x) ((x) << S_RSVDSPACEINTEN) 7383 #define F_RSVDSPACEINTEN V_RSVDSPACEINTEN(1U) 7384 7385 #define A_CIM_HOST_UPACC_INT_CAUSE 0x7b34 7386 7387 #define S_EEPROMWRINT 30 7388 #define V_EEPROMWRINT(x) ((x) << S_EEPROMWRINT) 7389 #define F_EEPROMWRINT V_EEPROMWRINT(1U) 7390 7391 #define S_TIMEOUTMAINT 29 7392 #define V_TIMEOUTMAINT(x) ((x) << S_TIMEOUTMAINT) 7393 #define F_TIMEOUTMAINT V_TIMEOUTMAINT(1U) 7394 7395 #define S_TIMEOUTINT 28 7396 #define V_TIMEOUTINT(x) ((x) << S_TIMEOUTINT) 7397 #define F_TIMEOUTINT V_TIMEOUTINT(1U) 7398 7399 #define S_RSPOVRLOOKUPINT 27 7400 #define V_RSPOVRLOOKUPINT(x) ((x) << S_RSPOVRLOOKUPINT) 7401 #define F_RSPOVRLOOKUPINT V_RSPOVRLOOKUPINT(1U) 7402 7403 #define S_REQOVRLOOKUPINT 26 7404 #define V_REQOVRLOOKUPINT(x) ((x) << S_REQOVRLOOKUPINT) 7405 #define F_REQOVRLOOKUPINT V_REQOVRLOOKUPINT(1U) 7406 7407 #define S_BLKWRPLINT 25 7408 #define V_BLKWRPLINT(x) ((x) << S_BLKWRPLINT) 7409 #define F_BLKWRPLINT V_BLKWRPLINT(1U) 7410 7411 #define S_BLKRDPLINT 24 7412 #define V_BLKRDPLINT(x) ((x) << S_BLKRDPLINT) 7413 #define F_BLKRDPLINT V_BLKRDPLINT(1U) 7414 7415 #define S_SGLWRPLINT 23 7416 #define V_SGLWRPLINT(x) ((x) << S_SGLWRPLINT) 7417 #define F_SGLWRPLINT V_SGLWRPLINT(1U) 7418 7419 #define S_SGLRDPLINT 22 7420 #define V_SGLRDPLINT(x) ((x) << S_SGLRDPLINT) 7421 #define F_SGLRDPLINT V_SGLRDPLINT(1U) 7422 7423 #define S_BLKWRCTLINT 21 7424 #define V_BLKWRCTLINT(x) ((x) << S_BLKWRCTLINT) 7425 #define F_BLKWRCTLINT V_BLKWRCTLINT(1U) 7426 7427 #define S_BLKRDCTLINT 20 7428 #define V_BLKRDCTLINT(x) ((x) << S_BLKRDCTLINT) 7429 #define F_BLKRDCTLINT V_BLKRDCTLINT(1U) 7430 7431 #define S_SGLWRCTLINT 19 7432 #define V_SGLWRCTLINT(x) ((x) << S_SGLWRCTLINT) 7433 #define F_SGLWRCTLINT V_SGLWRCTLINT(1U) 7434 7435 #define S_SGLRDCTLINT 18 7436 #define V_SGLRDCTLINT(x) ((x) << S_SGLRDCTLINT) 7437 #define F_SGLRDCTLINT V_SGLRDCTLINT(1U) 7438 7439 #define S_BLKWREEPROMINT 17 7440 #define V_BLKWREEPROMINT(x) ((x) << S_BLKWREEPROMINT) 7441 #define F_BLKWREEPROMINT V_BLKWREEPROMINT(1U) 7442 7443 #define S_BLKRDEEPROMINT 16 7444 #define V_BLKRDEEPROMINT(x) ((x) << S_BLKRDEEPROMINT) 7445 #define F_BLKRDEEPROMINT V_BLKRDEEPROMINT(1U) 7446 7447 #define S_SGLWREEPROMINT 15 7448 #define V_SGLWREEPROMINT(x) ((x) << S_SGLWREEPROMINT) 7449 #define F_SGLWREEPROMINT V_SGLWREEPROMINT(1U) 7450 7451 #define S_SGLRDEEPROMINT 14 7452 #define V_SGLRDEEPROMINT(x) ((x) << S_SGLRDEEPROMINT) 7453 #define F_SGLRDEEPROMINT V_SGLRDEEPROMINT(1U) 7454 7455 #define S_BLKWRFLASHINT 13 7456 #define V_BLKWRFLASHINT(x) ((x) << S_BLKWRFLASHINT) 7457 #define F_BLKWRFLASHINT V_BLKWRFLASHINT(1U) 7458 7459 #define S_BLKRDFLASHINT 12 7460 #define V_BLKRDFLASHINT(x) ((x) << S_BLKRDFLASHINT) 7461 #define F_BLKRDFLASHINT V_BLKRDFLASHINT(1U) 7462 7463 #define S_SGLWRFLASHINT 11 7464 #define V_SGLWRFLASHINT(x) ((x) << S_SGLWRFLASHINT) 7465 #define F_SGLWRFLASHINT V_SGLWRFLASHINT(1U) 7466 7467 #define S_SGLRDFLASHINT 10 7468 #define V_SGLRDFLASHINT(x) ((x) << S_SGLRDFLASHINT) 7469 #define F_SGLRDFLASHINT V_SGLRDFLASHINT(1U) 7470 7471 #define S_BLKWRBOOTINT 9 7472 #define V_BLKWRBOOTINT(x) ((x) << S_BLKWRBOOTINT) 7473 #define F_BLKWRBOOTINT V_BLKWRBOOTINT(1U) 7474 7475 #define S_BLKRDBOOTINT 8 7476 #define V_BLKRDBOOTINT(x) ((x) << S_BLKRDBOOTINT) 7477 #define F_BLKRDBOOTINT V_BLKRDBOOTINT(1U) 7478 7479 #define S_SGLWRBOOTINT 7 7480 #define V_SGLWRBOOTINT(x) ((x) << S_SGLWRBOOTINT) 7481 #define F_SGLWRBOOTINT V_SGLWRBOOTINT(1U) 7482 7483 #define S_SGLRDBOOTINT 6 7484 #define V_SGLRDBOOTINT(x) ((x) << S_SGLRDBOOTINT) 7485 #define F_SGLRDBOOTINT V_SGLRDBOOTINT(1U) 7486 7487 #define S_ILLWRBEINT 5 7488 #define V_ILLWRBEINT(x) ((x) << S_ILLWRBEINT) 7489 #define F_ILLWRBEINT V_ILLWRBEINT(1U) 7490 7491 #define S_ILLRDBEINT 4 7492 #define V_ILLRDBEINT(x) ((x) << S_ILLRDBEINT) 7493 #define F_ILLRDBEINT V_ILLRDBEINT(1U) 7494 7495 #define S_ILLRDINT 3 7496 #define V_ILLRDINT(x) ((x) << S_ILLRDINT) 7497 #define F_ILLRDINT V_ILLRDINT(1U) 7498 7499 #define S_ILLWRINT 2 7500 #define V_ILLWRINT(x) ((x) << S_ILLWRINT) 7501 #define F_ILLWRINT V_ILLWRINT(1U) 7502 7503 #define S_ILLTRANSINT 1 7504 #define V_ILLTRANSINT(x) ((x) << S_ILLTRANSINT) 7505 #define F_ILLTRANSINT V_ILLTRANSINT(1U) 7506 7507 #define S_RSVDSPACEINT 0 7508 #define V_RSVDSPACEINT(x) ((x) << S_RSVDSPACEINT) 7509 #define F_RSVDSPACEINT V_RSVDSPACEINT(1U) 7510 7511 #define A_CIM_UP_INT_ENABLE 0x7b38 7512 7513 #define S_MSTPLINTEN 4 7514 #define V_MSTPLINTEN(x) ((x) << S_MSTPLINTEN) 7515 #define F_MSTPLINTEN V_MSTPLINTEN(1U) 7516 7517 #define A_CIM_UP_INT_CAUSE 0x7b3c 7518 7519 #define S_MSTPLINT 4 7520 #define V_MSTPLINT(x) ((x) << S_MSTPLINT) 7521 #define F_MSTPLINT V_MSTPLINT(1U) 7522 7523 #define A_CIM_UP_ACC_INT_ENABLE 0x7b40 7524 #define A_CIM_UP_ACC_INT_CAUSE 0x7b44 7525 #define A_CIM_QUEUE_CONFIG_REF 0x7b48 7526 7527 #define S_OBQSELECT 4 7528 #define V_OBQSELECT(x) ((x) << S_OBQSELECT) 7529 #define F_OBQSELECT V_OBQSELECT(1U) 7530 7531 #define S_IBQSELECT 3 7532 #define V_IBQSELECT(x) ((x) << S_IBQSELECT) 7533 #define F_IBQSELECT V_IBQSELECT(1U) 7534 7535 #define S_QUENUMSELECT 0 7536 #define M_QUENUMSELECT 0x7U 7537 #define V_QUENUMSELECT(x) ((x) << S_QUENUMSELECT) 7538 #define G_QUENUMSELECT(x) (((x) >> S_QUENUMSELECT) & M_QUENUMSELECT) 7539 7540 #define A_CIM_QUEUE_CONFIG_CTRL 0x7b4c 7541 7542 #define S_CIMQSIZE 24 7543 #define M_CIMQSIZE 0x3fU 7544 #define V_CIMQSIZE(x) ((x) << S_CIMQSIZE) 7545 #define G_CIMQSIZE(x) (((x) >> S_CIMQSIZE) & M_CIMQSIZE) 7546 7547 #define S_CIMQBASE 16 7548 #define M_CIMQBASE 0x3fU 7549 #define V_CIMQBASE(x) ((x) << S_CIMQBASE) 7550 #define G_CIMQBASE(x) (((x) >> S_CIMQBASE) & M_CIMQBASE) 7551 7552 #define S_CIMQDBG8BEN 9 7553 #define V_CIMQDBG8BEN(x) ((x) << S_CIMQDBG8BEN) 7554 #define F_CIMQDBG8BEN V_CIMQDBG8BEN(1U) 7555 7556 #define S_QUEFULLTHRSH 0 7557 #define M_QUEFULLTHRSH 0x1ffU 7558 #define V_QUEFULLTHRSH(x) ((x) << S_QUEFULLTHRSH) 7559 #define G_QUEFULLTHRSH(x) (((x) >> S_QUEFULLTHRSH) & M_QUEFULLTHRSH) 7560 7561 #define A_CIM_HOST_ACC_CTRL 0x7b50 7562 7563 #define S_HOSTBUSY 17 7564 #define V_HOSTBUSY(x) ((x) << S_HOSTBUSY) 7565 #define F_HOSTBUSY V_HOSTBUSY(1U) 7566 7567 #define S_HOSTWRITE 16 7568 #define V_HOSTWRITE(x) ((x) << S_HOSTWRITE) 7569 #define F_HOSTWRITE V_HOSTWRITE(1U) 7570 7571 #define S_HOSTADDR 0 7572 #define M_HOSTADDR 0xffffU 7573 #define V_HOSTADDR(x) ((x) << S_HOSTADDR) 7574 #define G_HOSTADDR(x) (((x) >> S_HOSTADDR) & M_HOSTADDR) 7575 7576 #define A_CIM_HOST_ACC_DATA 0x7b54 7577 #define A_CIM_CDEBUGDATA 0x7b58 7578 7579 #define S_CDEBUGDATAH 16 7580 #define M_CDEBUGDATAH 0xffffU 7581 #define V_CDEBUGDATAH(x) ((x) << S_CDEBUGDATAH) 7582 #define G_CDEBUGDATAH(x) (((x) >> S_CDEBUGDATAH) & M_CDEBUGDATAH) 7583 7584 #define S_CDEBUGDATAL 0 7585 #define M_CDEBUGDATAL 0xffffU 7586 #define V_CDEBUGDATAL(x) ((x) << S_CDEBUGDATAL) 7587 #define G_CDEBUGDATAL(x) (((x) >> S_CDEBUGDATAL) & M_CDEBUGDATAL) 7588 7589 #define A_CIM_IBQ_DBG_CFG 0x7b60 7590 7591 #define S_IBQDBGADDR 16 7592 #define M_IBQDBGADDR 0xfffU 7593 #define V_IBQDBGADDR(x) ((x) << S_IBQDBGADDR) 7594 #define G_IBQDBGADDR(x) (((x) >> S_IBQDBGADDR) & M_IBQDBGADDR) 7595 7596 #define S_IBQDBGWR 2 7597 #define V_IBQDBGWR(x) ((x) << S_IBQDBGWR) 7598 #define F_IBQDBGWR V_IBQDBGWR(1U) 7599 7600 #define S_IBQDBGBUSY 1 7601 #define V_IBQDBGBUSY(x) ((x) << S_IBQDBGBUSY) 7602 #define F_IBQDBGBUSY V_IBQDBGBUSY(1U) 7603 7604 #define S_IBQDBGEN 0 7605 #define V_IBQDBGEN(x) ((x) << S_IBQDBGEN) 7606 #define F_IBQDBGEN V_IBQDBGEN(1U) 7607 7608 #define A_CIM_OBQ_DBG_CFG 0x7b64 7609 7610 #define S_OBQDBGADDR 16 7611 #define M_OBQDBGADDR 0xfffU 7612 #define V_OBQDBGADDR(x) ((x) << S_OBQDBGADDR) 7613 #define G_OBQDBGADDR(x) (((x) >> S_OBQDBGADDR) & M_OBQDBGADDR) 7614 7615 #define S_OBQDBGWR 2 7616 #define V_OBQDBGWR(x) ((x) << S_OBQDBGWR) 7617 #define F_OBQDBGWR V_OBQDBGWR(1U) 7618 7619 #define S_OBQDBGBUSY 1 7620 #define V_OBQDBGBUSY(x) ((x) << S_OBQDBGBUSY) 7621 #define F_OBQDBGBUSY V_OBQDBGBUSY(1U) 7622 7623 #define S_OBQDBGEN 0 7624 #define V_OBQDBGEN(x) ((x) << S_OBQDBGEN) 7625 #define F_OBQDBGEN V_OBQDBGEN(1U) 7626 7627 #define A_CIM_IBQ_DBG_DATA 0x7b68 7628 #define A_CIM_OBQ_DBG_DATA 0x7b6c 7629 #define A_CIM_DEBUGCFG 0x7b70 7630 7631 #define S_POLADBGRDPTR 23 7632 #define M_POLADBGRDPTR 0x1ffU 7633 #define V_POLADBGRDPTR(x) ((x) << S_POLADBGRDPTR) 7634 #define G_POLADBGRDPTR(x) (((x) >> S_POLADBGRDPTR) & M_POLADBGRDPTR) 7635 7636 #define S_PILADBGRDPTR 14 7637 #define M_PILADBGRDPTR 0x1ffU 7638 #define V_PILADBGRDPTR(x) ((x) << S_PILADBGRDPTR) 7639 #define G_PILADBGRDPTR(x) (((x) >> S_PILADBGRDPTR) & M_PILADBGRDPTR) 7640 7641 #define S_LAMASKTRIG 13 7642 #define V_LAMASKTRIG(x) ((x) << S_LAMASKTRIG) 7643 #define F_LAMASKTRIG V_LAMASKTRIG(1U) 7644 7645 #define S_LADBGEN 12 7646 #define V_LADBGEN(x) ((x) << S_LADBGEN) 7647 #define F_LADBGEN V_LADBGEN(1U) 7648 7649 #define S_LAFILLONCE 11 7650 #define V_LAFILLONCE(x) ((x) << S_LAFILLONCE) 7651 #define F_LAFILLONCE V_LAFILLONCE(1U) 7652 7653 #define S_LAMASKSTOP 10 7654 #define V_LAMASKSTOP(x) ((x) << S_LAMASKSTOP) 7655 #define F_LAMASKSTOP V_LAMASKSTOP(1U) 7656 7657 #define S_DEBUGSELH 5 7658 #define M_DEBUGSELH 0x1fU 7659 #define V_DEBUGSELH(x) ((x) << S_DEBUGSELH) 7660 #define G_DEBUGSELH(x) (((x) >> S_DEBUGSELH) & M_DEBUGSELH) 7661 7662 #define S_DEBUGSELL 0 7663 #define M_DEBUGSELL 0x1fU 7664 #define V_DEBUGSELL(x) ((x) << S_DEBUGSELL) 7665 #define G_DEBUGSELL(x) (((x) >> S_DEBUGSELL) & M_DEBUGSELL) 7666 7667 #define A_CIM_DEBUGSTS 0x7b74 7668 7669 #define S_LARESET 31 7670 #define V_LARESET(x) ((x) << S_LARESET) 7671 #define F_LARESET V_LARESET(1U) 7672 7673 #define S_POLADBGWRPTR 16 7674 #define M_POLADBGWRPTR 0x1ffU 7675 #define V_POLADBGWRPTR(x) ((x) << S_POLADBGWRPTR) 7676 #define G_POLADBGWRPTR(x) (((x) >> S_POLADBGWRPTR) & M_POLADBGWRPTR) 7677 7678 #define S_PILADBGWRPTR 0 7679 #define M_PILADBGWRPTR 0x1ffU 7680 #define V_PILADBGWRPTR(x) ((x) << S_PILADBGWRPTR) 7681 #define G_PILADBGWRPTR(x) (((x) >> S_PILADBGWRPTR) & M_PILADBGWRPTR) 7682 7683 #define A_CIM_PO_LA_DEBUGDATA 0x7b78 7684 #define A_CIM_PI_LA_DEBUGDATA 0x7b7c 7685 #define A_CIM_PO_LA_MADEBUGDATA 0x7b80 7686 #define A_CIM_PI_LA_MADEBUGDATA 0x7b84 7687 #define A_CIM_PO_LA_PIFSMDEBUGDATA 0x7b8c 7688 #define A_CIM_MEM_ZONE0_VA 0x7b90 7689 7690 #define S_MEM_ZONE_VA 4 7691 #define M_MEM_ZONE_VA 0xfffffffU 7692 #define V_MEM_ZONE_VA(x) ((x) << S_MEM_ZONE_VA) 7693 #define G_MEM_ZONE_VA(x) (((x) >> S_MEM_ZONE_VA) & M_MEM_ZONE_VA) 7694 7695 #define A_CIM_MEM_ZONE0_BA 0x7b94 7696 7697 #define S_MEM_ZONE_BA 6 7698 #define M_MEM_ZONE_BA 0x3ffffffU 7699 #define V_MEM_ZONE_BA(x) ((x) << S_MEM_ZONE_BA) 7700 #define G_MEM_ZONE_BA(x) (((x) >> S_MEM_ZONE_BA) & M_MEM_ZONE_BA) 7701 7702 #define S_PBT_ENABLE 5 7703 #define V_PBT_ENABLE(x) ((x) << S_PBT_ENABLE) 7704 #define F_PBT_ENABLE V_PBT_ENABLE(1U) 7705 7706 #define S_ZONE_DST 0 7707 #define M_ZONE_DST 0x3U 7708 #define V_ZONE_DST(x) ((x) << S_ZONE_DST) 7709 #define G_ZONE_DST(x) (((x) >> S_ZONE_DST) & M_ZONE_DST) 7710 7711 #define A_CIM_MEM_ZONE0_LEN 0x7b98 7712 7713 #define S_MEM_ZONE_LEN 4 7714 #define M_MEM_ZONE_LEN 0xfffffffU 7715 #define V_MEM_ZONE_LEN(x) ((x) << S_MEM_ZONE_LEN) 7716 #define G_MEM_ZONE_LEN(x) (((x) >> S_MEM_ZONE_LEN) & M_MEM_ZONE_LEN) 7717 7718 #define A_CIM_MEM_ZONE1_VA 0x7b9c 7719 #define A_CIM_MEM_ZONE1_BA 0x7ba0 7720 #define A_CIM_MEM_ZONE1_LEN 0x7ba4 7721 #define A_CIM_MEM_ZONE2_VA 0x7ba8 7722 #define A_CIM_MEM_ZONE2_BA 0x7bac 7723 #define A_CIM_MEM_ZONE2_LEN 0x7bb0 7724 #define A_CIM_MEM_ZONE3_VA 0x7bb4 7725 #define A_CIM_MEM_ZONE3_BA 0x7bb8 7726 #define A_CIM_MEM_ZONE3_LEN 0x7bbc 7727 #define A_CIM_MEM_ZONE4_VA 0x7bc0 7728 #define A_CIM_MEM_ZONE4_BA 0x7bc4 7729 #define A_CIM_MEM_ZONE4_LEN 0x7bc8 7730 #define A_CIM_MEM_ZONE5_VA 0x7bcc 7731 #define A_CIM_MEM_ZONE5_BA 0x7bd0 7732 #define A_CIM_MEM_ZONE5_LEN 0x7bd4 7733 #define A_CIM_MEM_ZONE6_VA 0x7bd8 7734 #define A_CIM_MEM_ZONE6_BA 0x7bdc 7735 #define A_CIM_MEM_ZONE6_LEN 0x7be0 7736 #define A_CIM_MEM_ZONE7_VA 0x7be4 7737 #define A_CIM_MEM_ZONE7_BA 0x7be8 7738 #define A_CIM_MEM_ZONE7_LEN 0x7bec 7739 #define A_CIM_BOOT_LEN 0x7bf0 7740 7741 #define S_BOOTLEN 4 7742 #define M_BOOTLEN 0xfffffffU 7743 #define V_BOOTLEN(x) ((x) << S_BOOTLEN) 7744 #define G_BOOTLEN(x) (((x) >> S_BOOTLEN) & M_BOOTLEN) 7745 7746 #define A_CIM_GLB_TIMER_CTL 0x7bf4 7747 7748 #define S_TIMER1EN 4 7749 #define V_TIMER1EN(x) ((x) << S_TIMER1EN) 7750 #define F_TIMER1EN V_TIMER1EN(1U) 7751 7752 #define S_TIMER0EN 3 7753 #define V_TIMER0EN(x) ((x) << S_TIMER0EN) 7754 #define F_TIMER0EN V_TIMER0EN(1U) 7755 7756 #define S_TIMEREN 1 7757 #define V_TIMEREN(x) ((x) << S_TIMEREN) 7758 #define F_TIMEREN V_TIMEREN(1U) 7759 7760 #define A_CIM_GLB_TIMER 0x7bf8 7761 #define A_CIM_GLB_TIMER_TICK 0x7bfc 7762 7763 #define S_GLBLTTICK 0 7764 #define M_GLBLTTICK 0xffffU 7765 #define V_GLBLTTICK(x) ((x) << S_GLBLTTICK) 7766 #define G_GLBLTTICK(x) (((x) >> S_GLBLTTICK) & M_GLBLTTICK) 7767 7768 #define A_CIM_TIMER0 0x7c00 7769 #define A_CIM_TIMER1 0x7c04 7770 #define A_CIM_DEBUG_ADDR_TIMEOUT 0x7c08 7771 7772 #define S_DADDRTIMEOUT 2 7773 #define M_DADDRTIMEOUT 0x3fffffffU 7774 #define V_DADDRTIMEOUT(x) ((x) << S_DADDRTIMEOUT) 7775 #define G_DADDRTIMEOUT(x) (((x) >> S_DADDRTIMEOUT) & M_DADDRTIMEOUT) 7776 7777 #define A_CIM_DEBUG_ADDR_ILLEGAL 0x7c0c 7778 7779 #define S_DADDRILLEGAL 2 7780 #define M_DADDRILLEGAL 0x3fffffffU 7781 #define V_DADDRILLEGAL(x) ((x) << S_DADDRILLEGAL) 7782 #define G_DADDRILLEGAL(x) (((x) >> S_DADDRILLEGAL) & M_DADDRILLEGAL) 7783 7784 #define A_CIM_DEBUG_PIF_CAUSE_MASK 0x7c10 7785 7786 #define S_DPIFHOSTMASK 0 7787 #define M_DPIFHOSTMASK 0x1fffffU 7788 #define V_DPIFHOSTMASK(x) ((x) << S_DPIFHOSTMASK) 7789 #define G_DPIFHOSTMASK(x) (((x) >> S_DPIFHOSTMASK) & M_DPIFHOSTMASK) 7790 7791 #define A_CIM_DEBUG_PIF_UPACC_CAUSE_MASK 0x7c14 7792 7793 #define S_DPIFHUPAMASK 0 7794 #define M_DPIFHUPAMASK 0x7fffffffU 7795 #define V_DPIFHUPAMASK(x) ((x) << S_DPIFHUPAMASK) 7796 #define G_DPIFHUPAMASK(x) (((x) >> S_DPIFHUPAMASK) & M_DPIFHUPAMASK) 7797 7798 #define A_CIM_DEBUG_UP_CAUSE_MASK 0x7c18 7799 7800 #define S_DUPMASK 0 7801 #define M_DUPMASK 0x1fffffU 7802 #define V_DUPMASK(x) ((x) << S_DUPMASK) 7803 #define G_DUPMASK(x) (((x) >> S_DUPMASK) & M_DUPMASK) 7804 7805 #define A_CIM_DEBUG_UP_UPACC_CAUSE_MASK 0x7c1c 7806 7807 #define S_DUPUACCMASK 0 7808 #define M_DUPUACCMASK 0x7fffffffU 7809 #define V_DUPUACCMASK(x) ((x) << S_DUPUACCMASK) 7810 #define G_DUPUACCMASK(x) (((x) >> S_DUPUACCMASK) & M_DUPUACCMASK) 7811 7812 #define A_CIM_PERR_INJECT 0x7c20 7813 #define A_CIM_PERR_ENABLE 0x7c24 7814 7815 #define S_PERREN 0 7816 #define M_PERREN 0x1fffffU 7817 #define V_PERREN(x) ((x) << S_PERREN) 7818 #define G_PERREN(x) (((x) >> S_PERREN) & M_PERREN) 7819 7820 #define A_CIM_EEPROM_BUSY_BIT 0x7c28 7821 7822 #define S_EEPROMBUSY 0 7823 #define V_EEPROMBUSY(x) ((x) << S_EEPROMBUSY) 7824 #define F_EEPROMBUSY V_EEPROMBUSY(1U) 7825 7826 #define A_CIM_MA_TIMER_EN 0x7c2c 7827 7828 #define S_MA_TIMER_ENABLE 0 7829 #define V_MA_TIMER_ENABLE(x) ((x) << S_MA_TIMER_ENABLE) 7830 #define F_MA_TIMER_ENABLE V_MA_TIMER_ENABLE(1U) 7831 7832 #define A_CIM_UP_PO_SINGLE_OUTSTANDING 0x7c30 7833 7834 #define S_UP_PO_SINGLE_OUTSTANDING 0 7835 #define V_UP_PO_SINGLE_OUTSTANDING(x) ((x) << S_UP_PO_SINGLE_OUTSTANDING) 7836 #define F_UP_PO_SINGLE_OUTSTANDING V_UP_PO_SINGLE_OUTSTANDING(1U) 7837 7838 #define A_CIM_CIM_DEBUG_SPARE 0x7c34 7839 #define A_CIM_UP_OPERATION_FREQ 0x7c38 7840 7841 /* registers for module TP */ 7842 #define TP_BASE_ADDR 0x7d00 7843 7844 #define A_TP_IN_CONFIG 0x7d00 7845 7846 #define S_TCPOPTPARSERDISCH3 27 7847 #define V_TCPOPTPARSERDISCH3(x) ((x) << S_TCPOPTPARSERDISCH3) 7848 #define F_TCPOPTPARSERDISCH3 V_TCPOPTPARSERDISCH3(1U) 7849 7850 #define S_TCPOPTPARSERDISCH2 26 7851 #define V_TCPOPTPARSERDISCH2(x) ((x) << S_TCPOPTPARSERDISCH2) 7852 #define F_TCPOPTPARSERDISCH2 V_TCPOPTPARSERDISCH2(1U) 7853 7854 #define S_TCPOPTPARSERDISCH1 25 7855 #define V_TCPOPTPARSERDISCH1(x) ((x) << S_TCPOPTPARSERDISCH1) 7856 #define F_TCPOPTPARSERDISCH1 V_TCPOPTPARSERDISCH1(1U) 7857 7858 #define S_TCPOPTPARSERDISCH0 24 7859 #define V_TCPOPTPARSERDISCH0(x) ((x) << S_TCPOPTPARSERDISCH0) 7860 #define F_TCPOPTPARSERDISCH0 V_TCPOPTPARSERDISCH0(1U) 7861 7862 #define S_CRCPASSPRT3 23 7863 #define V_CRCPASSPRT3(x) ((x) << S_CRCPASSPRT3) 7864 #define F_CRCPASSPRT3 V_CRCPASSPRT3(1U) 7865 7866 #define S_CRCPASSPRT2 22 7867 #define V_CRCPASSPRT2(x) ((x) << S_CRCPASSPRT2) 7868 #define F_CRCPASSPRT2 V_CRCPASSPRT2(1U) 7869 7870 #define S_CRCPASSPRT1 21 7871 #define V_CRCPASSPRT1(x) ((x) << S_CRCPASSPRT1) 7872 #define F_CRCPASSPRT1 V_CRCPASSPRT1(1U) 7873 7874 #define S_CRCPASSPRT0 20 7875 #define V_CRCPASSPRT0(x) ((x) << S_CRCPASSPRT0) 7876 #define F_CRCPASSPRT0 V_CRCPASSPRT0(1U) 7877 7878 #define S_VEPAMODE 19 7879 #define V_VEPAMODE(x) ((x) << S_VEPAMODE) 7880 #define F_VEPAMODE V_VEPAMODE(1U) 7881 7882 #define S_FIPUPEN 18 7883 #define V_FIPUPEN(x) ((x) << S_FIPUPEN) 7884 #define F_FIPUPEN V_FIPUPEN(1U) 7885 7886 #define S_FCOEUPEN 17 7887 #define V_FCOEUPEN(x) ((x) << S_FCOEUPEN) 7888 #define F_FCOEUPEN V_FCOEUPEN(1U) 7889 7890 #define S_FCOEENABLE 16 7891 #define V_FCOEENABLE(x) ((x) << S_FCOEENABLE) 7892 #define F_FCOEENABLE V_FCOEENABLE(1U) 7893 7894 #define S_IPV6ENABLE 15 7895 #define V_IPV6ENABLE(x) ((x) << S_IPV6ENABLE) 7896 #define F_IPV6ENABLE V_IPV6ENABLE(1U) 7897 7898 #define S_NICMODE 14 7899 #define V_NICMODE(x) ((x) << S_NICMODE) 7900 #define F_NICMODE V_NICMODE(1U) 7901 7902 #define S_ECHECKSUMCHECKTCP 13 7903 #define V_ECHECKSUMCHECKTCP(x) ((x) << S_ECHECKSUMCHECKTCP) 7904 #define F_ECHECKSUMCHECKTCP V_ECHECKSUMCHECKTCP(1U) 7905 7906 #define S_ECHECKSUMCHECKIP 12 7907 #define V_ECHECKSUMCHECKIP(x) ((x) << S_ECHECKSUMCHECKIP) 7908 #define F_ECHECKSUMCHECKIP V_ECHECKSUMCHECKIP(1U) 7909 7910 #define S_EREPORTUDPHDRLEN 11 7911 #define V_EREPORTUDPHDRLEN(x) ((x) << S_EREPORTUDPHDRLEN) 7912 #define F_EREPORTUDPHDRLEN V_EREPORTUDPHDRLEN(1U) 7913 7914 #define S_IN_ECPL 10 7915 #define V_IN_ECPL(x) ((x) << S_IN_ECPL) 7916 #define F_IN_ECPL V_IN_ECPL(1U) 7917 7918 #define S_VNTAGENABLE 9 7919 #define V_VNTAGENABLE(x) ((x) << S_VNTAGENABLE) 7920 #define F_VNTAGENABLE V_VNTAGENABLE(1U) 7921 7922 #define S_IN_EETH 8 7923 #define V_IN_EETH(x) ((x) << S_IN_EETH) 7924 #define F_IN_EETH V_IN_EETH(1U) 7925 7926 #define S_CCHECKSUMCHECKTCP 6 7927 #define V_CCHECKSUMCHECKTCP(x) ((x) << S_CCHECKSUMCHECKTCP) 7928 #define F_CCHECKSUMCHECKTCP V_CCHECKSUMCHECKTCP(1U) 7929 7930 #define S_CCHECKSUMCHECKIP 5 7931 #define V_CCHECKSUMCHECKIP(x) ((x) << S_CCHECKSUMCHECKIP) 7932 #define F_CCHECKSUMCHECKIP V_CCHECKSUMCHECKIP(1U) 7933 7934 #define S_CTAG 4 7935 #define V_CTAG(x) ((x) << S_CTAG) 7936 #define F_CTAG V_CTAG(1U) 7937 7938 #define S_IN_CCPL 3 7939 #define V_IN_CCPL(x) ((x) << S_IN_CCPL) 7940 #define F_IN_CCPL V_IN_CCPL(1U) 7941 7942 #define S_IN_CETH 1 7943 #define V_IN_CETH(x) ((x) << S_IN_CETH) 7944 #define F_IN_CETH V_IN_CETH(1U) 7945 7946 #define S_CTUNNEL 0 7947 #define V_CTUNNEL(x) ((x) << S_CTUNNEL) 7948 #define F_CTUNNEL V_CTUNNEL(1U) 7949 7950 #define A_TP_OUT_CONFIG 0x7d04 7951 7952 #define S_PORTQFCEN 28 7953 #define M_PORTQFCEN 0xfU 7954 #define V_PORTQFCEN(x) ((x) << S_PORTQFCEN) 7955 #define G_PORTQFCEN(x) (((x) >> S_PORTQFCEN) & M_PORTQFCEN) 7956 7957 #define S_EPKTDISTCHN3 23 7958 #define V_EPKTDISTCHN3(x) ((x) << S_EPKTDISTCHN3) 7959 #define F_EPKTDISTCHN3 V_EPKTDISTCHN3(1U) 7960 7961 #define S_EPKTDISTCHN2 22 7962 #define V_EPKTDISTCHN2(x) ((x) << S_EPKTDISTCHN2) 7963 #define F_EPKTDISTCHN2 V_EPKTDISTCHN2(1U) 7964 7965 #define S_EPKTDISTCHN1 21 7966 #define V_EPKTDISTCHN1(x) ((x) << S_EPKTDISTCHN1) 7967 #define F_EPKTDISTCHN1 V_EPKTDISTCHN1(1U) 7968 7969 #define S_EPKTDISTCHN0 20 7970 #define V_EPKTDISTCHN0(x) ((x) << S_EPKTDISTCHN0) 7971 #define F_EPKTDISTCHN0 V_EPKTDISTCHN0(1U) 7972 7973 #define S_TTLMODE 19 7974 #define V_TTLMODE(x) ((x) << S_TTLMODE) 7975 #define F_TTLMODE V_TTLMODE(1U) 7976 7977 #define S_EQFCDMAC 18 7978 #define V_EQFCDMAC(x) ((x) << S_EQFCDMAC) 7979 #define F_EQFCDMAC V_EQFCDMAC(1U) 7980 7981 #define S_ELPBKINCMPSSTAT 17 7982 #define V_ELPBKINCMPSSTAT(x) ((x) << S_ELPBKINCMPSSTAT) 7983 #define F_ELPBKINCMPSSTAT V_ELPBKINCMPSSTAT(1U) 7984 7985 #define S_IPIDSPLITMODE 16 7986 #define V_IPIDSPLITMODE(x) ((x) << S_IPIDSPLITMODE) 7987 #define F_IPIDSPLITMODE V_IPIDSPLITMODE(1U) 7988 7989 #define S_VLANEXTENABLEPORT3 15 7990 #define V_VLANEXTENABLEPORT3(x) ((x) << S_VLANEXTENABLEPORT3) 7991 #define F_VLANEXTENABLEPORT3 V_VLANEXTENABLEPORT3(1U) 7992 7993 #define S_VLANEXTENABLEPORT2 14 7994 #define V_VLANEXTENABLEPORT2(x) ((x) << S_VLANEXTENABLEPORT2) 7995 #define F_VLANEXTENABLEPORT2 V_VLANEXTENABLEPORT2(1U) 7996 7997 #define S_VLANEXTENABLEPORT1 13 7998 #define V_VLANEXTENABLEPORT1(x) ((x) << S_VLANEXTENABLEPORT1) 7999 #define F_VLANEXTENABLEPORT1 V_VLANEXTENABLEPORT1(1U) 8000 8001 #define S_VLANEXTENABLEPORT0 12 8002 #define V_VLANEXTENABLEPORT0(x) ((x) << S_VLANEXTENABLEPORT0) 8003 #define F_VLANEXTENABLEPORT0 V_VLANEXTENABLEPORT0(1U) 8004 8005 #define S_ECHECKSUMINSERTTCP 11 8006 #define V_ECHECKSUMINSERTTCP(x) ((x) << S_ECHECKSUMINSERTTCP) 8007 #define F_ECHECKSUMINSERTTCP V_ECHECKSUMINSERTTCP(1U) 8008 8009 #define S_ECHECKSUMINSERTIP 10 8010 #define V_ECHECKSUMINSERTIP(x) ((x) << S_ECHECKSUMINSERTIP) 8011 #define F_ECHECKSUMINSERTIP V_ECHECKSUMINSERTIP(1U) 8012 8013 #define S_ECPL 8 8014 #define V_ECPL(x) ((x) << S_ECPL) 8015 #define F_ECPL V_ECPL(1U) 8016 8017 #define S_EPRIORITY 7 8018 #define V_EPRIORITY(x) ((x) << S_EPRIORITY) 8019 #define F_EPRIORITY V_EPRIORITY(1U) 8020 8021 #define S_EETHERNET 6 8022 #define V_EETHERNET(x) ((x) << S_EETHERNET) 8023 #define F_EETHERNET V_EETHERNET(1U) 8024 8025 #define S_CCHECKSUMINSERTTCP 5 8026 #define V_CCHECKSUMINSERTTCP(x) ((x) << S_CCHECKSUMINSERTTCP) 8027 #define F_CCHECKSUMINSERTTCP V_CCHECKSUMINSERTTCP(1U) 8028 8029 #define S_CCHECKSUMINSERTIP 4 8030 #define V_CCHECKSUMINSERTIP(x) ((x) << S_CCHECKSUMINSERTIP) 8031 #define F_CCHECKSUMINSERTIP V_CCHECKSUMINSERTIP(1U) 8032 8033 #define S_CCPL 2 8034 #define V_CCPL(x) ((x) << S_CCPL) 8035 #define F_CCPL V_CCPL(1U) 8036 8037 #define S_CETHERNET 0 8038 #define V_CETHERNET(x) ((x) << S_CETHERNET) 8039 #define F_CETHERNET V_CETHERNET(1U) 8040 8041 #define A_TP_GLOBAL_CONFIG 0x7d08 8042 8043 #define S_SYNCOOKIEPARAMS 26 8044 #define M_SYNCOOKIEPARAMS 0x3fU 8045 #define V_SYNCOOKIEPARAMS(x) ((x) << S_SYNCOOKIEPARAMS) 8046 #define G_SYNCOOKIEPARAMS(x) (((x) >> S_SYNCOOKIEPARAMS) & M_SYNCOOKIEPARAMS) 8047 8048 #define S_RXFLOWCONTROLDISABLE 25 8049 #define V_RXFLOWCONTROLDISABLE(x) ((x) << S_RXFLOWCONTROLDISABLE) 8050 #define F_RXFLOWCONTROLDISABLE V_RXFLOWCONTROLDISABLE(1U) 8051 8052 #define S_TXPACINGENABLE 24 8053 #define V_TXPACINGENABLE(x) ((x) << S_TXPACINGENABLE) 8054 #define F_TXPACINGENABLE V_TXPACINGENABLE(1U) 8055 8056 #define S_ATTACKFILTERENABLE 23 8057 #define V_ATTACKFILTERENABLE(x) ((x) << S_ATTACKFILTERENABLE) 8058 #define F_ATTACKFILTERENABLE V_ATTACKFILTERENABLE(1U) 8059 8060 #define S_SYNCOOKIENOOPTIONS 22 8061 #define V_SYNCOOKIENOOPTIONS(x) ((x) << S_SYNCOOKIENOOPTIONS) 8062 #define F_SYNCOOKIENOOPTIONS V_SYNCOOKIENOOPTIONS(1U) 8063 8064 #define S_PROTECTEDMODE 21 8065 #define V_PROTECTEDMODE(x) ((x) << S_PROTECTEDMODE) 8066 #define F_PROTECTEDMODE V_PROTECTEDMODE(1U) 8067 8068 #define S_PINGDROP 20 8069 #define V_PINGDROP(x) ((x) << S_PINGDROP) 8070 #define F_PINGDROP V_PINGDROP(1U) 8071 8072 #define S_FRAGMENTDROP 19 8073 #define V_FRAGMENTDROP(x) ((x) << S_FRAGMENTDROP) 8074 #define F_FRAGMENTDROP V_FRAGMENTDROP(1U) 8075 8076 #define S_FIVETUPLELOOKUP 17 8077 #define M_FIVETUPLELOOKUP 0x3U 8078 #define V_FIVETUPLELOOKUP(x) ((x) << S_FIVETUPLELOOKUP) 8079 #define G_FIVETUPLELOOKUP(x) (((x) >> S_FIVETUPLELOOKUP) & M_FIVETUPLELOOKUP) 8080 8081 #define S_OFDMPSSTATS 16 8082 #define V_OFDMPSSTATS(x) ((x) << S_OFDMPSSTATS) 8083 #define F_OFDMPSSTATS V_OFDMPSSTATS(1U) 8084 8085 #define S_DONTFRAGMENT 15 8086 #define V_DONTFRAGMENT(x) ((x) << S_DONTFRAGMENT) 8087 #define F_DONTFRAGMENT V_DONTFRAGMENT(1U) 8088 8089 #define S_IPIDENTSPLIT 14 8090 #define V_IPIDENTSPLIT(x) ((x) << S_IPIDENTSPLIT) 8091 #define F_IPIDENTSPLIT V_IPIDENTSPLIT(1U) 8092 8093 #define S_IPCHECKSUMOFFLOAD 13 8094 #define V_IPCHECKSUMOFFLOAD(x) ((x) << S_IPCHECKSUMOFFLOAD) 8095 #define F_IPCHECKSUMOFFLOAD V_IPCHECKSUMOFFLOAD(1U) 8096 8097 #define S_UDPCHECKSUMOFFLOAD 12 8098 #define V_UDPCHECKSUMOFFLOAD(x) ((x) << S_UDPCHECKSUMOFFLOAD) 8099 #define F_UDPCHECKSUMOFFLOAD V_UDPCHECKSUMOFFLOAD(1U) 8100 8101 #define S_TCPCHECKSUMOFFLOAD 11 8102 #define V_TCPCHECKSUMOFFLOAD(x) ((x) << S_TCPCHECKSUMOFFLOAD) 8103 #define F_TCPCHECKSUMOFFLOAD V_TCPCHECKSUMOFFLOAD(1U) 8104 8105 #define S_RSSLOOPBACKENABLE 10 8106 #define V_RSSLOOPBACKENABLE(x) ((x) << S_RSSLOOPBACKENABLE) 8107 #define F_RSSLOOPBACKENABLE V_RSSLOOPBACKENABLE(1U) 8108 8109 #define S_TCAMSERVERUSE 8 8110 #define M_TCAMSERVERUSE 0x3U 8111 #define V_TCAMSERVERUSE(x) ((x) << S_TCAMSERVERUSE) 8112 #define G_TCAMSERVERUSE(x) (((x) >> S_TCAMSERVERUSE) & M_TCAMSERVERUSE) 8113 8114 #define S_IPTTL 0 8115 #define M_IPTTL 0xffU 8116 #define V_IPTTL(x) ((x) << S_IPTTL) 8117 #define G_IPTTL(x) (((x) >> S_IPTTL) & M_IPTTL) 8118 8119 #define A_TP_DB_CONFIG 0x7d0c 8120 8121 #define S_DBMAXOPCNT 24 8122 #define M_DBMAXOPCNT 0xffU 8123 #define V_DBMAXOPCNT(x) ((x) << S_DBMAXOPCNT) 8124 #define G_DBMAXOPCNT(x) (((x) >> S_DBMAXOPCNT) & M_DBMAXOPCNT) 8125 8126 #define S_CXMAXOPCNTDISABLE 23 8127 #define V_CXMAXOPCNTDISABLE(x) ((x) << S_CXMAXOPCNTDISABLE) 8128 #define F_CXMAXOPCNTDISABLE V_CXMAXOPCNTDISABLE(1U) 8129 8130 #define S_CXMAXOPCNT 16 8131 #define M_CXMAXOPCNT 0x7fU 8132 #define V_CXMAXOPCNT(x) ((x) << S_CXMAXOPCNT) 8133 #define G_CXMAXOPCNT(x) (((x) >> S_CXMAXOPCNT) & M_CXMAXOPCNT) 8134 8135 #define S_TXMAXOPCNTDISABLE 15 8136 #define V_TXMAXOPCNTDISABLE(x) ((x) << S_TXMAXOPCNTDISABLE) 8137 #define F_TXMAXOPCNTDISABLE V_TXMAXOPCNTDISABLE(1U) 8138 8139 #define S_TXMAXOPCNT 8 8140 #define M_TXMAXOPCNT 0x7fU 8141 #define V_TXMAXOPCNT(x) ((x) << S_TXMAXOPCNT) 8142 #define G_TXMAXOPCNT(x) (((x) >> S_TXMAXOPCNT) & M_TXMAXOPCNT) 8143 8144 #define S_RXMAXOPCNTDISABLE 7 8145 #define V_RXMAXOPCNTDISABLE(x) ((x) << S_RXMAXOPCNTDISABLE) 8146 #define F_RXMAXOPCNTDISABLE V_RXMAXOPCNTDISABLE(1U) 8147 8148 #define S_RXMAXOPCNT 0 8149 #define M_RXMAXOPCNT 0x7fU 8150 #define V_RXMAXOPCNT(x) ((x) << S_RXMAXOPCNT) 8151 #define G_RXMAXOPCNT(x) (((x) >> S_RXMAXOPCNT) & M_RXMAXOPCNT) 8152 8153 #define A_TP_CMM_TCB_BASE 0x7d10 8154 #define A_TP_CMM_MM_BASE 0x7d14 8155 #define A_TP_CMM_TIMER_BASE 0x7d18 8156 #define A_TP_CMM_MM_FLST_SIZE 0x7d1c 8157 8158 #define S_RXPOOLSIZE 16 8159 #define M_RXPOOLSIZE 0xffffU 8160 #define V_RXPOOLSIZE(x) ((x) << S_RXPOOLSIZE) 8161 #define G_RXPOOLSIZE(x) (((x) >> S_RXPOOLSIZE) & M_RXPOOLSIZE) 8162 8163 #define S_TXPOOLSIZE 0 8164 #define M_TXPOOLSIZE 0xffffU 8165 #define V_TXPOOLSIZE(x) ((x) << S_TXPOOLSIZE) 8166 #define G_TXPOOLSIZE(x) (((x) >> S_TXPOOLSIZE) & M_TXPOOLSIZE) 8167 8168 #define A_TP_PMM_TX_BASE 0x7d20 8169 #define A_TP_PMM_DEFRAG_BASE 0x7d24 8170 #define A_TP_PMM_RX_BASE 0x7d28 8171 #define A_TP_PMM_RX_PAGE_SIZE 0x7d2c 8172 #define A_TP_PMM_RX_MAX_PAGE 0x7d30 8173 8174 #define S_PMRXNUMCHN 31 8175 #define V_PMRXNUMCHN(x) ((x) << S_PMRXNUMCHN) 8176 #define F_PMRXNUMCHN V_PMRXNUMCHN(1U) 8177 8178 #define S_PMRXMAXPAGE 0 8179 #define M_PMRXMAXPAGE 0x1fffffU 8180 #define V_PMRXMAXPAGE(x) ((x) << S_PMRXMAXPAGE) 8181 #define G_PMRXMAXPAGE(x) (((x) >> S_PMRXMAXPAGE) & M_PMRXMAXPAGE) 8182 8183 #define A_TP_PMM_TX_PAGE_SIZE 0x7d34 8184 #define A_TP_PMM_TX_MAX_PAGE 0x7d38 8185 8186 #define S_PMTXNUMCHN 30 8187 #define M_PMTXNUMCHN 0x3U 8188 #define V_PMTXNUMCHN(x) ((x) << S_PMTXNUMCHN) 8189 #define G_PMTXNUMCHN(x) (((x) >> S_PMTXNUMCHN) & M_PMTXNUMCHN) 8190 8191 #define S_PMTXMAXPAGE 0 8192 #define M_PMTXMAXPAGE 0x1fffffU 8193 #define V_PMTXMAXPAGE(x) ((x) << S_PMTXMAXPAGE) 8194 #define G_PMTXMAXPAGE(x) (((x) >> S_PMTXMAXPAGE) & M_PMTXMAXPAGE) 8195 8196 #define A_TP_TCP_OPTIONS 0x7d40 8197 8198 #define S_MTUDEFAULT 16 8199 #define M_MTUDEFAULT 0xffffU 8200 #define V_MTUDEFAULT(x) ((x) << S_MTUDEFAULT) 8201 #define G_MTUDEFAULT(x) (((x) >> S_MTUDEFAULT) & M_MTUDEFAULT) 8202 8203 #define S_MTUENABLE 10 8204 #define V_MTUENABLE(x) ((x) << S_MTUENABLE) 8205 #define F_MTUENABLE V_MTUENABLE(1U) 8206 8207 #define S_SACKTX 9 8208 #define V_SACKTX(x) ((x) << S_SACKTX) 8209 #define F_SACKTX V_SACKTX(1U) 8210 8211 #define S_SACKRX 8 8212 #define V_SACKRX(x) ((x) << S_SACKRX) 8213 #define F_SACKRX V_SACKRX(1U) 8214 8215 #define S_SACKMODE 4 8216 #define M_SACKMODE 0x3U 8217 #define V_SACKMODE(x) ((x) << S_SACKMODE) 8218 #define G_SACKMODE(x) (((x) >> S_SACKMODE) & M_SACKMODE) 8219 8220 #define S_WINDOWSCALEMODE 2 8221 #define M_WINDOWSCALEMODE 0x3U 8222 #define V_WINDOWSCALEMODE(x) ((x) << S_WINDOWSCALEMODE) 8223 #define G_WINDOWSCALEMODE(x) (((x) >> S_WINDOWSCALEMODE) & M_WINDOWSCALEMODE) 8224 8225 #define S_TIMESTAMPSMODE 0 8226 #define M_TIMESTAMPSMODE 0x3U 8227 #define V_TIMESTAMPSMODE(x) ((x) << S_TIMESTAMPSMODE) 8228 #define G_TIMESTAMPSMODE(x) (((x) >> S_TIMESTAMPSMODE) & M_TIMESTAMPSMODE) 8229 8230 #define A_TP_DACK_CONFIG 0x7d44 8231 8232 #define S_AUTOSTATE3 30 8233 #define M_AUTOSTATE3 0x3U 8234 #define V_AUTOSTATE3(x) ((x) << S_AUTOSTATE3) 8235 #define G_AUTOSTATE3(x) (((x) >> S_AUTOSTATE3) & M_AUTOSTATE3) 8236 8237 #define S_AUTOSTATE2 28 8238 #define M_AUTOSTATE2 0x3U 8239 #define V_AUTOSTATE2(x) ((x) << S_AUTOSTATE2) 8240 #define G_AUTOSTATE2(x) (((x) >> S_AUTOSTATE2) & M_AUTOSTATE2) 8241 8242 #define S_AUTOSTATE1 26 8243 #define M_AUTOSTATE1 0x3U 8244 #define V_AUTOSTATE1(x) ((x) << S_AUTOSTATE1) 8245 #define G_AUTOSTATE1(x) (((x) >> S_AUTOSTATE1) & M_AUTOSTATE1) 8246 8247 #define S_BYTETHRESHOLD 8 8248 #define M_BYTETHRESHOLD 0x3ffffU 8249 #define V_BYTETHRESHOLD(x) ((x) << S_BYTETHRESHOLD) 8250 #define G_BYTETHRESHOLD(x) (((x) >> S_BYTETHRESHOLD) & M_BYTETHRESHOLD) 8251 8252 #define S_MSSTHRESHOLD 4 8253 #define M_MSSTHRESHOLD 0x7U 8254 #define V_MSSTHRESHOLD(x) ((x) << S_MSSTHRESHOLD) 8255 #define G_MSSTHRESHOLD(x) (((x) >> S_MSSTHRESHOLD) & M_MSSTHRESHOLD) 8256 8257 #define S_AUTOCAREFUL 2 8258 #define V_AUTOCAREFUL(x) ((x) << S_AUTOCAREFUL) 8259 #define F_AUTOCAREFUL V_AUTOCAREFUL(1U) 8260 8261 #define S_AUTOENABLE 1 8262 #define V_AUTOENABLE(x) ((x) << S_AUTOENABLE) 8263 #define F_AUTOENABLE V_AUTOENABLE(1U) 8264 8265 #define S_MODE 0 8266 #define V_MODE(x) ((x) << S_MODE) 8267 #define F_MODE V_MODE(1U) 8268 8269 #define A_TP_PC_CONFIG 0x7d48 8270 8271 #define S_CMCACHEDISABLE 31 8272 #define V_CMCACHEDISABLE(x) ((x) << S_CMCACHEDISABLE) 8273 #define F_CMCACHEDISABLE V_CMCACHEDISABLE(1U) 8274 8275 #define S_ENABLEOCSPIFULL 30 8276 #define V_ENABLEOCSPIFULL(x) ((x) << S_ENABLEOCSPIFULL) 8277 #define F_ENABLEOCSPIFULL V_ENABLEOCSPIFULL(1U) 8278 8279 #define S_ENABLEFLMERRORDDP 29 8280 #define V_ENABLEFLMERRORDDP(x) ((x) << S_ENABLEFLMERRORDDP) 8281 #define F_ENABLEFLMERRORDDP V_ENABLEFLMERRORDDP(1U) 8282 8283 #define S_LOCKTID 28 8284 #define V_LOCKTID(x) ((x) << S_LOCKTID) 8285 #define F_LOCKTID V_LOCKTID(1U) 8286 8287 #define S_DISABLEINVPEND 27 8288 #define V_DISABLEINVPEND(x) ((x) << S_DISABLEINVPEND) 8289 #define F_DISABLEINVPEND V_DISABLEINVPEND(1U) 8290 8291 #define S_ENABLEFILTERCOUNT 26 8292 #define V_ENABLEFILTERCOUNT(x) ((x) << S_ENABLEFILTERCOUNT) 8293 #define F_ENABLEFILTERCOUNT V_ENABLEFILTERCOUNT(1U) 8294 8295 #define S_RDDPCONGEN 25 8296 #define V_RDDPCONGEN(x) ((x) << S_RDDPCONGEN) 8297 #define F_RDDPCONGEN V_RDDPCONGEN(1U) 8298 8299 #define S_ENABLEONFLYPDU 24 8300 #define V_ENABLEONFLYPDU(x) ((x) << S_ENABLEONFLYPDU) 8301 #define F_ENABLEONFLYPDU V_ENABLEONFLYPDU(1U) 8302 8303 #define S_ENABLEMINRCVWND 23 8304 #define V_ENABLEMINRCVWND(x) ((x) << S_ENABLEMINRCVWND) 8305 #define F_ENABLEMINRCVWND V_ENABLEMINRCVWND(1U) 8306 8307 #define S_ENABLEMAXRCVWND 22 8308 #define V_ENABLEMAXRCVWND(x) ((x) << S_ENABLEMAXRCVWND) 8309 #define F_ENABLEMAXRCVWND V_ENABLEMAXRCVWND(1U) 8310 8311 #define S_TXDATAACKRATEENABLE 21 8312 #define V_TXDATAACKRATEENABLE(x) ((x) << S_TXDATAACKRATEENABLE) 8313 #define F_TXDATAACKRATEENABLE V_TXDATAACKRATEENABLE(1U) 8314 8315 #define S_TXDEFERENABLE 20 8316 #define V_TXDEFERENABLE(x) ((x) << S_TXDEFERENABLE) 8317 #define F_TXDEFERENABLE V_TXDEFERENABLE(1U) 8318 8319 #define S_RXCONGESTIONMODE 19 8320 #define V_RXCONGESTIONMODE(x) ((x) << S_RXCONGESTIONMODE) 8321 #define F_RXCONGESTIONMODE V_RXCONGESTIONMODE(1U) 8322 8323 #define S_HEARBEATONCEDACK 18 8324 #define V_HEARBEATONCEDACK(x) ((x) << S_HEARBEATONCEDACK) 8325 #define F_HEARBEATONCEDACK V_HEARBEATONCEDACK(1U) 8326 8327 #define S_HEARBEATONCEHEAP 17 8328 #define V_HEARBEATONCEHEAP(x) ((x) << S_HEARBEATONCEHEAP) 8329 #define F_HEARBEATONCEHEAP V_HEARBEATONCEHEAP(1U) 8330 8331 #define S_HEARBEATDACK 16 8332 #define V_HEARBEATDACK(x) ((x) << S_HEARBEATDACK) 8333 #define F_HEARBEATDACK V_HEARBEATDACK(1U) 8334 8335 #define S_TXCONGESTIONMODE 15 8336 #define V_TXCONGESTIONMODE(x) ((x) << S_TXCONGESTIONMODE) 8337 #define F_TXCONGESTIONMODE V_TXCONGESTIONMODE(1U) 8338 8339 #define S_ACCEPTLATESTRCVADV 14 8340 #define V_ACCEPTLATESTRCVADV(x) ((x) << S_ACCEPTLATESTRCVADV) 8341 #define F_ACCEPTLATESTRCVADV V_ACCEPTLATESTRCVADV(1U) 8342 8343 #define S_DISABLESYNDATA 13 8344 #define V_DISABLESYNDATA(x) ((x) << S_DISABLESYNDATA) 8345 #define F_DISABLESYNDATA V_DISABLESYNDATA(1U) 8346 8347 #define S_DISABLEWINDOWPSH 12 8348 #define V_DISABLEWINDOWPSH(x) ((x) << S_DISABLEWINDOWPSH) 8349 #define F_DISABLEWINDOWPSH V_DISABLEWINDOWPSH(1U) 8350 8351 #define S_DISABLEFINOLDDATA 11 8352 #define V_DISABLEFINOLDDATA(x) ((x) << S_DISABLEFINOLDDATA) 8353 #define F_DISABLEFINOLDDATA V_DISABLEFINOLDDATA(1U) 8354 8355 #define S_ENABLEFLMERROR 10 8356 #define V_ENABLEFLMERROR(x) ((x) << S_ENABLEFLMERROR) 8357 #define F_ENABLEFLMERROR V_ENABLEFLMERROR(1U) 8358 8359 #define S_ENABLEOPTMTU 9 8360 #define V_ENABLEOPTMTU(x) ((x) << S_ENABLEOPTMTU) 8361 #define F_ENABLEOPTMTU V_ENABLEOPTMTU(1U) 8362 8363 #define S_FILTERPEERFIN 8 8364 #define V_FILTERPEERFIN(x) ((x) << S_FILTERPEERFIN) 8365 #define F_FILTERPEERFIN V_FILTERPEERFIN(1U) 8366 8367 #define S_ENABLEFEEDBACKSEND 7 8368 #define V_ENABLEFEEDBACKSEND(x) ((x) << S_ENABLEFEEDBACKSEND) 8369 #define F_ENABLEFEEDBACKSEND V_ENABLEFEEDBACKSEND(1U) 8370 8371 #define S_ENABLERDMAERROR 6 8372 #define V_ENABLERDMAERROR(x) ((x) << S_ENABLERDMAERROR) 8373 #define F_ENABLERDMAERROR V_ENABLERDMAERROR(1U) 8374 8375 #define S_ENABLEDDPFLOWCONTROL 5 8376 #define V_ENABLEDDPFLOWCONTROL(x) ((x) << S_ENABLEDDPFLOWCONTROL) 8377 #define F_ENABLEDDPFLOWCONTROL V_ENABLEDDPFLOWCONTROL(1U) 8378 8379 #define S_DISABLEHELDFIN 4 8380 #define V_DISABLEHELDFIN(x) ((x) << S_DISABLEHELDFIN) 8381 #define F_DISABLEHELDFIN V_DISABLEHELDFIN(1U) 8382 8383 #define S_ENABLEOFDOVLAN 3 8384 #define V_ENABLEOFDOVLAN(x) ((x) << S_ENABLEOFDOVLAN) 8385 #define F_ENABLEOFDOVLAN V_ENABLEOFDOVLAN(1U) 8386 8387 #define S_DISABLETIMEWAIT 2 8388 #define V_DISABLETIMEWAIT(x) ((x) << S_DISABLETIMEWAIT) 8389 #define F_DISABLETIMEWAIT V_DISABLETIMEWAIT(1U) 8390 8391 #define S_ENABLEVLANCHECK 1 8392 #define V_ENABLEVLANCHECK(x) ((x) << S_ENABLEVLANCHECK) 8393 #define F_ENABLEVLANCHECK V_ENABLEVLANCHECK(1U) 8394 8395 #define S_TXDATAACKPAGEENABLE 0 8396 #define V_TXDATAACKPAGEENABLE(x) ((x) << S_TXDATAACKPAGEENABLE) 8397 #define F_TXDATAACKPAGEENABLE V_TXDATAACKPAGEENABLE(1U) 8398 8399 #define A_TP_PC_CONFIG2 0x7d4c 8400 8401 #define S_ENABLEMTUVFMODE 31 8402 #define V_ENABLEMTUVFMODE(x) ((x) << S_ENABLEMTUVFMODE) 8403 #define F_ENABLEMTUVFMODE V_ENABLEMTUVFMODE(1U) 8404 8405 #define S_ENABLEMIBVFMODE 30 8406 #define V_ENABLEMIBVFMODE(x) ((x) << S_ENABLEMIBVFMODE) 8407 #define F_ENABLEMIBVFMODE V_ENABLEMIBVFMODE(1U) 8408 8409 #define S_DISABLELBKCHECK 29 8410 #define V_DISABLELBKCHECK(x) ((x) << S_DISABLELBKCHECK) 8411 #define F_DISABLELBKCHECK V_DISABLELBKCHECK(1U) 8412 8413 #define S_ENABLEURGDDPOFF 28 8414 #define V_ENABLEURGDDPOFF(x) ((x) << S_ENABLEURGDDPOFF) 8415 #define F_ENABLEURGDDPOFF V_ENABLEURGDDPOFF(1U) 8416 8417 #define S_ENABLEFILTERLPBK 27 8418 #define V_ENABLEFILTERLPBK(x) ((x) << S_ENABLEFILTERLPBK) 8419 #define F_ENABLEFILTERLPBK V_ENABLEFILTERLPBK(1U) 8420 8421 #define S_DISABLETBLMMGR 26 8422 #define V_DISABLETBLMMGR(x) ((x) << S_DISABLETBLMMGR) 8423 #define F_DISABLETBLMMGR V_DISABLETBLMMGR(1U) 8424 8425 #define S_CNGRECSNDNXT 25 8426 #define V_CNGRECSNDNXT(x) ((x) << S_CNGRECSNDNXT) 8427 #define F_CNGRECSNDNXT V_CNGRECSNDNXT(1U) 8428 8429 #define S_ENABLELBKCHN 24 8430 #define V_ENABLELBKCHN(x) ((x) << S_ENABLELBKCHN) 8431 #define F_ENABLELBKCHN V_ENABLELBKCHN(1U) 8432 8433 #define S_ENABLELROECN 23 8434 #define V_ENABLELROECN(x) ((x) << S_ENABLELROECN) 8435 #define F_ENABLELROECN V_ENABLELROECN(1U) 8436 8437 #define S_ENABLEPCMDCHECK 22 8438 #define V_ENABLEPCMDCHECK(x) ((x) << S_ENABLEPCMDCHECK) 8439 #define F_ENABLEPCMDCHECK V_ENABLEPCMDCHECK(1U) 8440 8441 #define S_ENABLEELBKAFULL 21 8442 #define V_ENABLEELBKAFULL(x) ((x) << S_ENABLEELBKAFULL) 8443 #define F_ENABLEELBKAFULL V_ENABLEELBKAFULL(1U) 8444 8445 #define S_ENABLECLBKAFULL 20 8446 #define V_ENABLECLBKAFULL(x) ((x) << S_ENABLECLBKAFULL) 8447 #define F_ENABLECLBKAFULL V_ENABLECLBKAFULL(1U) 8448 8449 #define S_ENABLEOESPIFULL 19 8450 #define V_ENABLEOESPIFULL(x) ((x) << S_ENABLEOESPIFULL) 8451 #define F_ENABLEOESPIFULL V_ENABLEOESPIFULL(1U) 8452 8453 #define S_DISABLEHITCHECK 18 8454 #define V_DISABLEHITCHECK(x) ((x) << S_DISABLEHITCHECK) 8455 #define F_DISABLEHITCHECK V_DISABLEHITCHECK(1U) 8456 8457 #define S_ENABLERSSERRCHECK 17 8458 #define V_ENABLERSSERRCHECK(x) ((x) << S_ENABLERSSERRCHECK) 8459 #define F_ENABLERSSERRCHECK V_ENABLERSSERRCHECK(1U) 8460 8461 #define S_DISABLENEWPSHFLAG 16 8462 #define V_DISABLENEWPSHFLAG(x) ((x) << S_DISABLENEWPSHFLAG) 8463 #define F_DISABLENEWPSHFLAG V_DISABLENEWPSHFLAG(1U) 8464 8465 #define S_ENABLERDDPRCVADVCLR 15 8466 #define V_ENABLERDDPRCVADVCLR(x) ((x) << S_ENABLERDDPRCVADVCLR) 8467 #define F_ENABLERDDPRCVADVCLR V_ENABLERDDPRCVADVCLR(1U) 8468 8469 #define S_ENABLETXDATAARPMISS 14 8470 #define V_ENABLETXDATAARPMISS(x) ((x) << S_ENABLETXDATAARPMISS) 8471 #define F_ENABLETXDATAARPMISS V_ENABLETXDATAARPMISS(1U) 8472 8473 #define S_ENABLEARPMISS 13 8474 #define V_ENABLEARPMISS(x) ((x) << S_ENABLEARPMISS) 8475 #define F_ENABLEARPMISS V_ENABLEARPMISS(1U) 8476 8477 #define S_ENABLERSTPAWS 12 8478 #define V_ENABLERSTPAWS(x) ((x) << S_ENABLERSTPAWS) 8479 #define F_ENABLERSTPAWS V_ENABLERSTPAWS(1U) 8480 8481 #define S_ENABLEIPV6RSS 11 8482 #define V_ENABLEIPV6RSS(x) ((x) << S_ENABLEIPV6RSS) 8483 #define F_ENABLEIPV6RSS V_ENABLEIPV6RSS(1U) 8484 8485 #define S_ENABLENONOFDHYBRSS 10 8486 #define V_ENABLENONOFDHYBRSS(x) ((x) << S_ENABLENONOFDHYBRSS) 8487 #define F_ENABLENONOFDHYBRSS V_ENABLENONOFDHYBRSS(1U) 8488 8489 #define S_ENABLEUDP4TUPRSS 9 8490 #define V_ENABLEUDP4TUPRSS(x) ((x) << S_ENABLEUDP4TUPRSS) 8491 #define F_ENABLEUDP4TUPRSS V_ENABLEUDP4TUPRSS(1U) 8492 8493 #define S_ENABLERXPKTTMSTPRSS 8 8494 #define V_ENABLERXPKTTMSTPRSS(x) ((x) << S_ENABLERXPKTTMSTPRSS) 8495 #define F_ENABLERXPKTTMSTPRSS V_ENABLERXPKTTMSTPRSS(1U) 8496 8497 #define S_ENABLEEPCMDAFULL 7 8498 #define V_ENABLEEPCMDAFULL(x) ((x) << S_ENABLEEPCMDAFULL) 8499 #define F_ENABLEEPCMDAFULL V_ENABLEEPCMDAFULL(1U) 8500 8501 #define S_ENABLECPCMDAFULL 6 8502 #define V_ENABLECPCMDAFULL(x) ((x) << S_ENABLECPCMDAFULL) 8503 #define F_ENABLECPCMDAFULL V_ENABLECPCMDAFULL(1U) 8504 8505 #define S_ENABLEEHDRAFULL 5 8506 #define V_ENABLEEHDRAFULL(x) ((x) << S_ENABLEEHDRAFULL) 8507 #define F_ENABLEEHDRAFULL V_ENABLEEHDRAFULL(1U) 8508 8509 #define S_ENABLECHDRAFULL 4 8510 #define V_ENABLECHDRAFULL(x) ((x) << S_ENABLECHDRAFULL) 8511 #define F_ENABLECHDRAFULL V_ENABLECHDRAFULL(1U) 8512 8513 #define S_ENABLEEMACAFULL 3 8514 #define V_ENABLEEMACAFULL(x) ((x) << S_ENABLEEMACAFULL) 8515 #define F_ENABLEEMACAFULL V_ENABLEEMACAFULL(1U) 8516 8517 #define S_ENABLENONOFDTIDRSS 2 8518 #define V_ENABLENONOFDTIDRSS(x) ((x) << S_ENABLENONOFDTIDRSS) 8519 #define F_ENABLENONOFDTIDRSS V_ENABLENONOFDTIDRSS(1U) 8520 8521 #define S_ENABLENONOFDTCBRSS 1 8522 #define V_ENABLENONOFDTCBRSS(x) ((x) << S_ENABLENONOFDTCBRSS) 8523 #define F_ENABLENONOFDTCBRSS V_ENABLENONOFDTCBRSS(1U) 8524 8525 #define S_ENABLETNLOFDCLOSED 0 8526 #define V_ENABLETNLOFDCLOSED(x) ((x) << S_ENABLETNLOFDCLOSED) 8527 #define F_ENABLETNLOFDCLOSED V_ENABLETNLOFDCLOSED(1U) 8528 8529 #define A_TP_TCP_BACKOFF_REG0 0x7d50 8530 8531 #define S_TIMERBACKOFFINDEX3 24 8532 #define M_TIMERBACKOFFINDEX3 0xffU 8533 #define V_TIMERBACKOFFINDEX3(x) ((x) << S_TIMERBACKOFFINDEX3) 8534 #define G_TIMERBACKOFFINDEX3(x) \ 8535 (((x) >> S_TIMERBACKOFFINDEX3) & M_TIMERBACKOFFINDEX3) 8536 8537 #define S_TIMERBACKOFFINDEX2 16 8538 #define M_TIMERBACKOFFINDEX2 0xffU 8539 #define V_TIMERBACKOFFINDEX2(x) ((x) << S_TIMERBACKOFFINDEX2) 8540 #define G_TIMERBACKOFFINDEX2(x) \ 8541 (((x) >> S_TIMERBACKOFFINDEX2) & M_TIMERBACKOFFINDEX2) 8542 8543 #define S_TIMERBACKOFFINDEX1 8 8544 #define M_TIMERBACKOFFINDEX1 0xffU 8545 #define V_TIMERBACKOFFINDEX1(x) ((x) << S_TIMERBACKOFFINDEX1) 8546 #define G_TIMERBACKOFFINDEX1(x) \ 8547 (((x) >> S_TIMERBACKOFFINDEX1) & M_TIMERBACKOFFINDEX1) 8548 8549 #define S_TIMERBACKOFFINDEX0 0 8550 #define M_TIMERBACKOFFINDEX0 0xffU 8551 #define V_TIMERBACKOFFINDEX0(x) ((x) << S_TIMERBACKOFFINDEX0) 8552 #define G_TIMERBACKOFFINDEX0(x) \ 8553 (((x) >> S_TIMERBACKOFFINDEX0) & M_TIMERBACKOFFINDEX0) 8554 8555 #define A_TP_TCP_BACKOFF_REG1 0x7d54 8556 8557 #define S_TIMERBACKOFFINDEX7 24 8558 #define M_TIMERBACKOFFINDEX7 0xffU 8559 #define V_TIMERBACKOFFINDEX7(x) ((x) << S_TIMERBACKOFFINDEX7) 8560 #define G_TIMERBACKOFFINDEX7(x) \ 8561 (((x) >> S_TIMERBACKOFFINDEX7) & M_TIMERBACKOFFINDEX7) 8562 8563 #define S_TIMERBACKOFFINDEX6 16 8564 #define M_TIMERBACKOFFINDEX6 0xffU 8565 #define V_TIMERBACKOFFINDEX6(x) ((x) << S_TIMERBACKOFFINDEX6) 8566 #define G_TIMERBACKOFFINDEX6(x) \ 8567 (((x) >> S_TIMERBACKOFFINDEX6) & M_TIMERBACKOFFINDEX6) 8568 8569 #define S_TIMERBACKOFFINDEX5 8 8570 #define M_TIMERBACKOFFINDEX5 0xffU 8571 #define V_TIMERBACKOFFINDEX5(x) ((x) << S_TIMERBACKOFFINDEX5) 8572 #define G_TIMERBACKOFFINDEX5(x) \ 8573 (((x) >> S_TIMERBACKOFFINDEX5) & M_TIMERBACKOFFINDEX5) 8574 8575 #define S_TIMERBACKOFFINDEX4 0 8576 #define M_TIMERBACKOFFINDEX4 0xffU 8577 #define V_TIMERBACKOFFINDEX4(x) ((x) << S_TIMERBACKOFFINDEX4) 8578 #define G_TIMERBACKOFFINDEX4(x) \ 8579 (((x) >> S_TIMERBACKOFFINDEX4) & M_TIMERBACKOFFINDEX4) 8580 8581 #define A_TP_TCP_BACKOFF_REG2 0x7d58 8582 8583 #define S_TIMERBACKOFFINDEX11 24 8584 #define M_TIMERBACKOFFINDEX11 0xffU 8585 #define V_TIMERBACKOFFINDEX11(x) ((x) << S_TIMERBACKOFFINDEX11) 8586 #define G_TIMERBACKOFFINDEX11(x) \ 8587 (((x) >> S_TIMERBACKOFFINDEX11) & M_TIMERBACKOFFINDEX11) 8588 8589 #define S_TIMERBACKOFFINDEX10 16 8590 #define M_TIMERBACKOFFINDEX10 0xffU 8591 #define V_TIMERBACKOFFINDEX10(x) ((x) << S_TIMERBACKOFFINDEX10) 8592 #define G_TIMERBACKOFFINDEX10(x) \ 8593 (((x) >> S_TIMERBACKOFFINDEX10) & M_TIMERBACKOFFINDEX10) 8594 8595 #define S_TIMERBACKOFFINDEX9 8 8596 #define M_TIMERBACKOFFINDEX9 0xffU 8597 #define V_TIMERBACKOFFINDEX9(x) ((x) << S_TIMERBACKOFFINDEX9) 8598 #define G_TIMERBACKOFFINDEX9(x) \ 8599 (((x) >> S_TIMERBACKOFFINDEX9) & M_TIMERBACKOFFINDEX9) 8600 8601 #define S_TIMERBACKOFFINDEX8 0 8602 #define M_TIMERBACKOFFINDEX8 0xffU 8603 #define V_TIMERBACKOFFINDEX8(x) ((x) << S_TIMERBACKOFFINDEX8) 8604 #define G_TIMERBACKOFFINDEX8(x) \ 8605 (((x) >> S_TIMERBACKOFFINDEX8) & M_TIMERBACKOFFINDEX8) 8606 8607 #define A_TP_TCP_BACKOFF_REG3 0x7d5c 8608 8609 #define S_TIMERBACKOFFINDEX15 24 8610 #define M_TIMERBACKOFFINDEX15 0xffU 8611 #define V_TIMERBACKOFFINDEX15(x) ((x) << S_TIMERBACKOFFINDEX15) 8612 #define G_TIMERBACKOFFINDEX15(x) \ 8613 (((x) >> S_TIMERBACKOFFINDEX15) & M_TIMERBACKOFFINDEX15) 8614 8615 #define S_TIMERBACKOFFINDEX14 16 8616 #define M_TIMERBACKOFFINDEX14 0xffU 8617 #define V_TIMERBACKOFFINDEX14(x) ((x) << S_TIMERBACKOFFINDEX14) 8618 #define G_TIMERBACKOFFINDEX14(x) \ 8619 (((x) >> S_TIMERBACKOFFINDEX14) & M_TIMERBACKOFFINDEX14) 8620 8621 #define S_TIMERBACKOFFINDEX13 8 8622 #define M_TIMERBACKOFFINDEX13 0xffU 8623 #define V_TIMERBACKOFFINDEX13(x) ((x) << S_TIMERBACKOFFINDEX13) 8624 #define G_TIMERBACKOFFINDEX13(x) \ 8625 (((x) >> S_TIMERBACKOFFINDEX13) & M_TIMERBACKOFFINDEX13) 8626 8627 #define S_TIMERBACKOFFINDEX12 0 8628 #define M_TIMERBACKOFFINDEX12 0xffU 8629 #define V_TIMERBACKOFFINDEX12(x) ((x) << S_TIMERBACKOFFINDEX12) 8630 #define G_TIMERBACKOFFINDEX12(x) \ 8631 (((x) >> S_TIMERBACKOFFINDEX12) & M_TIMERBACKOFFINDEX12) 8632 8633 #define A_TP_PARA_REG0 0x7d60 8634 8635 #define S_INITCWNDIDLE 27 8636 #define V_INITCWNDIDLE(x) ((x) << S_INITCWNDIDLE) 8637 #define F_INITCWNDIDLE V_INITCWNDIDLE(1U) 8638 8639 #define S_INITCWND 24 8640 #define M_INITCWND 0x7U 8641 #define V_INITCWND(x) ((x) << S_INITCWND) 8642 #define G_INITCWND(x) (((x) >> S_INITCWND) & M_INITCWND) 8643 8644 #define S_DUPACKTHRESH 20 8645 #define M_DUPACKTHRESH 0xfU 8646 #define V_DUPACKTHRESH(x) ((x) << S_DUPACKTHRESH) 8647 #define G_DUPACKTHRESH(x) (((x) >> S_DUPACKTHRESH) & M_DUPACKTHRESH) 8648 8649 #define S_CPLERRENABLE 12 8650 #define V_CPLERRENABLE(x) ((x) << S_CPLERRENABLE) 8651 #define F_CPLERRENABLE V_CPLERRENABLE(1U) 8652 8653 #define S_FASTTNLCNT 11 8654 #define V_FASTTNLCNT(x) ((x) << S_FASTTNLCNT) 8655 #define F_FASTTNLCNT V_FASTTNLCNT(1U) 8656 8657 #define S_FASTTBLCNT 10 8658 #define V_FASTTBLCNT(x) ((x) << S_FASTTBLCNT) 8659 #define F_FASTTBLCNT V_FASTTBLCNT(1U) 8660 8661 #define S_TPTCAMKEY 9 8662 #define V_TPTCAMKEY(x) ((x) << S_TPTCAMKEY) 8663 #define F_TPTCAMKEY V_TPTCAMKEY(1U) 8664 8665 #define S_SWSMODE 8 8666 #define V_SWSMODE(x) ((x) << S_SWSMODE) 8667 #define F_SWSMODE V_SWSMODE(1U) 8668 8669 #define S_TSMPMODE 6 8670 #define M_TSMPMODE 0x3U 8671 #define V_TSMPMODE(x) ((x) << S_TSMPMODE) 8672 #define G_TSMPMODE(x) (((x) >> S_TSMPMODE) & M_TSMPMODE) 8673 8674 #define S_BYTECOUNTLIMIT 4 8675 #define M_BYTECOUNTLIMIT 0x3U 8676 #define V_BYTECOUNTLIMIT(x) ((x) << S_BYTECOUNTLIMIT) 8677 #define G_BYTECOUNTLIMIT(x) (((x) >> S_BYTECOUNTLIMIT) & M_BYTECOUNTLIMIT) 8678 8679 #define S_SWSSHOVE 3 8680 #define V_SWSSHOVE(x) ((x) << S_SWSSHOVE) 8681 #define F_SWSSHOVE V_SWSSHOVE(1U) 8682 8683 #define S_TBLTIMER 2 8684 #define V_TBLTIMER(x) ((x) << S_TBLTIMER) 8685 #define F_TBLTIMER V_TBLTIMER(1U) 8686 8687 #define S_RXTPACE 1 8688 #define V_RXTPACE(x) ((x) << S_RXTPACE) 8689 #define F_RXTPACE V_RXTPACE(1U) 8690 8691 #define S_SWSTIMER 0 8692 #define V_SWSTIMER(x) ((x) << S_SWSTIMER) 8693 #define F_SWSTIMER V_SWSTIMER(1U) 8694 8695 #define A_TP_PARA_REG1 0x7d64 8696 8697 #define S_INITRWND 16 8698 #define M_INITRWND 0xffffU 8699 #define V_INITRWND(x) ((x) << S_INITRWND) 8700 #define G_INITRWND(x) (((x) >> S_INITRWND) & M_INITRWND) 8701 8702 #define S_INITIALSSTHRESH 0 8703 #define M_INITIALSSTHRESH 0xffffU 8704 #define V_INITIALSSTHRESH(x) ((x) << S_INITIALSSTHRESH) 8705 #define G_INITIALSSTHRESH(x) (((x) >> S_INITIALSSTHRESH) & M_INITIALSSTHRESH) 8706 8707 #define A_TP_PARA_REG2 0x7d68 8708 8709 #define S_MAXRXDATA 16 8710 #define M_MAXRXDATA 0xffffU 8711 #define V_MAXRXDATA(x) ((x) << S_MAXRXDATA) 8712 #define G_MAXRXDATA(x) (((x) >> S_MAXRXDATA) & M_MAXRXDATA) 8713 8714 #define S_RXCOALESCESIZE 0 8715 #define M_RXCOALESCESIZE 0xffffU 8716 #define V_RXCOALESCESIZE(x) ((x) << S_RXCOALESCESIZE) 8717 #define G_RXCOALESCESIZE(x) (((x) >> S_RXCOALESCESIZE) & M_RXCOALESCESIZE) 8718 8719 #define A_TP_PARA_REG3 0x7d6c 8720 8721 #define S_ENABLETNLCNGLPBK 31 8722 #define V_ENABLETNLCNGLPBK(x) ((x) << S_ENABLETNLCNGLPBK) 8723 #define F_ENABLETNLCNGLPBK V_ENABLETNLCNGLPBK(1U) 8724 8725 #define S_ENABLETNLCNGFIFO 30 8726 #define V_ENABLETNLCNGFIFO(x) ((x) << S_ENABLETNLCNGFIFO) 8727 #define F_ENABLETNLCNGFIFO V_ENABLETNLCNGFIFO(1U) 8728 8729 #define S_ENABLETNLCNGHDR 29 8730 #define V_ENABLETNLCNGHDR(x) ((x) << S_ENABLETNLCNGHDR) 8731 #define F_ENABLETNLCNGHDR V_ENABLETNLCNGHDR(1U) 8732 8733 #define S_ENABLETNLCNGSGE 28 8734 #define V_ENABLETNLCNGSGE(x) ((x) << S_ENABLETNLCNGSGE) 8735 #define F_ENABLETNLCNGSGE V_ENABLETNLCNGSGE(1U) 8736 8737 #define S_RXMACCHECK 27 8738 #define V_RXMACCHECK(x) ((x) << S_RXMACCHECK) 8739 #define F_RXMACCHECK V_RXMACCHECK(1U) 8740 8741 #define S_RXSYNFILTER 26 8742 #define V_RXSYNFILTER(x) ((x) << S_RXSYNFILTER) 8743 #define F_RXSYNFILTER V_RXSYNFILTER(1U) 8744 8745 #define S_CNGCTRLECN 25 8746 #define V_CNGCTRLECN(x) ((x) << S_CNGCTRLECN) 8747 #define F_CNGCTRLECN V_CNGCTRLECN(1U) 8748 8749 #define S_RXDDPOFFINIT 24 8750 #define V_RXDDPOFFINIT(x) ((x) << S_RXDDPOFFINIT) 8751 #define F_RXDDPOFFINIT V_RXDDPOFFINIT(1U) 8752 8753 #define S_TUNNELCNGDROP3 23 8754 #define V_TUNNELCNGDROP3(x) ((x) << S_TUNNELCNGDROP3) 8755 #define F_TUNNELCNGDROP3 V_TUNNELCNGDROP3(1U) 8756 8757 #define S_TUNNELCNGDROP2 22 8758 #define V_TUNNELCNGDROP2(x) ((x) << S_TUNNELCNGDROP2) 8759 #define F_TUNNELCNGDROP2 V_TUNNELCNGDROP2(1U) 8760 8761 #define S_TUNNELCNGDROP1 21 8762 #define V_TUNNELCNGDROP1(x) ((x) << S_TUNNELCNGDROP1) 8763 #define F_TUNNELCNGDROP1 V_TUNNELCNGDROP1(1U) 8764 8765 #define S_TUNNELCNGDROP0 20 8766 #define V_TUNNELCNGDROP0(x) ((x) << S_TUNNELCNGDROP0) 8767 #define F_TUNNELCNGDROP0 V_TUNNELCNGDROP0(1U) 8768 8769 #define S_TXDATAACKIDX 16 8770 #define M_TXDATAACKIDX 0xfU 8771 #define V_TXDATAACKIDX(x) ((x) << S_TXDATAACKIDX) 8772 #define G_TXDATAACKIDX(x) (((x) >> S_TXDATAACKIDX) & M_TXDATAACKIDX) 8773 8774 #define S_RXFRAGENABLE 12 8775 #define M_RXFRAGENABLE 0x7U 8776 #define V_RXFRAGENABLE(x) ((x) << S_RXFRAGENABLE) 8777 #define G_RXFRAGENABLE(x) (((x) >> S_RXFRAGENABLE) & M_RXFRAGENABLE) 8778 8779 #define S_TXPACEFIXEDSTRICT 11 8780 #define V_TXPACEFIXEDSTRICT(x) ((x) << S_TXPACEFIXEDSTRICT) 8781 #define F_TXPACEFIXEDSTRICT V_TXPACEFIXEDSTRICT(1U) 8782 8783 #define S_TXPACEAUTOSTRICT 10 8784 #define V_TXPACEAUTOSTRICT(x) ((x) << S_TXPACEAUTOSTRICT) 8785 #define F_TXPACEAUTOSTRICT V_TXPACEAUTOSTRICT(1U) 8786 8787 #define S_TXPACEFIXED 9 8788 #define V_TXPACEFIXED(x) ((x) << S_TXPACEFIXED) 8789 #define F_TXPACEFIXED V_TXPACEFIXED(1U) 8790 8791 #define S_TXPACEAUTO 8 8792 #define V_TXPACEAUTO(x) ((x) << S_TXPACEAUTO) 8793 #define F_TXPACEAUTO V_TXPACEAUTO(1U) 8794 8795 #define S_RXCHNTUNNEL 7 8796 #define V_RXCHNTUNNEL(x) ((x) << S_RXCHNTUNNEL) 8797 #define F_RXCHNTUNNEL V_RXCHNTUNNEL(1U) 8798 8799 #define S_RXURGTUNNEL 6 8800 #define V_RXURGTUNNEL(x) ((x) << S_RXURGTUNNEL) 8801 #define F_RXURGTUNNEL V_RXURGTUNNEL(1U) 8802 8803 #define S_RXURGMODE 5 8804 #define V_RXURGMODE(x) ((x) << S_RXURGMODE) 8805 #define F_RXURGMODE V_RXURGMODE(1U) 8806 8807 #define S_TXURGMODE 4 8808 #define V_TXURGMODE(x) ((x) << S_TXURGMODE) 8809 #define F_TXURGMODE V_TXURGMODE(1U) 8810 8811 #define S_CNGCTRLMODE 2 8812 #define M_CNGCTRLMODE 0x3U 8813 #define V_CNGCTRLMODE(x) ((x) << S_CNGCTRLMODE) 8814 #define G_CNGCTRLMODE(x) (((x) >> S_CNGCTRLMODE) & M_CNGCTRLMODE) 8815 8816 #define S_RXCOALESCEENABLE 1 8817 #define V_RXCOALESCEENABLE(x) ((x) << S_RXCOALESCEENABLE) 8818 #define F_RXCOALESCEENABLE V_RXCOALESCEENABLE(1U) 8819 8820 #define S_RXCOALESCEPSHEN 0 8821 #define V_RXCOALESCEPSHEN(x) ((x) << S_RXCOALESCEPSHEN) 8822 #define F_RXCOALESCEPSHEN V_RXCOALESCEPSHEN(1U) 8823 8824 #define A_TP_PARA_REG4 0x7d70 8825 8826 #define S_HIGHSPEEDCFG 24 8827 #define M_HIGHSPEEDCFG 0xffU 8828 #define V_HIGHSPEEDCFG(x) ((x) << S_HIGHSPEEDCFG) 8829 #define G_HIGHSPEEDCFG(x) (((x) >> S_HIGHSPEEDCFG) & M_HIGHSPEEDCFG) 8830 8831 #define S_NEWRENOCFG 16 8832 #define M_NEWRENOCFG 0xffU 8833 #define V_NEWRENOCFG(x) ((x) << S_NEWRENOCFG) 8834 #define G_NEWRENOCFG(x) (((x) >> S_NEWRENOCFG) & M_NEWRENOCFG) 8835 8836 #define S_TAHOECFG 8 8837 #define M_TAHOECFG 0xffU 8838 #define V_TAHOECFG(x) ((x) << S_TAHOECFG) 8839 #define G_TAHOECFG(x) (((x) >> S_TAHOECFG) & M_TAHOECFG) 8840 8841 #define S_RENOCFG 0 8842 #define M_RENOCFG 0xffU 8843 #define V_RENOCFG(x) ((x) << S_RENOCFG) 8844 #define G_RENOCFG(x) (((x) >> S_RENOCFG) & M_RENOCFG) 8845 8846 #define A_TP_PARA_REG5 0x7d74 8847 8848 #define S_INDICATESIZE 16 8849 #define M_INDICATESIZE 0xffffU 8850 #define V_INDICATESIZE(x) ((x) << S_INDICATESIZE) 8851 #define G_INDICATESIZE(x) (((x) >> S_INDICATESIZE) & M_INDICATESIZE) 8852 8853 #define S_MAXPROXYSIZE 12 8854 #define M_MAXPROXYSIZE 0xfU 8855 #define V_MAXPROXYSIZE(x) ((x) << S_MAXPROXYSIZE) 8856 #define G_MAXPROXYSIZE(x) (((x) >> S_MAXPROXYSIZE) & M_MAXPROXYSIZE) 8857 8858 #define S_ENABLEREADPDU 11 8859 #define V_ENABLEREADPDU(x) ((x) << S_ENABLEREADPDU) 8860 #define F_ENABLEREADPDU V_ENABLEREADPDU(1U) 8861 8862 #define S_RXREADAHEAD 10 8863 #define V_RXREADAHEAD(x) ((x) << S_RXREADAHEAD) 8864 #define F_RXREADAHEAD V_RXREADAHEAD(1U) 8865 8866 #define S_EMPTYRQENABLE 9 8867 #define V_EMPTYRQENABLE(x) ((x) << S_EMPTYRQENABLE) 8868 #define F_EMPTYRQENABLE V_EMPTYRQENABLE(1U) 8869 8870 #define S_SCHDENABLE 8 8871 #define V_SCHDENABLE(x) ((x) << S_SCHDENABLE) 8872 #define F_SCHDENABLE V_SCHDENABLE(1U) 8873 8874 #define S_REARMDDPOFFSET 4 8875 #define V_REARMDDPOFFSET(x) ((x) << S_REARMDDPOFFSET) 8876 #define F_REARMDDPOFFSET V_REARMDDPOFFSET(1U) 8877 8878 #define S_RESETDDPOFFSET 3 8879 #define V_RESETDDPOFFSET(x) ((x) << S_RESETDDPOFFSET) 8880 #define F_RESETDDPOFFSET V_RESETDDPOFFSET(1U) 8881 8882 #define S_ONFLYDDPENABLE 2 8883 #define V_ONFLYDDPENABLE(x) ((x) << S_ONFLYDDPENABLE) 8884 #define F_ONFLYDDPENABLE V_ONFLYDDPENABLE(1U) 8885 8886 #define S_DACKTIMERSPIN 1 8887 #define V_DACKTIMERSPIN(x) ((x) << S_DACKTIMERSPIN) 8888 #define F_DACKTIMERSPIN V_DACKTIMERSPIN(1U) 8889 8890 #define S_PUSHTIMERENABLE 0 8891 #define V_PUSHTIMERENABLE(x) ((x) << S_PUSHTIMERENABLE) 8892 #define F_PUSHTIMERENABLE V_PUSHTIMERENABLE(1U) 8893 8894 #define A_TP_PARA_REG6 0x7d78 8895 8896 #define S_TXPDUSIZEADJ 24 8897 #define M_TXPDUSIZEADJ 0xffU 8898 #define V_TXPDUSIZEADJ(x) ((x) << S_TXPDUSIZEADJ) 8899 #define G_TXPDUSIZEADJ(x) (((x) >> S_TXPDUSIZEADJ) & M_TXPDUSIZEADJ) 8900 8901 #define S_LIMITEDTRANSMIT 20 8902 #define M_LIMITEDTRANSMIT 0xfU 8903 #define V_LIMITEDTRANSMIT(x) ((x) << S_LIMITEDTRANSMIT) 8904 #define G_LIMITEDTRANSMIT(x) (((x) >> S_LIMITEDTRANSMIT) & M_LIMITEDTRANSMIT) 8905 8906 #define S_ENABLECSAV 19 8907 #define V_ENABLECSAV(x) ((x) << S_ENABLECSAV) 8908 #define F_ENABLECSAV V_ENABLECSAV(1U) 8909 8910 #define S_ENABLEDEFERPDU 18 8911 #define V_ENABLEDEFERPDU(x) ((x) << S_ENABLEDEFERPDU) 8912 #define F_ENABLEDEFERPDU V_ENABLEDEFERPDU(1U) 8913 8914 #define S_ENABLEFLUSH 17 8915 #define V_ENABLEFLUSH(x) ((x) << S_ENABLEFLUSH) 8916 #define F_ENABLEFLUSH V_ENABLEFLUSH(1U) 8917 8918 #define S_ENABLEBYTEPERSIST 16 8919 #define V_ENABLEBYTEPERSIST(x) ((x) << S_ENABLEBYTEPERSIST) 8920 #define F_ENABLEBYTEPERSIST V_ENABLEBYTEPERSIST(1U) 8921 8922 #define S_DISABLETMOCNG 15 8923 #define V_DISABLETMOCNG(x) ((x) << S_DISABLETMOCNG) 8924 #define F_DISABLETMOCNG V_DISABLETMOCNG(1U) 8925 8926 #define S_TXREADAHEAD 14 8927 #define V_TXREADAHEAD(x) ((x) << S_TXREADAHEAD) 8928 #define F_TXREADAHEAD V_TXREADAHEAD(1U) 8929 8930 #define S_ALLOWEXEPTION 13 8931 #define V_ALLOWEXEPTION(x) ((x) << S_ALLOWEXEPTION) 8932 #define F_ALLOWEXEPTION V_ALLOWEXEPTION(1U) 8933 8934 #define S_ENABLEDEFERACK 12 8935 #define V_ENABLEDEFERACK(x) ((x) << S_ENABLEDEFERACK) 8936 #define F_ENABLEDEFERACK V_ENABLEDEFERACK(1U) 8937 8938 #define S_ENABLEESND 11 8939 #define V_ENABLEESND(x) ((x) << S_ENABLEESND) 8940 #define F_ENABLEESND V_ENABLEESND(1U) 8941 8942 #define S_ENABLECSND 10 8943 #define V_ENABLECSND(x) ((x) << S_ENABLECSND) 8944 #define F_ENABLECSND V_ENABLECSND(1U) 8945 8946 #define S_ENABLEPDUE 9 8947 #define V_ENABLEPDUE(x) ((x) << S_ENABLEPDUE) 8948 #define F_ENABLEPDUE V_ENABLEPDUE(1U) 8949 8950 #define S_ENABLEPDUC 8 8951 #define V_ENABLEPDUC(x) ((x) << S_ENABLEPDUC) 8952 #define F_ENABLEPDUC V_ENABLEPDUC(1U) 8953 8954 #define S_ENABLEBUFI 7 8955 #define V_ENABLEBUFI(x) ((x) << S_ENABLEBUFI) 8956 #define F_ENABLEBUFI V_ENABLEBUFI(1U) 8957 8958 #define S_ENABLEBUFE 6 8959 #define V_ENABLEBUFE(x) ((x) << S_ENABLEBUFE) 8960 #define F_ENABLEBUFE V_ENABLEBUFE(1U) 8961 8962 #define S_ENABLEDEFER 5 8963 #define V_ENABLEDEFER(x) ((x) << S_ENABLEDEFER) 8964 #define F_ENABLEDEFER V_ENABLEDEFER(1U) 8965 8966 #define S_ENABLECLEARRXMTOOS 4 8967 #define V_ENABLECLEARRXMTOOS(x) ((x) << S_ENABLECLEARRXMTOOS) 8968 #define F_ENABLECLEARRXMTOOS V_ENABLECLEARRXMTOOS(1U) 8969 8970 #define S_DISABLEPDUCNG 3 8971 #define V_DISABLEPDUCNG(x) ((x) << S_DISABLEPDUCNG) 8972 #define F_DISABLEPDUCNG V_DISABLEPDUCNG(1U) 8973 8974 #define S_DISABLEPDUTIMEOUT 2 8975 #define V_DISABLEPDUTIMEOUT(x) ((x) << S_DISABLEPDUTIMEOUT) 8976 #define F_DISABLEPDUTIMEOUT V_DISABLEPDUTIMEOUT(1U) 8977 8978 #define S_DISABLEPDURXMT 1 8979 #define V_DISABLEPDURXMT(x) ((x) << S_DISABLEPDURXMT) 8980 #define F_DISABLEPDURXMT V_DISABLEPDURXMT(1U) 8981 8982 #define S_DISABLEPDUXMT 0 8983 #define V_DISABLEPDUXMT(x) ((x) << S_DISABLEPDUXMT) 8984 #define F_DISABLEPDUXMT V_DISABLEPDUXMT(1U) 8985 8986 #define A_TP_PARA_REG7 0x7d7c 8987 8988 #define S_PMMAXXFERLEN1 16 8989 #define M_PMMAXXFERLEN1 0xffffU 8990 #define V_PMMAXXFERLEN1(x) ((x) << S_PMMAXXFERLEN1) 8991 #define G_PMMAXXFERLEN1(x) (((x) >> S_PMMAXXFERLEN1) & M_PMMAXXFERLEN1) 8992 8993 #define S_PMMAXXFERLEN0 0 8994 #define M_PMMAXXFERLEN0 0xffffU 8995 #define V_PMMAXXFERLEN0(x) ((x) << S_PMMAXXFERLEN0) 8996 #define G_PMMAXXFERLEN0(x) (((x) >> S_PMMAXXFERLEN0) & M_PMMAXXFERLEN0) 8997 8998 #define A_TP_ENG_CONFIG 0x7d80 8999 9000 #define S_TABLELATENCYDONE 28 9001 #define M_TABLELATENCYDONE 0xfU 9002 #define V_TABLELATENCYDONE(x) ((x) << S_TABLELATENCYDONE) 9003 #define G_TABLELATENCYDONE(x) (((x) >> S_TABLELATENCYDONE) & M_TABLELATENCYDONE) 9004 9005 #define S_TABLELATENCYSTART 24 9006 #define M_TABLELATENCYSTART 0xfU 9007 #define V_TABLELATENCYSTART(x) ((x) << S_TABLELATENCYSTART) 9008 #define G_TABLELATENCYSTART(x) \ 9009 (((x) >> S_TABLELATENCYSTART) & M_TABLELATENCYSTART) 9010 9011 #define S_ENGINELATENCYDELTA 16 9012 #define M_ENGINELATENCYDELTA 0xfU 9013 #define V_ENGINELATENCYDELTA(x) ((x) << S_ENGINELATENCYDELTA) 9014 #define G_ENGINELATENCYDELTA(x) \ 9015 (((x) >> S_ENGINELATENCYDELTA) & M_ENGINELATENCYDELTA) 9016 9017 #define S_ENGINELATENCYMMGR 12 9018 #define M_ENGINELATENCYMMGR 0xfU 9019 #define V_ENGINELATENCYMMGR(x) ((x) << S_ENGINELATENCYMMGR) 9020 #define G_ENGINELATENCYMMGR(x) \ 9021 (((x) >> S_ENGINELATENCYMMGR) & M_ENGINELATENCYMMGR) 9022 9023 #define S_ENGINELATENCYWIREIP6 8 9024 #define M_ENGINELATENCYWIREIP6 0xfU 9025 #define V_ENGINELATENCYWIREIP6(x) ((x) << S_ENGINELATENCYWIREIP6) 9026 #define G_ENGINELATENCYWIREIP6(x) \ 9027 (((x) >> S_ENGINELATENCYWIREIP6) & M_ENGINELATENCYWIREIP6) 9028 9029 #define S_ENGINELATENCYWIRE 4 9030 #define M_ENGINELATENCYWIRE 0xfU 9031 #define V_ENGINELATENCYWIRE(x) ((x) << S_ENGINELATENCYWIRE) 9032 #define G_ENGINELATENCYWIRE(x) \ 9033 (((x) >> S_ENGINELATENCYWIRE) & M_ENGINELATENCYWIRE) 9034 9035 #define S_ENGINELATENCYBASE 0 9036 #define M_ENGINELATENCYBASE 0xfU 9037 #define V_ENGINELATENCYBASE(x) ((x) << S_ENGINELATENCYBASE) 9038 #define G_ENGINELATENCYBASE(x) \ 9039 (((x) >> S_ENGINELATENCYBASE) & M_ENGINELATENCYBASE) 9040 9041 #define A_TP_ERR_CONFIG 0x7d8c 9042 9043 #define S_TNLERRORPING 30 9044 #define V_TNLERRORPING(x) ((x) << S_TNLERRORPING) 9045 #define F_TNLERRORPING V_TNLERRORPING(1U) 9046 9047 #define S_TNLERRORCSUM 29 9048 #define V_TNLERRORCSUM(x) ((x) << S_TNLERRORCSUM) 9049 #define F_TNLERRORCSUM V_TNLERRORCSUM(1U) 9050 9051 #define S_TNLERRORCSUMIP 28 9052 #define V_TNLERRORCSUMIP(x) ((x) << S_TNLERRORCSUMIP) 9053 #define F_TNLERRORCSUMIP V_TNLERRORCSUMIP(1U) 9054 9055 #define S_TNLERRORTCPOPT 25 9056 #define V_TNLERRORTCPOPT(x) ((x) << S_TNLERRORTCPOPT) 9057 #define F_TNLERRORTCPOPT V_TNLERRORTCPOPT(1U) 9058 9059 #define S_TNLERRORPKTLEN 24 9060 #define V_TNLERRORPKTLEN(x) ((x) << S_TNLERRORPKTLEN) 9061 #define F_TNLERRORPKTLEN V_TNLERRORPKTLEN(1U) 9062 9063 #define S_TNLERRORTCPHDRLEN 23 9064 #define V_TNLERRORTCPHDRLEN(x) ((x) << S_TNLERRORTCPHDRLEN) 9065 #define F_TNLERRORTCPHDRLEN V_TNLERRORTCPHDRLEN(1U) 9066 9067 #define S_TNLERRORIPHDRLEN 22 9068 #define V_TNLERRORIPHDRLEN(x) ((x) << S_TNLERRORIPHDRLEN) 9069 #define F_TNLERRORIPHDRLEN V_TNLERRORIPHDRLEN(1U) 9070 9071 #define S_TNLERRORETHHDRLEN 21 9072 #define V_TNLERRORETHHDRLEN(x) ((x) << S_TNLERRORETHHDRLEN) 9073 #define F_TNLERRORETHHDRLEN V_TNLERRORETHHDRLEN(1U) 9074 9075 #define S_TNLERRORATTACK 20 9076 #define V_TNLERRORATTACK(x) ((x) << S_TNLERRORATTACK) 9077 #define F_TNLERRORATTACK V_TNLERRORATTACK(1U) 9078 9079 #define S_TNLERRORFRAG 19 9080 #define V_TNLERRORFRAG(x) ((x) << S_TNLERRORFRAG) 9081 #define F_TNLERRORFRAG V_TNLERRORFRAG(1U) 9082 9083 #define S_TNLERRORIPVER 18 9084 #define V_TNLERRORIPVER(x) ((x) << S_TNLERRORIPVER) 9085 #define F_TNLERRORIPVER V_TNLERRORIPVER(1U) 9086 9087 #define S_TNLERRORMAC 17 9088 #define V_TNLERRORMAC(x) ((x) << S_TNLERRORMAC) 9089 #define F_TNLERRORMAC V_TNLERRORMAC(1U) 9090 9091 #define S_TNLERRORANY 16 9092 #define V_TNLERRORANY(x) ((x) << S_TNLERRORANY) 9093 #define F_TNLERRORANY V_TNLERRORANY(1U) 9094 9095 #define S_DROPERRORPING 14 9096 #define V_DROPERRORPING(x) ((x) << S_DROPERRORPING) 9097 #define F_DROPERRORPING V_DROPERRORPING(1U) 9098 9099 #define S_DROPERRORCSUM 13 9100 #define V_DROPERRORCSUM(x) ((x) << S_DROPERRORCSUM) 9101 #define F_DROPERRORCSUM V_DROPERRORCSUM(1U) 9102 9103 #define S_DROPERRORCSUMIP 12 9104 #define V_DROPERRORCSUMIP(x) ((x) << S_DROPERRORCSUMIP) 9105 #define F_DROPERRORCSUMIP V_DROPERRORCSUMIP(1U) 9106 9107 #define S_DROPERRORTCPOPT 9 9108 #define V_DROPERRORTCPOPT(x) ((x) << S_DROPERRORTCPOPT) 9109 #define F_DROPERRORTCPOPT V_DROPERRORTCPOPT(1U) 9110 9111 #define S_DROPERRORPKTLEN 8 9112 #define V_DROPERRORPKTLEN(x) ((x) << S_DROPERRORPKTLEN) 9113 #define F_DROPERRORPKTLEN V_DROPERRORPKTLEN(1U) 9114 9115 #define S_DROPERRORTCPHDRLEN 7 9116 #define V_DROPERRORTCPHDRLEN(x) ((x) << S_DROPERRORTCPHDRLEN) 9117 #define F_DROPERRORTCPHDRLEN V_DROPERRORTCPHDRLEN(1U) 9118 9119 #define S_DROPERRORIPHDRLEN 6 9120 #define V_DROPERRORIPHDRLEN(x) ((x) << S_DROPERRORIPHDRLEN) 9121 #define F_DROPERRORIPHDRLEN V_DROPERRORIPHDRLEN(1U) 9122 9123 #define S_DROPERRORETHHDRLEN 5 9124 #define V_DROPERRORETHHDRLEN(x) ((x) << S_DROPERRORETHHDRLEN) 9125 #define F_DROPERRORETHHDRLEN V_DROPERRORETHHDRLEN(1U) 9126 9127 #define S_DROPERRORATTACK 4 9128 #define V_DROPERRORATTACK(x) ((x) << S_DROPERRORATTACK) 9129 #define F_DROPERRORATTACK V_DROPERRORATTACK(1U) 9130 9131 #define S_DROPERRORFRAG 3 9132 #define V_DROPERRORFRAG(x) ((x) << S_DROPERRORFRAG) 9133 #define F_DROPERRORFRAG V_DROPERRORFRAG(1U) 9134 9135 #define S_DROPERRORIPVER 2 9136 #define V_DROPERRORIPVER(x) ((x) << S_DROPERRORIPVER) 9137 #define F_DROPERRORIPVER V_DROPERRORIPVER(1U) 9138 9139 #define S_DROPERRORMAC 1 9140 #define V_DROPERRORMAC(x) ((x) << S_DROPERRORMAC) 9141 #define F_DROPERRORMAC V_DROPERRORMAC(1U) 9142 9143 #define S_DROPERRORANY 0 9144 #define V_DROPERRORANY(x) ((x) << S_DROPERRORANY) 9145 #define F_DROPERRORANY V_DROPERRORANY(1U) 9146 9147 #define A_TP_TIMER_RESOLUTION 0x7d90 9148 9149 #define S_TIMERRESOLUTION 16 9150 #define M_TIMERRESOLUTION 0xffU 9151 #define V_TIMERRESOLUTION(x) ((x) << S_TIMERRESOLUTION) 9152 #define G_TIMERRESOLUTION(x) (((x) >> S_TIMERRESOLUTION) & M_TIMERRESOLUTION) 9153 9154 #define S_TIMESTAMPRESOLUTION 8 9155 #define M_TIMESTAMPRESOLUTION 0xffU 9156 #define V_TIMESTAMPRESOLUTION(x) ((x) << S_TIMESTAMPRESOLUTION) 9157 #define G_TIMESTAMPRESOLUTION(x) \ 9158 (((x) >> S_TIMESTAMPRESOLUTION) & M_TIMESTAMPRESOLUTION) 9159 9160 #define S_DELAYEDACKRESOLUTION 0 9161 #define M_DELAYEDACKRESOLUTION 0xffU 9162 #define V_DELAYEDACKRESOLUTION(x) ((x) << S_DELAYEDACKRESOLUTION) 9163 #define G_DELAYEDACKRESOLUTION(x) \ 9164 (((x) >> S_DELAYEDACKRESOLUTION) & M_DELAYEDACKRESOLUTION) 9165 9166 #define A_TP_MSL 0x7d94 9167 9168 #define S_MSL 0 9169 #define M_MSL 0x3fffffffU 9170 #define V_MSL(x) ((x) << S_MSL) 9171 #define G_MSL(x) (((x) >> S_MSL) & M_MSL) 9172 9173 #define A_TP_RXT_MIN 0x7d98 9174 9175 #define S_RXTMIN 0 9176 #define M_RXTMIN 0x3fffffffU 9177 #define V_RXTMIN(x) ((x) << S_RXTMIN) 9178 #define G_RXTMIN(x) (((x) >> S_RXTMIN) & M_RXTMIN) 9179 9180 #define A_TP_RXT_MAX 0x7d9c 9181 9182 #define S_RXTMAX 0 9183 #define M_RXTMAX 0x3fffffffU 9184 #define V_RXTMAX(x) ((x) << S_RXTMAX) 9185 #define G_RXTMAX(x) (((x) >> S_RXTMAX) & M_RXTMAX) 9186 9187 #define A_TP_PERS_MIN 0x7da0 9188 9189 #define S_PERSMIN 0 9190 #define M_PERSMIN 0x3fffffffU 9191 #define V_PERSMIN(x) ((x) << S_PERSMIN) 9192 #define G_PERSMIN(x) (((x) >> S_PERSMIN) & M_PERSMIN) 9193 9194 #define A_TP_PERS_MAX 0x7da4 9195 9196 #define S_PERSMAX 0 9197 #define M_PERSMAX 0x3fffffffU 9198 #define V_PERSMAX(x) ((x) << S_PERSMAX) 9199 #define G_PERSMAX(x) (((x) >> S_PERSMAX) & M_PERSMAX) 9200 9201 #define A_TP_KEEP_IDLE 0x7da8 9202 9203 #define S_KEEPALIVEIDLE 0 9204 #define M_KEEPALIVEIDLE 0x3fffffffU 9205 #define V_KEEPALIVEIDLE(x) ((x) << S_KEEPALIVEIDLE) 9206 #define G_KEEPALIVEIDLE(x) (((x) >> S_KEEPALIVEIDLE) & M_KEEPALIVEIDLE) 9207 9208 #define A_TP_KEEP_INTVL 0x7dac 9209 9210 #define S_KEEPALIVEINTVL 0 9211 #define M_KEEPALIVEINTVL 0x3fffffffU 9212 #define V_KEEPALIVEINTVL(x) ((x) << S_KEEPALIVEINTVL) 9213 #define G_KEEPALIVEINTVL(x) (((x) >> S_KEEPALIVEINTVL) & M_KEEPALIVEINTVL) 9214 9215 #define A_TP_INIT_SRTT 0x7db0 9216 9217 #define S_MAXRTT 16 9218 #define M_MAXRTT 0xffffU 9219 #define V_MAXRTT(x) ((x) << S_MAXRTT) 9220 #define G_MAXRTT(x) (((x) >> S_MAXRTT) & M_MAXRTT) 9221 9222 #define S_INITSRTT 0 9223 #define M_INITSRTT 0xffffU 9224 #define V_INITSRTT(x) ((x) << S_INITSRTT) 9225 #define G_INITSRTT(x) (((x) >> S_INITSRTT) & M_INITSRTT) 9226 9227 #define A_TP_DACK_TIMER 0x7db4 9228 9229 #define S_DACKTIME 0 9230 #define M_DACKTIME 0xfffU 9231 #define V_DACKTIME(x) ((x) << S_DACKTIME) 9232 #define G_DACKTIME(x) (((x) >> S_DACKTIME) & M_DACKTIME) 9233 9234 #define A_TP_FINWAIT2_TIMER 0x7db8 9235 9236 #define S_FINWAIT2TIME 0 9237 #define M_FINWAIT2TIME 0x3fffffffU 9238 #define V_FINWAIT2TIME(x) ((x) << S_FINWAIT2TIME) 9239 #define G_FINWAIT2TIME(x) (((x) >> S_FINWAIT2TIME) & M_FINWAIT2TIME) 9240 9241 #define A_TP_FAST_FINWAIT2_TIMER 0x7dbc 9242 9243 #define S_FASTFINWAIT2TIME 0 9244 #define M_FASTFINWAIT2TIME 0x3fffffffU 9245 #define V_FASTFINWAIT2TIME(x) ((x) << S_FASTFINWAIT2TIME) 9246 #define G_FASTFINWAIT2TIME(x) (((x) >> S_FASTFINWAIT2TIME) & M_FASTFINWAIT2TIME) 9247 9248 #define A_TP_SHIFT_CNT 0x7dc0 9249 9250 #define S_SYNSHIFTMAX 24 9251 #define M_SYNSHIFTMAX 0xffU 9252 #define V_SYNSHIFTMAX(x) ((x) << S_SYNSHIFTMAX) 9253 #define G_SYNSHIFTMAX(x) (((x) >> S_SYNSHIFTMAX) & M_SYNSHIFTMAX) 9254 9255 #define S_RXTSHIFTMAXR1 20 9256 #define M_RXTSHIFTMAXR1 0xfU 9257 #define V_RXTSHIFTMAXR1(x) ((x) << S_RXTSHIFTMAXR1) 9258 #define G_RXTSHIFTMAXR1(x) (((x) >> S_RXTSHIFTMAXR1) & M_RXTSHIFTMAXR1) 9259 9260 #define S_RXTSHIFTMAXR2 16 9261 #define M_RXTSHIFTMAXR2 0xfU 9262 #define V_RXTSHIFTMAXR2(x) ((x) << S_RXTSHIFTMAXR2) 9263 #define G_RXTSHIFTMAXR2(x) (((x) >> S_RXTSHIFTMAXR2) & M_RXTSHIFTMAXR2) 9264 9265 #define S_PERSHIFTBACKOFFMAX 12 9266 #define M_PERSHIFTBACKOFFMAX 0xfU 9267 #define V_PERSHIFTBACKOFFMAX(x) ((x) << S_PERSHIFTBACKOFFMAX) 9268 #define G_PERSHIFTBACKOFFMAX(x) \ 9269 (((x) >> S_PERSHIFTBACKOFFMAX) & M_PERSHIFTBACKOFFMAX) 9270 9271 #define S_PERSHIFTMAX 8 9272 #define M_PERSHIFTMAX 0xfU 9273 #define V_PERSHIFTMAX(x) ((x) << S_PERSHIFTMAX) 9274 #define G_PERSHIFTMAX(x) (((x) >> S_PERSHIFTMAX) & M_PERSHIFTMAX) 9275 9276 #define S_KEEPALIVEMAXR1 4 9277 #define M_KEEPALIVEMAXR1 0xfU 9278 #define V_KEEPALIVEMAXR1(x) ((x) << S_KEEPALIVEMAXR1) 9279 #define G_KEEPALIVEMAXR1(x) (((x) >> S_KEEPALIVEMAXR1) & M_KEEPALIVEMAXR1) 9280 9281 #define S_KEEPALIVEMAXR2 0 9282 #define M_KEEPALIVEMAXR2 0xfU 9283 #define V_KEEPALIVEMAXR2(x) ((x) << S_KEEPALIVEMAXR2) 9284 #define G_KEEPALIVEMAXR2(x) (((x) >> S_KEEPALIVEMAXR2) & M_KEEPALIVEMAXR2) 9285 9286 #define A_TP_TM_CONFIG 0x7dc4 9287 9288 #define S_CMTIMERMAXNUM 0 9289 #define M_CMTIMERMAXNUM 0x7U 9290 #define V_CMTIMERMAXNUM(x) ((x) << S_CMTIMERMAXNUM) 9291 #define G_CMTIMERMAXNUM(x) (((x) >> S_CMTIMERMAXNUM) & M_CMTIMERMAXNUM) 9292 9293 #define A_TP_TIME_LO 0x7dc8 9294 #define A_TP_TIME_HI 0x7dcc 9295 #define A_TP_PORT_MTU_0 0x7dd0 9296 9297 #define S_PORT1MTUVALUE 16 9298 #define M_PORT1MTUVALUE 0xffffU 9299 #define V_PORT1MTUVALUE(x) ((x) << S_PORT1MTUVALUE) 9300 #define G_PORT1MTUVALUE(x) (((x) >> S_PORT1MTUVALUE) & M_PORT1MTUVALUE) 9301 9302 #define S_PORT0MTUVALUE 0 9303 #define M_PORT0MTUVALUE 0xffffU 9304 #define V_PORT0MTUVALUE(x) ((x) << S_PORT0MTUVALUE) 9305 #define G_PORT0MTUVALUE(x) (((x) >> S_PORT0MTUVALUE) & M_PORT0MTUVALUE) 9306 9307 #define A_TP_PORT_MTU_1 0x7dd4 9308 9309 #define S_PORT3MTUVALUE 16 9310 #define M_PORT3MTUVALUE 0xffffU 9311 #define V_PORT3MTUVALUE(x) ((x) << S_PORT3MTUVALUE) 9312 #define G_PORT3MTUVALUE(x) (((x) >> S_PORT3MTUVALUE) & M_PORT3MTUVALUE) 9313 9314 #define S_PORT2MTUVALUE 0 9315 #define M_PORT2MTUVALUE 0xffffU 9316 #define V_PORT2MTUVALUE(x) ((x) << S_PORT2MTUVALUE) 9317 #define G_PORT2MTUVALUE(x) (((x) >> S_PORT2MTUVALUE) & M_PORT2MTUVALUE) 9318 9319 #define A_TP_PACE_TABLE 0x7dd8 9320 #define A_TP_CCTRL_TABLE 0x7ddc 9321 9322 #define S_ROWINDEX 16 9323 #define M_ROWINDEX 0xffffU 9324 #define V_ROWINDEX(x) ((x) << S_ROWINDEX) 9325 #define G_ROWINDEX(x) (((x) >> S_ROWINDEX) & M_ROWINDEX) 9326 9327 #define S_ROWVALUE 0 9328 #define M_ROWVALUE 0xffffU 9329 #define V_ROWVALUE(x) ((x) << S_ROWVALUE) 9330 #define G_ROWVALUE(x) (((x) >> S_ROWVALUE) & M_ROWVALUE) 9331 9332 #define A_TP_MTU_TABLE 0x7de4 9333 9334 #define S_MTUINDEX 24 9335 #define M_MTUINDEX 0xffU 9336 #define V_MTUINDEX(x) ((x) << S_MTUINDEX) 9337 #define G_MTUINDEX(x) (((x) >> S_MTUINDEX) & M_MTUINDEX) 9338 9339 #define S_MTUWIDTH 16 9340 #define M_MTUWIDTH 0xfU 9341 #define V_MTUWIDTH(x) ((x) << S_MTUWIDTH) 9342 #define G_MTUWIDTH(x) (((x) >> S_MTUWIDTH) & M_MTUWIDTH) 9343 9344 #define S_MTUVALUE 0 9345 #define M_MTUVALUE 0x3fffU 9346 #define V_MTUVALUE(x) ((x) << S_MTUVALUE) 9347 #define G_MTUVALUE(x) (((x) >> S_MTUVALUE) & M_MTUVALUE) 9348 9349 #define A_TP_ULP_TABLE 0x7de8 9350 9351 #define S_ULPTYPE7FIELD 28 9352 #define M_ULPTYPE7FIELD 0xfU 9353 #define V_ULPTYPE7FIELD(x) ((x) << S_ULPTYPE7FIELD) 9354 #define G_ULPTYPE7FIELD(x) (((x) >> S_ULPTYPE7FIELD) & M_ULPTYPE7FIELD) 9355 9356 #define S_ULPTYPE6FIELD 24 9357 #define M_ULPTYPE6FIELD 0xfU 9358 #define V_ULPTYPE6FIELD(x) ((x) << S_ULPTYPE6FIELD) 9359 #define G_ULPTYPE6FIELD(x) (((x) >> S_ULPTYPE6FIELD) & M_ULPTYPE6FIELD) 9360 9361 #define S_ULPTYPE5FIELD 20 9362 #define M_ULPTYPE5FIELD 0xfU 9363 #define V_ULPTYPE5FIELD(x) ((x) << S_ULPTYPE5FIELD) 9364 #define G_ULPTYPE5FIELD(x) (((x) >> S_ULPTYPE5FIELD) & M_ULPTYPE5FIELD) 9365 9366 #define S_ULPTYPE4FIELD 16 9367 #define M_ULPTYPE4FIELD 0xfU 9368 #define V_ULPTYPE4FIELD(x) ((x) << S_ULPTYPE4FIELD) 9369 #define G_ULPTYPE4FIELD(x) (((x) >> S_ULPTYPE4FIELD) & M_ULPTYPE4FIELD) 9370 9371 #define S_ULPTYPE3FIELD 12 9372 #define M_ULPTYPE3FIELD 0xfU 9373 #define V_ULPTYPE3FIELD(x) ((x) << S_ULPTYPE3FIELD) 9374 #define G_ULPTYPE3FIELD(x) (((x) >> S_ULPTYPE3FIELD) & M_ULPTYPE3FIELD) 9375 9376 #define S_ULPTYPE2FIELD 8 9377 #define M_ULPTYPE2FIELD 0xfU 9378 #define V_ULPTYPE2FIELD(x) ((x) << S_ULPTYPE2FIELD) 9379 #define G_ULPTYPE2FIELD(x) (((x) >> S_ULPTYPE2FIELD) & M_ULPTYPE2FIELD) 9380 9381 #define S_ULPTYPE1FIELD 4 9382 #define M_ULPTYPE1FIELD 0xfU 9383 #define V_ULPTYPE1FIELD(x) ((x) << S_ULPTYPE1FIELD) 9384 #define G_ULPTYPE1FIELD(x) (((x) >> S_ULPTYPE1FIELD) & M_ULPTYPE1FIELD) 9385 9386 #define S_ULPTYPE0FIELD 0 9387 #define M_ULPTYPE0FIELD 0xfU 9388 #define V_ULPTYPE0FIELD(x) ((x) << S_ULPTYPE0FIELD) 9389 #define G_ULPTYPE0FIELD(x) (((x) >> S_ULPTYPE0FIELD) & M_ULPTYPE0FIELD) 9390 9391 #define A_TP_RSS_LKP_TABLE 0x7dec 9392 9393 #define S_LKPTBLROWVLD 31 9394 #define V_LKPTBLROWVLD(x) ((x) << S_LKPTBLROWVLD) 9395 #define F_LKPTBLROWVLD V_LKPTBLROWVLD(1U) 9396 9397 #define S_LKPTBLROWIDX 20 9398 #define M_LKPTBLROWIDX 0x3ffU 9399 #define V_LKPTBLROWIDX(x) ((x) << S_LKPTBLROWIDX) 9400 #define G_LKPTBLROWIDX(x) (((x) >> S_LKPTBLROWIDX) & M_LKPTBLROWIDX) 9401 9402 #define S_LKPTBLQUEUE1 10 9403 #define M_LKPTBLQUEUE1 0x3ffU 9404 #define V_LKPTBLQUEUE1(x) ((x) << S_LKPTBLQUEUE1) 9405 #define G_LKPTBLQUEUE1(x) (((x) >> S_LKPTBLQUEUE1) & M_LKPTBLQUEUE1) 9406 9407 #define S_LKPTBLQUEUE0 0 9408 #define M_LKPTBLQUEUE0 0x3ffU 9409 #define V_LKPTBLQUEUE0(x) ((x) << S_LKPTBLQUEUE0) 9410 #define G_LKPTBLQUEUE0(x) (((x) >> S_LKPTBLQUEUE0) & M_LKPTBLQUEUE0) 9411 9412 #define A_TP_RSS_CONFIG 0x7df0 9413 9414 #define S_TNL4TUPENIPV6 31 9415 #define V_TNL4TUPENIPV6(x) ((x) << S_TNL4TUPENIPV6) 9416 #define F_TNL4TUPENIPV6 V_TNL4TUPENIPV6(1U) 9417 9418 #define S_TNL2TUPENIPV6 30 9419 #define V_TNL2TUPENIPV6(x) ((x) << S_TNL2TUPENIPV6) 9420 #define F_TNL2TUPENIPV6 V_TNL2TUPENIPV6(1U) 9421 9422 #define S_TNL4TUPENIPV4 29 9423 #define V_TNL4TUPENIPV4(x) ((x) << S_TNL4TUPENIPV4) 9424 #define F_TNL4TUPENIPV4 V_TNL4TUPENIPV4(1U) 9425 9426 #define S_TNL2TUPENIPV4 28 9427 #define V_TNL2TUPENIPV4(x) ((x) << S_TNL2TUPENIPV4) 9428 #define F_TNL2TUPENIPV4 V_TNL2TUPENIPV4(1U) 9429 9430 #define S_TNLTCPSEL 27 9431 #define V_TNLTCPSEL(x) ((x) << S_TNLTCPSEL) 9432 #define F_TNLTCPSEL V_TNLTCPSEL(1U) 9433 9434 #define S_TNLIP6SEL 26 9435 #define V_TNLIP6SEL(x) ((x) << S_TNLIP6SEL) 9436 #define F_TNLIP6SEL V_TNLIP6SEL(1U) 9437 9438 #define S_TNLVRTSEL 25 9439 #define V_TNLVRTSEL(x) ((x) << S_TNLVRTSEL) 9440 #define F_TNLVRTSEL V_TNLVRTSEL(1U) 9441 9442 #define S_TNLMAPEN 24 9443 #define V_TNLMAPEN(x) ((x) << S_TNLMAPEN) 9444 #define F_TNLMAPEN V_TNLMAPEN(1U) 9445 9446 #define S_OFDHASHSAVE 19 9447 #define V_OFDHASHSAVE(x) ((x) << S_OFDHASHSAVE) 9448 #define F_OFDHASHSAVE V_OFDHASHSAVE(1U) 9449 9450 #define S_OFDVRTSEL 18 9451 #define V_OFDVRTSEL(x) ((x) << S_OFDVRTSEL) 9452 #define F_OFDVRTSEL V_OFDVRTSEL(1U) 9453 9454 #define S_OFDMAPEN 17 9455 #define V_OFDMAPEN(x) ((x) << S_OFDMAPEN) 9456 #define F_OFDMAPEN V_OFDMAPEN(1U) 9457 9458 #define S_OFDLKPEN 16 9459 #define V_OFDLKPEN(x) ((x) << S_OFDLKPEN) 9460 #define F_OFDLKPEN V_OFDLKPEN(1U) 9461 9462 #define S_SYN4TUPENIPV6 15 9463 #define V_SYN4TUPENIPV6(x) ((x) << S_SYN4TUPENIPV6) 9464 #define F_SYN4TUPENIPV6 V_SYN4TUPENIPV6(1U) 9465 9466 #define S_SYN2TUPENIPV6 14 9467 #define V_SYN2TUPENIPV6(x) ((x) << S_SYN2TUPENIPV6) 9468 #define F_SYN2TUPENIPV6 V_SYN2TUPENIPV6(1U) 9469 9470 #define S_SYN4TUPENIPV4 13 9471 #define V_SYN4TUPENIPV4(x) ((x) << S_SYN4TUPENIPV4) 9472 #define F_SYN4TUPENIPV4 V_SYN4TUPENIPV4(1U) 9473 9474 #define S_SYN2TUPENIPV4 12 9475 #define V_SYN2TUPENIPV4(x) ((x) << S_SYN2TUPENIPV4) 9476 #define F_SYN2TUPENIPV4 V_SYN2TUPENIPV4(1U) 9477 9478 #define S_SYNIP6SEL 11 9479 #define V_SYNIP6SEL(x) ((x) << S_SYNIP6SEL) 9480 #define F_SYNIP6SEL V_SYNIP6SEL(1U) 9481 9482 #define S_SYNVRTSEL 10 9483 #define V_SYNVRTSEL(x) ((x) << S_SYNVRTSEL) 9484 #define F_SYNVRTSEL V_SYNVRTSEL(1U) 9485 9486 #define S_SYNMAPEN 9 9487 #define V_SYNMAPEN(x) ((x) << S_SYNMAPEN) 9488 #define F_SYNMAPEN V_SYNMAPEN(1U) 9489 9490 #define S_SYNLKPEN 8 9491 #define V_SYNLKPEN(x) ((x) << S_SYNLKPEN) 9492 #define F_SYNLKPEN V_SYNLKPEN(1U) 9493 9494 #define S_CHANNELENABLE 7 9495 #define V_CHANNELENABLE(x) ((x) << S_CHANNELENABLE) 9496 #define F_CHANNELENABLE V_CHANNELENABLE(1U) 9497 9498 #define S_PORTENABLE 6 9499 #define V_PORTENABLE(x) ((x) << S_PORTENABLE) 9500 #define F_PORTENABLE V_PORTENABLE(1U) 9501 9502 #define S_TNLALLLOOKUP 5 9503 #define V_TNLALLLOOKUP(x) ((x) << S_TNLALLLOOKUP) 9504 #define F_TNLALLLOOKUP V_TNLALLLOOKUP(1U) 9505 9506 #define S_VIRTENABLE 4 9507 #define V_VIRTENABLE(x) ((x) << S_VIRTENABLE) 9508 #define F_VIRTENABLE V_VIRTENABLE(1U) 9509 9510 #define S_CONGESTIONENABLE 3 9511 #define V_CONGESTIONENABLE(x) ((x) << S_CONGESTIONENABLE) 9512 #define F_CONGESTIONENABLE V_CONGESTIONENABLE(1U) 9513 9514 #define S_HASHTOEPLITZ 2 9515 #define V_HASHTOEPLITZ(x) ((x) << S_HASHTOEPLITZ) 9516 #define F_HASHTOEPLITZ V_HASHTOEPLITZ(1U) 9517 9518 #define S_UDPENABLE 1 9519 #define V_UDPENABLE(x) ((x) << S_UDPENABLE) 9520 #define F_UDPENABLE V_UDPENABLE(1U) 9521 9522 #define S_DISABLE 0 9523 #define V_DISABLE(x) ((x) << S_DISABLE) 9524 #define F_DISABLE V_DISABLE(1U) 9525 9526 #define A_TP_RSS_CONFIG_TNL 0x7df4 9527 9528 #define S_MASKSIZE 28 9529 #define M_MASKSIZE 0xfU 9530 #define V_MASKSIZE(x) ((x) << S_MASKSIZE) 9531 #define G_MASKSIZE(x) (((x) >> S_MASKSIZE) & M_MASKSIZE) 9532 9533 #define S_MASKFILTER 16 9534 #define M_MASKFILTER 0x7ffU 9535 #define V_MASKFILTER(x) ((x) << S_MASKFILTER) 9536 #define G_MASKFILTER(x) (((x) >> S_MASKFILTER) & M_MASKFILTER) 9537 9538 #define S_USEWIRECH 0 9539 #define V_USEWIRECH(x) ((x) << S_USEWIRECH) 9540 #define F_USEWIRECH V_USEWIRECH(1U) 9541 9542 #define A_TP_RSS_CONFIG_OFD 0x7df8 9543 9544 #define S_RRCPLMAPEN 20 9545 #define V_RRCPLMAPEN(x) ((x) << S_RRCPLMAPEN) 9546 #define F_RRCPLMAPEN V_RRCPLMAPEN(1U) 9547 9548 #define S_RRCPLQUEWIDTH 16 9549 #define M_RRCPLQUEWIDTH 0xfU 9550 #define V_RRCPLQUEWIDTH(x) ((x) << S_RRCPLQUEWIDTH) 9551 #define G_RRCPLQUEWIDTH(x) (((x) >> S_RRCPLQUEWIDTH) & M_RRCPLQUEWIDTH) 9552 9553 #define A_TP_RSS_CONFIG_SYN 0x7dfc 9554 #define A_TP_RSS_CONFIG_VRT 0x7e00 9555 9556 #define S_VFRDRG 25 9557 #define V_VFRDRG(x) ((x) << S_VFRDRG) 9558 #define F_VFRDRG V_VFRDRG(1U) 9559 9560 #define S_VFRDEN 24 9561 #define V_VFRDEN(x) ((x) << S_VFRDEN) 9562 #define F_VFRDEN V_VFRDEN(1U) 9563 9564 #define S_VFPERREN 23 9565 #define V_VFPERREN(x) ((x) << S_VFPERREN) 9566 #define F_VFPERREN V_VFPERREN(1U) 9567 9568 #define S_KEYPERREN 22 9569 #define V_KEYPERREN(x) ((x) << S_KEYPERREN) 9570 #define F_KEYPERREN V_KEYPERREN(1U) 9571 9572 #define S_DISABLEVLAN 21 9573 #define V_DISABLEVLAN(x) ((x) << S_DISABLEVLAN) 9574 #define F_DISABLEVLAN V_DISABLEVLAN(1U) 9575 9576 #define S_ENABLEUP0 20 9577 #define V_ENABLEUP0(x) ((x) << S_ENABLEUP0) 9578 #define F_ENABLEUP0 V_ENABLEUP0(1U) 9579 9580 #define S_HASHDELAY 16 9581 #define M_HASHDELAY 0xfU 9582 #define V_HASHDELAY(x) ((x) << S_HASHDELAY) 9583 #define G_HASHDELAY(x) (((x) >> S_HASHDELAY) & M_HASHDELAY) 9584 9585 #define S_VFWRADDR 8 9586 #define M_VFWRADDR 0x7fU 9587 #define V_VFWRADDR(x) ((x) << S_VFWRADDR) 9588 #define G_VFWRADDR(x) (((x) >> S_VFWRADDR) & M_VFWRADDR) 9589 9590 #define S_KEYMODE 6 9591 #define M_KEYMODE 0x3U 9592 #define V_KEYMODE(x) ((x) << S_KEYMODE) 9593 #define G_KEYMODE(x) (((x) >> S_KEYMODE) & M_KEYMODE) 9594 9595 #define S_VFWREN 5 9596 #define V_VFWREN(x) ((x) << S_VFWREN) 9597 #define F_VFWREN V_VFWREN(1U) 9598 9599 #define S_KEYWREN 4 9600 #define V_KEYWREN(x) ((x) << S_KEYWREN) 9601 #define F_KEYWREN V_KEYWREN(1U) 9602 9603 #define S_KEYWRADDR 0 9604 #define M_KEYWRADDR 0xfU 9605 #define V_KEYWRADDR(x) ((x) << S_KEYWRADDR) 9606 #define G_KEYWRADDR(x) (((x) >> S_KEYWRADDR) & M_KEYWRADDR) 9607 9608 #define A_TP_RSS_CONFIG_CNG 0x7e04 9609 9610 #define S_CHNCOUNT3 31 9611 #define V_CHNCOUNT3(x) ((x) << S_CHNCOUNT3) 9612 #define F_CHNCOUNT3 V_CHNCOUNT3(1U) 9613 9614 #define S_CHNCOUNT2 30 9615 #define V_CHNCOUNT2(x) ((x) << S_CHNCOUNT2) 9616 #define F_CHNCOUNT2 V_CHNCOUNT2(1U) 9617 9618 #define S_CHNCOUNT1 29 9619 #define V_CHNCOUNT1(x) ((x) << S_CHNCOUNT1) 9620 #define F_CHNCOUNT1 V_CHNCOUNT1(1U) 9621 9622 #define S_CHNCOUNT0 28 9623 #define V_CHNCOUNT0(x) ((x) << S_CHNCOUNT0) 9624 #define F_CHNCOUNT0 V_CHNCOUNT0(1U) 9625 9626 #define S_CHNUNDFLOW3 27 9627 #define V_CHNUNDFLOW3(x) ((x) << S_CHNUNDFLOW3) 9628 #define F_CHNUNDFLOW3 V_CHNUNDFLOW3(1U) 9629 9630 #define S_CHNUNDFLOW2 26 9631 #define V_CHNUNDFLOW2(x) ((x) << S_CHNUNDFLOW2) 9632 #define F_CHNUNDFLOW2 V_CHNUNDFLOW2(1U) 9633 9634 #define S_CHNUNDFLOW1 25 9635 #define V_CHNUNDFLOW1(x) ((x) << S_CHNUNDFLOW1) 9636 #define F_CHNUNDFLOW1 V_CHNUNDFLOW1(1U) 9637 9638 #define S_CHNUNDFLOW0 24 9639 #define V_CHNUNDFLOW0(x) ((x) << S_CHNUNDFLOW0) 9640 #define F_CHNUNDFLOW0 V_CHNUNDFLOW0(1U) 9641 9642 #define S_CHNOVRFLOW3 23 9643 #define V_CHNOVRFLOW3(x) ((x) << S_CHNOVRFLOW3) 9644 #define F_CHNOVRFLOW3 V_CHNOVRFLOW3(1U) 9645 9646 #define S_CHNOVRFLOW2 22 9647 #define V_CHNOVRFLOW2(x) ((x) << S_CHNOVRFLOW2) 9648 #define F_CHNOVRFLOW2 V_CHNOVRFLOW2(1U) 9649 9650 #define S_CHNOVRFLOW1 21 9651 #define V_CHNOVRFLOW1(x) ((x) << S_CHNOVRFLOW1) 9652 #define F_CHNOVRFLOW1 V_CHNOVRFLOW1(1U) 9653 9654 #define S_CHNOVRFLOW0 20 9655 #define V_CHNOVRFLOW0(x) ((x) << S_CHNOVRFLOW0) 9656 #define F_CHNOVRFLOW0 V_CHNOVRFLOW0(1U) 9657 9658 #define S_RSTCHN3 19 9659 #define V_RSTCHN3(x) ((x) << S_RSTCHN3) 9660 #define F_RSTCHN3 V_RSTCHN3(1U) 9661 9662 #define S_RSTCHN2 18 9663 #define V_RSTCHN2(x) ((x) << S_RSTCHN2) 9664 #define F_RSTCHN2 V_RSTCHN2(1U) 9665 9666 #define S_RSTCHN1 17 9667 #define V_RSTCHN1(x) ((x) << S_RSTCHN1) 9668 #define F_RSTCHN1 V_RSTCHN1(1U) 9669 9670 #define S_RSTCHN0 16 9671 #define V_RSTCHN0(x) ((x) << S_RSTCHN0) 9672 #define F_RSTCHN0 V_RSTCHN0(1U) 9673 9674 #define S_UPDVLD 15 9675 #define V_UPDVLD(x) ((x) << S_UPDVLD) 9676 #define F_UPDVLD V_UPDVLD(1U) 9677 9678 #define S_XOFF 14 9679 #define V_XOFF(x) ((x) << S_XOFF) 9680 #define F_XOFF V_XOFF(1U) 9681 9682 #define S_UPDCHN3 13 9683 #define V_UPDCHN3(x) ((x) << S_UPDCHN3) 9684 #define F_UPDCHN3 V_UPDCHN3(1U) 9685 9686 #define S_UPDCHN2 12 9687 #define V_UPDCHN2(x) ((x) << S_UPDCHN2) 9688 #define F_UPDCHN2 V_UPDCHN2(1U) 9689 9690 #define S_UPDCHN1 11 9691 #define V_UPDCHN1(x) ((x) << S_UPDCHN1) 9692 #define F_UPDCHN1 V_UPDCHN1(1U) 9693 9694 #define S_UPDCHN0 10 9695 #define V_UPDCHN0(x) ((x) << S_UPDCHN0) 9696 #define F_UPDCHN0 V_UPDCHN0(1U) 9697 9698 #define S_QUEUE 0 9699 #define M_QUEUE 0x3ffU 9700 #define V_QUEUE(x) ((x) << S_QUEUE) 9701 #define G_QUEUE(x) (((x) >> S_QUEUE) & M_QUEUE) 9702 9703 #define A_TP_LA_TABLE_0 0x7e10 9704 9705 #define S_VIRTPORT1TABLE 16 9706 #define M_VIRTPORT1TABLE 0xffffU 9707 #define V_VIRTPORT1TABLE(x) ((x) << S_VIRTPORT1TABLE) 9708 #define G_VIRTPORT1TABLE(x) (((x) >> S_VIRTPORT1TABLE) & M_VIRTPORT1TABLE) 9709 9710 #define S_VIRTPORT0TABLE 0 9711 #define M_VIRTPORT0TABLE 0xffffU 9712 #define V_VIRTPORT0TABLE(x) ((x) << S_VIRTPORT0TABLE) 9713 #define G_VIRTPORT0TABLE(x) (((x) >> S_VIRTPORT0TABLE) & M_VIRTPORT0TABLE) 9714 9715 #define A_TP_LA_TABLE_1 0x7e14 9716 9717 #define S_VIRTPORT3TABLE 16 9718 #define M_VIRTPORT3TABLE 0xffffU 9719 #define V_VIRTPORT3TABLE(x) ((x) << S_VIRTPORT3TABLE) 9720 #define G_VIRTPORT3TABLE(x) (((x) >> S_VIRTPORT3TABLE) & M_VIRTPORT3TABLE) 9721 9722 #define S_VIRTPORT2TABLE 0 9723 #define M_VIRTPORT2TABLE 0xffffU 9724 #define V_VIRTPORT2TABLE(x) ((x) << S_VIRTPORT2TABLE) 9725 #define G_VIRTPORT2TABLE(x) (((x) >> S_VIRTPORT2TABLE) & M_VIRTPORT2TABLE) 9726 9727 #define A_TP_TM_PIO_ADDR 0x7e18 9728 #define A_TP_TM_PIO_DATA 0x7e1c 9729 #define A_TP_MOD_CONFIG 0x7e24 9730 9731 #define S_RXCHANNELWEIGHT1 24 9732 #define M_RXCHANNELWEIGHT1 0xffU 9733 #define V_RXCHANNELWEIGHT1(x) ((x) << S_RXCHANNELWEIGHT1) 9734 #define G_RXCHANNELWEIGHT1(x) (((x) >> S_RXCHANNELWEIGHT1) & M_RXCHANNELWEIGHT1) 9735 9736 #define S_RXCHANNELWEIGHT0 16 9737 #define M_RXCHANNELWEIGHT0 0xffU 9738 #define V_RXCHANNELWEIGHT0(x) ((x) << S_RXCHANNELWEIGHT0) 9739 #define G_RXCHANNELWEIGHT0(x) (((x) >> S_RXCHANNELWEIGHT0) & M_RXCHANNELWEIGHT0) 9740 9741 #define S_TIMERMODE 8 9742 #define M_TIMERMODE 0xffU 9743 #define V_TIMERMODE(x) ((x) << S_TIMERMODE) 9744 #define G_TIMERMODE(x) (((x) >> S_TIMERMODE) & M_TIMERMODE) 9745 9746 #define S_TXCHANNELXOFFEN 0 9747 #define M_TXCHANNELXOFFEN 0xfU 9748 #define V_TXCHANNELXOFFEN(x) ((x) << S_TXCHANNELXOFFEN) 9749 #define G_TXCHANNELXOFFEN(x) (((x) >> S_TXCHANNELXOFFEN) & M_TXCHANNELXOFFEN) 9750 9751 #define A_TP_TX_MOD_QUEUE_REQ_MAP 0x7e28 9752 9753 #define S_RX_MOD_WEIGHT 24 9754 #define M_RX_MOD_WEIGHT 0xffU 9755 #define V_RX_MOD_WEIGHT(x) ((x) << S_RX_MOD_WEIGHT) 9756 #define G_RX_MOD_WEIGHT(x) (((x) >> S_RX_MOD_WEIGHT) & M_RX_MOD_WEIGHT) 9757 9758 #define S_TX_MOD_WEIGHT 16 9759 #define M_TX_MOD_WEIGHT 0xffU 9760 #define V_TX_MOD_WEIGHT(x) ((x) << S_TX_MOD_WEIGHT) 9761 #define G_TX_MOD_WEIGHT(x) (((x) >> S_TX_MOD_WEIGHT) & M_TX_MOD_WEIGHT) 9762 9763 #define S_TX_MOD_QUEUE_REQ_MAP 0 9764 #define M_TX_MOD_QUEUE_REQ_MAP 0xffffU 9765 #define V_TX_MOD_QUEUE_REQ_MAP(x) ((x) << S_TX_MOD_QUEUE_REQ_MAP) 9766 #define G_TX_MOD_QUEUE_REQ_MAP(x) \ 9767 (((x) >> S_TX_MOD_QUEUE_REQ_MAP) & M_TX_MOD_QUEUE_REQ_MAP) 9768 9769 #define A_TP_TX_MOD_QUEUE_WEIGHT1 0x7e2c 9770 9771 #define S_TX_MODQ_WEIGHT7 24 9772 #define M_TX_MODQ_WEIGHT7 0xffU 9773 #define V_TX_MODQ_WEIGHT7(x) ((x) << S_TX_MODQ_WEIGHT7) 9774 #define G_TX_MODQ_WEIGHT7(x) (((x) >> S_TX_MODQ_WEIGHT7) & M_TX_MODQ_WEIGHT7) 9775 9776 #define S_TX_MODQ_WEIGHT6 16 9777 #define M_TX_MODQ_WEIGHT6 0xffU 9778 #define V_TX_MODQ_WEIGHT6(x) ((x) << S_TX_MODQ_WEIGHT6) 9779 #define G_TX_MODQ_WEIGHT6(x) (((x) >> S_TX_MODQ_WEIGHT6) & M_TX_MODQ_WEIGHT6) 9780 9781 #define S_TX_MODQ_WEIGHT5 8 9782 #define M_TX_MODQ_WEIGHT5 0xffU 9783 #define V_TX_MODQ_WEIGHT5(x) ((x) << S_TX_MODQ_WEIGHT5) 9784 #define G_TX_MODQ_WEIGHT5(x) (((x) >> S_TX_MODQ_WEIGHT5) & M_TX_MODQ_WEIGHT5) 9785 9786 #define S_TX_MODQ_WEIGHT4 0 9787 #define M_TX_MODQ_WEIGHT4 0xffU 9788 #define V_TX_MODQ_WEIGHT4(x) ((x) << S_TX_MODQ_WEIGHT4) 9789 #define G_TX_MODQ_WEIGHT4(x) (((x) >> S_TX_MODQ_WEIGHT4) & M_TX_MODQ_WEIGHT4) 9790 9791 #define A_TP_TX_MOD_QUEUE_WEIGHT0 0x7e30 9792 9793 #define S_TX_MODQ_WEIGHT3 24 9794 #define M_TX_MODQ_WEIGHT3 0xffU 9795 #define V_TX_MODQ_WEIGHT3(x) ((x) << S_TX_MODQ_WEIGHT3) 9796 #define G_TX_MODQ_WEIGHT3(x) (((x) >> S_TX_MODQ_WEIGHT3) & M_TX_MODQ_WEIGHT3) 9797 9798 #define S_TX_MODQ_WEIGHT2 16 9799 #define M_TX_MODQ_WEIGHT2 0xffU 9800 #define V_TX_MODQ_WEIGHT2(x) ((x) << S_TX_MODQ_WEIGHT2) 9801 #define G_TX_MODQ_WEIGHT2(x) (((x) >> S_TX_MODQ_WEIGHT2) & M_TX_MODQ_WEIGHT2) 9802 9803 #define S_TX_MODQ_WEIGHT1 8 9804 #define M_TX_MODQ_WEIGHT1 0xffU 9805 #define V_TX_MODQ_WEIGHT1(x) ((x) << S_TX_MODQ_WEIGHT1) 9806 #define G_TX_MODQ_WEIGHT1(x) (((x) >> S_TX_MODQ_WEIGHT1) & M_TX_MODQ_WEIGHT1) 9807 9808 #define S_TX_MODQ_WEIGHT0 0 9809 #define M_TX_MODQ_WEIGHT0 0xffU 9810 #define V_TX_MODQ_WEIGHT0(x) ((x) << S_TX_MODQ_WEIGHT0) 9811 #define G_TX_MODQ_WEIGHT0(x) (((x) >> S_TX_MODQ_WEIGHT0) & M_TX_MODQ_WEIGHT0) 9812 9813 #define A_TP_TX_MOD_CHANNEL_WEIGHT 0x7e34 9814 #define A_TP_MOD_RATE_LIMIT 0x7e38 9815 9816 #define S_RX_MOD_RATE_LIMIT_INC 24 9817 #define M_RX_MOD_RATE_LIMIT_INC 0xffU 9818 #define V_RX_MOD_RATE_LIMIT_INC(x) ((x) << S_RX_MOD_RATE_LIMIT_INC) 9819 #define G_RX_MOD_RATE_LIMIT_INC(x) \ 9820 (((x) >> S_RX_MOD_RATE_LIMIT_INC) & M_RX_MOD_RATE_LIMIT_INC) 9821 9822 #define S_RX_MOD_RATE_LIMIT_TICK 16 9823 #define M_RX_MOD_RATE_LIMIT_TICK 0xffU 9824 #define V_RX_MOD_RATE_LIMIT_TICK(x) ((x) << S_RX_MOD_RATE_LIMIT_TICK) 9825 #define G_RX_MOD_RATE_LIMIT_TICK(x) \ 9826 (((x) >> S_RX_MOD_RATE_LIMIT_TICK) & M_RX_MOD_RATE_LIMIT_TICK) 9827 9828 #define S_TX_MOD_RATE_LIMIT_INC 8 9829 #define M_TX_MOD_RATE_LIMIT_INC 0xffU 9830 #define V_TX_MOD_RATE_LIMIT_INC(x) ((x) << S_TX_MOD_RATE_LIMIT_INC) 9831 #define G_TX_MOD_RATE_LIMIT_INC(x) \ 9832 (((x) >> S_TX_MOD_RATE_LIMIT_INC) & M_TX_MOD_RATE_LIMIT_INC) 9833 9834 #define S_TX_MOD_RATE_LIMIT_TICK 0 9835 #define M_TX_MOD_RATE_LIMIT_TICK 0xffU 9836 #define V_TX_MOD_RATE_LIMIT_TICK(x) ((x) << S_TX_MOD_RATE_LIMIT_TICK) 9837 #define G_TX_MOD_RATE_LIMIT_TICK(x) \ 9838 (((x) >> S_TX_MOD_RATE_LIMIT_TICK) & M_TX_MOD_RATE_LIMIT_TICK) 9839 9840 #define A_TP_PIO_ADDR 0x7e40 9841 #define A_TP_PIO_DATA 0x7e44 9842 #define A_TP_RESET 0x7e4c 9843 9844 #define S_FLSTINITENABLE 1 9845 #define V_FLSTINITENABLE(x) ((x) << S_FLSTINITENABLE) 9846 #define F_FLSTINITENABLE V_FLSTINITENABLE(1U) 9847 9848 #define S_TPRESET 0 9849 #define V_TPRESET(x) ((x) << S_TPRESET) 9850 #define F_TPRESET V_TPRESET(1U) 9851 9852 #define A_TP_MIB_INDEX 0x7e50 9853 #define A_TP_MIB_DATA 0x7e54 9854 #define A_TP_SYNC_TIME_HI 0x7e58 9855 #define A_TP_SYNC_TIME_LO 0x7e5c 9856 #define A_TP_CMM_MM_RX_FLST_BASE 0x7e60 9857 #define A_TP_CMM_MM_TX_FLST_BASE 0x7e64 9858 #define A_TP_CMM_MM_PS_FLST_BASE 0x7e68 9859 #define A_TP_CMM_MM_MAX_PSTRUCT 0x7e6c 9860 9861 #define S_CMMAXPSTRUCT 0 9862 #define M_CMMAXPSTRUCT 0x1fffffU 9863 #define V_CMMAXPSTRUCT(x) ((x) << S_CMMAXPSTRUCT) 9864 #define G_CMMAXPSTRUCT(x) (((x) >> S_CMMAXPSTRUCT) & M_CMMAXPSTRUCT) 9865 9866 #define A_TP_INT_ENABLE 0x7e70 9867 9868 #define S_FLMTXFLSTEMPTY 30 9869 #define V_FLMTXFLSTEMPTY(x) ((x) << S_FLMTXFLSTEMPTY) 9870 #define F_FLMTXFLSTEMPTY V_FLMTXFLSTEMPTY(1U) 9871 9872 #define S_RSSLKPPERR 29 9873 #define V_RSSLKPPERR(x) ((x) << S_RSSLKPPERR) 9874 #define F_RSSLKPPERR V_RSSLKPPERR(1U) 9875 9876 #define S_FLMPERRSET 28 9877 #define V_FLMPERRSET(x) ((x) << S_FLMPERRSET) 9878 #define F_FLMPERRSET V_FLMPERRSET(1U) 9879 9880 #define S_PROTOCOLSRAMPERR 27 9881 #define V_PROTOCOLSRAMPERR(x) ((x) << S_PROTOCOLSRAMPERR) 9882 #define F_PROTOCOLSRAMPERR V_PROTOCOLSRAMPERR(1U) 9883 9884 #define S_ARPLUTPERR 26 9885 #define V_ARPLUTPERR(x) ((x) << S_ARPLUTPERR) 9886 #define F_ARPLUTPERR V_ARPLUTPERR(1U) 9887 9888 #define S_CMRCFOPPERR 25 9889 #define V_CMRCFOPPERR(x) ((x) << S_CMRCFOPPERR) 9890 #define F_CMRCFOPPERR V_CMRCFOPPERR(1U) 9891 9892 #define S_CMCACHEPERR 24 9893 #define V_CMCACHEPERR(x) ((x) << S_CMCACHEPERR) 9894 #define F_CMCACHEPERR V_CMCACHEPERR(1U) 9895 9896 #define S_CMRCFDATAPERR 23 9897 #define V_CMRCFDATAPERR(x) ((x) << S_CMRCFDATAPERR) 9898 #define F_CMRCFDATAPERR V_CMRCFDATAPERR(1U) 9899 9900 #define S_DBL2TLUTPERR 22 9901 #define V_DBL2TLUTPERR(x) ((x) << S_DBL2TLUTPERR) 9902 #define F_DBL2TLUTPERR V_DBL2TLUTPERR(1U) 9903 9904 #define S_DBTXTIDPERR 21 9905 #define V_DBTXTIDPERR(x) ((x) << S_DBTXTIDPERR) 9906 #define F_DBTXTIDPERR V_DBTXTIDPERR(1U) 9907 9908 #define S_DBEXTPERR 20 9909 #define V_DBEXTPERR(x) ((x) << S_DBEXTPERR) 9910 #define F_DBEXTPERR V_DBEXTPERR(1U) 9911 9912 #define S_DBOPPERR 19 9913 #define V_DBOPPERR(x) ((x) << S_DBOPPERR) 9914 #define F_DBOPPERR V_DBOPPERR(1U) 9915 9916 #define S_TMCACHEPERR 18 9917 #define V_TMCACHEPERR(x) ((x) << S_TMCACHEPERR) 9918 #define F_TMCACHEPERR V_TMCACHEPERR(1U) 9919 9920 #define S_ETPOUTCPLFIFOPERR 17 9921 #define V_ETPOUTCPLFIFOPERR(x) ((x) << S_ETPOUTCPLFIFOPERR) 9922 #define F_ETPOUTCPLFIFOPERR V_ETPOUTCPLFIFOPERR(1U) 9923 9924 #define S_ETPOUTTCPFIFOPERR 16 9925 #define V_ETPOUTTCPFIFOPERR(x) ((x) << S_ETPOUTTCPFIFOPERR) 9926 #define F_ETPOUTTCPFIFOPERR V_ETPOUTTCPFIFOPERR(1U) 9927 9928 #define S_ETPOUTIPFIFOPERR 15 9929 #define V_ETPOUTIPFIFOPERR(x) ((x) << S_ETPOUTIPFIFOPERR) 9930 #define F_ETPOUTIPFIFOPERR V_ETPOUTIPFIFOPERR(1U) 9931 9932 #define S_ETPOUTETHFIFOPERR 14 9933 #define V_ETPOUTETHFIFOPERR(x) ((x) << S_ETPOUTETHFIFOPERR) 9934 #define F_ETPOUTETHFIFOPERR V_ETPOUTETHFIFOPERR(1U) 9935 9936 #define S_ETPINCPLFIFOPERR 13 9937 #define V_ETPINCPLFIFOPERR(x) ((x) << S_ETPINCPLFIFOPERR) 9938 #define F_ETPINCPLFIFOPERR V_ETPINCPLFIFOPERR(1U) 9939 9940 #define S_ETPINTCPOPTFIFOPERR 12 9941 #define V_ETPINTCPOPTFIFOPERR(x) ((x) << S_ETPINTCPOPTFIFOPERR) 9942 #define F_ETPINTCPOPTFIFOPERR V_ETPINTCPOPTFIFOPERR(1U) 9943 9944 #define S_ETPINTCPFIFOPERR 11 9945 #define V_ETPINTCPFIFOPERR(x) ((x) << S_ETPINTCPFIFOPERR) 9946 #define F_ETPINTCPFIFOPERR V_ETPINTCPFIFOPERR(1U) 9947 9948 #define S_ETPINIPFIFOPERR 10 9949 #define V_ETPINIPFIFOPERR(x) ((x) << S_ETPINIPFIFOPERR) 9950 #define F_ETPINIPFIFOPERR V_ETPINIPFIFOPERR(1U) 9951 9952 #define S_ETPINETHFIFOPERR 9 9953 #define V_ETPINETHFIFOPERR(x) ((x) << S_ETPINETHFIFOPERR) 9954 #define F_ETPINETHFIFOPERR V_ETPINETHFIFOPERR(1U) 9955 9956 #define S_CTPOUTCPLFIFOPERR 8 9957 #define V_CTPOUTCPLFIFOPERR(x) ((x) << S_CTPOUTCPLFIFOPERR) 9958 #define F_CTPOUTCPLFIFOPERR V_CTPOUTCPLFIFOPERR(1U) 9959 9960 #define S_CTPOUTTCPFIFOPERR 7 9961 #define V_CTPOUTTCPFIFOPERR(x) ((x) << S_CTPOUTTCPFIFOPERR) 9962 #define F_CTPOUTTCPFIFOPERR V_CTPOUTTCPFIFOPERR(1U) 9963 9964 #define S_CTPOUTIPFIFOPERR 6 9965 #define V_CTPOUTIPFIFOPERR(x) ((x) << S_CTPOUTIPFIFOPERR) 9966 #define F_CTPOUTIPFIFOPERR V_CTPOUTIPFIFOPERR(1U) 9967 9968 #define S_CTPOUTETHFIFOPERR 5 9969 #define V_CTPOUTETHFIFOPERR(x) ((x) << S_CTPOUTETHFIFOPERR) 9970 #define F_CTPOUTETHFIFOPERR V_CTPOUTETHFIFOPERR(1U) 9971 9972 #define S_CTPINCPLFIFOPERR 4 9973 #define V_CTPINCPLFIFOPERR(x) ((x) << S_CTPINCPLFIFOPERR) 9974 #define F_CTPINCPLFIFOPERR V_CTPINCPLFIFOPERR(1U) 9975 9976 #define S_CTPINTCPOPFIFOPERR 3 9977 #define V_CTPINTCPOPFIFOPERR(x) ((x) << S_CTPINTCPOPFIFOPERR) 9978 #define F_CTPINTCPOPFIFOPERR V_CTPINTCPOPFIFOPERR(1U) 9979 9980 #define S_PDUFBKFIFOPERR 2 9981 #define V_PDUFBKFIFOPERR(x) ((x) << S_PDUFBKFIFOPERR) 9982 #define F_PDUFBKFIFOPERR V_PDUFBKFIFOPERR(1U) 9983 9984 #define S_CMOPEXTFIFOPERR 1 9985 #define V_CMOPEXTFIFOPERR(x) ((x) << S_CMOPEXTFIFOPERR) 9986 #define F_CMOPEXTFIFOPERR V_CMOPEXTFIFOPERR(1U) 9987 9988 #define S_DELINVFIFOPERR 0 9989 #define V_DELINVFIFOPERR(x) ((x) << S_DELINVFIFOPERR) 9990 #define F_DELINVFIFOPERR V_DELINVFIFOPERR(1U) 9991 9992 #define A_TP_INT_CAUSE 0x7e74 9993 #define A_TP_PER_ENABLE 0x7e78 9994 #define A_TP_FLM_FREE_PS_CNT 0x7e80 9995 9996 #define S_FREEPSTRUCTCOUNT 0 9997 #define M_FREEPSTRUCTCOUNT 0x1fffffU 9998 #define V_FREEPSTRUCTCOUNT(x) ((x) << S_FREEPSTRUCTCOUNT) 9999 #define G_FREEPSTRUCTCOUNT(x) (((x) >> S_FREEPSTRUCTCOUNT) & M_FREEPSTRUCTCOUNT) 10000 10001 #define A_TP_FLM_FREE_RX_CNT 0x7e84 10002 10003 #define S_FREERXPAGECHN 28 10004 #define V_FREERXPAGECHN(x) ((x) << S_FREERXPAGECHN) 10005 #define F_FREERXPAGECHN V_FREERXPAGECHN(1U) 10006 10007 #define S_FREERXPAGECOUNT 0 10008 #define M_FREERXPAGECOUNT 0x1fffffU 10009 #define V_FREERXPAGECOUNT(x) ((x) << S_FREERXPAGECOUNT) 10010 #define G_FREERXPAGECOUNT(x) (((x) >> S_FREERXPAGECOUNT) & M_FREERXPAGECOUNT) 10011 10012 #define A_TP_FLM_FREE_TX_CNT 0x7e88 10013 10014 #define S_FREETXPAGECHN 28 10015 #define M_FREETXPAGECHN 0x3U 10016 #define V_FREETXPAGECHN(x) ((x) << S_FREETXPAGECHN) 10017 #define G_FREETXPAGECHN(x) (((x) >> S_FREETXPAGECHN) & M_FREETXPAGECHN) 10018 10019 #define S_FREETXPAGECOUNT 0 10020 #define M_FREETXPAGECOUNT 0x1fffffU 10021 #define V_FREETXPAGECOUNT(x) ((x) << S_FREETXPAGECOUNT) 10022 #define G_FREETXPAGECOUNT(x) (((x) >> S_FREETXPAGECOUNT) & M_FREETXPAGECOUNT) 10023 10024 #define A_TP_TM_HEAP_PUSH_CNT 0x7e8c 10025 #define A_TP_TM_HEAP_POP_CNT 0x7e90 10026 #define A_TP_TM_DACK_PUSH_CNT 0x7e94 10027 #define A_TP_TM_DACK_POP_CNT 0x7e98 10028 #define A_TP_TM_MOD_PUSH_CNT 0x7e9c 10029 #define A_TP_MOD_POP_CNT 0x7ea0 10030 #define A_TP_TIMER_SEPARATOR 0x7ea4 10031 10032 #define S_TIMERSEPARATOR 16 10033 #define M_TIMERSEPARATOR 0xffffU 10034 #define V_TIMERSEPARATOR(x) ((x) << S_TIMERSEPARATOR) 10035 #define G_TIMERSEPARATOR(x) (((x) >> S_TIMERSEPARATOR) & M_TIMERSEPARATOR) 10036 10037 #define S_DISABLETIMEFREEZE 0 10038 #define V_DISABLETIMEFREEZE(x) ((x) << S_DISABLETIMEFREEZE) 10039 #define F_DISABLETIMEFREEZE V_DISABLETIMEFREEZE(1U) 10040 10041 #define A_TP_DEBUG_FLAGS 0x7eac 10042 10043 #define S_RXTIMERDACKFIRST 26 10044 #define V_RXTIMERDACKFIRST(x) ((x) << S_RXTIMERDACKFIRST) 10045 #define F_RXTIMERDACKFIRST V_RXTIMERDACKFIRST(1U) 10046 10047 #define S_RXTIMERDACK 25 10048 #define V_RXTIMERDACK(x) ((x) << S_RXTIMERDACK) 10049 #define F_RXTIMERDACK V_RXTIMERDACK(1U) 10050 10051 #define S_RXTIMERHEARTBEAT 24 10052 #define V_RXTIMERHEARTBEAT(x) ((x) << S_RXTIMERHEARTBEAT) 10053 #define F_RXTIMERHEARTBEAT V_RXTIMERHEARTBEAT(1U) 10054 10055 #define S_RXPAWSDROP 23 10056 #define V_RXPAWSDROP(x) ((x) << S_RXPAWSDROP) 10057 #define F_RXPAWSDROP V_RXPAWSDROP(1U) 10058 10059 #define S_RXURGDATADROP 22 10060 #define V_RXURGDATADROP(x) ((x) << S_RXURGDATADROP) 10061 #define F_RXURGDATADROP V_RXURGDATADROP(1U) 10062 10063 #define S_RXFUTUREDATA 21 10064 #define V_RXFUTUREDATA(x) ((x) << S_RXFUTUREDATA) 10065 #define F_RXFUTUREDATA V_RXFUTUREDATA(1U) 10066 10067 #define S_RXRCVRXMDATA 20 10068 #define V_RXRCVRXMDATA(x) ((x) << S_RXRCVRXMDATA) 10069 #define F_RXRCVRXMDATA V_RXRCVRXMDATA(1U) 10070 10071 #define S_RXRCVOOODATAFIN 19 10072 #define V_RXRCVOOODATAFIN(x) ((x) << S_RXRCVOOODATAFIN) 10073 #define F_RXRCVOOODATAFIN V_RXRCVOOODATAFIN(1U) 10074 10075 #define S_RXRCVOOODATA 18 10076 #define V_RXRCVOOODATA(x) ((x) << S_RXRCVOOODATA) 10077 #define F_RXRCVOOODATA V_RXRCVOOODATA(1U) 10078 10079 #define S_RXRCVWNDZERO 17 10080 #define V_RXRCVWNDZERO(x) ((x) << S_RXRCVWNDZERO) 10081 #define F_RXRCVWNDZERO V_RXRCVWNDZERO(1U) 10082 10083 #define S_RXRCVWNDLTMSS 16 10084 #define V_RXRCVWNDLTMSS(x) ((x) << S_RXRCVWNDLTMSS) 10085 #define F_RXRCVWNDLTMSS V_RXRCVWNDLTMSS(1U) 10086 10087 #define S_TXDUPACKINC 11 10088 #define V_TXDUPACKINC(x) ((x) << S_TXDUPACKINC) 10089 #define F_TXDUPACKINC V_TXDUPACKINC(1U) 10090 10091 #define S_TXRXMURG 10 10092 #define V_TXRXMURG(x) ((x) << S_TXRXMURG) 10093 #define F_TXRXMURG V_TXRXMURG(1U) 10094 10095 #define S_TXRXMFIN 9 10096 #define V_TXRXMFIN(x) ((x) << S_TXRXMFIN) 10097 #define F_TXRXMFIN V_TXRXMFIN(1U) 10098 10099 #define S_TXRXMSYN 8 10100 #define V_TXRXMSYN(x) ((x) << S_TXRXMSYN) 10101 #define F_TXRXMSYN V_TXRXMSYN(1U) 10102 10103 #define S_TXRXMNEWRENO 7 10104 #define V_TXRXMNEWRENO(x) ((x) << S_TXRXMNEWRENO) 10105 #define F_TXRXMNEWRENO V_TXRXMNEWRENO(1U) 10106 10107 #define S_TXRXMFAST 6 10108 #define V_TXRXMFAST(x) ((x) << S_TXRXMFAST) 10109 #define F_TXRXMFAST V_TXRXMFAST(1U) 10110 10111 #define S_TXRXMTIMER 5 10112 #define V_TXRXMTIMER(x) ((x) << S_TXRXMTIMER) 10113 #define F_TXRXMTIMER V_TXRXMTIMER(1U) 10114 10115 #define S_TXRXMTIMERKEEPALIVE 4 10116 #define V_TXRXMTIMERKEEPALIVE(x) ((x) << S_TXRXMTIMERKEEPALIVE) 10117 #define F_TXRXMTIMERKEEPALIVE V_TXRXMTIMERKEEPALIVE(1U) 10118 10119 #define S_TXRXMTIMERPERSIST 3 10120 #define V_TXRXMTIMERPERSIST(x) ((x) << S_TXRXMTIMERPERSIST) 10121 #define F_TXRXMTIMERPERSIST V_TXRXMTIMERPERSIST(1U) 10122 10123 #define S_TXRCVADVSHRUNK 2 10124 #define V_TXRCVADVSHRUNK(x) ((x) << S_TXRCVADVSHRUNK) 10125 #define F_TXRCVADVSHRUNK V_TXRCVADVSHRUNK(1U) 10126 10127 #define S_TXRCVADVZERO 1 10128 #define V_TXRCVADVZERO(x) ((x) << S_TXRCVADVZERO) 10129 #define F_TXRCVADVZERO V_TXRCVADVZERO(1U) 10130 10131 #define S_TXRCVADVLTMSS 0 10132 #define V_TXRCVADVLTMSS(x) ((x) << S_TXRCVADVLTMSS) 10133 #define F_TXRCVADVLTMSS V_TXRCVADVLTMSS(1U) 10134 10135 #define A_TP_RX_SCHED 0x7eb0 10136 10137 #define S_RXCOMMITRESET1 31 10138 #define V_RXCOMMITRESET1(x) ((x) << S_RXCOMMITRESET1) 10139 #define F_RXCOMMITRESET1 V_RXCOMMITRESET1(1U) 10140 10141 #define S_RXCOMMITRESET0 30 10142 #define V_RXCOMMITRESET0(x) ((x) << S_RXCOMMITRESET0) 10143 #define F_RXCOMMITRESET0 V_RXCOMMITRESET0(1U) 10144 10145 #define S_RXFORCECONG1 29 10146 #define V_RXFORCECONG1(x) ((x) << S_RXFORCECONG1) 10147 #define F_RXFORCECONG1 V_RXFORCECONG1(1U) 10148 10149 #define S_RXFORCECONG0 28 10150 #define V_RXFORCECONG0(x) ((x) << S_RXFORCECONG0) 10151 #define F_RXFORCECONG0 V_RXFORCECONG0(1U) 10152 10153 #define S_ENABLELPBKFULL1 26 10154 #define M_ENABLELPBKFULL1 0x3U 10155 #define V_ENABLELPBKFULL1(x) ((x) << S_ENABLELPBKFULL1) 10156 #define G_ENABLELPBKFULL1(x) (((x) >> S_ENABLELPBKFULL1) & M_ENABLELPBKFULL1) 10157 10158 #define S_ENABLELPBKFULL0 24 10159 #define M_ENABLELPBKFULL0 0x3U 10160 #define V_ENABLELPBKFULL0(x) ((x) << S_ENABLELPBKFULL0) 10161 #define G_ENABLELPBKFULL0(x) (((x) >> S_ENABLELPBKFULL0) & M_ENABLELPBKFULL0) 10162 10163 #define S_ENABLEFIFOFULL1 22 10164 #define M_ENABLEFIFOFULL1 0x3U 10165 #define V_ENABLEFIFOFULL1(x) ((x) << S_ENABLEFIFOFULL1) 10166 #define G_ENABLEFIFOFULL1(x) (((x) >> S_ENABLEFIFOFULL1) & M_ENABLEFIFOFULL1) 10167 10168 #define S_ENABLEPCMDFULL1 20 10169 #define M_ENABLEPCMDFULL1 0x3U 10170 #define V_ENABLEPCMDFULL1(x) ((x) << S_ENABLEPCMDFULL1) 10171 #define G_ENABLEPCMDFULL1(x) (((x) >> S_ENABLEPCMDFULL1) & M_ENABLEPCMDFULL1) 10172 10173 #define S_ENABLEHDRFULL1 18 10174 #define M_ENABLEHDRFULL1 0x3U 10175 #define V_ENABLEHDRFULL1(x) ((x) << S_ENABLEHDRFULL1) 10176 #define G_ENABLEHDRFULL1(x) (((x) >> S_ENABLEHDRFULL1) & M_ENABLEHDRFULL1) 10177 10178 #define S_ENABLEFIFOFULL0 16 10179 #define M_ENABLEFIFOFULL0 0x3U 10180 #define V_ENABLEFIFOFULL0(x) ((x) << S_ENABLEFIFOFULL0) 10181 #define G_ENABLEFIFOFULL0(x) (((x) >> S_ENABLEFIFOFULL0) & M_ENABLEFIFOFULL0) 10182 10183 #define S_ENABLEPCMDFULL0 14 10184 #define M_ENABLEPCMDFULL0 0x3U 10185 #define V_ENABLEPCMDFULL0(x) ((x) << S_ENABLEPCMDFULL0) 10186 #define G_ENABLEPCMDFULL0(x) (((x) >> S_ENABLEPCMDFULL0) & M_ENABLEPCMDFULL0) 10187 10188 #define S_ENABLEHDRFULL0 12 10189 #define M_ENABLEHDRFULL0 0x3U 10190 #define V_ENABLEHDRFULL0(x) ((x) << S_ENABLEHDRFULL0) 10191 #define G_ENABLEHDRFULL0(x) (((x) >> S_ENABLEHDRFULL0) & M_ENABLEHDRFULL0) 10192 10193 #define S_COMMITLIMIT1 6 10194 #define M_COMMITLIMIT1 0x3fU 10195 #define V_COMMITLIMIT1(x) ((x) << S_COMMITLIMIT1) 10196 #define G_COMMITLIMIT1(x) (((x) >> S_COMMITLIMIT1) & M_COMMITLIMIT1) 10197 10198 #define S_COMMITLIMIT0 0 10199 #define M_COMMITLIMIT0 0x3fU 10200 #define V_COMMITLIMIT0(x) ((x) << S_COMMITLIMIT0) 10201 #define G_COMMITLIMIT0(x) (((x) >> S_COMMITLIMIT0) & M_COMMITLIMIT0) 10202 10203 #define A_TP_TX_SCHED 0x7eb4 10204 10205 #define S_COMMITRESET3 31 10206 #define V_COMMITRESET3(x) ((x) << S_COMMITRESET3) 10207 #define F_COMMITRESET3 V_COMMITRESET3(1U) 10208 10209 #define S_COMMITRESET2 30 10210 #define V_COMMITRESET2(x) ((x) << S_COMMITRESET2) 10211 #define F_COMMITRESET2 V_COMMITRESET2(1U) 10212 10213 #define S_COMMITRESET1 29 10214 #define V_COMMITRESET1(x) ((x) << S_COMMITRESET1) 10215 #define F_COMMITRESET1 V_COMMITRESET1(1U) 10216 10217 #define S_COMMITRESET0 28 10218 #define V_COMMITRESET0(x) ((x) << S_COMMITRESET0) 10219 #define F_COMMITRESET0 V_COMMITRESET0(1U) 10220 10221 #define S_FORCECONG3 27 10222 #define V_FORCECONG3(x) ((x) << S_FORCECONG3) 10223 #define F_FORCECONG3 V_FORCECONG3(1U) 10224 10225 #define S_FORCECONG2 26 10226 #define V_FORCECONG2(x) ((x) << S_FORCECONG2) 10227 #define F_FORCECONG2 V_FORCECONG2(1U) 10228 10229 #define S_FORCECONG1 25 10230 #define V_FORCECONG1(x) ((x) << S_FORCECONG1) 10231 #define F_FORCECONG1 V_FORCECONG1(1U) 10232 10233 #define S_FORCECONG0 24 10234 #define V_FORCECONG0(x) ((x) << S_FORCECONG0) 10235 #define F_FORCECONG0 V_FORCECONG0(1U) 10236 10237 #define S_COMMITLIMIT3 18 10238 #define M_COMMITLIMIT3 0x3fU 10239 #define V_COMMITLIMIT3(x) ((x) << S_COMMITLIMIT3) 10240 #define G_COMMITLIMIT3(x) (((x) >> S_COMMITLIMIT3) & M_COMMITLIMIT3) 10241 10242 #define S_COMMITLIMIT2 12 10243 #define M_COMMITLIMIT2 0x3fU 10244 #define V_COMMITLIMIT2(x) ((x) << S_COMMITLIMIT2) 10245 #define G_COMMITLIMIT2(x) (((x) >> S_COMMITLIMIT2) & M_COMMITLIMIT2) 10246 10247 #define A_TP_FX_SCHED 0x7eb8 10248 10249 #define S_TXCHNXOFF3 19 10250 #define V_TXCHNXOFF3(x) ((x) << S_TXCHNXOFF3) 10251 #define F_TXCHNXOFF3 V_TXCHNXOFF3(1U) 10252 10253 #define S_TXCHNXOFF2 18 10254 #define V_TXCHNXOFF2(x) ((x) << S_TXCHNXOFF2) 10255 #define F_TXCHNXOFF2 V_TXCHNXOFF2(1U) 10256 10257 #define S_TXCHNXOFF1 17 10258 #define V_TXCHNXOFF1(x) ((x) << S_TXCHNXOFF1) 10259 #define F_TXCHNXOFF1 V_TXCHNXOFF1(1U) 10260 10261 #define S_TXCHNXOFF0 16 10262 #define V_TXCHNXOFF0(x) ((x) << S_TXCHNXOFF0) 10263 #define F_TXCHNXOFF0 V_TXCHNXOFF0(1U) 10264 10265 #define S_TXMODXOFF7 15 10266 #define V_TXMODXOFF7(x) ((x) << S_TXMODXOFF7) 10267 #define F_TXMODXOFF7 V_TXMODXOFF7(1U) 10268 10269 #define S_TXMODXOFF6 14 10270 #define V_TXMODXOFF6(x) ((x) << S_TXMODXOFF6) 10271 #define F_TXMODXOFF6 V_TXMODXOFF6(1U) 10272 10273 #define S_TXMODXOFF5 13 10274 #define V_TXMODXOFF5(x) ((x) << S_TXMODXOFF5) 10275 #define F_TXMODXOFF5 V_TXMODXOFF5(1U) 10276 10277 #define S_TXMODXOFF4 12 10278 #define V_TXMODXOFF4(x) ((x) << S_TXMODXOFF4) 10279 #define F_TXMODXOFF4 V_TXMODXOFF4(1U) 10280 10281 #define S_TXMODXOFF3 11 10282 #define V_TXMODXOFF3(x) ((x) << S_TXMODXOFF3) 10283 #define F_TXMODXOFF3 V_TXMODXOFF3(1U) 10284 10285 #define S_TXMODXOFF2 10 10286 #define V_TXMODXOFF2(x) ((x) << S_TXMODXOFF2) 10287 #define F_TXMODXOFF2 V_TXMODXOFF2(1U) 10288 10289 #define S_TXMODXOFF1 9 10290 #define V_TXMODXOFF1(x) ((x) << S_TXMODXOFF1) 10291 #define F_TXMODXOFF1 V_TXMODXOFF1(1U) 10292 10293 #define S_TXMODXOFF0 8 10294 #define V_TXMODXOFF0(x) ((x) << S_TXMODXOFF0) 10295 #define F_TXMODXOFF0 V_TXMODXOFF0(1U) 10296 10297 #define S_RXCHNXOFF3 7 10298 #define V_RXCHNXOFF3(x) ((x) << S_RXCHNXOFF3) 10299 #define F_RXCHNXOFF3 V_RXCHNXOFF3(1U) 10300 10301 #define S_RXCHNXOFF2 6 10302 #define V_RXCHNXOFF2(x) ((x) << S_RXCHNXOFF2) 10303 #define F_RXCHNXOFF2 V_RXCHNXOFF2(1U) 10304 10305 #define S_RXCHNXOFF1 5 10306 #define V_RXCHNXOFF1(x) ((x) << S_RXCHNXOFF1) 10307 #define F_RXCHNXOFF1 V_RXCHNXOFF1(1U) 10308 10309 #define S_RXCHNXOFF0 4 10310 #define V_RXCHNXOFF0(x) ((x) << S_RXCHNXOFF0) 10311 #define F_RXCHNXOFF0 V_RXCHNXOFF0(1U) 10312 10313 #define S_RXMODXOFF1 1 10314 #define V_RXMODXOFF1(x) ((x) << S_RXMODXOFF1) 10315 #define F_RXMODXOFF1 V_RXMODXOFF1(1U) 10316 10317 #define S_RXMODXOFF0 0 10318 #define V_RXMODXOFF0(x) ((x) << S_RXMODXOFF0) 10319 #define F_RXMODXOFF0 V_RXMODXOFF0(1U) 10320 10321 #define A_TP_TX_ORATE 0x7ebc 10322 10323 #define S_OFDRATE3 24 10324 #define M_OFDRATE3 0xffU 10325 #define V_OFDRATE3(x) ((x) << S_OFDRATE3) 10326 #define G_OFDRATE3(x) (((x) >> S_OFDRATE3) & M_OFDRATE3) 10327 10328 #define S_OFDRATE2 16 10329 #define M_OFDRATE2 0xffU 10330 #define V_OFDRATE2(x) ((x) << S_OFDRATE2) 10331 #define G_OFDRATE2(x) (((x) >> S_OFDRATE2) & M_OFDRATE2) 10332 10333 #define S_OFDRATE1 8 10334 #define M_OFDRATE1 0xffU 10335 #define V_OFDRATE1(x) ((x) << S_OFDRATE1) 10336 #define G_OFDRATE1(x) (((x) >> S_OFDRATE1) & M_OFDRATE1) 10337 10338 #define S_OFDRATE0 0 10339 #define M_OFDRATE0 0xffU 10340 #define V_OFDRATE0(x) ((x) << S_OFDRATE0) 10341 #define G_OFDRATE0(x) (((x) >> S_OFDRATE0) & M_OFDRATE0) 10342 10343 #define A_TP_IX_SCHED0 0x7ec0 10344 #define A_TP_IX_SCHED1 0x7ec4 10345 #define A_TP_IX_SCHED2 0x7ec8 10346 #define A_TP_IX_SCHED3 0x7ecc 10347 #define A_TP_TX_TRATE 0x7ed0 10348 10349 #define S_TNLRATE3 24 10350 #define M_TNLRATE3 0xffU 10351 #define V_TNLRATE3(x) ((x) << S_TNLRATE3) 10352 #define G_TNLRATE3(x) (((x) >> S_TNLRATE3) & M_TNLRATE3) 10353 10354 #define S_TNLRATE2 16 10355 #define M_TNLRATE2 0xffU 10356 #define V_TNLRATE2(x) ((x) << S_TNLRATE2) 10357 #define G_TNLRATE2(x) (((x) >> S_TNLRATE2) & M_TNLRATE2) 10358 10359 #define S_TNLRATE1 8 10360 #define M_TNLRATE1 0xffU 10361 #define V_TNLRATE1(x) ((x) << S_TNLRATE1) 10362 #define G_TNLRATE1(x) (((x) >> S_TNLRATE1) & M_TNLRATE1) 10363 10364 #define S_TNLRATE0 0 10365 #define M_TNLRATE0 0xffU 10366 #define V_TNLRATE0(x) ((x) << S_TNLRATE0) 10367 #define G_TNLRATE0(x) (((x) >> S_TNLRATE0) & M_TNLRATE0) 10368 10369 #define A_TP_DBG_LA_CONFIG 0x7ed4 10370 10371 #define S_DBGLAOPCENABLE 24 10372 #define M_DBGLAOPCENABLE 0xffU 10373 #define V_DBGLAOPCENABLE(x) ((x) << S_DBGLAOPCENABLE) 10374 #define G_DBGLAOPCENABLE(x) (((x) >> S_DBGLAOPCENABLE) & M_DBGLAOPCENABLE) 10375 10376 #define S_DBGLAWHLF 23 10377 #define V_DBGLAWHLF(x) ((x) << S_DBGLAWHLF) 10378 #define F_DBGLAWHLF V_DBGLAWHLF(1U) 10379 10380 #define S_DBGLAWPTR 16 10381 #define M_DBGLAWPTR 0x7fU 10382 #define V_DBGLAWPTR(x) ((x) << S_DBGLAWPTR) 10383 #define G_DBGLAWPTR(x) (((x) >> S_DBGLAWPTR) & M_DBGLAWPTR) 10384 10385 #define S_DBGLAMODE 14 10386 #define M_DBGLAMODE 0x3U 10387 #define V_DBGLAMODE(x) ((x) << S_DBGLAMODE) 10388 #define G_DBGLAMODE(x) (((x) >> S_DBGLAMODE) & M_DBGLAMODE) 10389 10390 #define S_DBGLAFATALFREEZE 13 10391 #define V_DBGLAFATALFREEZE(x) ((x) << S_DBGLAFATALFREEZE) 10392 #define F_DBGLAFATALFREEZE V_DBGLAFATALFREEZE(1U) 10393 10394 #define S_DBGLAENABLE 12 10395 #define V_DBGLAENABLE(x) ((x) << S_DBGLAENABLE) 10396 #define F_DBGLAENABLE V_DBGLAENABLE(1U) 10397 10398 #define S_DBGLARPTR 0 10399 #define M_DBGLARPTR 0x7fU 10400 #define V_DBGLARPTR(x) ((x) << S_DBGLARPTR) 10401 #define G_DBGLARPTR(x) (((x) >> S_DBGLARPTR) & M_DBGLARPTR) 10402 10403 #define A_TP_DBG_LA_DATAL 0x7ed8 10404 #define A_TP_DBG_LA_DATAH 0x7edc 10405 #define A_TP_PROTOCOL_CNTRL 0x7ee8 10406 10407 #define S_WRITEENABLE 31 10408 #define V_WRITEENABLE(x) ((x) << S_WRITEENABLE) 10409 #define F_WRITEENABLE V_WRITEENABLE(1U) 10410 10411 #define S_TCAMENABLE 10 10412 #define V_TCAMENABLE(x) ((x) << S_TCAMENABLE) 10413 #define F_TCAMENABLE V_TCAMENABLE(1U) 10414 10415 #define S_BLOCKSELECT 8 10416 #define M_BLOCKSELECT 0x3U 10417 #define V_BLOCKSELECT(x) ((x) << S_BLOCKSELECT) 10418 #define G_BLOCKSELECT(x) (((x) >> S_BLOCKSELECT) & M_BLOCKSELECT) 10419 10420 #define S_LINEADDRESS 1 10421 #define M_LINEADDRESS 0x7fU 10422 #define V_LINEADDRESS(x) ((x) << S_LINEADDRESS) 10423 #define G_LINEADDRESS(x) (((x) >> S_LINEADDRESS) & M_LINEADDRESS) 10424 10425 #define S_REQUESTDONE 0 10426 #define V_REQUESTDONE(x) ((x) << S_REQUESTDONE) 10427 #define F_REQUESTDONE V_REQUESTDONE(1U) 10428 10429 #define A_TP_PROTOCOL_DATA0 0x7eec 10430 #define A_TP_PROTOCOL_DATA1 0x7ef0 10431 #define A_TP_PROTOCOL_DATA2 0x7ef4 10432 #define A_TP_PROTOCOL_DATA3 0x7ef8 10433 #define A_TP_PROTOCOL_DATA4 0x7efc 10434 10435 #define S_PROTOCOLDATAFIELD 0 10436 #define M_PROTOCOLDATAFIELD 0xfU 10437 #define V_PROTOCOLDATAFIELD(x) ((x) << S_PROTOCOLDATAFIELD) 10438 #define G_PROTOCOLDATAFIELD(x) \ 10439 (((x) >> S_PROTOCOLDATAFIELD) & M_PROTOCOLDATAFIELD) 10440 10441 #define A_TP_TX_MOD_Q7_Q6_TIMER_SEPARATOR 0x0 10442 10443 #define S_TXTIMERSEPQ7 16 10444 #define M_TXTIMERSEPQ7 0xffffU 10445 #define V_TXTIMERSEPQ7(x) ((x) << S_TXTIMERSEPQ7) 10446 #define G_TXTIMERSEPQ7(x) (((x) >> S_TXTIMERSEPQ7) & M_TXTIMERSEPQ7) 10447 10448 #define S_TXTIMERSEPQ6 0 10449 #define M_TXTIMERSEPQ6 0xffffU 10450 #define V_TXTIMERSEPQ6(x) ((x) << S_TXTIMERSEPQ6) 10451 #define G_TXTIMERSEPQ6(x) (((x) >> S_TXTIMERSEPQ6) & M_TXTIMERSEPQ6) 10452 10453 #define A_TP_TX_MOD_Q5_Q4_TIMER_SEPARATOR 0x1 10454 10455 #define S_TXTIMERSEPQ5 16 10456 #define M_TXTIMERSEPQ5 0xffffU 10457 #define V_TXTIMERSEPQ5(x) ((x) << S_TXTIMERSEPQ5) 10458 #define G_TXTIMERSEPQ5(x) (((x) >> S_TXTIMERSEPQ5) & M_TXTIMERSEPQ5) 10459 10460 #define S_TXTIMERSEPQ4 0 10461 #define M_TXTIMERSEPQ4 0xffffU 10462 #define V_TXTIMERSEPQ4(x) ((x) << S_TXTIMERSEPQ4) 10463 #define G_TXTIMERSEPQ4(x) (((x) >> S_TXTIMERSEPQ4) & M_TXTIMERSEPQ4) 10464 10465 #define A_TP_TX_MOD_Q3_Q2_TIMER_SEPARATOR 0x2 10466 10467 #define S_TXTIMERSEPQ3 16 10468 #define M_TXTIMERSEPQ3 0xffffU 10469 #define V_TXTIMERSEPQ3(x) ((x) << S_TXTIMERSEPQ3) 10470 #define G_TXTIMERSEPQ3(x) (((x) >> S_TXTIMERSEPQ3) & M_TXTIMERSEPQ3) 10471 10472 #define S_TXTIMERSEPQ2 0 10473 #define M_TXTIMERSEPQ2 0xffffU 10474 #define V_TXTIMERSEPQ2(x) ((x) << S_TXTIMERSEPQ2) 10475 #define G_TXTIMERSEPQ2(x) (((x) >> S_TXTIMERSEPQ2) & M_TXTIMERSEPQ2) 10476 10477 #define A_TP_TX_MOD_Q1_Q0_TIMER_SEPARATOR 0x3 10478 10479 #define S_TXTIMERSEPQ1 16 10480 #define M_TXTIMERSEPQ1 0xffffU 10481 #define V_TXTIMERSEPQ1(x) ((x) << S_TXTIMERSEPQ1) 10482 #define G_TXTIMERSEPQ1(x) (((x) >> S_TXTIMERSEPQ1) & M_TXTIMERSEPQ1) 10483 10484 #define S_TXTIMERSEPQ0 0 10485 #define M_TXTIMERSEPQ0 0xffffU 10486 #define V_TXTIMERSEPQ0(x) ((x) << S_TXTIMERSEPQ0) 10487 #define G_TXTIMERSEPQ0(x) (((x) >> S_TXTIMERSEPQ0) & M_TXTIMERSEPQ0) 10488 10489 #define A_TP_RX_MOD_Q1_Q0_TIMER_SEPARATOR 0x4 10490 10491 #define S_RXTIMERSEPQ1 16 10492 #define M_RXTIMERSEPQ1 0xffffU 10493 #define V_RXTIMERSEPQ1(x) ((x) << S_RXTIMERSEPQ1) 10494 #define G_RXTIMERSEPQ1(x) (((x) >> S_RXTIMERSEPQ1) & M_RXTIMERSEPQ1) 10495 10496 #define S_RXTIMERSEPQ0 0 10497 #define M_RXTIMERSEPQ0 0xffffU 10498 #define V_RXTIMERSEPQ0(x) ((x) << S_RXTIMERSEPQ0) 10499 #define G_RXTIMERSEPQ0(x) (((x) >> S_RXTIMERSEPQ0) & M_RXTIMERSEPQ0) 10500 10501 #define A_TP_TX_MOD_Q7_Q6_RATE_LIMIT 0x5 10502 10503 #define S_TXRATEINCQ7 24 10504 #define M_TXRATEINCQ7 0xffU 10505 #define V_TXRATEINCQ7(x) ((x) << S_TXRATEINCQ7) 10506 #define G_TXRATEINCQ7(x) (((x) >> S_TXRATEINCQ7) & M_TXRATEINCQ7) 10507 10508 #define S_TXRATETCKQ7 16 10509 #define M_TXRATETCKQ7 0xffU 10510 #define V_TXRATETCKQ7(x) ((x) << S_TXRATETCKQ7) 10511 #define G_TXRATETCKQ7(x) (((x) >> S_TXRATETCKQ7) & M_TXRATETCKQ7) 10512 10513 #define S_TXRATEINCQ6 8 10514 #define M_TXRATEINCQ6 0xffU 10515 #define V_TXRATEINCQ6(x) ((x) << S_TXRATEINCQ6) 10516 #define G_TXRATEINCQ6(x) (((x) >> S_TXRATEINCQ6) & M_TXRATEINCQ6) 10517 10518 #define S_TXRATETCKQ6 0 10519 #define M_TXRATETCKQ6 0xffU 10520 #define V_TXRATETCKQ6(x) ((x) << S_TXRATETCKQ6) 10521 #define G_TXRATETCKQ6(x) (((x) >> S_TXRATETCKQ6) & M_TXRATETCKQ6) 10522 10523 #define A_TP_TX_MOD_Q5_Q4_RATE_LIMIT 0x6 10524 10525 #define S_TXRATEINCQ5 24 10526 #define M_TXRATEINCQ5 0xffU 10527 #define V_TXRATEINCQ5(x) ((x) << S_TXRATEINCQ5) 10528 #define G_TXRATEINCQ5(x) (((x) >> S_TXRATEINCQ5) & M_TXRATEINCQ5) 10529 10530 #define S_TXRATETCKQ5 16 10531 #define M_TXRATETCKQ5 0xffU 10532 #define V_TXRATETCKQ5(x) ((x) << S_TXRATETCKQ5) 10533 #define G_TXRATETCKQ5(x) (((x) >> S_TXRATETCKQ5) & M_TXRATETCKQ5) 10534 10535 #define S_TXRATEINCQ4 8 10536 #define M_TXRATEINCQ4 0xffU 10537 #define V_TXRATEINCQ4(x) ((x) << S_TXRATEINCQ4) 10538 #define G_TXRATEINCQ4(x) (((x) >> S_TXRATEINCQ4) & M_TXRATEINCQ4) 10539 10540 #define S_TXRATETCKQ4 0 10541 #define M_TXRATETCKQ4 0xffU 10542 #define V_TXRATETCKQ4(x) ((x) << S_TXRATETCKQ4) 10543 #define G_TXRATETCKQ4(x) (((x) >> S_TXRATETCKQ4) & M_TXRATETCKQ4) 10544 10545 #define A_TP_TX_MOD_Q3_Q2_RATE_LIMIT 0x7 10546 10547 #define S_TXRATEINCQ3 24 10548 #define M_TXRATEINCQ3 0xffU 10549 #define V_TXRATEINCQ3(x) ((x) << S_TXRATEINCQ3) 10550 #define G_TXRATEINCQ3(x) (((x) >> S_TXRATEINCQ3) & M_TXRATEINCQ3) 10551 10552 #define S_TXRATETCKQ3 16 10553 #define M_TXRATETCKQ3 0xffU 10554 #define V_TXRATETCKQ3(x) ((x) << S_TXRATETCKQ3) 10555 #define G_TXRATETCKQ3(x) (((x) >> S_TXRATETCKQ3) & M_TXRATETCKQ3) 10556 10557 #define S_TXRATEINCQ2 8 10558 #define M_TXRATEINCQ2 0xffU 10559 #define V_TXRATEINCQ2(x) ((x) << S_TXRATEINCQ2) 10560 #define G_TXRATEINCQ2(x) (((x) >> S_TXRATEINCQ2) & M_TXRATEINCQ2) 10561 10562 #define S_TXRATETCKQ2 0 10563 #define M_TXRATETCKQ2 0xffU 10564 #define V_TXRATETCKQ2(x) ((x) << S_TXRATETCKQ2) 10565 #define G_TXRATETCKQ2(x) (((x) >> S_TXRATETCKQ2) & M_TXRATETCKQ2) 10566 10567 #define A_TP_TX_MOD_Q1_Q0_RATE_LIMIT 0x8 10568 10569 #define S_TXRATEINCQ1 24 10570 #define M_TXRATEINCQ1 0xffU 10571 #define V_TXRATEINCQ1(x) ((x) << S_TXRATEINCQ1) 10572 #define G_TXRATEINCQ1(x) (((x) >> S_TXRATEINCQ1) & M_TXRATEINCQ1) 10573 10574 #define S_TXRATETCKQ1 16 10575 #define M_TXRATETCKQ1 0xffU 10576 #define V_TXRATETCKQ1(x) ((x) << S_TXRATETCKQ1) 10577 #define G_TXRATETCKQ1(x) (((x) >> S_TXRATETCKQ1) & M_TXRATETCKQ1) 10578 10579 #define S_TXRATEINCQ0 8 10580 #define M_TXRATEINCQ0 0xffU 10581 #define V_TXRATEINCQ0(x) ((x) << S_TXRATEINCQ0) 10582 #define G_TXRATEINCQ0(x) (((x) >> S_TXRATEINCQ0) & M_TXRATEINCQ0) 10583 10584 #define S_TXRATETCKQ0 0 10585 #define M_TXRATETCKQ0 0xffU 10586 #define V_TXRATETCKQ0(x) ((x) << S_TXRATETCKQ0) 10587 #define G_TXRATETCKQ0(x) (((x) >> S_TXRATETCKQ0) & M_TXRATETCKQ0) 10588 10589 #define A_TP_RX_MOD_Q1_Q0_RATE_LIMIT 0x9 10590 10591 #define S_RXRATEINCQ1 24 10592 #define M_RXRATEINCQ1 0xffU 10593 #define V_RXRATEINCQ1(x) ((x) << S_RXRATEINCQ1) 10594 #define G_RXRATEINCQ1(x) (((x) >> S_RXRATEINCQ1) & M_RXRATEINCQ1) 10595 10596 #define S_RXRATETCKQ1 16 10597 #define M_RXRATETCKQ1 0xffU 10598 #define V_RXRATETCKQ1(x) ((x) << S_RXRATETCKQ1) 10599 #define G_RXRATETCKQ1(x) (((x) >> S_RXRATETCKQ1) & M_RXRATETCKQ1) 10600 10601 #define S_RXRATEINCQ0 8 10602 #define M_RXRATEINCQ0 0xffU 10603 #define V_RXRATEINCQ0(x) ((x) << S_RXRATEINCQ0) 10604 #define G_RXRATEINCQ0(x) (((x) >> S_RXRATEINCQ0) & M_RXRATEINCQ0) 10605 10606 #define S_RXRATETCKQ0 0 10607 #define M_RXRATETCKQ0 0xffU 10608 #define V_RXRATETCKQ0(x) ((x) << S_RXRATETCKQ0) 10609 #define G_RXRATETCKQ0(x) (((x) >> S_RXRATETCKQ0) & M_RXRATETCKQ0) 10610 10611 #define A_TP_TX_MOD_C3_C2_RATE_LIMIT 0xa 10612 #define A_TP_TX_MOD_C1_C0_RATE_LIMIT 0xb 10613 #define A_TP_RX_SCHED_MAP 0x20 10614 10615 #define S_RXMAPCHANNEL3 24 10616 #define M_RXMAPCHANNEL3 0xffU 10617 #define V_RXMAPCHANNEL3(x) ((x) << S_RXMAPCHANNEL3) 10618 #define G_RXMAPCHANNEL3(x) (((x) >> S_RXMAPCHANNEL3) & M_RXMAPCHANNEL3) 10619 10620 #define S_RXMAPCHANNEL2 16 10621 #define M_RXMAPCHANNEL2 0xffU 10622 #define V_RXMAPCHANNEL2(x) ((x) << S_RXMAPCHANNEL2) 10623 #define G_RXMAPCHANNEL2(x) (((x) >> S_RXMAPCHANNEL2) & M_RXMAPCHANNEL2) 10624 10625 #define S_RXMAPCHANNEL1 8 10626 #define M_RXMAPCHANNEL1 0xffU 10627 #define V_RXMAPCHANNEL1(x) ((x) << S_RXMAPCHANNEL1) 10628 #define G_RXMAPCHANNEL1(x) (((x) >> S_RXMAPCHANNEL1) & M_RXMAPCHANNEL1) 10629 10630 #define S_RXMAPCHANNEL0 0 10631 #define M_RXMAPCHANNEL0 0xffU 10632 #define V_RXMAPCHANNEL0(x) ((x) << S_RXMAPCHANNEL0) 10633 #define G_RXMAPCHANNEL0(x) (((x) >> S_RXMAPCHANNEL0) & M_RXMAPCHANNEL0) 10634 10635 #define A_TP_RX_SCHED_SGE 0x21 10636 10637 #define S_RXSGEMOD1 12 10638 #define M_RXSGEMOD1 0xfU 10639 #define V_RXSGEMOD1(x) ((x) << S_RXSGEMOD1) 10640 #define G_RXSGEMOD1(x) (((x) >> S_RXSGEMOD1) & M_RXSGEMOD1) 10641 10642 #define S_RXSGEMOD0 8 10643 #define M_RXSGEMOD0 0xfU 10644 #define V_RXSGEMOD0(x) ((x) << S_RXSGEMOD0) 10645 #define G_RXSGEMOD0(x) (((x) >> S_RXSGEMOD0) & M_RXSGEMOD0) 10646 10647 #define S_RXSGECHANNEL3 3 10648 #define V_RXSGECHANNEL3(x) ((x) << S_RXSGECHANNEL3) 10649 #define F_RXSGECHANNEL3 V_RXSGECHANNEL3(1U) 10650 10651 #define S_RXSGECHANNEL2 2 10652 #define V_RXSGECHANNEL2(x) ((x) << S_RXSGECHANNEL2) 10653 #define F_RXSGECHANNEL2 V_RXSGECHANNEL2(1U) 10654 10655 #define S_RXSGECHANNEL1 1 10656 #define V_RXSGECHANNEL1(x) ((x) << S_RXSGECHANNEL1) 10657 #define F_RXSGECHANNEL1 V_RXSGECHANNEL1(1U) 10658 10659 #define S_RXSGECHANNEL0 0 10660 #define V_RXSGECHANNEL0(x) ((x) << S_RXSGECHANNEL0) 10661 #define F_RXSGECHANNEL0 V_RXSGECHANNEL0(1U) 10662 10663 #define A_TP_TX_SCHED_MAP 0x22 10664 10665 #define S_TXMAPCHANNEL3 12 10666 #define M_TXMAPCHANNEL3 0xfU 10667 #define V_TXMAPCHANNEL3(x) ((x) << S_TXMAPCHANNEL3) 10668 #define G_TXMAPCHANNEL3(x) (((x) >> S_TXMAPCHANNEL3) & M_TXMAPCHANNEL3) 10669 10670 #define S_TXMAPCHANNEL2 8 10671 #define M_TXMAPCHANNEL2 0xfU 10672 #define V_TXMAPCHANNEL2(x) ((x) << S_TXMAPCHANNEL2) 10673 #define G_TXMAPCHANNEL2(x) (((x) >> S_TXMAPCHANNEL2) & M_TXMAPCHANNEL2) 10674 10675 #define S_TXMAPCHANNEL1 4 10676 #define M_TXMAPCHANNEL1 0xfU 10677 #define V_TXMAPCHANNEL1(x) ((x) << S_TXMAPCHANNEL1) 10678 #define G_TXMAPCHANNEL1(x) (((x) >> S_TXMAPCHANNEL1) & M_TXMAPCHANNEL1) 10679 10680 #define S_TXMAPCHANNEL0 0 10681 #define M_TXMAPCHANNEL0 0xfU 10682 #define V_TXMAPCHANNEL0(x) ((x) << S_TXMAPCHANNEL0) 10683 #define G_TXMAPCHANNEL0(x) (((x) >> S_TXMAPCHANNEL0) & M_TXMAPCHANNEL0) 10684 10685 #define A_TP_TX_SCHED_HDR 0x23 10686 10687 #define S_TXMAPHDRCHANNEL7 28 10688 #define M_TXMAPHDRCHANNEL7 0xfU 10689 #define V_TXMAPHDRCHANNEL7(x) ((x) << S_TXMAPHDRCHANNEL7) 10690 #define G_TXMAPHDRCHANNEL7(x) (((x) >> S_TXMAPHDRCHANNEL7) & M_TXMAPHDRCHANNEL7) 10691 10692 #define S_TXMAPHDRCHANNEL6 24 10693 #define M_TXMAPHDRCHANNEL6 0xfU 10694 #define V_TXMAPHDRCHANNEL6(x) ((x) << S_TXMAPHDRCHANNEL6) 10695 #define G_TXMAPHDRCHANNEL6(x) (((x) >> S_TXMAPHDRCHANNEL6) & M_TXMAPHDRCHANNEL6) 10696 10697 #define S_TXMAPHDRCHANNEL5 20 10698 #define M_TXMAPHDRCHANNEL5 0xfU 10699 #define V_TXMAPHDRCHANNEL5(x) ((x) << S_TXMAPHDRCHANNEL5) 10700 #define G_TXMAPHDRCHANNEL5(x) (((x) >> S_TXMAPHDRCHANNEL5) & M_TXMAPHDRCHANNEL5) 10701 10702 #define S_TXMAPHDRCHANNEL4 16 10703 #define M_TXMAPHDRCHANNEL4 0xfU 10704 #define V_TXMAPHDRCHANNEL4(x) ((x) << S_TXMAPHDRCHANNEL4) 10705 #define G_TXMAPHDRCHANNEL4(x) (((x) >> S_TXMAPHDRCHANNEL4) & M_TXMAPHDRCHANNEL4) 10706 10707 #define S_TXMAPHDRCHANNEL3 12 10708 #define M_TXMAPHDRCHANNEL3 0xfU 10709 #define V_TXMAPHDRCHANNEL3(x) ((x) << S_TXMAPHDRCHANNEL3) 10710 #define G_TXMAPHDRCHANNEL3(x) (((x) >> S_TXMAPHDRCHANNEL3) & M_TXMAPHDRCHANNEL3) 10711 10712 #define S_TXMAPHDRCHANNEL2 8 10713 #define M_TXMAPHDRCHANNEL2 0xfU 10714 #define V_TXMAPHDRCHANNEL2(x) ((x) << S_TXMAPHDRCHANNEL2) 10715 #define G_TXMAPHDRCHANNEL2(x) (((x) >> S_TXMAPHDRCHANNEL2) & M_TXMAPHDRCHANNEL2) 10716 10717 #define S_TXMAPHDRCHANNEL1 4 10718 #define M_TXMAPHDRCHANNEL1 0xfU 10719 #define V_TXMAPHDRCHANNEL1(x) ((x) << S_TXMAPHDRCHANNEL1) 10720 #define G_TXMAPHDRCHANNEL1(x) (((x) >> S_TXMAPHDRCHANNEL1) & M_TXMAPHDRCHANNEL1) 10721 10722 #define S_TXMAPHDRCHANNEL0 0 10723 #define M_TXMAPHDRCHANNEL0 0xfU 10724 #define V_TXMAPHDRCHANNEL0(x) ((x) << S_TXMAPHDRCHANNEL0) 10725 #define G_TXMAPHDRCHANNEL0(x) (((x) >> S_TXMAPHDRCHANNEL0) & M_TXMAPHDRCHANNEL0) 10726 10727 #define A_TP_TX_SCHED_FIFO 0x24 10728 10729 #define S_TXMAPFIFOCHANNEL7 28 10730 #define M_TXMAPFIFOCHANNEL7 0xfU 10731 #define V_TXMAPFIFOCHANNEL7(x) ((x) << S_TXMAPFIFOCHANNEL7) 10732 #define G_TXMAPFIFOCHANNEL7(x) \ 10733 (((x) >> S_TXMAPFIFOCHANNEL7) & M_TXMAPFIFOCHANNEL7) 10734 10735 #define S_TXMAPFIFOCHANNEL6 24 10736 #define M_TXMAPFIFOCHANNEL6 0xfU 10737 #define V_TXMAPFIFOCHANNEL6(x) ((x) << S_TXMAPFIFOCHANNEL6) 10738 #define G_TXMAPFIFOCHANNEL6(x) \ 10739 (((x) >> S_TXMAPFIFOCHANNEL6) & M_TXMAPFIFOCHANNEL6) 10740 10741 #define S_TXMAPFIFOCHANNEL5 20 10742 #define M_TXMAPFIFOCHANNEL5 0xfU 10743 #define V_TXMAPFIFOCHANNEL5(x) ((x) << S_TXMAPFIFOCHANNEL5) 10744 #define G_TXMAPFIFOCHANNEL5(x) \ 10745 (((x) >> S_TXMAPFIFOCHANNEL5) & M_TXMAPFIFOCHANNEL5) 10746 10747 #define S_TXMAPFIFOCHANNEL4 16 10748 #define M_TXMAPFIFOCHANNEL4 0xfU 10749 #define V_TXMAPFIFOCHANNEL4(x) ((x) << S_TXMAPFIFOCHANNEL4) 10750 #define G_TXMAPFIFOCHANNEL4(x) \ 10751 (((x) >> S_TXMAPFIFOCHANNEL4) & M_TXMAPFIFOCHANNEL4) 10752 10753 #define S_TXMAPFIFOCHANNEL3 12 10754 #define M_TXMAPFIFOCHANNEL3 0xfU 10755 #define V_TXMAPFIFOCHANNEL3(x) ((x) << S_TXMAPFIFOCHANNEL3) 10756 #define G_TXMAPFIFOCHANNEL3(x) \ 10757 (((x) >> S_TXMAPFIFOCHANNEL3) & M_TXMAPFIFOCHANNEL3) 10758 10759 #define S_TXMAPFIFOCHANNEL2 8 10760 #define M_TXMAPFIFOCHANNEL2 0xfU 10761 #define V_TXMAPFIFOCHANNEL2(x) ((x) << S_TXMAPFIFOCHANNEL2) 10762 #define G_TXMAPFIFOCHANNEL2(x) \ 10763 (((x) >> S_TXMAPFIFOCHANNEL2) & M_TXMAPFIFOCHANNEL2) 10764 10765 #define S_TXMAPFIFOCHANNEL1 4 10766 #define M_TXMAPFIFOCHANNEL1 0xfU 10767 #define V_TXMAPFIFOCHANNEL1(x) ((x) << S_TXMAPFIFOCHANNEL1) 10768 #define G_TXMAPFIFOCHANNEL1(x) \ 10769 (((x) >> S_TXMAPFIFOCHANNEL1) & M_TXMAPFIFOCHANNEL1) 10770 10771 #define S_TXMAPFIFOCHANNEL0 0 10772 #define M_TXMAPFIFOCHANNEL0 0xfU 10773 #define V_TXMAPFIFOCHANNEL0(x) ((x) << S_TXMAPFIFOCHANNEL0) 10774 #define G_TXMAPFIFOCHANNEL0(x) \ 10775 (((x) >> S_TXMAPFIFOCHANNEL0) & M_TXMAPFIFOCHANNEL0) 10776 10777 #define A_TP_TX_SCHED_PCMD 0x25 10778 10779 #define S_TXMAPPCMDCHANNEL7 28 10780 #define M_TXMAPPCMDCHANNEL7 0xfU 10781 #define V_TXMAPPCMDCHANNEL7(x) ((x) << S_TXMAPPCMDCHANNEL7) 10782 #define G_TXMAPPCMDCHANNEL7(x) \ 10783 (((x) >> S_TXMAPPCMDCHANNEL7) & M_TXMAPPCMDCHANNEL7) 10784 10785 #define S_TXMAPPCMDCHANNEL6 24 10786 #define M_TXMAPPCMDCHANNEL6 0xfU 10787 #define V_TXMAPPCMDCHANNEL6(x) ((x) << S_TXMAPPCMDCHANNEL6) 10788 #define G_TXMAPPCMDCHANNEL6(x) \ 10789 (((x) >> S_TXMAPPCMDCHANNEL6) & M_TXMAPPCMDCHANNEL6) 10790 10791 #define S_TXMAPPCMDCHANNEL5 20 10792 #define M_TXMAPPCMDCHANNEL5 0xfU 10793 #define V_TXMAPPCMDCHANNEL5(x) ((x) << S_TXMAPPCMDCHANNEL5) 10794 #define G_TXMAPPCMDCHANNEL5(x) \ 10795 (((x) >> S_TXMAPPCMDCHANNEL5) & M_TXMAPPCMDCHANNEL5) 10796 10797 #define S_TXMAPPCMDCHANNEL4 16 10798 #define M_TXMAPPCMDCHANNEL4 0xfU 10799 #define V_TXMAPPCMDCHANNEL4(x) ((x) << S_TXMAPPCMDCHANNEL4) 10800 #define G_TXMAPPCMDCHANNEL4(x) \ 10801 (((x) >> S_TXMAPPCMDCHANNEL4) & M_TXMAPPCMDCHANNEL4) 10802 10803 #define S_TXMAPPCMDCHANNEL3 12 10804 #define M_TXMAPPCMDCHANNEL3 0xfU 10805 #define V_TXMAPPCMDCHANNEL3(x) ((x) << S_TXMAPPCMDCHANNEL3) 10806 #define G_TXMAPPCMDCHANNEL3(x) \ 10807 (((x) >> S_TXMAPPCMDCHANNEL3) & M_TXMAPPCMDCHANNEL3) 10808 10809 #define S_TXMAPPCMDCHANNEL2 8 10810 #define M_TXMAPPCMDCHANNEL2 0xfU 10811 #define V_TXMAPPCMDCHANNEL2(x) ((x) << S_TXMAPPCMDCHANNEL2) 10812 #define G_TXMAPPCMDCHANNEL2(x) \ 10813 (((x) >> S_TXMAPPCMDCHANNEL2) & M_TXMAPPCMDCHANNEL2) 10814 10815 #define S_TXMAPPCMDCHANNEL1 4 10816 #define M_TXMAPPCMDCHANNEL1 0xfU 10817 #define V_TXMAPPCMDCHANNEL1(x) ((x) << S_TXMAPPCMDCHANNEL1) 10818 #define G_TXMAPPCMDCHANNEL1(x) \ 10819 (((x) >> S_TXMAPPCMDCHANNEL1) & M_TXMAPPCMDCHANNEL1) 10820 10821 #define S_TXMAPPCMDCHANNEL0 0 10822 #define M_TXMAPPCMDCHANNEL0 0xfU 10823 #define V_TXMAPPCMDCHANNEL0(x) ((x) << S_TXMAPPCMDCHANNEL0) 10824 #define G_TXMAPPCMDCHANNEL0(x) \ 10825 (((x) >> S_TXMAPPCMDCHANNEL0) & M_TXMAPPCMDCHANNEL0) 10826 10827 #define A_TP_TX_SCHED_LPBK 0x26 10828 10829 #define S_TXMAPLPBKCHANNEL7 28 10830 #define M_TXMAPLPBKCHANNEL7 0xfU 10831 #define V_TXMAPLPBKCHANNEL7(x) ((x) << S_TXMAPLPBKCHANNEL7) 10832 #define G_TXMAPLPBKCHANNEL7(x) \ 10833 (((x) >> S_TXMAPLPBKCHANNEL7) & M_TXMAPLPBKCHANNEL7) 10834 10835 #define S_TXMAPLPBKCHANNEL6 24 10836 #define M_TXMAPLPBKCHANNEL6 0xfU 10837 #define V_TXMAPLPBKCHANNEL6(x) ((x) << S_TXMAPLPBKCHANNEL6) 10838 #define G_TXMAPLPBKCHANNEL6(x) \ 10839 (((x) >> S_TXMAPLPBKCHANNEL6) & M_TXMAPLPBKCHANNEL6) 10840 10841 #define S_TXMAPLPBKCHANNEL5 20 10842 #define M_TXMAPLPBKCHANNEL5 0xfU 10843 #define V_TXMAPLPBKCHANNEL5(x) ((x) << S_TXMAPLPBKCHANNEL5) 10844 #define G_TXMAPLPBKCHANNEL5(x) \ 10845 (((x) >> S_TXMAPLPBKCHANNEL5) & M_TXMAPLPBKCHANNEL5) 10846 10847 #define S_TXMAPLPBKCHANNEL4 16 10848 #define M_TXMAPLPBKCHANNEL4 0xfU 10849 #define V_TXMAPLPBKCHANNEL4(x) ((x) << S_TXMAPLPBKCHANNEL4) 10850 #define G_TXMAPLPBKCHANNEL4(x) \ 10851 (((x) >> S_TXMAPLPBKCHANNEL4) & M_TXMAPLPBKCHANNEL4) 10852 10853 #define S_TXMAPLPBKCHANNEL3 12 10854 #define M_TXMAPLPBKCHANNEL3 0xfU 10855 #define V_TXMAPLPBKCHANNEL3(x) ((x) << S_TXMAPLPBKCHANNEL3) 10856 #define G_TXMAPLPBKCHANNEL3(x) \ 10857 (((x) >> S_TXMAPLPBKCHANNEL3) & M_TXMAPLPBKCHANNEL3) 10858 10859 #define S_TXMAPLPBKCHANNEL2 8 10860 #define M_TXMAPLPBKCHANNEL2 0xfU 10861 #define V_TXMAPLPBKCHANNEL2(x) ((x) << S_TXMAPLPBKCHANNEL2) 10862 #define G_TXMAPLPBKCHANNEL2(x) \ 10863 (((x) >> S_TXMAPLPBKCHANNEL2) & M_TXMAPLPBKCHANNEL2) 10864 10865 #define S_TXMAPLPBKCHANNEL1 4 10866 #define M_TXMAPLPBKCHANNEL1 0xfU 10867 #define V_TXMAPLPBKCHANNEL1(x) ((x) << S_TXMAPLPBKCHANNEL1) 10868 #define G_TXMAPLPBKCHANNEL1(x) \ 10869 (((x) >> S_TXMAPLPBKCHANNEL1) & M_TXMAPLPBKCHANNEL1) 10870 10871 #define S_TXMAPLPBKCHANNEL0 0 10872 #define M_TXMAPLPBKCHANNEL0 0xfU 10873 #define V_TXMAPLPBKCHANNEL0(x) ((x) << S_TXMAPLPBKCHANNEL0) 10874 #define G_TXMAPLPBKCHANNEL0(x) \ 10875 (((x) >> S_TXMAPLPBKCHANNEL0) & M_TXMAPLPBKCHANNEL0) 10876 10877 #define A_TP_CHANNEL_MAP 0x27 10878 10879 #define S_RXMAPCHANNELELN 16 10880 #define M_RXMAPCHANNELELN 0xfU 10881 #define V_RXMAPCHANNELELN(x) ((x) << S_RXMAPCHANNELELN) 10882 #define G_RXMAPCHANNELELN(x) (((x) >> S_RXMAPCHANNELELN) & M_RXMAPCHANNELELN) 10883 10884 #define S_RXMAPE2LCHANNEL3 14 10885 #define M_RXMAPE2LCHANNEL3 0x3U 10886 #define V_RXMAPE2LCHANNEL3(x) ((x) << S_RXMAPE2LCHANNEL3) 10887 #define G_RXMAPE2LCHANNEL3(x) (((x) >> S_RXMAPE2LCHANNEL3) & M_RXMAPE2LCHANNEL3) 10888 10889 #define S_RXMAPE2LCHANNEL2 12 10890 #define M_RXMAPE2LCHANNEL2 0x3U 10891 #define V_RXMAPE2LCHANNEL2(x) ((x) << S_RXMAPE2LCHANNEL2) 10892 #define G_RXMAPE2LCHANNEL2(x) (((x) >> S_RXMAPE2LCHANNEL2) & M_RXMAPE2LCHANNEL2) 10893 10894 #define S_RXMAPE2LCHANNEL1 10 10895 #define M_RXMAPE2LCHANNEL1 0x3U 10896 #define V_RXMAPE2LCHANNEL1(x) ((x) << S_RXMAPE2LCHANNEL1) 10897 #define G_RXMAPE2LCHANNEL1(x) (((x) >> S_RXMAPE2LCHANNEL1) & M_RXMAPE2LCHANNEL1) 10898 10899 #define S_RXMAPE2LCHANNEL0 8 10900 #define M_RXMAPE2LCHANNEL0 0x3U 10901 #define V_RXMAPE2LCHANNEL0(x) ((x) << S_RXMAPE2LCHANNEL0) 10902 #define G_RXMAPE2LCHANNEL0(x) (((x) >> S_RXMAPE2LCHANNEL0) & M_RXMAPE2LCHANNEL0) 10903 10904 #define S_RXMAPC2CCHANNEL3 7 10905 #define V_RXMAPC2CCHANNEL3(x) ((x) << S_RXMAPC2CCHANNEL3) 10906 #define F_RXMAPC2CCHANNEL3 V_RXMAPC2CCHANNEL3(1U) 10907 10908 #define S_RXMAPC2CCHANNEL2 6 10909 #define V_RXMAPC2CCHANNEL2(x) ((x) << S_RXMAPC2CCHANNEL2) 10910 #define F_RXMAPC2CCHANNEL2 V_RXMAPC2CCHANNEL2(1U) 10911 10912 #define S_RXMAPC2CCHANNEL1 5 10913 #define V_RXMAPC2CCHANNEL1(x) ((x) << S_RXMAPC2CCHANNEL1) 10914 #define F_RXMAPC2CCHANNEL1 V_RXMAPC2CCHANNEL1(1U) 10915 10916 #define S_RXMAPC2CCHANNEL0 4 10917 #define V_RXMAPC2CCHANNEL0(x) ((x) << S_RXMAPC2CCHANNEL0) 10918 #define F_RXMAPC2CCHANNEL0 V_RXMAPC2CCHANNEL0(1U) 10919 10920 #define S_RXMAPE2CCHANNEL3 3 10921 #define V_RXMAPE2CCHANNEL3(x) ((x) << S_RXMAPE2CCHANNEL3) 10922 #define F_RXMAPE2CCHANNEL3 V_RXMAPE2CCHANNEL3(1U) 10923 10924 #define S_RXMAPE2CCHANNEL2 2 10925 #define V_RXMAPE2CCHANNEL2(x) ((x) << S_RXMAPE2CCHANNEL2) 10926 #define F_RXMAPE2CCHANNEL2 V_RXMAPE2CCHANNEL2(1U) 10927 10928 #define S_RXMAPE2CCHANNEL1 1 10929 #define V_RXMAPE2CCHANNEL1(x) ((x) << S_RXMAPE2CCHANNEL1) 10930 #define F_RXMAPE2CCHANNEL1 V_RXMAPE2CCHANNEL1(1U) 10931 10932 #define S_RXMAPE2CCHANNEL0 0 10933 #define V_RXMAPE2CCHANNEL0(x) ((x) << S_RXMAPE2CCHANNEL0) 10934 #define F_RXMAPE2CCHANNEL0 V_RXMAPE2CCHANNEL0(1U) 10935 10936 #define A_TP_RX_LPBK 0x28 10937 #define A_TP_TX_LPBK 0x29 10938 #define A_TP_TX_SCHED_PPP 0x2a 10939 10940 #define S_TXPPPENPORT3 24 10941 #define M_TXPPPENPORT3 0xffU 10942 #define V_TXPPPENPORT3(x) ((x) << S_TXPPPENPORT3) 10943 #define G_TXPPPENPORT3(x) (((x) >> S_TXPPPENPORT3) & M_TXPPPENPORT3) 10944 10945 #define S_TXPPPENPORT2 16 10946 #define M_TXPPPENPORT2 0xffU 10947 #define V_TXPPPENPORT2(x) ((x) << S_TXPPPENPORT2) 10948 #define G_TXPPPENPORT2(x) (((x) >> S_TXPPPENPORT2) & M_TXPPPENPORT2) 10949 10950 #define S_TXPPPENPORT1 8 10951 #define M_TXPPPENPORT1 0xffU 10952 #define V_TXPPPENPORT1(x) ((x) << S_TXPPPENPORT1) 10953 #define G_TXPPPENPORT1(x) (((x) >> S_TXPPPENPORT1) & M_TXPPPENPORT1) 10954 10955 #define S_TXPPPENPORT0 0 10956 #define M_TXPPPENPORT0 0xffU 10957 #define V_TXPPPENPORT0(x) ((x) << S_TXPPPENPORT0) 10958 #define G_TXPPPENPORT0(x) (((x) >> S_TXPPPENPORT0) & M_TXPPPENPORT0) 10959 10960 #define A_TP_IPMI_CFG1 0x2e 10961 10962 #define S_VLANENABLE 31 10963 #define V_VLANENABLE(x) ((x) << S_VLANENABLE) 10964 #define F_VLANENABLE V_VLANENABLE(1U) 10965 10966 #define S_PRIMARYPORTENABLE 30 10967 #define V_PRIMARYPORTENABLE(x) ((x) << S_PRIMARYPORTENABLE) 10968 #define F_PRIMARYPORTENABLE V_PRIMARYPORTENABLE(1U) 10969 10970 #define S_SECUREPORTENABLE 29 10971 #define V_SECUREPORTENABLE(x) ((x) << S_SECUREPORTENABLE) 10972 #define F_SECUREPORTENABLE V_SECUREPORTENABLE(1U) 10973 10974 #define S_ARPENABLE 28 10975 #define V_ARPENABLE(x) ((x) << S_ARPENABLE) 10976 #define F_ARPENABLE V_ARPENABLE(1U) 10977 10978 #define S_IPMI_VLAN 0 10979 #define M_IPMI_VLAN 0xffffU 10980 #define V_IPMI_VLAN(x) ((x) << S_IPMI_VLAN) 10981 #define G_IPMI_VLAN(x) (((x) >> S_IPMI_VLAN) & M_IPMI_VLAN) 10982 10983 #define A_TP_IPMI_CFG2 0x2f 10984 10985 #define S_SECUREPORT 16 10986 #define M_SECUREPORT 0xffffU 10987 #define V_SECUREPORT(x) ((x) << S_SECUREPORT) 10988 #define G_SECUREPORT(x) (((x) >> S_SECUREPORT) & M_SECUREPORT) 10989 10990 #define S_PRIMARYPORT 0 10991 #define M_PRIMARYPORT 0xffffU 10992 #define V_PRIMARYPORT(x) ((x) << S_PRIMARYPORT) 10993 #define G_PRIMARYPORT(x) (((x) >> S_PRIMARYPORT) & M_PRIMARYPORT) 10994 10995 #define A_TP_RSS_PF0_CONFIG 0x30 10996 10997 #define S_MAPENABLE 31 10998 #define V_MAPENABLE(x) ((x) << S_MAPENABLE) 10999 #define F_MAPENABLE V_MAPENABLE(1U) 11000 11001 #define S_CHNENABLE 30 11002 #define V_CHNENABLE(x) ((x) << S_CHNENABLE) 11003 #define F_CHNENABLE V_CHNENABLE(1U) 11004 11005 #define S_PRTENABLE 29 11006 #define V_PRTENABLE(x) ((x) << S_PRTENABLE) 11007 #define F_PRTENABLE V_PRTENABLE(1U) 11008 11009 #define S_UDPFOURTUPEN 28 11010 #define V_UDPFOURTUPEN(x) ((x) << S_UDPFOURTUPEN) 11011 #define F_UDPFOURTUPEN V_UDPFOURTUPEN(1U) 11012 11013 #define S_IP6FOURTUPEN 27 11014 #define V_IP6FOURTUPEN(x) ((x) << S_IP6FOURTUPEN) 11015 #define F_IP6FOURTUPEN V_IP6FOURTUPEN(1U) 11016 11017 #define S_IP6TWOTUPEN 26 11018 #define V_IP6TWOTUPEN(x) ((x) << S_IP6TWOTUPEN) 11019 #define F_IP6TWOTUPEN V_IP6TWOTUPEN(1U) 11020 11021 #define S_IP4FOURTUPEN 25 11022 #define V_IP4FOURTUPEN(x) ((x) << S_IP4FOURTUPEN) 11023 #define F_IP4FOURTUPEN V_IP4FOURTUPEN(1U) 11024 11025 #define S_IP4TWOTUPEN 24 11026 #define V_IP4TWOTUPEN(x) ((x) << S_IP4TWOTUPEN) 11027 #define F_IP4TWOTUPEN V_IP4TWOTUPEN(1U) 11028 11029 #define S_IVFWIDTH 20 11030 #define M_IVFWIDTH 0xfU 11031 #define V_IVFWIDTH(x) ((x) << S_IVFWIDTH) 11032 #define G_IVFWIDTH(x) (((x) >> S_IVFWIDTH) & M_IVFWIDTH) 11033 11034 #define S_CH1DEFAULTQUEUE 10 11035 #define M_CH1DEFAULTQUEUE 0x3ffU 11036 #define V_CH1DEFAULTQUEUE(x) ((x) << S_CH1DEFAULTQUEUE) 11037 #define G_CH1DEFAULTQUEUE(x) (((x) >> S_CH1DEFAULTQUEUE) & M_CH1DEFAULTQUEUE) 11038 11039 #define S_CH0DEFAULTQUEUE 0 11040 #define M_CH0DEFAULTQUEUE 0x3ffU 11041 #define V_CH0DEFAULTQUEUE(x) ((x) << S_CH0DEFAULTQUEUE) 11042 #define G_CH0DEFAULTQUEUE(x) (((x) >> S_CH0DEFAULTQUEUE) & M_CH0DEFAULTQUEUE) 11043 11044 #define A_TP_RSS_PF1_CONFIG 0x31 11045 #define A_TP_RSS_PF2_CONFIG 0x32 11046 #define A_TP_RSS_PF3_CONFIG 0x33 11047 #define A_TP_RSS_PF4_CONFIG 0x34 11048 #define A_TP_RSS_PF5_CONFIG 0x35 11049 #define A_TP_RSS_PF6_CONFIG 0x36 11050 #define A_TP_RSS_PF7_CONFIG 0x37 11051 #define A_TP_RSS_PF_MAP 0x38 11052 11053 #define S_LKPIDXSIZE 24 11054 #define M_LKPIDXSIZE 0x3U 11055 #define V_LKPIDXSIZE(x) ((x) << S_LKPIDXSIZE) 11056 #define G_LKPIDXSIZE(x) (((x) >> S_LKPIDXSIZE) & M_LKPIDXSIZE) 11057 11058 #define S_PF7LKPIDX 21 11059 #define M_PF7LKPIDX 0x7U 11060 #define V_PF7LKPIDX(x) ((x) << S_PF7LKPIDX) 11061 #define G_PF7LKPIDX(x) (((x) >> S_PF7LKPIDX) & M_PF7LKPIDX) 11062 11063 #define S_PF6LKPIDX 18 11064 #define M_PF6LKPIDX 0x7U 11065 #define V_PF6LKPIDX(x) ((x) << S_PF6LKPIDX) 11066 #define G_PF6LKPIDX(x) (((x) >> S_PF6LKPIDX) & M_PF6LKPIDX) 11067 11068 #define S_PF5LKPIDX 15 11069 #define M_PF5LKPIDX 0x7U 11070 #define V_PF5LKPIDX(x) ((x) << S_PF5LKPIDX) 11071 #define G_PF5LKPIDX(x) (((x) >> S_PF5LKPIDX) & M_PF5LKPIDX) 11072 11073 #define S_PF4LKPIDX 12 11074 #define M_PF4LKPIDX 0x7U 11075 #define V_PF4LKPIDX(x) ((x) << S_PF4LKPIDX) 11076 #define G_PF4LKPIDX(x) (((x) >> S_PF4LKPIDX) & M_PF4LKPIDX) 11077 11078 #define S_PF3LKPIDX 9 11079 #define M_PF3LKPIDX 0x7U 11080 #define V_PF3LKPIDX(x) ((x) << S_PF3LKPIDX) 11081 #define G_PF3LKPIDX(x) (((x) >> S_PF3LKPIDX) & M_PF3LKPIDX) 11082 11083 #define S_PF2LKPIDX 6 11084 #define M_PF2LKPIDX 0x7U 11085 #define V_PF2LKPIDX(x) ((x) << S_PF2LKPIDX) 11086 #define G_PF2LKPIDX(x) (((x) >> S_PF2LKPIDX) & M_PF2LKPIDX) 11087 11088 #define S_PF1LKPIDX 3 11089 #define M_PF1LKPIDX 0x7U 11090 #define V_PF1LKPIDX(x) ((x) << S_PF1LKPIDX) 11091 #define G_PF1LKPIDX(x) (((x) >> S_PF1LKPIDX) & M_PF1LKPIDX) 11092 11093 #define S_PF0LKPIDX 0 11094 #define M_PF0LKPIDX 0x7U 11095 #define V_PF0LKPIDX(x) ((x) << S_PF0LKPIDX) 11096 #define G_PF0LKPIDX(x) (((x) >> S_PF0LKPIDX) & M_PF0LKPIDX) 11097 11098 #define A_TP_RSS_PF_MSK 0x39 11099 11100 #define S_PF7MSKSIZE 28 11101 #define M_PF7MSKSIZE 0xfU 11102 #define V_PF7MSKSIZE(x) ((x) << S_PF7MSKSIZE) 11103 #define G_PF7MSKSIZE(x) (((x) >> S_PF7MSKSIZE) & M_PF7MSKSIZE) 11104 11105 #define S_PF6MSKSIZE 24 11106 #define M_PF6MSKSIZE 0xfU 11107 #define V_PF6MSKSIZE(x) ((x) << S_PF6MSKSIZE) 11108 #define G_PF6MSKSIZE(x) (((x) >> S_PF6MSKSIZE) & M_PF6MSKSIZE) 11109 11110 #define S_PF5MSKSIZE 20 11111 #define M_PF5MSKSIZE 0xfU 11112 #define V_PF5MSKSIZE(x) ((x) << S_PF5MSKSIZE) 11113 #define G_PF5MSKSIZE(x) (((x) >> S_PF5MSKSIZE) & M_PF5MSKSIZE) 11114 11115 #define S_PF4MSKSIZE 16 11116 #define M_PF4MSKSIZE 0xfU 11117 #define V_PF4MSKSIZE(x) ((x) << S_PF4MSKSIZE) 11118 #define G_PF4MSKSIZE(x) (((x) >> S_PF4MSKSIZE) & M_PF4MSKSIZE) 11119 11120 #define S_PF3MSKSIZE 12 11121 #define M_PF3MSKSIZE 0xfU 11122 #define V_PF3MSKSIZE(x) ((x) << S_PF3MSKSIZE) 11123 #define G_PF3MSKSIZE(x) (((x) >> S_PF3MSKSIZE) & M_PF3MSKSIZE) 11124 11125 #define S_PF2MSKSIZE 8 11126 #define M_PF2MSKSIZE 0xfU 11127 #define V_PF2MSKSIZE(x) ((x) << S_PF2MSKSIZE) 11128 #define G_PF2MSKSIZE(x) (((x) >> S_PF2MSKSIZE) & M_PF2MSKSIZE) 11129 11130 #define S_PF1MSKSIZE 4 11131 #define M_PF1MSKSIZE 0xfU 11132 #define V_PF1MSKSIZE(x) ((x) << S_PF1MSKSIZE) 11133 #define G_PF1MSKSIZE(x) (((x) >> S_PF1MSKSIZE) & M_PF1MSKSIZE) 11134 11135 #define S_PF0MSKSIZE 0 11136 #define M_PF0MSKSIZE 0xfU 11137 #define V_PF0MSKSIZE(x) ((x) << S_PF0MSKSIZE) 11138 #define G_PF0MSKSIZE(x) (((x) >> S_PF0MSKSIZE) & M_PF0MSKSIZE) 11139 11140 #define A_TP_RSS_VFL_CONFIG 0x3a 11141 #define A_TP_RSS_VFH_CONFIG 0x3b 11142 11143 #define S_ENABLEUDPHASH 31 11144 #define V_ENABLEUDPHASH(x) ((x) << S_ENABLEUDPHASH) 11145 #define F_ENABLEUDPHASH V_ENABLEUDPHASH(1U) 11146 11147 #define S_VFUPEN 30 11148 #define V_VFUPEN(x) ((x) << S_VFUPEN) 11149 #define F_VFUPEN V_VFUPEN(1U) 11150 11151 #define S_VFVLNEX 28 11152 #define V_VFVLNEX(x) ((x) << S_VFVLNEX) 11153 #define F_VFVLNEX V_VFVLNEX(1U) 11154 11155 #define S_VFPRTEN 27 11156 #define V_VFPRTEN(x) ((x) << S_VFPRTEN) 11157 #define F_VFPRTEN V_VFPRTEN(1U) 11158 11159 #define S_VFCHNEN 26 11160 #define V_VFCHNEN(x) ((x) << S_VFCHNEN) 11161 #define F_VFCHNEN V_VFCHNEN(1U) 11162 11163 #define S_DEFAULTQUEUE 16 11164 #define M_DEFAULTQUEUE 0x3ffU 11165 #define V_DEFAULTQUEUE(x) ((x) << S_DEFAULTQUEUE) 11166 #define G_DEFAULTQUEUE(x) (((x) >> S_DEFAULTQUEUE) & M_DEFAULTQUEUE) 11167 11168 #define S_VFLKPIDX 8 11169 #define M_VFLKPIDX 0xffU 11170 #define V_VFLKPIDX(x) ((x) << S_VFLKPIDX) 11171 #define G_VFLKPIDX(x) (((x) >> S_VFLKPIDX) & M_VFLKPIDX) 11172 11173 #define S_VFIP6FOURTUPEN 7 11174 #define V_VFIP6FOURTUPEN(x) ((x) << S_VFIP6FOURTUPEN) 11175 #define F_VFIP6FOURTUPEN V_VFIP6FOURTUPEN(1U) 11176 11177 #define S_VFIP6TWOTUPEN 6 11178 #define V_VFIP6TWOTUPEN(x) ((x) << S_VFIP6TWOTUPEN) 11179 #define F_VFIP6TWOTUPEN V_VFIP6TWOTUPEN(1U) 11180 11181 #define S_VFIP4FOURTUPEN 5 11182 #define V_VFIP4FOURTUPEN(x) ((x) << S_VFIP4FOURTUPEN) 11183 #define F_VFIP4FOURTUPEN V_VFIP4FOURTUPEN(1U) 11184 11185 #define S_VFIP4TWOTUPEN 4 11186 #define V_VFIP4TWOTUPEN(x) ((x) << S_VFIP4TWOTUPEN) 11187 #define F_VFIP4TWOTUPEN V_VFIP4TWOTUPEN(1U) 11188 11189 #define S_KEYINDEX 0 11190 #define M_KEYINDEX 0xfU 11191 #define V_KEYINDEX(x) ((x) << S_KEYINDEX) 11192 #define G_KEYINDEX(x) (((x) >> S_KEYINDEX) & M_KEYINDEX) 11193 11194 #define A_TP_RSS_SECRET_KEY0 0x40 11195 #define A_TP_RSS_SECRET_KEY1 0x41 11196 #define A_TP_RSS_SECRET_KEY2 0x42 11197 #define A_TP_RSS_SECRET_KEY3 0x43 11198 #define A_TP_RSS_SECRET_KEY4 0x44 11199 #define A_TP_RSS_SECRET_KEY5 0x45 11200 #define A_TP_RSS_SECRET_KEY6 0x46 11201 #define A_TP_RSS_SECRET_KEY7 0x47 11202 #define A_TP_RSS_SECRET_KEY8 0x48 11203 #define A_TP_RSS_SECRET_KEY9 0x49 11204 #define A_TP_ETHER_TYPE_VL 0x50 11205 11206 #define S_CQFCTYPE 16 11207 #define M_CQFCTYPE 0xffffU 11208 #define V_CQFCTYPE(x) ((x) << S_CQFCTYPE) 11209 #define G_CQFCTYPE(x) (((x) >> S_CQFCTYPE) & M_CQFCTYPE) 11210 11211 #define S_VLANTYPE 0 11212 #define M_VLANTYPE 0xffffU 11213 #define V_VLANTYPE(x) ((x) << S_VLANTYPE) 11214 #define G_VLANTYPE(x) (((x) >> S_VLANTYPE) & M_VLANTYPE) 11215 11216 #define A_TP_ETHER_TYPE_IP 0x51 11217 11218 #define S_IPV6TYPE 16 11219 #define M_IPV6TYPE 0xffffU 11220 #define V_IPV6TYPE(x) ((x) << S_IPV6TYPE) 11221 #define G_IPV6TYPE(x) (((x) >> S_IPV6TYPE) & M_IPV6TYPE) 11222 11223 #define S_IPV4TYPE 0 11224 #define M_IPV4TYPE 0xffffU 11225 #define V_IPV4TYPE(x) ((x) << S_IPV4TYPE) 11226 #define G_IPV4TYPE(x) (((x) >> S_IPV4TYPE) & M_IPV4TYPE) 11227 11228 #define A_TP_DBG_CLEAR 0x60 11229 #define A_TP_DBG_CORE_HDR0 0x61 11230 11231 #define S_E_TCP_OP_SRDY 16 11232 #define V_E_TCP_OP_SRDY(x) ((x) << S_E_TCP_OP_SRDY) 11233 #define F_E_TCP_OP_SRDY V_E_TCP_OP_SRDY(1U) 11234 11235 #define S_E_PLD_TXZEROP_SRDY 15 11236 #define V_E_PLD_TXZEROP_SRDY(x) ((x) << S_E_PLD_TXZEROP_SRDY) 11237 #define F_E_PLD_TXZEROP_SRDY V_E_PLD_TXZEROP_SRDY(1U) 11238 11239 #define S_E_PLD_RX_SRDY 14 11240 #define V_E_PLD_RX_SRDY(x) ((x) << S_E_PLD_RX_SRDY) 11241 #define F_E_PLD_RX_SRDY V_E_PLD_RX_SRDY(1U) 11242 11243 #define S_E_RX_ERROR_SRDY 13 11244 #define V_E_RX_ERROR_SRDY(x) ((x) << S_E_RX_ERROR_SRDY) 11245 #define F_E_RX_ERROR_SRDY V_E_RX_ERROR_SRDY(1U) 11246 11247 #define S_E_RX_ISS_SRDY 12 11248 #define V_E_RX_ISS_SRDY(x) ((x) << S_E_RX_ISS_SRDY) 11249 #define F_E_RX_ISS_SRDY V_E_RX_ISS_SRDY(1U) 11250 11251 #define S_C_TCP_OP_SRDY 11 11252 #define V_C_TCP_OP_SRDY(x) ((x) << S_C_TCP_OP_SRDY) 11253 #define F_C_TCP_OP_SRDY V_C_TCP_OP_SRDY(1U) 11254 11255 #define S_C_PLD_TXZEROP_SRDY 10 11256 #define V_C_PLD_TXZEROP_SRDY(x) ((x) << S_C_PLD_TXZEROP_SRDY) 11257 #define F_C_PLD_TXZEROP_SRDY V_C_PLD_TXZEROP_SRDY(1U) 11258 11259 #define S_C_PLD_RX_SRDY 9 11260 #define V_C_PLD_RX_SRDY(x) ((x) << S_C_PLD_RX_SRDY) 11261 #define F_C_PLD_RX_SRDY V_C_PLD_RX_SRDY(1U) 11262 11263 #define S_C_RX_ERROR_SRDY 8 11264 #define V_C_RX_ERROR_SRDY(x) ((x) << S_C_RX_ERROR_SRDY) 11265 #define F_C_RX_ERROR_SRDY V_C_RX_ERROR_SRDY(1U) 11266 11267 #define S_C_RX_ISS_SRDY 7 11268 #define V_C_RX_ISS_SRDY(x) ((x) << S_C_RX_ISS_SRDY) 11269 #define F_C_RX_ISS_SRDY V_C_RX_ISS_SRDY(1U) 11270 11271 #define S_E_CPL5_TXVALID 6 11272 #define V_E_CPL5_TXVALID(x) ((x) << S_E_CPL5_TXVALID) 11273 #define F_E_CPL5_TXVALID V_E_CPL5_TXVALID(1U) 11274 11275 #define S_E_ETH_TXVALID 5 11276 #define V_E_ETH_TXVALID(x) ((x) << S_E_ETH_TXVALID) 11277 #define F_E_ETH_TXVALID V_E_ETH_TXVALID(1U) 11278 11279 #define S_E_IP_TXVALID 4 11280 #define V_E_IP_TXVALID(x) ((x) << S_E_IP_TXVALID) 11281 #define F_E_IP_TXVALID V_E_IP_TXVALID(1U) 11282 11283 #define S_E_TCP_TXVALID 3 11284 #define V_E_TCP_TXVALID(x) ((x) << S_E_TCP_TXVALID) 11285 #define F_E_TCP_TXVALID V_E_TCP_TXVALID(1U) 11286 11287 #define S_C_CPL5_RXVALID 2 11288 #define V_C_CPL5_RXVALID(x) ((x) << S_C_CPL5_RXVALID) 11289 #define F_C_CPL5_RXVALID V_C_CPL5_RXVALID(1U) 11290 11291 #define S_C_CPL5_TXVALID 1 11292 #define V_C_CPL5_TXVALID(x) ((x) << S_C_CPL5_TXVALID) 11293 #define F_C_CPL5_TXVALID V_C_CPL5_TXVALID(1U) 11294 11295 #define S_E_TCP_OPT_RXVALID 0 11296 #define V_E_TCP_OPT_RXVALID(x) ((x) << S_E_TCP_OPT_RXVALID) 11297 #define F_E_TCP_OPT_RXVALID V_E_TCP_OPT_RXVALID(1U) 11298 11299 #define A_TP_DBG_CORE_HDR1 0x62 11300 11301 #define S_E_CPL5_TXFULL 6 11302 #define V_E_CPL5_TXFULL(x) ((x) << S_E_CPL5_TXFULL) 11303 #define F_E_CPL5_TXFULL V_E_CPL5_TXFULL(1U) 11304 11305 #define S_E_ETH_TXFULL 5 11306 #define V_E_ETH_TXFULL(x) ((x) << S_E_ETH_TXFULL) 11307 #define F_E_ETH_TXFULL V_E_ETH_TXFULL(1U) 11308 11309 #define S_E_IP_TXFULL 4 11310 #define V_E_IP_TXFULL(x) ((x) << S_E_IP_TXFULL) 11311 #define F_E_IP_TXFULL V_E_IP_TXFULL(1U) 11312 11313 #define S_E_TCP_TXFULL 3 11314 #define V_E_TCP_TXFULL(x) ((x) << S_E_TCP_TXFULL) 11315 #define F_E_TCP_TXFULL V_E_TCP_TXFULL(1U) 11316 11317 #define S_C_CPL5_RXFULL 2 11318 #define V_C_CPL5_RXFULL(x) ((x) << S_C_CPL5_RXFULL) 11319 #define F_C_CPL5_RXFULL V_C_CPL5_RXFULL(1U) 11320 11321 #define S_C_CPL5_TXFULL 1 11322 #define V_C_CPL5_TXFULL(x) ((x) << S_C_CPL5_TXFULL) 11323 #define F_C_CPL5_TXFULL V_C_CPL5_TXFULL(1U) 11324 11325 #define S_E_TCP_OPT_RXFULL 0 11326 #define V_E_TCP_OPT_RXFULL(x) ((x) << S_E_TCP_OPT_RXFULL) 11327 #define F_E_TCP_OPT_RXFULL V_E_TCP_OPT_RXFULL(1U) 11328 11329 #define A_TP_DBG_CORE_FATAL 0x63 11330 11331 #define S_EMSGFATAL 31 11332 #define V_EMSGFATAL(x) ((x) << S_EMSGFATAL) 11333 #define F_EMSGFATAL V_EMSGFATAL(1U) 11334 11335 #define S_CMSGFATAL 30 11336 #define V_CMSGFATAL(x) ((x) << S_CMSGFATAL) 11337 #define F_CMSGFATAL V_CMSGFATAL(1U) 11338 11339 #define S_PAWSFATAL 29 11340 #define V_PAWSFATAL(x) ((x) << S_PAWSFATAL) 11341 #define F_PAWSFATAL V_PAWSFATAL(1U) 11342 11343 #define S_SRAMFATAL 28 11344 #define V_SRAMFATAL(x) ((x) << S_SRAMFATAL) 11345 #define F_SRAMFATAL V_SRAMFATAL(1U) 11346 11347 #define S_EPCMDCONG 24 11348 #define M_EPCMDCONG 0xfU 11349 #define V_EPCMDCONG(x) ((x) << S_EPCMDCONG) 11350 #define G_EPCMDCONG(x) (((x) >> S_EPCMDCONG) & M_EPCMDCONG) 11351 11352 #define S_CPCMDCONG 22 11353 #define M_CPCMDCONG 0x3U 11354 #define V_CPCMDCONG(x) ((x) << S_CPCMDCONG) 11355 #define G_CPCMDCONG(x) (((x) >> S_CPCMDCONG) & M_CPCMDCONG) 11356 11357 #define S_CPCMDLENFATAL 21 11358 #define V_CPCMDLENFATAL(x) ((x) << S_CPCMDLENFATAL) 11359 #define F_CPCMDLENFATAL V_CPCMDLENFATAL(1U) 11360 11361 #define S_EPCMDLENFATAL 20 11362 #define V_EPCMDLENFATAL(x) ((x) << S_EPCMDLENFATAL) 11363 #define F_EPCMDLENFATAL V_EPCMDLENFATAL(1U) 11364 11365 #define S_CPCMDVALID 16 11366 #define M_CPCMDVALID 0xfU 11367 #define V_CPCMDVALID(x) ((x) << S_CPCMDVALID) 11368 #define G_CPCMDVALID(x) (((x) >> S_CPCMDVALID) & M_CPCMDVALID) 11369 11370 #define S_CPCMDAFULL 12 11371 #define M_CPCMDAFULL 0xfU 11372 #define V_CPCMDAFULL(x) ((x) << S_CPCMDAFULL) 11373 #define G_CPCMDAFULL(x) (((x) >> S_CPCMDAFULL) & M_CPCMDAFULL) 11374 11375 #define S_EPCMDVALID 10 11376 #define M_EPCMDVALID 0x3U 11377 #define V_EPCMDVALID(x) ((x) << S_EPCMDVALID) 11378 #define G_EPCMDVALID(x) (((x) >> S_EPCMDVALID) & M_EPCMDVALID) 11379 11380 #define S_EPCMDAFULL 8 11381 #define M_EPCMDAFULL 0x3U 11382 #define V_EPCMDAFULL(x) ((x) << S_EPCMDAFULL) 11383 #define G_EPCMDAFULL(x) (((x) >> S_EPCMDAFULL) & M_EPCMDAFULL) 11384 11385 #define S_CPCMDEOIFATAL 7 11386 #define V_CPCMDEOIFATAL(x) ((x) << S_CPCMDEOIFATAL) 11387 #define F_CPCMDEOIFATAL V_CPCMDEOIFATAL(1U) 11388 11389 #define S_CMDBRQFATAL 4 11390 #define V_CMDBRQFATAL(x) ((x) << S_CMDBRQFATAL) 11391 #define F_CMDBRQFATAL V_CMDBRQFATAL(1U) 11392 11393 #define S_CNONZEROPPOPCNT 2 11394 #define M_CNONZEROPPOPCNT 0x3U 11395 #define V_CNONZEROPPOPCNT(x) ((x) << S_CNONZEROPPOPCNT) 11396 #define G_CNONZEROPPOPCNT(x) (((x) >> S_CNONZEROPPOPCNT) & M_CNONZEROPPOPCNT) 11397 11398 #define S_CPCMDEOICNT 0 11399 #define M_CPCMDEOICNT 0x3U 11400 #define V_CPCMDEOICNT(x) ((x) << S_CPCMDEOICNT) 11401 #define G_CPCMDEOICNT(x) (((x) >> S_CPCMDEOICNT) & M_CPCMDEOICNT) 11402 11403 #define A_TP_DBG_CORE_OUT 0x64 11404 11405 #define S_CCPLENC 26 11406 #define V_CCPLENC(x) ((x) << S_CCPLENC) 11407 #define F_CCPLENC V_CCPLENC(1U) 11408 11409 #define S_CWRCPLPKT 25 11410 #define V_CWRCPLPKT(x) ((x) << S_CWRCPLPKT) 11411 #define F_CWRCPLPKT V_CWRCPLPKT(1U) 11412 11413 #define S_CWRETHPKT 24 11414 #define V_CWRETHPKT(x) ((x) << S_CWRETHPKT) 11415 #define F_CWRETHPKT V_CWRETHPKT(1U) 11416 11417 #define S_CWRIPPKT 23 11418 #define V_CWRIPPKT(x) ((x) << S_CWRIPPKT) 11419 #define F_CWRIPPKT V_CWRIPPKT(1U) 11420 11421 #define S_CWRTCPPKT 22 11422 #define V_CWRTCPPKT(x) ((x) << S_CWRTCPPKT) 11423 #define F_CWRTCPPKT V_CWRTCPPKT(1U) 11424 11425 #define S_CWRZEROP 21 11426 #define V_CWRZEROP(x) ((x) << S_CWRZEROP) 11427 #define F_CWRZEROP V_CWRZEROP(1U) 11428 11429 #define S_CCPLTXFULL 20 11430 #define V_CCPLTXFULL(x) ((x) << S_CCPLTXFULL) 11431 #define F_CCPLTXFULL V_CCPLTXFULL(1U) 11432 11433 #define S_CETHTXFULL 19 11434 #define V_CETHTXFULL(x) ((x) << S_CETHTXFULL) 11435 #define F_CETHTXFULL V_CETHTXFULL(1U) 11436 11437 #define S_CIPTXFULL 18 11438 #define V_CIPTXFULL(x) ((x) << S_CIPTXFULL) 11439 #define F_CIPTXFULL V_CIPTXFULL(1U) 11440 11441 #define S_CTCPTXFULL 17 11442 #define V_CTCPTXFULL(x) ((x) << S_CTCPTXFULL) 11443 #define F_CTCPTXFULL V_CTCPTXFULL(1U) 11444 11445 #define S_CPLDTXZEROPDRDY 16 11446 #define V_CPLDTXZEROPDRDY(x) ((x) << S_CPLDTXZEROPDRDY) 11447 #define F_CPLDTXZEROPDRDY V_CPLDTXZEROPDRDY(1U) 11448 11449 #define S_ECPLENC 10 11450 #define V_ECPLENC(x) ((x) << S_ECPLENC) 11451 #define F_ECPLENC V_ECPLENC(1U) 11452 11453 #define S_EWRCPLPKT 9 11454 #define V_EWRCPLPKT(x) ((x) << S_EWRCPLPKT) 11455 #define F_EWRCPLPKT V_EWRCPLPKT(1U) 11456 11457 #define S_EWRETHPKT 8 11458 #define V_EWRETHPKT(x) ((x) << S_EWRETHPKT) 11459 #define F_EWRETHPKT V_EWRETHPKT(1U) 11460 11461 #define S_EWRIPPKT 7 11462 #define V_EWRIPPKT(x) ((x) << S_EWRIPPKT) 11463 #define F_EWRIPPKT V_EWRIPPKT(1U) 11464 11465 #define S_EWRTCPPKT 6 11466 #define V_EWRTCPPKT(x) ((x) << S_EWRTCPPKT) 11467 #define F_EWRTCPPKT V_EWRTCPPKT(1U) 11468 11469 #define S_EWRZEROP 5 11470 #define V_EWRZEROP(x) ((x) << S_EWRZEROP) 11471 #define F_EWRZEROP V_EWRZEROP(1U) 11472 11473 #define S_ECPLTXFULL 4 11474 #define V_ECPLTXFULL(x) ((x) << S_ECPLTXFULL) 11475 #define F_ECPLTXFULL V_ECPLTXFULL(1U) 11476 11477 #define S_EETHTXFULL 3 11478 #define V_EETHTXFULL(x) ((x) << S_EETHTXFULL) 11479 #define F_EETHTXFULL V_EETHTXFULL(1U) 11480 11481 #define S_EIPTXFULL 2 11482 #define V_EIPTXFULL(x) ((x) << S_EIPTXFULL) 11483 #define F_EIPTXFULL V_EIPTXFULL(1U) 11484 11485 #define S_ETCPTXFULL 1 11486 #define V_ETCPTXFULL(x) ((x) << S_ETCPTXFULL) 11487 #define F_ETCPTXFULL V_ETCPTXFULL(1U) 11488 11489 #define S_EPLDTXZEROPDRDY 0 11490 #define V_EPLDTXZEROPDRDY(x) ((x) << S_EPLDTXZEROPDRDY) 11491 #define F_EPLDTXZEROPDRDY V_EPLDTXZEROPDRDY(1U) 11492 11493 #define A_TP_DBG_CORE_TID 0x65 11494 11495 #define S_LINENUMBER 24 11496 #define M_LINENUMBER 0x7fU 11497 #define V_LINENUMBER(x) ((x) << S_LINENUMBER) 11498 #define G_LINENUMBER(x) (((x) >> S_LINENUMBER) & M_LINENUMBER) 11499 11500 #define S_SPURIOUSMSG 23 11501 #define V_SPURIOUSMSG(x) ((x) << S_SPURIOUSMSG) 11502 #define F_SPURIOUSMSG V_SPURIOUSMSG(1U) 11503 11504 #define S_SYNLEARNED 20 11505 #define V_SYNLEARNED(x) ((x) << S_SYNLEARNED) 11506 #define F_SYNLEARNED V_SYNLEARNED(1U) 11507 11508 #define S_TIDVALUE 0 11509 #define M_TIDVALUE 0xfffffU 11510 #define V_TIDVALUE(x) ((x) << S_TIDVALUE) 11511 #define G_TIDVALUE(x) (((x) >> S_TIDVALUE) & M_TIDVALUE) 11512 11513 #define A_TP_DBG_ENG_RES0 0x66 11514 11515 #define S_RESOURCESREADY 31 11516 #define V_RESOURCESREADY(x) ((x) << S_RESOURCESREADY) 11517 #define F_RESOURCESREADY V_RESOURCESREADY(1U) 11518 11519 #define S_RCFOPCODEOUTSRDY 30 11520 #define V_RCFOPCODEOUTSRDY(x) ((x) << S_RCFOPCODEOUTSRDY) 11521 #define F_RCFOPCODEOUTSRDY V_RCFOPCODEOUTSRDY(1U) 11522 11523 #define S_RCFDATAOUTSRDY 29 11524 #define V_RCFDATAOUTSRDY(x) ((x) << S_RCFDATAOUTSRDY) 11525 #define F_RCFDATAOUTSRDY V_RCFDATAOUTSRDY(1U) 11526 11527 #define S_FLUSHINPUTMSG 28 11528 #define V_FLUSHINPUTMSG(x) ((x) << S_FLUSHINPUTMSG) 11529 #define F_FLUSHINPUTMSG V_FLUSHINPUTMSG(1U) 11530 11531 #define S_RCFOPSRCOUT 26 11532 #define M_RCFOPSRCOUT 0x3U 11533 #define V_RCFOPSRCOUT(x) ((x) << S_RCFOPSRCOUT) 11534 #define G_RCFOPSRCOUT(x) (((x) >> S_RCFOPSRCOUT) & M_RCFOPSRCOUT) 11535 11536 #define S_C_MSG 25 11537 #define V_C_MSG(x) ((x) << S_C_MSG) 11538 #define F_C_MSG V_C_MSG(1U) 11539 11540 #define S_E_MSG 24 11541 #define V_E_MSG(x) ((x) << S_E_MSG) 11542 #define F_E_MSG V_E_MSG(1U) 11543 11544 #define S_RCFOPCODEOUT 20 11545 #define M_RCFOPCODEOUT 0xfU 11546 #define V_RCFOPCODEOUT(x) ((x) << S_RCFOPCODEOUT) 11547 #define G_RCFOPCODEOUT(x) (((x) >> S_RCFOPCODEOUT) & M_RCFOPCODEOUT) 11548 11549 #define S_EFFRCFOPCODEOUT 16 11550 #define M_EFFRCFOPCODEOUT 0xfU 11551 #define V_EFFRCFOPCODEOUT(x) ((x) << S_EFFRCFOPCODEOUT) 11552 #define G_EFFRCFOPCODEOUT(x) (((x) >> S_EFFRCFOPCODEOUT) & M_EFFRCFOPCODEOUT) 11553 11554 #define S_SEENRESOURCESREADY 15 11555 #define V_SEENRESOURCESREADY(x) ((x) << S_SEENRESOURCESREADY) 11556 #define F_SEENRESOURCESREADY V_SEENRESOURCESREADY(1U) 11557 11558 #define S_RESOURCESREADYCOPY 14 11559 #define V_RESOURCESREADYCOPY(x) ((x) << S_RESOURCESREADYCOPY) 11560 #define F_RESOURCESREADYCOPY V_RESOURCESREADYCOPY(1U) 11561 11562 #define S_OPCODEWAITSFORDATA 13 11563 #define V_OPCODEWAITSFORDATA(x) ((x) << S_OPCODEWAITSFORDATA) 11564 #define F_OPCODEWAITSFORDATA V_OPCODEWAITSFORDATA(1U) 11565 11566 #define S_CPLDRXSRDY 12 11567 #define V_CPLDRXSRDY(x) ((x) << S_CPLDRXSRDY) 11568 #define F_CPLDRXSRDY V_CPLDRXSRDY(1U) 11569 11570 #define S_CPLDRXZEROPSRDY 11 11571 #define V_CPLDRXZEROPSRDY(x) ((x) << S_CPLDRXZEROPSRDY) 11572 #define F_CPLDRXZEROPSRDY V_CPLDRXZEROPSRDY(1U) 11573 11574 #define S_EPLDRXZEROPSRDY 10 11575 #define V_EPLDRXZEROPSRDY(x) ((x) << S_EPLDRXZEROPSRDY) 11576 #define F_EPLDRXZEROPSRDY V_EPLDRXZEROPSRDY(1U) 11577 11578 #define S_ERXERRORSRDY 9 11579 #define V_ERXERRORSRDY(x) ((x) << S_ERXERRORSRDY) 11580 #define F_ERXERRORSRDY V_ERXERRORSRDY(1U) 11581 11582 #define S_EPLDRXSRDY 8 11583 #define V_EPLDRXSRDY(x) ((x) << S_EPLDRXSRDY) 11584 #define F_EPLDRXSRDY V_EPLDRXSRDY(1U) 11585 11586 #define S_CRXBUSY 7 11587 #define V_CRXBUSY(x) ((x) << S_CRXBUSY) 11588 #define F_CRXBUSY V_CRXBUSY(1U) 11589 11590 #define S_ERXBUSY 6 11591 #define V_ERXBUSY(x) ((x) << S_ERXBUSY) 11592 #define F_ERXBUSY V_ERXBUSY(1U) 11593 11594 #define S_TIMERINSERTBUSY 5 11595 #define V_TIMERINSERTBUSY(x) ((x) << S_TIMERINSERTBUSY) 11596 #define F_TIMERINSERTBUSY V_TIMERINSERTBUSY(1U) 11597 11598 #define S_WCFBUSY 4 11599 #define V_WCFBUSY(x) ((x) << S_WCFBUSY) 11600 #define F_WCFBUSY V_WCFBUSY(1U) 11601 11602 #define S_CTXBUSY 3 11603 #define V_CTXBUSY(x) ((x) << S_CTXBUSY) 11604 #define F_CTXBUSY V_CTXBUSY(1U) 11605 11606 #define S_CPCMDBUSY 2 11607 #define V_CPCMDBUSY(x) ((x) << S_CPCMDBUSY) 11608 #define F_CPCMDBUSY V_CPCMDBUSY(1U) 11609 11610 #define S_ETXBUSY 1 11611 #define V_ETXBUSY(x) ((x) << S_ETXBUSY) 11612 #define F_ETXBUSY V_ETXBUSY(1U) 11613 11614 #define S_EPCMDBUSY 0 11615 #define V_EPCMDBUSY(x) ((x) << S_EPCMDBUSY) 11616 #define F_EPCMDBUSY V_EPCMDBUSY(1U) 11617 11618 #define A_TP_DBG_ENG_RES1 0x67 11619 11620 #define S_RXCPLSRDY 31 11621 #define V_RXCPLSRDY(x) ((x) << S_RXCPLSRDY) 11622 #define F_RXCPLSRDY V_RXCPLSRDY(1U) 11623 11624 #define S_RXOPTSRDY 30 11625 #define V_RXOPTSRDY(x) ((x) << S_RXOPTSRDY) 11626 #define F_RXOPTSRDY V_RXOPTSRDY(1U) 11627 11628 #define S_RXPLDLENSRDY 29 11629 #define V_RXPLDLENSRDY(x) ((x) << S_RXPLDLENSRDY) 11630 #define F_RXPLDLENSRDY V_RXPLDLENSRDY(1U) 11631 11632 #define S_RXNOTBUSY 28 11633 #define V_RXNOTBUSY(x) ((x) << S_RXNOTBUSY) 11634 #define F_RXNOTBUSY V_RXNOTBUSY(1U) 11635 11636 #define S_CPLCMDIN 20 11637 #define M_CPLCMDIN 0xffU 11638 #define V_CPLCMDIN(x) ((x) << S_CPLCMDIN) 11639 #define G_CPLCMDIN(x) (((x) >> S_CPLCMDIN) & M_CPLCMDIN) 11640 11641 #define S_RCFPTIDSRDY 19 11642 #define V_RCFPTIDSRDY(x) ((x) << S_RCFPTIDSRDY) 11643 #define F_RCFPTIDSRDY V_RCFPTIDSRDY(1U) 11644 11645 #define S_EPDUHDRSRDY 18 11646 #define V_EPDUHDRSRDY(x) ((x) << S_EPDUHDRSRDY) 11647 #define F_EPDUHDRSRDY V_EPDUHDRSRDY(1U) 11648 11649 #define S_TUNNELPKTREG 17 11650 #define V_TUNNELPKTREG(x) ((x) << S_TUNNELPKTREG) 11651 #define F_TUNNELPKTREG V_TUNNELPKTREG(1U) 11652 11653 #define S_TXPKTCSUMSRDY 16 11654 #define V_TXPKTCSUMSRDY(x) ((x) << S_TXPKTCSUMSRDY) 11655 #define F_TXPKTCSUMSRDY V_TXPKTCSUMSRDY(1U) 11656 11657 #define S_TABLEACCESSLATENCY 12 11658 #define M_TABLEACCESSLATENCY 0xfU 11659 #define V_TABLEACCESSLATENCY(x) ((x) << S_TABLEACCESSLATENCY) 11660 #define G_TABLEACCESSLATENCY(x) \ 11661 (((x) >> S_TABLEACCESSLATENCY) & M_TABLEACCESSLATENCY) 11662 11663 #define S_MMGRDONE 11 11664 #define V_MMGRDONE(x) ((x) << S_MMGRDONE) 11665 #define F_MMGRDONE V_MMGRDONE(1U) 11666 11667 #define S_SEENMMGRDONE 10 11668 #define V_SEENMMGRDONE(x) ((x) << S_SEENMMGRDONE) 11669 #define F_SEENMMGRDONE V_SEENMMGRDONE(1U) 11670 11671 #define S_RXERRORSRDY 9 11672 #define V_RXERRORSRDY(x) ((x) << S_RXERRORSRDY) 11673 #define F_RXERRORSRDY V_RXERRORSRDY(1U) 11674 11675 #define S_RCFOPTIONSTCPSRDY 8 11676 #define V_RCFOPTIONSTCPSRDY(x) ((x) << S_RCFOPTIONSTCPSRDY) 11677 #define F_RCFOPTIONSTCPSRDY V_RCFOPTIONSTCPSRDY(1U) 11678 11679 #define S_ENGINESTATE 6 11680 #define M_ENGINESTATE 0x3U 11681 #define V_ENGINESTATE(x) ((x) << S_ENGINESTATE) 11682 #define G_ENGINESTATE(x) (((x) >> S_ENGINESTATE) & M_ENGINESTATE) 11683 11684 #define S_TABLEACCESINCREMENT 5 11685 #define V_TABLEACCESINCREMENT(x) ((x) << S_TABLEACCESINCREMENT) 11686 #define F_TABLEACCESINCREMENT V_TABLEACCESINCREMENT(1U) 11687 11688 #define S_TABLEACCESCOMPLETE 4 11689 #define V_TABLEACCESCOMPLETE(x) ((x) << S_TABLEACCESCOMPLETE) 11690 #define F_TABLEACCESCOMPLETE V_TABLEACCESCOMPLETE(1U) 11691 11692 #define S_RCFOPCODEOUTUSABLE 3 11693 #define V_RCFOPCODEOUTUSABLE(x) ((x) << S_RCFOPCODEOUTUSABLE) 11694 #define F_RCFOPCODEOUTUSABLE V_RCFOPCODEOUTUSABLE(1U) 11695 11696 #define S_RCFDATAOUTUSABLE 2 11697 #define V_RCFDATAOUTUSABLE(x) ((x) << S_RCFDATAOUTUSABLE) 11698 #define F_RCFDATAOUTUSABLE V_RCFDATAOUTUSABLE(1U) 11699 11700 #define S_RCFDATAWAITAFTERRD 1 11701 #define V_RCFDATAWAITAFTERRD(x) ((x) << S_RCFDATAWAITAFTERRD) 11702 #define F_RCFDATAWAITAFTERRD V_RCFDATAWAITAFTERRD(1U) 11703 11704 #define S_RCFDATACMRDY 0 11705 #define V_RCFDATACMRDY(x) ((x) << S_RCFDATACMRDY) 11706 #define F_RCFDATACMRDY V_RCFDATACMRDY(1U) 11707 11708 #define A_TP_DBG_ENG_RES2 0x68 11709 11710 #define S_CPLCMDRAW 24 11711 #define M_CPLCMDRAW 0xffU 11712 #define V_CPLCMDRAW(x) ((x) << S_CPLCMDRAW) 11713 #define G_CPLCMDRAW(x) (((x) >> S_CPLCMDRAW) & M_CPLCMDRAW) 11714 11715 #define S_RXMACPORT 20 11716 #define M_RXMACPORT 0xfU 11717 #define V_RXMACPORT(x) ((x) << S_RXMACPORT) 11718 #define G_RXMACPORT(x) (((x) >> S_RXMACPORT) & M_RXMACPORT) 11719 11720 #define S_TXECHANNEL 18 11721 #define M_TXECHANNEL 0x3U 11722 #define V_TXECHANNEL(x) ((x) << S_TXECHANNEL) 11723 #define G_TXECHANNEL(x) (((x) >> S_TXECHANNEL) & M_TXECHANNEL) 11724 11725 #define S_RXECHANNEL 16 11726 #define M_RXECHANNEL 0x3U 11727 #define V_RXECHANNEL(x) ((x) << S_RXECHANNEL) 11728 #define G_RXECHANNEL(x) (((x) >> S_RXECHANNEL) & M_RXECHANNEL) 11729 11730 #define S_CDATAOUT 15 11731 #define V_CDATAOUT(x) ((x) << S_CDATAOUT) 11732 #define F_CDATAOUT V_CDATAOUT(1U) 11733 11734 #define S_CREADPDU 14 11735 #define V_CREADPDU(x) ((x) << S_CREADPDU) 11736 #define F_CREADPDU V_CREADPDU(1U) 11737 11738 #define S_EDATAOUT 13 11739 #define V_EDATAOUT(x) ((x) << S_EDATAOUT) 11740 #define F_EDATAOUT V_EDATAOUT(1U) 11741 11742 #define S_EREADPDU 12 11743 #define V_EREADPDU(x) ((x) << S_EREADPDU) 11744 #define F_EREADPDU V_EREADPDU(1U) 11745 11746 #define S_ETCPOPSRDY 11 11747 #define V_ETCPOPSRDY(x) ((x) << S_ETCPOPSRDY) 11748 #define F_ETCPOPSRDY V_ETCPOPSRDY(1U) 11749 11750 #define S_CTCPOPSRDY 10 11751 #define V_CTCPOPSRDY(x) ((x) << S_CTCPOPSRDY) 11752 #define F_CTCPOPSRDY V_CTCPOPSRDY(1U) 11753 11754 #define S_CPKTOUT 9 11755 #define V_CPKTOUT(x) ((x) << S_CPKTOUT) 11756 #define F_CPKTOUT V_CPKTOUT(1U) 11757 11758 #define S_CMDBRSPSRDY 8 11759 #define V_CMDBRSPSRDY(x) ((x) << S_CMDBRSPSRDY) 11760 #define F_CMDBRSPSRDY V_CMDBRSPSRDY(1U) 11761 11762 #define S_RXPSTRUCTSFULL 6 11763 #define M_RXPSTRUCTSFULL 0x3U 11764 #define V_RXPSTRUCTSFULL(x) ((x) << S_RXPSTRUCTSFULL) 11765 #define G_RXPSTRUCTSFULL(x) (((x) >> S_RXPSTRUCTSFULL) & M_RXPSTRUCTSFULL) 11766 11767 #define S_RXPAGEPOOLFULL 4 11768 #define M_RXPAGEPOOLFULL 0x3U 11769 #define V_RXPAGEPOOLFULL(x) ((x) << S_RXPAGEPOOLFULL) 11770 #define G_RXPAGEPOOLFULL(x) (((x) >> S_RXPAGEPOOLFULL) & M_RXPAGEPOOLFULL) 11771 11772 #define S_RCFREASONOUT 0 11773 #define M_RCFREASONOUT 0xfU 11774 #define V_RCFREASONOUT(x) ((x) << S_RCFREASONOUT) 11775 #define G_RCFREASONOUT(x) (((x) >> S_RCFREASONOUT) & M_RCFREASONOUT) 11776 11777 #define A_TP_DBG_CORE_PCMD 0x69 11778 11779 #define S_CPCMDEOPCNT 30 11780 #define M_CPCMDEOPCNT 0x3U 11781 #define V_CPCMDEOPCNT(x) ((x) << S_CPCMDEOPCNT) 11782 #define G_CPCMDEOPCNT(x) (((x) >> S_CPCMDEOPCNT) & M_CPCMDEOPCNT) 11783 11784 #define S_CPCMDLENSAVE 16 11785 #define M_CPCMDLENSAVE 0x3fffU 11786 #define V_CPCMDLENSAVE(x) ((x) << S_CPCMDLENSAVE) 11787 #define G_CPCMDLENSAVE(x) (((x) >> S_CPCMDLENSAVE) & M_CPCMDLENSAVE) 11788 11789 #define S_EPCMDEOPCNT 14 11790 #define M_EPCMDEOPCNT 0x3U 11791 #define V_EPCMDEOPCNT(x) ((x) << S_EPCMDEOPCNT) 11792 #define G_EPCMDEOPCNT(x) (((x) >> S_EPCMDEOPCNT) & M_EPCMDEOPCNT) 11793 11794 #define S_EPCMDLENSAVE 0 11795 #define M_EPCMDLENSAVE 0x3fffU 11796 #define V_EPCMDLENSAVE(x) ((x) << S_EPCMDLENSAVE) 11797 #define G_EPCMDLENSAVE(x) (((x) >> S_EPCMDLENSAVE) & M_EPCMDLENSAVE) 11798 11799 #define A_TP_DBG_SCHED_TX 0x6a 11800 11801 #define S_TXCHNXOFF 28 11802 #define M_TXCHNXOFF 0xfU 11803 #define V_TXCHNXOFF(x) ((x) << S_TXCHNXOFF) 11804 #define G_TXCHNXOFF(x) (((x) >> S_TXCHNXOFF) & M_TXCHNXOFF) 11805 11806 #define S_TXFIFOCNG 24 11807 #define M_TXFIFOCNG 0xfU 11808 #define V_TXFIFOCNG(x) ((x) << S_TXFIFOCNG) 11809 #define G_TXFIFOCNG(x) (((x) >> S_TXFIFOCNG) & M_TXFIFOCNG) 11810 11811 #define S_TXPCMDCNG 20 11812 #define M_TXPCMDCNG 0xfU 11813 #define V_TXPCMDCNG(x) ((x) << S_TXPCMDCNG) 11814 #define G_TXPCMDCNG(x) (((x) >> S_TXPCMDCNG) & M_TXPCMDCNG) 11815 11816 #define S_TXLPBKCNG 16 11817 #define M_TXLPBKCNG 0xfU 11818 #define V_TXLPBKCNG(x) ((x) << S_TXLPBKCNG) 11819 #define G_TXLPBKCNG(x) (((x) >> S_TXLPBKCNG) & M_TXLPBKCNG) 11820 11821 #define S_TXHDRCNG 8 11822 #define M_TXHDRCNG 0xffU 11823 #define V_TXHDRCNG(x) ((x) << S_TXHDRCNG) 11824 #define G_TXHDRCNG(x) (((x) >> S_TXHDRCNG) & M_TXHDRCNG) 11825 11826 #define S_TXMODXOFF 0 11827 #define M_TXMODXOFF 0xffU 11828 #define V_TXMODXOFF(x) ((x) << S_TXMODXOFF) 11829 #define G_TXMODXOFF(x) (((x) >> S_TXMODXOFF) & M_TXMODXOFF) 11830 11831 #define A_TP_DBG_SCHED_RX 0x6b 11832 11833 #define S_RXCHNXOFF 28 11834 #define M_RXCHNXOFF 0xfU 11835 #define V_RXCHNXOFF(x) ((x) << S_RXCHNXOFF) 11836 #define G_RXCHNXOFF(x) (((x) >> S_RXCHNXOFF) & M_RXCHNXOFF) 11837 11838 #define S_RXSGECNG 24 11839 #define M_RXSGECNG 0xfU 11840 #define V_RXSGECNG(x) ((x) << S_RXSGECNG) 11841 #define G_RXSGECNG(x) (((x) >> S_RXSGECNG) & M_RXSGECNG) 11842 11843 #define S_RXFIFOCNG 22 11844 #define M_RXFIFOCNG 0x3U 11845 #define V_RXFIFOCNG(x) ((x) << S_RXFIFOCNG) 11846 #define G_RXFIFOCNG(x) (((x) >> S_RXFIFOCNG) & M_RXFIFOCNG) 11847 11848 #define S_RXPCMDCNG 20 11849 #define M_RXPCMDCNG 0x3U 11850 #define V_RXPCMDCNG(x) ((x) << S_RXPCMDCNG) 11851 #define G_RXPCMDCNG(x) (((x) >> S_RXPCMDCNG) & M_RXPCMDCNG) 11852 11853 #define S_RXLPBKCNG 16 11854 #define M_RXLPBKCNG 0xfU 11855 #define V_RXLPBKCNG(x) ((x) << S_RXLPBKCNG) 11856 #define G_RXLPBKCNG(x) (((x) >> S_RXLPBKCNG) & M_RXLPBKCNG) 11857 11858 #define S_RXHDRCNG 8 11859 #define M_RXHDRCNG 0xfU 11860 #define V_RXHDRCNG(x) ((x) << S_RXHDRCNG) 11861 #define G_RXHDRCNG(x) (((x) >> S_RXHDRCNG) & M_RXHDRCNG) 11862 11863 #define S_RXMODXOFF 0 11864 #define M_RXMODXOFF 0x3U 11865 #define V_RXMODXOFF(x) ((x) << S_RXMODXOFF) 11866 #define G_RXMODXOFF(x) (((x) >> S_RXMODXOFF) & M_RXMODXOFF) 11867 11868 #define A_TP_TX_DROP_CFG_CH0 0x12b 11869 11870 #define S_TIMERENABLED 31 11871 #define V_TIMERENABLED(x) ((x) << S_TIMERENABLED) 11872 #define F_TIMERENABLED V_TIMERENABLED(1U) 11873 11874 #define S_TIMERERRORENABLE 30 11875 #define V_TIMERERRORENABLE(x) ((x) << S_TIMERERRORENABLE) 11876 #define F_TIMERERRORENABLE V_TIMERERRORENABLE(1U) 11877 11878 #define S_TIMERTHRESHOLD 4 11879 #define M_TIMERTHRESHOLD 0x3ffffffU 11880 #define V_TIMERTHRESHOLD(x) ((x) << S_TIMERTHRESHOLD) 11881 #define G_TIMERTHRESHOLD(x) (((x) >> S_TIMERTHRESHOLD) & M_TIMERTHRESHOLD) 11882 11883 #define S_PACKETDROPS 0 11884 #define M_PACKETDROPS 0xfU 11885 #define V_PACKETDROPS(x) ((x) << S_PACKETDROPS) 11886 #define G_PACKETDROPS(x) (((x) >> S_PACKETDROPS) & M_PACKETDROPS) 11887 11888 #define A_TP_TX_DROP_CFG_CH1 0x12c 11889 #define A_TP_TX_DROP_CNT_CH0 0x12d 11890 11891 #define S_TXDROPCNTCH0SENT 16 11892 #define M_TXDROPCNTCH0SENT 0xffffU 11893 #define V_TXDROPCNTCH0SENT(x) ((x) << S_TXDROPCNTCH0SENT) 11894 #define G_TXDROPCNTCH0SENT(x) (((x) >> S_TXDROPCNTCH0SENT) & M_TXDROPCNTCH0SENT) 11895 11896 #define S_TXDROPCNTCH0RCVD 0 11897 #define M_TXDROPCNTCH0RCVD 0xffffU 11898 #define V_TXDROPCNTCH0RCVD(x) ((x) << S_TXDROPCNTCH0RCVD) 11899 #define G_TXDROPCNTCH0RCVD(x) (((x) >> S_TXDROPCNTCH0RCVD) & M_TXDROPCNTCH0RCVD) 11900 11901 #define A_TP_TX_DROP_CNT_CH1 0x12e 11902 11903 #define S_TXDROPCNTCH1SENT 16 11904 #define M_TXDROPCNTCH1SENT 0xffffU 11905 #define V_TXDROPCNTCH1SENT(x) ((x) << S_TXDROPCNTCH1SENT) 11906 #define G_TXDROPCNTCH1SENT(x) (((x) >> S_TXDROPCNTCH1SENT) & M_TXDROPCNTCH1SENT) 11907 11908 #define S_TXDROPCNTCH1RCVD 0 11909 #define M_TXDROPCNTCH1RCVD 0xffffU 11910 #define V_TXDROPCNTCH1RCVD(x) ((x) << S_TXDROPCNTCH1RCVD) 11911 #define G_TXDROPCNTCH1RCVD(x) (((x) >> S_TXDROPCNTCH1RCVD) & M_TXDROPCNTCH1RCVD) 11912 11913 #define A_TP_TX_DROP_MODE 0x12f 11914 11915 #define S_TXDROPMODECH3 3 11916 #define V_TXDROPMODECH3(x) ((x) << S_TXDROPMODECH3) 11917 #define F_TXDROPMODECH3 V_TXDROPMODECH3(1U) 11918 11919 #define S_TXDROPMODECH2 2 11920 #define V_TXDROPMODECH2(x) ((x) << S_TXDROPMODECH2) 11921 #define F_TXDROPMODECH2 V_TXDROPMODECH2(1U) 11922 11923 #define S_TXDROPMODECH1 1 11924 #define V_TXDROPMODECH1(x) ((x) << S_TXDROPMODECH1) 11925 #define F_TXDROPMODECH1 V_TXDROPMODECH1(1U) 11926 11927 #define S_TXDROPMODECH0 0 11928 #define V_TXDROPMODECH0(x) ((x) << S_TXDROPMODECH0) 11929 #define F_TXDROPMODECH0 V_TXDROPMODECH0(1U) 11930 11931 #define A_TP_DBG_ESIDE_PKT0 0x130 11932 11933 #define S_ETXSOPCNT 28 11934 #define M_ETXSOPCNT 0xfU 11935 #define V_ETXSOPCNT(x) ((x) << S_ETXSOPCNT) 11936 #define G_ETXSOPCNT(x) (((x) >> S_ETXSOPCNT) & M_ETXSOPCNT) 11937 11938 #define S_ETXEOPCNT 24 11939 #define M_ETXEOPCNT 0xfU 11940 #define V_ETXEOPCNT(x) ((x) << S_ETXEOPCNT) 11941 #define G_ETXEOPCNT(x) (((x) >> S_ETXEOPCNT) & M_ETXEOPCNT) 11942 11943 #define S_ETXPLDSOPCNT 20 11944 #define M_ETXPLDSOPCNT 0xfU 11945 #define V_ETXPLDSOPCNT(x) ((x) << S_ETXPLDSOPCNT) 11946 #define G_ETXPLDSOPCNT(x) (((x) >> S_ETXPLDSOPCNT) & M_ETXPLDSOPCNT) 11947 11948 #define S_ETXPLDEOPCNT 16 11949 #define M_ETXPLDEOPCNT 0xfU 11950 #define V_ETXPLDEOPCNT(x) ((x) << S_ETXPLDEOPCNT) 11951 #define G_ETXPLDEOPCNT(x) (((x) >> S_ETXPLDEOPCNT) & M_ETXPLDEOPCNT) 11952 11953 #define S_ERXSOPCNT 12 11954 #define M_ERXSOPCNT 0xfU 11955 #define V_ERXSOPCNT(x) ((x) << S_ERXSOPCNT) 11956 #define G_ERXSOPCNT(x) (((x) >> S_ERXSOPCNT) & M_ERXSOPCNT) 11957 11958 #define S_ERXEOPCNT 8 11959 #define M_ERXEOPCNT 0xfU 11960 #define V_ERXEOPCNT(x) ((x) << S_ERXEOPCNT) 11961 #define G_ERXEOPCNT(x) (((x) >> S_ERXEOPCNT) & M_ERXEOPCNT) 11962 11963 #define S_ERXPLDSOPCNT 4 11964 #define M_ERXPLDSOPCNT 0xfU 11965 #define V_ERXPLDSOPCNT(x) ((x) << S_ERXPLDSOPCNT) 11966 #define G_ERXPLDSOPCNT(x) (((x) >> S_ERXPLDSOPCNT) & M_ERXPLDSOPCNT) 11967 11968 #define S_ERXPLDEOPCNT 0 11969 #define M_ERXPLDEOPCNT 0xfU 11970 #define V_ERXPLDEOPCNT(x) ((x) << S_ERXPLDEOPCNT) 11971 #define G_ERXPLDEOPCNT(x) (((x) >> S_ERXPLDEOPCNT) & M_ERXPLDEOPCNT) 11972 11973 #define A_TP_DBG_ESIDE_PKT1 0x131 11974 #define A_TP_DBG_ESIDE_PKT2 0x132 11975 #define A_TP_DBG_ESIDE_PKT3 0x133 11976 #define A_TP_DBG_ESIDE_FIFO0 0x134 11977 11978 #define S_PLDRXCSUMVALID1 31 11979 #define V_PLDRXCSUMVALID1(x) ((x) << S_PLDRXCSUMVALID1) 11980 #define F_PLDRXCSUMVALID1 V_PLDRXCSUMVALID1(1U) 11981 11982 #define S_PLDRXZEROPSRDY1 30 11983 #define V_PLDRXZEROPSRDY1(x) ((x) << S_PLDRXZEROPSRDY1) 11984 #define F_PLDRXZEROPSRDY1 V_PLDRXZEROPSRDY1(1U) 11985 11986 #define S_PLDRXVALID1 29 11987 #define V_PLDRXVALID1(x) ((x) << S_PLDRXVALID1) 11988 #define F_PLDRXVALID1 V_PLDRXVALID1(1U) 11989 11990 #define S_TCPRXVALID1 28 11991 #define V_TCPRXVALID1(x) ((x) << S_TCPRXVALID1) 11992 #define F_TCPRXVALID1 V_TCPRXVALID1(1U) 11993 11994 #define S_IPRXVALID1 27 11995 #define V_IPRXVALID1(x) ((x) << S_IPRXVALID1) 11996 #define F_IPRXVALID1 V_IPRXVALID1(1U) 11997 11998 #define S_ETHRXVALID1 26 11999 #define V_ETHRXVALID1(x) ((x) << S_ETHRXVALID1) 12000 #define F_ETHRXVALID1 V_ETHRXVALID1(1U) 12001 12002 #define S_CPLRXVALID1 25 12003 #define V_CPLRXVALID1(x) ((x) << S_CPLRXVALID1) 12004 #define F_CPLRXVALID1 V_CPLRXVALID1(1U) 12005 12006 #define S_FSTATIC1 24 12007 #define V_FSTATIC1(x) ((x) << S_FSTATIC1) 12008 #define F_FSTATIC1 V_FSTATIC1(1U) 12009 12010 #define S_ERRORSRDY1 23 12011 #define V_ERRORSRDY1(x) ((x) << S_ERRORSRDY1) 12012 #define F_ERRORSRDY1 V_ERRORSRDY1(1U) 12013 12014 #define S_PLDTXSRDY1 22 12015 #define V_PLDTXSRDY1(x) ((x) << S_PLDTXSRDY1) 12016 #define F_PLDTXSRDY1 V_PLDTXSRDY1(1U) 12017 12018 #define S_DBVLD1 21 12019 #define V_DBVLD1(x) ((x) << S_DBVLD1) 12020 #define F_DBVLD1 V_DBVLD1(1U) 12021 12022 #define S_PLDTXVALID1 20 12023 #define V_PLDTXVALID1(x) ((x) << S_PLDTXVALID1) 12024 #define F_PLDTXVALID1 V_PLDTXVALID1(1U) 12025 12026 #define S_ETXVALID1 19 12027 #define V_ETXVALID1(x) ((x) << S_ETXVALID1) 12028 #define F_ETXVALID1 V_ETXVALID1(1U) 12029 12030 #define S_ETXFULL1 18 12031 #define V_ETXFULL1(x) ((x) << S_ETXFULL1) 12032 #define F_ETXFULL1 V_ETXFULL1(1U) 12033 12034 #define S_ERXVALID1 17 12035 #define V_ERXVALID1(x) ((x) << S_ERXVALID1) 12036 #define F_ERXVALID1 V_ERXVALID1(1U) 12037 12038 #define S_ERXFULL1 16 12039 #define V_ERXFULL1(x) ((x) << S_ERXFULL1) 12040 #define F_ERXFULL1 V_ERXFULL1(1U) 12041 12042 #define S_PLDRXCSUMVALID0 15 12043 #define V_PLDRXCSUMVALID0(x) ((x) << S_PLDRXCSUMVALID0) 12044 #define F_PLDRXCSUMVALID0 V_PLDRXCSUMVALID0(1U) 12045 12046 #define S_PLDRXZEROPSRDY0 14 12047 #define V_PLDRXZEROPSRDY0(x) ((x) << S_PLDRXZEROPSRDY0) 12048 #define F_PLDRXZEROPSRDY0 V_PLDRXZEROPSRDY0(1U) 12049 12050 #define S_PLDRXVALID0 13 12051 #define V_PLDRXVALID0(x) ((x) << S_PLDRXVALID0) 12052 #define F_PLDRXVALID0 V_PLDRXVALID0(1U) 12053 12054 #define S_TCPRXVALID0 12 12055 #define V_TCPRXVALID0(x) ((x) << S_TCPRXVALID0) 12056 #define F_TCPRXVALID0 V_TCPRXVALID0(1U) 12057 12058 #define S_IPRXVALID0 11 12059 #define V_IPRXVALID0(x) ((x) << S_IPRXVALID0) 12060 #define F_IPRXVALID0 V_IPRXVALID0(1U) 12061 12062 #define S_ETHRXVALID0 10 12063 #define V_ETHRXVALID0(x) ((x) << S_ETHRXVALID0) 12064 #define F_ETHRXVALID0 V_ETHRXVALID0(1U) 12065 12066 #define S_CPLRXVALID0 9 12067 #define V_CPLRXVALID0(x) ((x) << S_CPLRXVALID0) 12068 #define F_CPLRXVALID0 V_CPLRXVALID0(1U) 12069 12070 #define S_FSTATIC0 8 12071 #define V_FSTATIC0(x) ((x) << S_FSTATIC0) 12072 #define F_FSTATIC0 V_FSTATIC0(1U) 12073 12074 #define S_ERRORSRDY0 7 12075 #define V_ERRORSRDY0(x) ((x) << S_ERRORSRDY0) 12076 #define F_ERRORSRDY0 V_ERRORSRDY0(1U) 12077 12078 #define S_PLDTXSRDY0 6 12079 #define V_PLDTXSRDY0(x) ((x) << S_PLDTXSRDY0) 12080 #define F_PLDTXSRDY0 V_PLDTXSRDY0(1U) 12081 12082 #define S_DBVLD0 5 12083 #define V_DBVLD0(x) ((x) << S_DBVLD0) 12084 #define F_DBVLD0 V_DBVLD0(1U) 12085 12086 #define S_PLDTXVALID0 4 12087 #define V_PLDTXVALID0(x) ((x) << S_PLDTXVALID0) 12088 #define F_PLDTXVALID0 V_PLDTXVALID0(1U) 12089 12090 #define S_ETXVALID0 3 12091 #define V_ETXVALID0(x) ((x) << S_ETXVALID0) 12092 #define F_ETXVALID0 V_ETXVALID0(1U) 12093 12094 #define S_ETXFULL0 2 12095 #define V_ETXFULL0(x) ((x) << S_ETXFULL0) 12096 #define F_ETXFULL0 V_ETXFULL0(1U) 12097 12098 #define S_ERXVALID0 1 12099 #define V_ERXVALID0(x) ((x) << S_ERXVALID0) 12100 #define F_ERXVALID0 V_ERXVALID0(1U) 12101 12102 #define S_ERXFULL0 0 12103 #define V_ERXFULL0(x) ((x) << S_ERXFULL0) 12104 #define F_ERXFULL0 V_ERXFULL0(1U) 12105 12106 #define A_TP_DBG_ESIDE_FIFO1 0x135 12107 12108 #define S_PLDRXCSUMVALID3 31 12109 #define V_PLDRXCSUMVALID3(x) ((x) << S_PLDRXCSUMVALID3) 12110 #define F_PLDRXCSUMVALID3 V_PLDRXCSUMVALID3(1U) 12111 12112 #define S_PLDRXZEROPSRDY3 30 12113 #define V_PLDRXZEROPSRDY3(x) ((x) << S_PLDRXZEROPSRDY3) 12114 #define F_PLDRXZEROPSRDY3 V_PLDRXZEROPSRDY3(1U) 12115 12116 #define S_PLDRXVALID3 29 12117 #define V_PLDRXVALID3(x) ((x) << S_PLDRXVALID3) 12118 #define F_PLDRXVALID3 V_PLDRXVALID3(1U) 12119 12120 #define S_TCPRXVALID3 28 12121 #define V_TCPRXVALID3(x) ((x) << S_TCPRXVALID3) 12122 #define F_TCPRXVALID3 V_TCPRXVALID3(1U) 12123 12124 #define S_IPRXVALID3 27 12125 #define V_IPRXVALID3(x) ((x) << S_IPRXVALID3) 12126 #define F_IPRXVALID3 V_IPRXVALID3(1U) 12127 12128 #define S_ETHRXVALID3 26 12129 #define V_ETHRXVALID3(x) ((x) << S_ETHRXVALID3) 12130 #define F_ETHRXVALID3 V_ETHRXVALID3(1U) 12131 12132 #define S_CPLRXVALID3 25 12133 #define V_CPLRXVALID3(x) ((x) << S_CPLRXVALID3) 12134 #define F_CPLRXVALID3 V_CPLRXVALID3(1U) 12135 12136 #define S_FSTATIC3 24 12137 #define V_FSTATIC3(x) ((x) << S_FSTATIC3) 12138 #define F_FSTATIC3 V_FSTATIC3(1U) 12139 12140 #define S_ERRORSRDY3 23 12141 #define V_ERRORSRDY3(x) ((x) << S_ERRORSRDY3) 12142 #define F_ERRORSRDY3 V_ERRORSRDY3(1U) 12143 12144 #define S_PLDTXSRDY3 22 12145 #define V_PLDTXSRDY3(x) ((x) << S_PLDTXSRDY3) 12146 #define F_PLDTXSRDY3 V_PLDTXSRDY3(1U) 12147 12148 #define S_DBVLD3 21 12149 #define V_DBVLD3(x) ((x) << S_DBVLD3) 12150 #define F_DBVLD3 V_DBVLD3(1U) 12151 12152 #define S_PLDTXVALID3 20 12153 #define V_PLDTXVALID3(x) ((x) << S_PLDTXVALID3) 12154 #define F_PLDTXVALID3 V_PLDTXVALID3(1U) 12155 12156 #define S_ETXVALID3 19 12157 #define V_ETXVALID3(x) ((x) << S_ETXVALID3) 12158 #define F_ETXVALID3 V_ETXVALID3(1U) 12159 12160 #define S_ETXFULL3 18 12161 #define V_ETXFULL3(x) ((x) << S_ETXFULL3) 12162 #define F_ETXFULL3 V_ETXFULL3(1U) 12163 12164 #define S_ERXVALID3 17 12165 #define V_ERXVALID3(x) ((x) << S_ERXVALID3) 12166 #define F_ERXVALID3 V_ERXVALID3(1U) 12167 12168 #define S_ERXFULL3 16 12169 #define V_ERXFULL3(x) ((x) << S_ERXFULL3) 12170 #define F_ERXFULL3 V_ERXFULL3(1U) 12171 12172 #define S_PLDRXCSUMVALID2 15 12173 #define V_PLDRXCSUMVALID2(x) ((x) << S_PLDRXCSUMVALID2) 12174 #define F_PLDRXCSUMVALID2 V_PLDRXCSUMVALID2(1U) 12175 12176 #define S_PLDRXZEROPSRDY2 14 12177 #define V_PLDRXZEROPSRDY2(x) ((x) << S_PLDRXZEROPSRDY2) 12178 #define F_PLDRXZEROPSRDY2 V_PLDRXZEROPSRDY2(1U) 12179 12180 #define S_PLDRXVALID2 13 12181 #define V_PLDRXVALID2(x) ((x) << S_PLDRXVALID2) 12182 #define F_PLDRXVALID2 V_PLDRXVALID2(1U) 12183 12184 #define S_TCPRXVALID2 12 12185 #define V_TCPRXVALID2(x) ((x) << S_TCPRXVALID2) 12186 #define F_TCPRXVALID2 V_TCPRXVALID2(1U) 12187 12188 #define S_IPRXVALID2 11 12189 #define V_IPRXVALID2(x) ((x) << S_IPRXVALID2) 12190 #define F_IPRXVALID2 V_IPRXVALID2(1U) 12191 12192 #define S_ETHRXVALID2 10 12193 #define V_ETHRXVALID2(x) ((x) << S_ETHRXVALID2) 12194 #define F_ETHRXVALID2 V_ETHRXVALID2(1U) 12195 12196 #define S_CPLRXVALID2 9 12197 #define V_CPLRXVALID2(x) ((x) << S_CPLRXVALID2) 12198 #define F_CPLRXVALID2 V_CPLRXVALID2(1U) 12199 12200 #define S_FSTATIC2 8 12201 #define V_FSTATIC2(x) ((x) << S_FSTATIC2) 12202 #define F_FSTATIC2 V_FSTATIC2(1U) 12203 12204 #define S_ERRORSRDY2 7 12205 #define V_ERRORSRDY2(x) ((x) << S_ERRORSRDY2) 12206 #define F_ERRORSRDY2 V_ERRORSRDY2(1U) 12207 12208 #define S_PLDTXSRDY2 6 12209 #define V_PLDTXSRDY2(x) ((x) << S_PLDTXSRDY2) 12210 #define F_PLDTXSRDY2 V_PLDTXSRDY2(1U) 12211 12212 #define S_DBVLD2 5 12213 #define V_DBVLD2(x) ((x) << S_DBVLD2) 12214 #define F_DBVLD2 V_DBVLD2(1U) 12215 12216 #define S_PLDTXVALID2 4 12217 #define V_PLDTXVALID2(x) ((x) << S_PLDTXVALID2) 12218 #define F_PLDTXVALID2 V_PLDTXVALID2(1U) 12219 12220 #define S_ETXVALID2 3 12221 #define V_ETXVALID2(x) ((x) << S_ETXVALID2) 12222 #define F_ETXVALID2 V_ETXVALID2(1U) 12223 12224 #define S_ETXFULL2 2 12225 #define V_ETXFULL2(x) ((x) << S_ETXFULL2) 12226 #define F_ETXFULL2 V_ETXFULL2(1U) 12227 12228 #define S_ERXVALID2 1 12229 #define V_ERXVALID2(x) ((x) << S_ERXVALID2) 12230 #define F_ERXVALID2 V_ERXVALID2(1U) 12231 12232 #define S_ERXFULL2 0 12233 #define V_ERXFULL2(x) ((x) << S_ERXFULL2) 12234 #define F_ERXFULL2 V_ERXFULL2(1U) 12235 12236 #define A_TP_DBG_ESIDE_DISP0 0x136 12237 12238 #define S_RESRDY 31 12239 #define V_RESRDY(x) ((x) << S_RESRDY) 12240 #define F_RESRDY V_RESRDY(1U) 12241 12242 #define S_STATE 28 12243 #define M_STATE 0x7U 12244 #define V_STATE(x) ((x) << S_STATE) 12245 #define G_STATE(x) (((x) >> S_STATE) & M_STATE) 12246 12247 #define S_FIFOCPL5RXVALID 27 12248 #define V_FIFOCPL5RXVALID(x) ((x) << S_FIFOCPL5RXVALID) 12249 #define F_FIFOCPL5RXVALID V_FIFOCPL5RXVALID(1U) 12250 12251 #define S_FIFOETHRXVALID 26 12252 #define V_FIFOETHRXVALID(x) ((x) << S_FIFOETHRXVALID) 12253 #define F_FIFOETHRXVALID V_FIFOETHRXVALID(1U) 12254 12255 #define S_FIFOETHRXSOCP 25 12256 #define V_FIFOETHRXSOCP(x) ((x) << S_FIFOETHRXSOCP) 12257 #define F_FIFOETHRXSOCP V_FIFOETHRXSOCP(1U) 12258 12259 #define S_FIFOPLDRXZEROP 24 12260 #define V_FIFOPLDRXZEROP(x) ((x) << S_FIFOPLDRXZEROP) 12261 #define F_FIFOPLDRXZEROP V_FIFOPLDRXZEROP(1U) 12262 12263 #define S_PLDRXVALID 23 12264 #define V_PLDRXVALID(x) ((x) << S_PLDRXVALID) 12265 #define F_PLDRXVALID V_PLDRXVALID(1U) 12266 12267 #define S_FIFOPLDRXZEROP_SRDY 22 12268 #define V_FIFOPLDRXZEROP_SRDY(x) ((x) << S_FIFOPLDRXZEROP_SRDY) 12269 #define F_FIFOPLDRXZEROP_SRDY V_FIFOPLDRXZEROP_SRDY(1U) 12270 12271 #define S_FIFOIPRXVALID 21 12272 #define V_FIFOIPRXVALID(x) ((x) << S_FIFOIPRXVALID) 12273 #define F_FIFOIPRXVALID V_FIFOIPRXVALID(1U) 12274 12275 #define S_FIFOTCPRXVALID 20 12276 #define V_FIFOTCPRXVALID(x) ((x) << S_FIFOTCPRXVALID) 12277 #define F_FIFOTCPRXVALID V_FIFOTCPRXVALID(1U) 12278 12279 #define S_PLDRXCSUMVALID 19 12280 #define V_PLDRXCSUMVALID(x) ((x) << S_PLDRXCSUMVALID) 12281 #define F_PLDRXCSUMVALID V_PLDRXCSUMVALID(1U) 12282 12283 #define S_FIFOIPCSUMSRDY 18 12284 #define V_FIFOIPCSUMSRDY(x) ((x) << S_FIFOIPCSUMSRDY) 12285 #define F_FIFOIPCSUMSRDY V_FIFOIPCSUMSRDY(1U) 12286 12287 #define S_FIFOIPPSEUDOCSUMSRDY 17 12288 #define V_FIFOIPPSEUDOCSUMSRDY(x) ((x) << S_FIFOIPPSEUDOCSUMSRDY) 12289 #define F_FIFOIPPSEUDOCSUMSRDY V_FIFOIPPSEUDOCSUMSRDY(1U) 12290 12291 #define S_FIFOTCPCSUMSRDY 16 12292 #define V_FIFOTCPCSUMSRDY(x) ((x) << S_FIFOTCPCSUMSRDY) 12293 #define F_FIFOTCPCSUMSRDY V_FIFOTCPCSUMSRDY(1U) 12294 12295 #define S_ESTATIC4 12 12296 #define M_ESTATIC4 0xfU 12297 #define V_ESTATIC4(x) ((x) << S_ESTATIC4) 12298 #define G_ESTATIC4(x) (((x) >> S_ESTATIC4) & M_ESTATIC4) 12299 12300 #define S_FIFOCPLSOCPCNT 10 12301 #define M_FIFOCPLSOCPCNT 0x3U 12302 #define V_FIFOCPLSOCPCNT(x) ((x) << S_FIFOCPLSOCPCNT) 12303 #define G_FIFOCPLSOCPCNT(x) (((x) >> S_FIFOCPLSOCPCNT) & M_FIFOCPLSOCPCNT) 12304 12305 #define S_FIFOETHSOCPCNT 8 12306 #define M_FIFOETHSOCPCNT 0x3U 12307 #define V_FIFOETHSOCPCNT(x) ((x) << S_FIFOETHSOCPCNT) 12308 #define G_FIFOETHSOCPCNT(x) (((x) >> S_FIFOETHSOCPCNT) & M_FIFOETHSOCPCNT) 12309 12310 #define S_FIFOIPSOCPCNT 6 12311 #define M_FIFOIPSOCPCNT 0x3U 12312 #define V_FIFOIPSOCPCNT(x) ((x) << S_FIFOIPSOCPCNT) 12313 #define G_FIFOIPSOCPCNT(x) (((x) >> S_FIFOIPSOCPCNT) & M_FIFOIPSOCPCNT) 12314 12315 #define S_FIFOTCPSOCPCNT 4 12316 #define M_FIFOTCPSOCPCNT 0x3U 12317 #define V_FIFOTCPSOCPCNT(x) ((x) << S_FIFOTCPSOCPCNT) 12318 #define G_FIFOTCPSOCPCNT(x) (((x) >> S_FIFOTCPSOCPCNT) & M_FIFOTCPSOCPCNT) 12319 12320 #define S_PLD_RXZEROP_CNT 2 12321 #define M_PLD_RXZEROP_CNT 0x3U 12322 #define V_PLD_RXZEROP_CNT(x) ((x) << S_PLD_RXZEROP_CNT) 12323 #define G_PLD_RXZEROP_CNT(x) (((x) >> S_PLD_RXZEROP_CNT) & M_PLD_RXZEROP_CNT) 12324 12325 #define S_ESTATIC6 1 12326 #define V_ESTATIC6(x) ((x) << S_ESTATIC6) 12327 #define F_ESTATIC6 V_ESTATIC6(1U) 12328 12329 #define S_TXFULL 0 12330 #define V_TXFULL(x) ((x) << S_TXFULL) 12331 #define F_TXFULL V_TXFULL(1U) 12332 12333 #define A_TP_DBG_ESIDE_DISP1 0x137 12334 #define A_TP_MAC_MATCH_MAP0 0x138 12335 12336 #define S_MAPVALUEWR 16 12337 #define M_MAPVALUEWR 0xffU 12338 #define V_MAPVALUEWR(x) ((x) << S_MAPVALUEWR) 12339 #define G_MAPVALUEWR(x) (((x) >> S_MAPVALUEWR) & M_MAPVALUEWR) 12340 12341 #define S_MAPINDEX 2 12342 #define M_MAPINDEX 0x1ffU 12343 #define V_MAPINDEX(x) ((x) << S_MAPINDEX) 12344 #define G_MAPINDEX(x) (((x) >> S_MAPINDEX) & M_MAPINDEX) 12345 12346 #define S_MAPREAD 1 12347 #define V_MAPREAD(x) ((x) << S_MAPREAD) 12348 #define F_MAPREAD V_MAPREAD(1U) 12349 12350 #define S_MAPWRITE 0 12351 #define V_MAPWRITE(x) ((x) << S_MAPWRITE) 12352 #define F_MAPWRITE V_MAPWRITE(1U) 12353 12354 #define A_TP_MAC_MATCH_MAP1 0x139 12355 12356 #define S_MAPVALUERD 0 12357 #define M_MAPVALUERD 0x1ffU 12358 #define V_MAPVALUERD(x) ((x) << S_MAPVALUERD) 12359 #define G_MAPVALUERD(x) (((x) >> S_MAPVALUERD) & M_MAPVALUERD) 12360 12361 #define A_TP_DBG_ESIDE_DISP2 0x13a 12362 #define A_TP_DBG_ESIDE_DISP3 0x13b 12363 #define A_TP_DBG_ESIDE_HDR0 0x13c 12364 12365 #define S_TCPSOPCNT 28 12366 #define M_TCPSOPCNT 0xfU 12367 #define V_TCPSOPCNT(x) ((x) << S_TCPSOPCNT) 12368 #define G_TCPSOPCNT(x) (((x) >> S_TCPSOPCNT) & M_TCPSOPCNT) 12369 12370 #define S_TCPEOPCNT 24 12371 #define M_TCPEOPCNT 0xfU 12372 #define V_TCPEOPCNT(x) ((x) << S_TCPEOPCNT) 12373 #define G_TCPEOPCNT(x) (((x) >> S_TCPEOPCNT) & M_TCPEOPCNT) 12374 12375 #define S_IPSOPCNT 20 12376 #define M_IPSOPCNT 0xfU 12377 #define V_IPSOPCNT(x) ((x) << S_IPSOPCNT) 12378 #define G_IPSOPCNT(x) (((x) >> S_IPSOPCNT) & M_IPSOPCNT) 12379 12380 #define S_IPEOPCNT 16 12381 #define M_IPEOPCNT 0xfU 12382 #define V_IPEOPCNT(x) ((x) << S_IPEOPCNT) 12383 #define G_IPEOPCNT(x) (((x) >> S_IPEOPCNT) & M_IPEOPCNT) 12384 12385 #define S_ETHSOPCNT 12 12386 #define M_ETHSOPCNT 0xfU 12387 #define V_ETHSOPCNT(x) ((x) << S_ETHSOPCNT) 12388 #define G_ETHSOPCNT(x) (((x) >> S_ETHSOPCNT) & M_ETHSOPCNT) 12389 12390 #define S_ETHEOPCNT 8 12391 #define M_ETHEOPCNT 0xfU 12392 #define V_ETHEOPCNT(x) ((x) << S_ETHEOPCNT) 12393 #define G_ETHEOPCNT(x) (((x) >> S_ETHEOPCNT) & M_ETHEOPCNT) 12394 12395 #define S_CPLSOPCNT 4 12396 #define M_CPLSOPCNT 0xfU 12397 #define V_CPLSOPCNT(x) ((x) << S_CPLSOPCNT) 12398 #define G_CPLSOPCNT(x) (((x) >> S_CPLSOPCNT) & M_CPLSOPCNT) 12399 12400 #define S_CPLEOPCNT 0 12401 #define M_CPLEOPCNT 0xfU 12402 #define V_CPLEOPCNT(x) ((x) << S_CPLEOPCNT) 12403 #define G_CPLEOPCNT(x) (((x) >> S_CPLEOPCNT) & M_CPLEOPCNT) 12404 12405 #define A_TP_DBG_ESIDE_HDR1 0x13d 12406 #define A_TP_DBG_ESIDE_HDR2 0x13e 12407 #define A_TP_DBG_ESIDE_HDR3 0x13f 12408 #define A_TP_VLAN_PRI_MAP 0x140 12409 12410 #define S_FRAGMENTATION 9 12411 #define V_FRAGMENTATION(x) ((x) << S_FRAGMENTATION) 12412 #define F_FRAGMENTATION V_FRAGMENTATION(1U) 12413 12414 #define S_MPSHITTYPE 8 12415 #define V_MPSHITTYPE(x) ((x) << S_MPSHITTYPE) 12416 #define F_MPSHITTYPE V_MPSHITTYPE(1U) 12417 12418 #define S_MACMATCH 7 12419 #define V_MACMATCH(x) ((x) << S_MACMATCH) 12420 #define F_MACMATCH V_MACMATCH(1U) 12421 12422 #define S_ETHERTYPE 6 12423 #define V_ETHERTYPE(x) ((x) << S_ETHERTYPE) 12424 #define F_ETHERTYPE V_ETHERTYPE(1U) 12425 12426 #define S_PROTOCOL 5 12427 #define V_PROTOCOL(x) ((x) << S_PROTOCOL) 12428 #define F_PROTOCOL V_PROTOCOL(1U) 12429 12430 #define S_TOS 4 12431 #define V_TOS(x) ((x) << S_TOS) 12432 #define F_TOS V_TOS(1U) 12433 12434 #define S_VLAN 3 12435 #define V_VLAN(x) ((x) << S_VLAN) 12436 #define F_VLAN V_VLAN(1U) 12437 12438 #define S_VNIC_ID 2 12439 #define V_VNIC_ID(x) ((x) << S_VNIC_ID) 12440 #define F_VNIC_ID V_VNIC_ID(1U) 12441 12442 #define S_PORT 1 12443 #define V_PORT(x) ((x) << S_PORT) 12444 #define F_PORT V_PORT(1U) 12445 12446 #define S_FCOE 0 12447 #define V_FCOE(x) ((x) << S_FCOE) 12448 #define F_FCOE V_FCOE(1U) 12449 12450 #define A_TP_INGRESS_CONFIG 0x141 12451 12452 #define S_OPAQUE_TYPE 16 12453 #define M_OPAQUE_TYPE 0xffffU 12454 #define V_OPAQUE_TYPE(x) ((x) << S_OPAQUE_TYPE) 12455 #define G_OPAQUE_TYPE(x) (((x) >> S_OPAQUE_TYPE) & M_OPAQUE_TYPE) 12456 12457 #define S_OPAQUE_RM 15 12458 #define V_OPAQUE_RM(x) ((x) << S_OPAQUE_RM) 12459 #define F_OPAQUE_RM V_OPAQUE_RM(1U) 12460 12461 #define S_OPAQUE_HDR_SIZE 14 12462 #define V_OPAQUE_HDR_SIZE(x) ((x) << S_OPAQUE_HDR_SIZE) 12463 #define F_OPAQUE_HDR_SIZE V_OPAQUE_HDR_SIZE(1U) 12464 12465 #define S_OPAQUE_RM_MAC_IN_MAC 13 12466 #define V_OPAQUE_RM_MAC_IN_MAC(x) ((x) << S_OPAQUE_RM_MAC_IN_MAC) 12467 #define F_OPAQUE_RM_MAC_IN_MAC V_OPAQUE_RM_MAC_IN_MAC(1U) 12468 12469 #define S_FCOE_TARGET 12 12470 #define V_FCOE_TARGET(x) ((x) << S_FCOE_TARGET) 12471 #define F_FCOE_TARGET V_FCOE_TARGET(1U) 12472 12473 #define S_VNIC 11 12474 #define V_VNIC(x) ((x) << S_VNIC) 12475 #define F_VNIC V_VNIC(1U) 12476 12477 #define S_CSUM_HAS_PSEUDO_HDR 10 12478 #define V_CSUM_HAS_PSEUDO_HDR(x) ((x) << S_CSUM_HAS_PSEUDO_HDR) 12479 #define F_CSUM_HAS_PSEUDO_HDR V_CSUM_HAS_PSEUDO_HDR(1U) 12480 12481 #define S_RM_OVLAN 9 12482 #define V_RM_OVLAN(x) ((x) << S_RM_OVLAN) 12483 #define F_RM_OVLAN V_RM_OVLAN(1U) 12484 12485 #define S_LOOKUPEVERYPKT 8 12486 #define V_LOOKUPEVERYPKT(x) ((x) << S_LOOKUPEVERYPKT) 12487 #define F_LOOKUPEVERYPKT V_LOOKUPEVERYPKT(1U) 12488 12489 #define S_IPV6_EXT_HDR_SKIP 0 12490 #define M_IPV6_EXT_HDR_SKIP 0xffU 12491 #define V_IPV6_EXT_HDR_SKIP(x) ((x) << S_IPV6_EXT_HDR_SKIP) 12492 #define G_IPV6_EXT_HDR_SKIP(x) \ 12493 (((x) >> S_IPV6_EXT_HDR_SKIP) & M_IPV6_EXT_HDR_SKIP) 12494 12495 #define A_TP_TX_DROP_CFG_CH2 0x142 12496 #define A_TP_TX_DROP_CFG_CH3 0x143 12497 #define A_TP_EGRESS_CONFIG 0x145 12498 12499 #define S_REWRITEFORCETOSIZE 0 12500 #define V_REWRITEFORCETOSIZE(x) ((x) << S_REWRITEFORCETOSIZE) 12501 #define F_REWRITEFORCETOSIZE V_REWRITEFORCETOSIZE(1U) 12502 12503 #define A_TP_EHDR_CONFIG_LO 0x146 12504 12505 #define S_CPLLIMIT 24 12506 #define M_CPLLIMIT 0xffU 12507 #define V_CPLLIMIT(x) ((x) << S_CPLLIMIT) 12508 #define G_CPLLIMIT(x) (((x) >> S_CPLLIMIT) & M_CPLLIMIT) 12509 12510 #define S_ETHLIMIT 16 12511 #define M_ETHLIMIT 0xffU 12512 #define V_ETHLIMIT(x) ((x) << S_ETHLIMIT) 12513 #define G_ETHLIMIT(x) (((x) >> S_ETHLIMIT) & M_ETHLIMIT) 12514 12515 #define S_IPLIMIT 8 12516 #define M_IPLIMIT 0xffU 12517 #define V_IPLIMIT(x) ((x) << S_IPLIMIT) 12518 #define G_IPLIMIT(x) (((x) >> S_IPLIMIT) & M_IPLIMIT) 12519 12520 #define S_TCPLIMIT 0 12521 #define M_TCPLIMIT 0xffU 12522 #define V_TCPLIMIT(x) ((x) << S_TCPLIMIT) 12523 #define G_TCPLIMIT(x) (((x) >> S_TCPLIMIT) & M_TCPLIMIT) 12524 12525 #define A_TP_EHDR_CONFIG_HI 0x147 12526 #define A_TP_DBG_ESIDE_INT 0x148 12527 12528 #define S_ERXSOP2X 28 12529 #define M_ERXSOP2X 0xfU 12530 #define V_ERXSOP2X(x) ((x) << S_ERXSOP2X) 12531 #define G_ERXSOP2X(x) (((x) >> S_ERXSOP2X) & M_ERXSOP2X) 12532 12533 #define S_ERXEOP2X 24 12534 #define M_ERXEOP2X 0xfU 12535 #define V_ERXEOP2X(x) ((x) << S_ERXEOP2X) 12536 #define G_ERXEOP2X(x) (((x) >> S_ERXEOP2X) & M_ERXEOP2X) 12537 12538 #define S_ERXVALID2X 20 12539 #define M_ERXVALID2X 0xfU 12540 #define V_ERXVALID2X(x) ((x) << S_ERXVALID2X) 12541 #define G_ERXVALID2X(x) (((x) >> S_ERXVALID2X) & M_ERXVALID2X) 12542 12543 #define S_ERXAFULL2X 16 12544 #define M_ERXAFULL2X 0xfU 12545 #define V_ERXAFULL2X(x) ((x) << S_ERXAFULL2X) 12546 #define G_ERXAFULL2X(x) (((x) >> S_ERXAFULL2X) & M_ERXAFULL2X) 12547 12548 #define S_PLD2XTXVALID 12 12549 #define M_PLD2XTXVALID 0xfU 12550 #define V_PLD2XTXVALID(x) ((x) << S_PLD2XTXVALID) 12551 #define G_PLD2XTXVALID(x) (((x) >> S_PLD2XTXVALID) & M_PLD2XTXVALID) 12552 12553 #define S_PLD2XTXAFULL 8 12554 #define M_PLD2XTXAFULL 0xfU 12555 #define V_PLD2XTXAFULL(x) ((x) << S_PLD2XTXAFULL) 12556 #define G_PLD2XTXAFULL(x) (((x) >> S_PLD2XTXAFULL) & M_PLD2XTXAFULL) 12557 12558 #define S_ERRORSRDY 7 12559 #define V_ERRORSRDY(x) ((x) << S_ERRORSRDY) 12560 #define F_ERRORSRDY V_ERRORSRDY(1U) 12561 12562 #define S_ERRORDRDY 6 12563 #define V_ERRORDRDY(x) ((x) << S_ERRORDRDY) 12564 #define F_ERRORDRDY V_ERRORDRDY(1U) 12565 12566 #define S_TCPOPSRDY 5 12567 #define V_TCPOPSRDY(x) ((x) << S_TCPOPSRDY) 12568 #define F_TCPOPSRDY V_TCPOPSRDY(1U) 12569 12570 #define S_TCPOPDRDY 4 12571 #define V_TCPOPDRDY(x) ((x) << S_TCPOPDRDY) 12572 #define F_TCPOPDRDY V_TCPOPDRDY(1U) 12573 12574 #define S_PLDTXSRDY 3 12575 #define V_PLDTXSRDY(x) ((x) << S_PLDTXSRDY) 12576 #define F_PLDTXSRDY V_PLDTXSRDY(1U) 12577 12578 #define S_PLDTXDRDY 2 12579 #define V_PLDTXDRDY(x) ((x) << S_PLDTXDRDY) 12580 #define F_PLDTXDRDY V_PLDTXDRDY(1U) 12581 12582 #define S_TCPOPTTXVALID 1 12583 #define V_TCPOPTTXVALID(x) ((x) << S_TCPOPTTXVALID) 12584 #define F_TCPOPTTXVALID V_TCPOPTTXVALID(1U) 12585 12586 #define S_TCPOPTTXFULL 0 12587 #define V_TCPOPTTXFULL(x) ((x) << S_TCPOPTTXFULL) 12588 #define F_TCPOPTTXFULL V_TCPOPTTXFULL(1U) 12589 12590 #define A_TP_DBG_ESIDE_DEMUX 0x149 12591 12592 #define S_EALLDONE 28 12593 #define M_EALLDONE 0xfU 12594 #define V_EALLDONE(x) ((x) << S_EALLDONE) 12595 #define G_EALLDONE(x) (((x) >> S_EALLDONE) & M_EALLDONE) 12596 12597 #define S_EFIFOPLDDONE 24 12598 #define M_EFIFOPLDDONE 0xfU 12599 #define V_EFIFOPLDDONE(x) ((x) << S_EFIFOPLDDONE) 12600 #define G_EFIFOPLDDONE(x) (((x) >> S_EFIFOPLDDONE) & M_EFIFOPLDDONE) 12601 12602 #define S_EDBDONE 20 12603 #define M_EDBDONE 0xfU 12604 #define V_EDBDONE(x) ((x) << S_EDBDONE) 12605 #define G_EDBDONE(x) (((x) >> S_EDBDONE) & M_EDBDONE) 12606 12607 #define S_EISSFIFODONE 16 12608 #define M_EISSFIFODONE 0xfU 12609 #define V_EISSFIFODONE(x) ((x) << S_EISSFIFODONE) 12610 #define G_EISSFIFODONE(x) (((x) >> S_EISSFIFODONE) & M_EISSFIFODONE) 12611 12612 #define S_EACKERRFIFODONE 12 12613 #define M_EACKERRFIFODONE 0xfU 12614 #define V_EACKERRFIFODONE(x) ((x) << S_EACKERRFIFODONE) 12615 #define G_EACKERRFIFODONE(x) (((x) >> S_EACKERRFIFODONE) & M_EACKERRFIFODONE) 12616 12617 #define S_EFIFOERRORDONE 8 12618 #define M_EFIFOERRORDONE 0xfU 12619 #define V_EFIFOERRORDONE(x) ((x) << S_EFIFOERRORDONE) 12620 #define G_EFIFOERRORDONE(x) (((x) >> S_EFIFOERRORDONE) & M_EFIFOERRORDONE) 12621 12622 #define S_ERXPKTATTRFIFOFDONE 4 12623 #define M_ERXPKTATTRFIFOFDONE 0xfU 12624 #define V_ERXPKTATTRFIFOFDONE(x) ((x) << S_ERXPKTATTRFIFOFDONE) 12625 #define G_ERXPKTATTRFIFOFDONE(x) \ 12626 (((x) >> S_ERXPKTATTRFIFOFDONE) & M_ERXPKTATTRFIFOFDONE) 12627 12628 #define S_ETCPOPDONE 0 12629 #define M_ETCPOPDONE 0xfU 12630 #define V_ETCPOPDONE(x) ((x) << S_ETCPOPDONE) 12631 #define G_ETCPOPDONE(x) (((x) >> S_ETCPOPDONE) & M_ETCPOPDONE) 12632 12633 #define A_TP_DBG_ESIDE_IN0 0x14a 12634 12635 #define S_RXVALID 31 12636 #define V_RXVALID(x) ((x) << S_RXVALID) 12637 #define F_RXVALID V_RXVALID(1U) 12638 12639 #define S_RXFULL 30 12640 #define V_RXFULL(x) ((x) << S_RXFULL) 12641 #define F_RXFULL V_RXFULL(1U) 12642 12643 #define S_RXSOCP 29 12644 #define V_RXSOCP(x) ((x) << S_RXSOCP) 12645 #define F_RXSOCP V_RXSOCP(1U) 12646 12647 #define S_RXEOP 28 12648 #define V_RXEOP(x) ((x) << S_RXEOP) 12649 #define F_RXEOP V_RXEOP(1U) 12650 12651 #define S_RXVALID_I 27 12652 #define V_RXVALID_I(x) ((x) << S_RXVALID_I) 12653 #define F_RXVALID_I V_RXVALID_I(1U) 12654 12655 #define S_RXFULL_I 26 12656 #define V_RXFULL_I(x) ((x) << S_RXFULL_I) 12657 #define F_RXFULL_I V_RXFULL_I(1U) 12658 12659 #define S_RXSOCP_I 25 12660 #define V_RXSOCP_I(x) ((x) << S_RXSOCP_I) 12661 #define F_RXSOCP_I V_RXSOCP_I(1U) 12662 12663 #define S_RXEOP_I 24 12664 #define V_RXEOP_I(x) ((x) << S_RXEOP_I) 12665 #define F_RXEOP_I V_RXEOP_I(1U) 12666 12667 #define S_RXVALID_I2 23 12668 #define V_RXVALID_I2(x) ((x) << S_RXVALID_I2) 12669 #define F_RXVALID_I2 V_RXVALID_I2(1U) 12670 12671 #define S_RXFULL_I2 22 12672 #define V_RXFULL_I2(x) ((x) << S_RXFULL_I2) 12673 #define F_RXFULL_I2 V_RXFULL_I2(1U) 12674 12675 #define S_RXSOCP_I2 21 12676 #define V_RXSOCP_I2(x) ((x) << S_RXSOCP_I2) 12677 #define F_RXSOCP_I2 V_RXSOCP_I2(1U) 12678 12679 #define S_RXEOP_I2 20 12680 #define V_RXEOP_I2(x) ((x) << S_RXEOP_I2) 12681 #define F_RXEOP_I2 V_RXEOP_I2(1U) 12682 12683 #define S_CT_MPA_TXVALID_FIFO 19 12684 #define V_CT_MPA_TXVALID_FIFO(x) ((x) << S_CT_MPA_TXVALID_FIFO) 12685 #define F_CT_MPA_TXVALID_FIFO V_CT_MPA_TXVALID_FIFO(1U) 12686 12687 #define S_CT_MPA_TXFULL_FIFO 18 12688 #define V_CT_MPA_TXFULL_FIFO(x) ((x) << S_CT_MPA_TXFULL_FIFO) 12689 #define F_CT_MPA_TXFULL_FIFO V_CT_MPA_TXFULL_FIFO(1U) 12690 12691 #define S_CT_MPA_TXVALID 17 12692 #define V_CT_MPA_TXVALID(x) ((x) << S_CT_MPA_TXVALID) 12693 #define F_CT_MPA_TXVALID V_CT_MPA_TXVALID(1U) 12694 12695 #define S_CT_MPA_TXFULL 16 12696 #define V_CT_MPA_TXFULL(x) ((x) << S_CT_MPA_TXFULL) 12697 #define F_CT_MPA_TXFULL V_CT_MPA_TXFULL(1U) 12698 12699 #define S_RXVALID_BUF 15 12700 #define V_RXVALID_BUF(x) ((x) << S_RXVALID_BUF) 12701 #define F_RXVALID_BUF V_RXVALID_BUF(1U) 12702 12703 #define S_RXFULL_BUF 14 12704 #define V_RXFULL_BUF(x) ((x) << S_RXFULL_BUF) 12705 #define F_RXFULL_BUF V_RXFULL_BUF(1U) 12706 12707 #define S_PLD_TXVALID 13 12708 #define V_PLD_TXVALID(x) ((x) << S_PLD_TXVALID) 12709 #define F_PLD_TXVALID V_PLD_TXVALID(1U) 12710 12711 #define S_PLD_TXFULL 12 12712 #define V_PLD_TXFULL(x) ((x) << S_PLD_TXFULL) 12713 #define F_PLD_TXFULL V_PLD_TXFULL(1U) 12714 12715 #define S_ISS_FIFO_SRDY 11 12716 #define V_ISS_FIFO_SRDY(x) ((x) << S_ISS_FIFO_SRDY) 12717 #define F_ISS_FIFO_SRDY V_ISS_FIFO_SRDY(1U) 12718 12719 #define S_ISS_FIFO_DRDY 10 12720 #define V_ISS_FIFO_DRDY(x) ((x) << S_ISS_FIFO_DRDY) 12721 #define F_ISS_FIFO_DRDY V_ISS_FIFO_DRDY(1U) 12722 12723 #define S_CT_TCP_OP_ISS_SRDY 9 12724 #define V_CT_TCP_OP_ISS_SRDY(x) ((x) << S_CT_TCP_OP_ISS_SRDY) 12725 #define F_CT_TCP_OP_ISS_SRDY V_CT_TCP_OP_ISS_SRDY(1U) 12726 12727 #define S_CT_TCP_OP_ISS_DRDY 8 12728 #define V_CT_TCP_OP_ISS_DRDY(x) ((x) << S_CT_TCP_OP_ISS_DRDY) 12729 #define F_CT_TCP_OP_ISS_DRDY V_CT_TCP_OP_ISS_DRDY(1U) 12730 12731 #define S_P2CSUMERROR_SRDY 7 12732 #define V_P2CSUMERROR_SRDY(x) ((x) << S_P2CSUMERROR_SRDY) 12733 #define F_P2CSUMERROR_SRDY V_P2CSUMERROR_SRDY(1U) 12734 12735 #define S_P2CSUMERROR_DRDY 6 12736 #define V_P2CSUMERROR_DRDY(x) ((x) << S_P2CSUMERROR_DRDY) 12737 #define F_P2CSUMERROR_DRDY V_P2CSUMERROR_DRDY(1U) 12738 12739 #define S_FIFO_ERROR_SRDY 5 12740 #define V_FIFO_ERROR_SRDY(x) ((x) << S_FIFO_ERROR_SRDY) 12741 #define F_FIFO_ERROR_SRDY V_FIFO_ERROR_SRDY(1U) 12742 12743 #define S_FIFO_ERROR_DRDY 4 12744 #define V_FIFO_ERROR_DRDY(x) ((x) << S_FIFO_ERROR_DRDY) 12745 #define F_FIFO_ERROR_DRDY V_FIFO_ERROR_DRDY(1U) 12746 12747 #define S_PLD_SRDY 3 12748 #define V_PLD_SRDY(x) ((x) << S_PLD_SRDY) 12749 #define F_PLD_SRDY V_PLD_SRDY(1U) 12750 12751 #define S_PLD_DRDY 2 12752 #define V_PLD_DRDY(x) ((x) << S_PLD_DRDY) 12753 #define F_PLD_DRDY V_PLD_DRDY(1U) 12754 12755 #define S_RX_PKT_ATTR_SRDY 1 12756 #define V_RX_PKT_ATTR_SRDY(x) ((x) << S_RX_PKT_ATTR_SRDY) 12757 #define F_RX_PKT_ATTR_SRDY V_RX_PKT_ATTR_SRDY(1U) 12758 12759 #define S_RX_PKT_ATTR_DRDY 0 12760 #define V_RX_PKT_ATTR_DRDY(x) ((x) << S_RX_PKT_ATTR_DRDY) 12761 #define F_RX_PKT_ATTR_DRDY V_RX_PKT_ATTR_DRDY(1U) 12762 12763 #define A_TP_DBG_ESIDE_IN1 0x14b 12764 #define A_TP_DBG_ESIDE_IN2 0x14c 12765 #define A_TP_DBG_ESIDE_IN3 0x14d 12766 #define A_TP_DBG_ESIDE_FRM 0x14e 12767 12768 #define S_ERX2XERROR 28 12769 #define M_ERX2XERROR 0xfU 12770 #define V_ERX2XERROR(x) ((x) << S_ERX2XERROR) 12771 #define G_ERX2XERROR(x) (((x) >> S_ERX2XERROR) & M_ERX2XERROR) 12772 12773 #define S_EPLDTX2XERROR 24 12774 #define M_EPLDTX2XERROR 0xfU 12775 #define V_EPLDTX2XERROR(x) ((x) << S_EPLDTX2XERROR) 12776 #define G_EPLDTX2XERROR(x) (((x) >> S_EPLDTX2XERROR) & M_EPLDTX2XERROR) 12777 12778 #define S_ETXERROR 20 12779 #define M_ETXERROR 0xfU 12780 #define V_ETXERROR(x) ((x) << S_ETXERROR) 12781 #define G_ETXERROR(x) (((x) >> S_ETXERROR) & M_ETXERROR) 12782 12783 #define S_EPLDRXERROR 16 12784 #define M_EPLDRXERROR 0xfU 12785 #define V_EPLDRXERROR(x) ((x) << S_EPLDRXERROR) 12786 #define G_EPLDRXERROR(x) (((x) >> S_EPLDRXERROR) & M_EPLDRXERROR) 12787 12788 #define S_ERXSIZEERROR3 12 12789 #define M_ERXSIZEERROR3 0xfU 12790 #define V_ERXSIZEERROR3(x) ((x) << S_ERXSIZEERROR3) 12791 #define G_ERXSIZEERROR3(x) (((x) >> S_ERXSIZEERROR3) & M_ERXSIZEERROR3) 12792 12793 #define S_ERXSIZEERROR2 8 12794 #define M_ERXSIZEERROR2 0xfU 12795 #define V_ERXSIZEERROR2(x) ((x) << S_ERXSIZEERROR2) 12796 #define G_ERXSIZEERROR2(x) (((x) >> S_ERXSIZEERROR2) & M_ERXSIZEERROR2) 12797 12798 #define S_ERXSIZEERROR1 4 12799 #define M_ERXSIZEERROR1 0xfU 12800 #define V_ERXSIZEERROR1(x) ((x) << S_ERXSIZEERROR1) 12801 #define G_ERXSIZEERROR1(x) (((x) >> S_ERXSIZEERROR1) & M_ERXSIZEERROR1) 12802 12803 #define S_ERXSIZEERROR0 0 12804 #define M_ERXSIZEERROR0 0xfU 12805 #define V_ERXSIZEERROR0(x) ((x) << S_ERXSIZEERROR0) 12806 #define G_ERXSIZEERROR0(x) (((x) >> S_ERXSIZEERROR0) & M_ERXSIZEERROR0) 12807 12808 #define A_TP_DBG_ESIDE_DRP 0x14f 12809 12810 #define S_RXDROP3 24 12811 #define M_RXDROP3 0xffU 12812 #define V_RXDROP3(x) ((x) << S_RXDROP3) 12813 #define G_RXDROP3(x) (((x) >> S_RXDROP3) & M_RXDROP3) 12814 12815 #define S_RXDROP2 16 12816 #define M_RXDROP2 0xffU 12817 #define V_RXDROP2(x) ((x) << S_RXDROP2) 12818 #define G_RXDROP2(x) (((x) >> S_RXDROP2) & M_RXDROP2) 12819 12820 #define S_RXDROP1 8 12821 #define M_RXDROP1 0xffU 12822 #define V_RXDROP1(x) ((x) << S_RXDROP1) 12823 #define G_RXDROP1(x) (((x) >> S_RXDROP1) & M_RXDROP1) 12824 12825 #define S_RXDROP0 0 12826 #define M_RXDROP0 0xffU 12827 #define V_RXDROP0(x) ((x) << S_RXDROP0) 12828 #define G_RXDROP0(x) (((x) >> S_RXDROP0) & M_RXDROP0) 12829 12830 #define A_TP_DBG_ESIDE_TX 0x150 12831 12832 #define S_ETXVALID 4 12833 #define M_ETXVALID 0xfU 12834 #define V_ETXVALID(x) ((x) << S_ETXVALID) 12835 #define G_ETXVALID(x) (((x) >> S_ETXVALID) & M_ETXVALID) 12836 12837 #define S_ETXFULL 0 12838 #define M_ETXFULL 0xfU 12839 #define V_ETXFULL(x) ((x) << S_ETXFULL) 12840 #define G_ETXFULL(x) (((x) >> S_ETXFULL) & M_ETXFULL) 12841 12842 #define A_TP_ESIDE_SVID_MASK 0x151 12843 #define A_TP_ESIDE_DVID_MASK 0x152 12844 #define A_TP_ESIDE_ALIGN_MASK 0x153 12845 12846 #define S_USE_LOOP_BIT 24 12847 #define V_USE_LOOP_BIT(x) ((x) << S_USE_LOOP_BIT) 12848 #define F_USE_LOOP_BIT V_USE_LOOP_BIT(1U) 12849 12850 #define S_LOOP_OFFSET 16 12851 #define M_LOOP_OFFSET 0xffU 12852 #define V_LOOP_OFFSET(x) ((x) << S_LOOP_OFFSET) 12853 #define G_LOOP_OFFSET(x) (((x) >> S_LOOP_OFFSET) & M_LOOP_OFFSET) 12854 12855 #define S_DVID_ID_OFFSET 8 12856 #define M_DVID_ID_OFFSET 0xffU 12857 #define V_DVID_ID_OFFSET(x) ((x) << S_DVID_ID_OFFSET) 12858 #define G_DVID_ID_OFFSET(x) (((x) >> S_DVID_ID_OFFSET) & M_DVID_ID_OFFSET) 12859 12860 #define S_SVID_ID_OFFSET 0 12861 #define M_SVID_ID_OFFSET 0xffU 12862 #define V_SVID_ID_OFFSET(x) ((x) << S_SVID_ID_OFFSET) 12863 #define G_SVID_ID_OFFSET(x) (((x) >> S_SVID_ID_OFFSET) & M_SVID_ID_OFFSET) 12864 12865 #define A_TP_DBG_CSIDE_RX0 0x230 12866 12867 #define S_CRXSOPCNT 28 12868 #define M_CRXSOPCNT 0xfU 12869 #define V_CRXSOPCNT(x) ((x) << S_CRXSOPCNT) 12870 #define G_CRXSOPCNT(x) (((x) >> S_CRXSOPCNT) & M_CRXSOPCNT) 12871 12872 #define S_CRXEOPCNT 24 12873 #define M_CRXEOPCNT 0xfU 12874 #define V_CRXEOPCNT(x) ((x) << S_CRXEOPCNT) 12875 #define G_CRXEOPCNT(x) (((x) >> S_CRXEOPCNT) & M_CRXEOPCNT) 12876 12877 #define S_CRXPLDSOPCNT 20 12878 #define M_CRXPLDSOPCNT 0xfU 12879 #define V_CRXPLDSOPCNT(x) ((x) << S_CRXPLDSOPCNT) 12880 #define G_CRXPLDSOPCNT(x) (((x) >> S_CRXPLDSOPCNT) & M_CRXPLDSOPCNT) 12881 12882 #define S_CRXPLDEOPCNT 16 12883 #define M_CRXPLDEOPCNT 0xfU 12884 #define V_CRXPLDEOPCNT(x) ((x) << S_CRXPLDEOPCNT) 12885 #define G_CRXPLDEOPCNT(x) (((x) >> S_CRXPLDEOPCNT) & M_CRXPLDEOPCNT) 12886 12887 #define S_CRXARBSOPCNT 12 12888 #define M_CRXARBSOPCNT 0xfU 12889 #define V_CRXARBSOPCNT(x) ((x) << S_CRXARBSOPCNT) 12890 #define G_CRXARBSOPCNT(x) (((x) >> S_CRXARBSOPCNT) & M_CRXARBSOPCNT) 12891 12892 #define S_CRXARBEOPCNT 8 12893 #define M_CRXARBEOPCNT 0xfU 12894 #define V_CRXARBEOPCNT(x) ((x) << S_CRXARBEOPCNT) 12895 #define G_CRXARBEOPCNT(x) (((x) >> S_CRXARBEOPCNT) & M_CRXARBEOPCNT) 12896 12897 #define S_CRXCPLSOPCNT 4 12898 #define M_CRXCPLSOPCNT 0xfU 12899 #define V_CRXCPLSOPCNT(x) ((x) << S_CRXCPLSOPCNT) 12900 #define G_CRXCPLSOPCNT(x) (((x) >> S_CRXCPLSOPCNT) & M_CRXCPLSOPCNT) 12901 12902 #define S_CRXCPLEOPCNT 0 12903 #define M_CRXCPLEOPCNT 0xfU 12904 #define V_CRXCPLEOPCNT(x) ((x) << S_CRXCPLEOPCNT) 12905 #define G_CRXCPLEOPCNT(x) (((x) >> S_CRXCPLEOPCNT) & M_CRXCPLEOPCNT) 12906 12907 #define A_TP_DBG_CSIDE_RX1 0x231 12908 #define A_TP_DBG_CSIDE_RX2 0x232 12909 #define A_TP_DBG_CSIDE_RX3 0x233 12910 #define A_TP_DBG_CSIDE_TX0 0x234 12911 12912 #define S_TXSOPCNT 28 12913 #define M_TXSOPCNT 0xfU 12914 #define V_TXSOPCNT(x) ((x) << S_TXSOPCNT) 12915 #define G_TXSOPCNT(x) (((x) >> S_TXSOPCNT) & M_TXSOPCNT) 12916 12917 #define S_TXEOPCNT 24 12918 #define M_TXEOPCNT 0xfU 12919 #define V_TXEOPCNT(x) ((x) << S_TXEOPCNT) 12920 #define G_TXEOPCNT(x) (((x) >> S_TXEOPCNT) & M_TXEOPCNT) 12921 12922 #define S_TXPLDSOPCNT 20 12923 #define M_TXPLDSOPCNT 0xfU 12924 #define V_TXPLDSOPCNT(x) ((x) << S_TXPLDSOPCNT) 12925 #define G_TXPLDSOPCNT(x) (((x) >> S_TXPLDSOPCNT) & M_TXPLDSOPCNT) 12926 12927 #define S_TXPLDEOPCNT 16 12928 #define M_TXPLDEOPCNT 0xfU 12929 #define V_TXPLDEOPCNT(x) ((x) << S_TXPLDEOPCNT) 12930 #define G_TXPLDEOPCNT(x) (((x) >> S_TXPLDEOPCNT) & M_TXPLDEOPCNT) 12931 12932 #define S_TXARBSOPCNT 12 12933 #define M_TXARBSOPCNT 0xfU 12934 #define V_TXARBSOPCNT(x) ((x) << S_TXARBSOPCNT) 12935 #define G_TXARBSOPCNT(x) (((x) >> S_TXARBSOPCNT) & M_TXARBSOPCNT) 12936 12937 #define S_TXARBEOPCNT 8 12938 #define M_TXARBEOPCNT 0xfU 12939 #define V_TXARBEOPCNT(x) ((x) << S_TXARBEOPCNT) 12940 #define G_TXARBEOPCNT(x) (((x) >> S_TXARBEOPCNT) & M_TXARBEOPCNT) 12941 12942 #define S_TXCPLSOPCNT 4 12943 #define M_TXCPLSOPCNT 0xfU 12944 #define V_TXCPLSOPCNT(x) ((x) << S_TXCPLSOPCNT) 12945 #define G_TXCPLSOPCNT(x) (((x) >> S_TXCPLSOPCNT) & M_TXCPLSOPCNT) 12946 12947 #define S_TXCPLEOPCNT 0 12948 #define M_TXCPLEOPCNT 0xfU 12949 #define V_TXCPLEOPCNT(x) ((x) << S_TXCPLEOPCNT) 12950 #define G_TXCPLEOPCNT(x) (((x) >> S_TXCPLEOPCNT) & M_TXCPLEOPCNT) 12951 12952 #define A_TP_DBG_CSIDE_TX1 0x235 12953 #define A_TP_DBG_CSIDE_TX2 0x236 12954 #define A_TP_DBG_CSIDE_TX3 0x237 12955 #define A_TP_DBG_CSIDE_FIFO0 0x238 12956 12957 #define S_PLD_RXZEROP_SRDY1 31 12958 #define V_PLD_RXZEROP_SRDY1(x) ((x) << S_PLD_RXZEROP_SRDY1) 12959 #define F_PLD_RXZEROP_SRDY1 V_PLD_RXZEROP_SRDY1(1U) 12960 12961 #define S_PLD_RXZEROP_DRDY1 30 12962 #define V_PLD_RXZEROP_DRDY1(x) ((x) << S_PLD_RXZEROP_DRDY1) 12963 #define F_PLD_RXZEROP_DRDY1 V_PLD_RXZEROP_DRDY1(1U) 12964 12965 #define S_PLD_TXZEROP_SRDY1 29 12966 #define V_PLD_TXZEROP_SRDY1(x) ((x) << S_PLD_TXZEROP_SRDY1) 12967 #define F_PLD_TXZEROP_SRDY1 V_PLD_TXZEROP_SRDY1(1U) 12968 12969 #define S_PLD_TXZEROP_DRDY1 28 12970 #define V_PLD_TXZEROP_DRDY1(x) ((x) << S_PLD_TXZEROP_DRDY1) 12971 #define F_PLD_TXZEROP_DRDY1 V_PLD_TXZEROP_DRDY1(1U) 12972 12973 #define S_PLD_TX_SRDY1 27 12974 #define V_PLD_TX_SRDY1(x) ((x) << S_PLD_TX_SRDY1) 12975 #define F_PLD_TX_SRDY1 V_PLD_TX_SRDY1(1U) 12976 12977 #define S_PLD_TX_DRDY1 26 12978 #define V_PLD_TX_DRDY1(x) ((x) << S_PLD_TX_DRDY1) 12979 #define F_PLD_TX_DRDY1 V_PLD_TX_DRDY1(1U) 12980 12981 #define S_ERROR_SRDY1 25 12982 #define V_ERROR_SRDY1(x) ((x) << S_ERROR_SRDY1) 12983 #define F_ERROR_SRDY1 V_ERROR_SRDY1(1U) 12984 12985 #define S_ERROR_DRDY1 24 12986 #define V_ERROR_DRDY1(x) ((x) << S_ERROR_DRDY1) 12987 #define F_ERROR_DRDY1 V_ERROR_DRDY1(1U) 12988 12989 #define S_DB_VLD1 23 12990 #define V_DB_VLD1(x) ((x) << S_DB_VLD1) 12991 #define F_DB_VLD1 V_DB_VLD1(1U) 12992 12993 #define S_DB_GT1 22 12994 #define V_DB_GT1(x) ((x) << S_DB_GT1) 12995 #define F_DB_GT1 V_DB_GT1(1U) 12996 12997 #define S_TXVALID1 21 12998 #define V_TXVALID1(x) ((x) << S_TXVALID1) 12999 #define F_TXVALID1 V_TXVALID1(1U) 13000 13001 #define S_TXFULL1 20 13002 #define V_TXFULL1(x) ((x) << S_TXFULL1) 13003 #define F_TXFULL1 V_TXFULL1(1U) 13004 13005 #define S_PLD_TXVALID1 19 13006 #define V_PLD_TXVALID1(x) ((x) << S_PLD_TXVALID1) 13007 #define F_PLD_TXVALID1 V_PLD_TXVALID1(1U) 13008 13009 #define S_PLD_TXFULL1 18 13010 #define V_PLD_TXFULL1(x) ((x) << S_PLD_TXFULL1) 13011 #define F_PLD_TXFULL1 V_PLD_TXFULL1(1U) 13012 13013 #define S_CPL5_TXVALID1 17 13014 #define V_CPL5_TXVALID1(x) ((x) << S_CPL5_TXVALID1) 13015 #define F_CPL5_TXVALID1 V_CPL5_TXVALID1(1U) 13016 13017 #define S_CPL5_TXFULL1 16 13018 #define V_CPL5_TXFULL1(x) ((x) << S_CPL5_TXFULL1) 13019 #define F_CPL5_TXFULL1 V_CPL5_TXFULL1(1U) 13020 13021 #define S_PLD_RXZEROP_SRDY0 15 13022 #define V_PLD_RXZEROP_SRDY0(x) ((x) << S_PLD_RXZEROP_SRDY0) 13023 #define F_PLD_RXZEROP_SRDY0 V_PLD_RXZEROP_SRDY0(1U) 13024 13025 #define S_PLD_RXZEROP_DRDY0 14 13026 #define V_PLD_RXZEROP_DRDY0(x) ((x) << S_PLD_RXZEROP_DRDY0) 13027 #define F_PLD_RXZEROP_DRDY0 V_PLD_RXZEROP_DRDY0(1U) 13028 13029 #define S_PLD_TXZEROP_SRDY0 13 13030 #define V_PLD_TXZEROP_SRDY0(x) ((x) << S_PLD_TXZEROP_SRDY0) 13031 #define F_PLD_TXZEROP_SRDY0 V_PLD_TXZEROP_SRDY0(1U) 13032 13033 #define S_PLD_TXZEROP_DRDY0 12 13034 #define V_PLD_TXZEROP_DRDY0(x) ((x) << S_PLD_TXZEROP_DRDY0) 13035 #define F_PLD_TXZEROP_DRDY0 V_PLD_TXZEROP_DRDY0(1U) 13036 13037 #define S_PLD_TX_SRDY0 11 13038 #define V_PLD_TX_SRDY0(x) ((x) << S_PLD_TX_SRDY0) 13039 #define F_PLD_TX_SRDY0 V_PLD_TX_SRDY0(1U) 13040 13041 #define S_PLD_TX_DRDY0 10 13042 #define V_PLD_TX_DRDY0(x) ((x) << S_PLD_TX_DRDY0) 13043 #define F_PLD_TX_DRDY0 V_PLD_TX_DRDY0(1U) 13044 13045 #define S_ERROR_SRDY0 9 13046 #define V_ERROR_SRDY0(x) ((x) << S_ERROR_SRDY0) 13047 #define F_ERROR_SRDY0 V_ERROR_SRDY0(1U) 13048 13049 #define S_ERROR_DRDY0 8 13050 #define V_ERROR_DRDY0(x) ((x) << S_ERROR_DRDY0) 13051 #define F_ERROR_DRDY0 V_ERROR_DRDY0(1U) 13052 13053 #define S_DB_VLD0 7 13054 #define V_DB_VLD0(x) ((x) << S_DB_VLD0) 13055 #define F_DB_VLD0 V_DB_VLD0(1U) 13056 13057 #define S_DB_GT0 6 13058 #define V_DB_GT0(x) ((x) << S_DB_GT0) 13059 #define F_DB_GT0 V_DB_GT0(1U) 13060 13061 #define S_TXVALID0 5 13062 #define V_TXVALID0(x) ((x) << S_TXVALID0) 13063 #define F_TXVALID0 V_TXVALID0(1U) 13064 13065 #define S_TXFULL0 4 13066 #define V_TXFULL0(x) ((x) << S_TXFULL0) 13067 #define F_TXFULL0 V_TXFULL0(1U) 13068 13069 #define S_PLD_TXVALID0 3 13070 #define V_PLD_TXVALID0(x) ((x) << S_PLD_TXVALID0) 13071 #define F_PLD_TXVALID0 V_PLD_TXVALID0(1U) 13072 13073 #define S_PLD_TXFULL0 2 13074 #define V_PLD_TXFULL0(x) ((x) << S_PLD_TXFULL0) 13075 #define F_PLD_TXFULL0 V_PLD_TXFULL0(1U) 13076 13077 #define S_CPL5_TXVALID0 1 13078 #define V_CPL5_TXVALID0(x) ((x) << S_CPL5_TXVALID0) 13079 #define F_CPL5_TXVALID0 V_CPL5_TXVALID0(1U) 13080 13081 #define S_CPL5_TXFULL0 0 13082 #define V_CPL5_TXFULL0(x) ((x) << S_CPL5_TXFULL0) 13083 #define F_CPL5_TXFULL0 V_CPL5_TXFULL0(1U) 13084 13085 #define A_TP_DBG_CSIDE_FIFO1 0x239 13086 13087 #define S_PLD_RXZEROP_SRDY3 31 13088 #define V_PLD_RXZEROP_SRDY3(x) ((x) << S_PLD_RXZEROP_SRDY3) 13089 #define F_PLD_RXZEROP_SRDY3 V_PLD_RXZEROP_SRDY3(1U) 13090 13091 #define S_PLD_RXZEROP_DRDY3 30 13092 #define V_PLD_RXZEROP_DRDY3(x) ((x) << S_PLD_RXZEROP_DRDY3) 13093 #define F_PLD_RXZEROP_DRDY3 V_PLD_RXZEROP_DRDY3(1U) 13094 13095 #define S_PLD_TXZEROP_SRDY3 29 13096 #define V_PLD_TXZEROP_SRDY3(x) ((x) << S_PLD_TXZEROP_SRDY3) 13097 #define F_PLD_TXZEROP_SRDY3 V_PLD_TXZEROP_SRDY3(1U) 13098 13099 #define S_PLD_TXZEROP_DRDY3 28 13100 #define V_PLD_TXZEROP_DRDY3(x) ((x) << S_PLD_TXZEROP_DRDY3) 13101 #define F_PLD_TXZEROP_DRDY3 V_PLD_TXZEROP_DRDY3(1U) 13102 13103 #define S_PLD_TX_SRDY3 27 13104 #define V_PLD_TX_SRDY3(x) ((x) << S_PLD_TX_SRDY3) 13105 #define F_PLD_TX_SRDY3 V_PLD_TX_SRDY3(1U) 13106 13107 #define S_PLD_TX_DRDY3 26 13108 #define V_PLD_TX_DRDY3(x) ((x) << S_PLD_TX_DRDY3) 13109 #define F_PLD_TX_DRDY3 V_PLD_TX_DRDY3(1U) 13110 13111 #define S_ERROR_SRDY3 25 13112 #define V_ERROR_SRDY3(x) ((x) << S_ERROR_SRDY3) 13113 #define F_ERROR_SRDY3 V_ERROR_SRDY3(1U) 13114 13115 #define S_ERROR_DRDY3 24 13116 #define V_ERROR_DRDY3(x) ((x) << S_ERROR_DRDY3) 13117 #define F_ERROR_DRDY3 V_ERROR_DRDY3(1U) 13118 13119 #define S_DB_VLD3 23 13120 #define V_DB_VLD3(x) ((x) << S_DB_VLD3) 13121 #define F_DB_VLD3 V_DB_VLD3(1U) 13122 13123 #define S_DB_GT3 22 13124 #define V_DB_GT3(x) ((x) << S_DB_GT3) 13125 #define F_DB_GT3 V_DB_GT3(1U) 13126 13127 #define S_TXVALID3 21 13128 #define V_TXVALID3(x) ((x) << S_TXVALID3) 13129 #define F_TXVALID3 V_TXVALID3(1U) 13130 13131 #define S_TXFULL3 20 13132 #define V_TXFULL3(x) ((x) << S_TXFULL3) 13133 #define F_TXFULL3 V_TXFULL3(1U) 13134 13135 #define S_PLD_TXVALID3 19 13136 #define V_PLD_TXVALID3(x) ((x) << S_PLD_TXVALID3) 13137 #define F_PLD_TXVALID3 V_PLD_TXVALID3(1U) 13138 13139 #define S_PLD_TXFULL3 18 13140 #define V_PLD_TXFULL3(x) ((x) << S_PLD_TXFULL3) 13141 #define F_PLD_TXFULL3 V_PLD_TXFULL3(1U) 13142 13143 #define S_CPL5_TXVALID3 17 13144 #define V_CPL5_TXVALID3(x) ((x) << S_CPL5_TXVALID3) 13145 #define F_CPL5_TXVALID3 V_CPL5_TXVALID3(1U) 13146 13147 #define S_CPL5_TXFULL3 16 13148 #define V_CPL5_TXFULL3(x) ((x) << S_CPL5_TXFULL3) 13149 #define F_CPL5_TXFULL3 V_CPL5_TXFULL3(1U) 13150 13151 #define S_PLD_RXZEROP_SRDY2 15 13152 #define V_PLD_RXZEROP_SRDY2(x) ((x) << S_PLD_RXZEROP_SRDY2) 13153 #define F_PLD_RXZEROP_SRDY2 V_PLD_RXZEROP_SRDY2(1U) 13154 13155 #define S_PLD_RXZEROP_DRDY2 14 13156 #define V_PLD_RXZEROP_DRDY2(x) ((x) << S_PLD_RXZEROP_DRDY2) 13157 #define F_PLD_RXZEROP_DRDY2 V_PLD_RXZEROP_DRDY2(1U) 13158 13159 #define S_PLD_TXZEROP_SRDY2 13 13160 #define V_PLD_TXZEROP_SRDY2(x) ((x) << S_PLD_TXZEROP_SRDY2) 13161 #define F_PLD_TXZEROP_SRDY2 V_PLD_TXZEROP_SRDY2(1U) 13162 13163 #define S_PLD_TXZEROP_DRDY2 12 13164 #define V_PLD_TXZEROP_DRDY2(x) ((x) << S_PLD_TXZEROP_DRDY2) 13165 #define F_PLD_TXZEROP_DRDY2 V_PLD_TXZEROP_DRDY2(1U) 13166 13167 #define S_PLD_TX_SRDY2 11 13168 #define V_PLD_TX_SRDY2(x) ((x) << S_PLD_TX_SRDY2) 13169 #define F_PLD_TX_SRDY2 V_PLD_TX_SRDY2(1U) 13170 13171 #define S_PLD_TX_DRDY2 10 13172 #define V_PLD_TX_DRDY2(x) ((x) << S_PLD_TX_DRDY2) 13173 #define F_PLD_TX_DRDY2 V_PLD_TX_DRDY2(1U) 13174 13175 #define S_ERROR_SRDY2 9 13176 #define V_ERROR_SRDY2(x) ((x) << S_ERROR_SRDY2) 13177 #define F_ERROR_SRDY2 V_ERROR_SRDY2(1U) 13178 13179 #define S_ERROR_DRDY2 8 13180 #define V_ERROR_DRDY2(x) ((x) << S_ERROR_DRDY2) 13181 #define F_ERROR_DRDY2 V_ERROR_DRDY2(1U) 13182 13183 #define S_DB_VLD2 7 13184 #define V_DB_VLD2(x) ((x) << S_DB_VLD2) 13185 #define F_DB_VLD2 V_DB_VLD2(1U) 13186 13187 #define S_DB_GT2 6 13188 #define V_DB_GT2(x) ((x) << S_DB_GT2) 13189 #define F_DB_GT2 V_DB_GT2(1U) 13190 13191 #define S_TXVALID2 5 13192 #define V_TXVALID2(x) ((x) << S_TXVALID2) 13193 #define F_TXVALID2 V_TXVALID2(1U) 13194 13195 #define S_TXFULL2 4 13196 #define V_TXFULL2(x) ((x) << S_TXFULL2) 13197 #define F_TXFULL2 V_TXFULL2(1U) 13198 13199 #define S_PLD_TXVALID2 3 13200 #define V_PLD_TXVALID2(x) ((x) << S_PLD_TXVALID2) 13201 #define F_PLD_TXVALID2 V_PLD_TXVALID2(1U) 13202 13203 #define S_PLD_TXFULL2 2 13204 #define V_PLD_TXFULL2(x) ((x) << S_PLD_TXFULL2) 13205 #define F_PLD_TXFULL2 V_PLD_TXFULL2(1U) 13206 13207 #define S_CPL5_TXVALID2 1 13208 #define V_CPL5_TXVALID2(x) ((x) << S_CPL5_TXVALID2) 13209 #define F_CPL5_TXVALID2 V_CPL5_TXVALID2(1U) 13210 13211 #define S_CPL5_TXFULL2 0 13212 #define V_CPL5_TXFULL2(x) ((x) << S_CPL5_TXFULL2) 13213 #define F_CPL5_TXFULL2 V_CPL5_TXFULL2(1U) 13214 13215 #define A_TP_DBG_CSIDE_DISP0 0x23a 13216 13217 #define S_CPL5RXVALID 27 13218 #define V_CPL5RXVALID(x) ((x) << S_CPL5RXVALID) 13219 #define F_CPL5RXVALID V_CPL5RXVALID(1U) 13220 13221 #define S_CSTATIC1 26 13222 #define V_CSTATIC1(x) ((x) << S_CSTATIC1) 13223 #define F_CSTATIC1 V_CSTATIC1(1U) 13224 13225 #define S_CSTATIC2 25 13226 #define V_CSTATIC2(x) ((x) << S_CSTATIC2) 13227 #define F_CSTATIC2 V_CSTATIC2(1U) 13228 13229 #define S_PLD_RXZEROP 24 13230 #define V_PLD_RXZEROP(x) ((x) << S_PLD_RXZEROP) 13231 #define F_PLD_RXZEROP V_PLD_RXZEROP(1U) 13232 13233 #define S_DDP_IN_PROGRESS 23 13234 #define V_DDP_IN_PROGRESS(x) ((x) << S_DDP_IN_PROGRESS) 13235 #define F_DDP_IN_PROGRESS V_DDP_IN_PROGRESS(1U) 13236 13237 #define S_PLD_RXZEROP_SRDY 22 13238 #define V_PLD_RXZEROP_SRDY(x) ((x) << S_PLD_RXZEROP_SRDY) 13239 #define F_PLD_RXZEROP_SRDY V_PLD_RXZEROP_SRDY(1U) 13240 13241 #define S_CSTATIC3 21 13242 #define V_CSTATIC3(x) ((x) << S_CSTATIC3) 13243 #define F_CSTATIC3 V_CSTATIC3(1U) 13244 13245 #define S_DDP_DRDY 20 13246 #define V_DDP_DRDY(x) ((x) << S_DDP_DRDY) 13247 #define F_DDP_DRDY V_DDP_DRDY(1U) 13248 13249 #define S_DDP_PRE_STATE 17 13250 #define M_DDP_PRE_STATE 0x7U 13251 #define V_DDP_PRE_STATE(x) ((x) << S_DDP_PRE_STATE) 13252 #define G_DDP_PRE_STATE(x) (((x) >> S_DDP_PRE_STATE) & M_DDP_PRE_STATE) 13253 13254 #define S_DDP_SRDY 16 13255 #define V_DDP_SRDY(x) ((x) << S_DDP_SRDY) 13256 #define F_DDP_SRDY V_DDP_SRDY(1U) 13257 13258 #define S_DDP_MSG_CODE 12 13259 #define M_DDP_MSG_CODE 0xfU 13260 #define V_DDP_MSG_CODE(x) ((x) << S_DDP_MSG_CODE) 13261 #define G_DDP_MSG_CODE(x) (((x) >> S_DDP_MSG_CODE) & M_DDP_MSG_CODE) 13262 13263 #define S_CPL5_SOCP_CNT 10 13264 #define M_CPL5_SOCP_CNT 0x3U 13265 #define V_CPL5_SOCP_CNT(x) ((x) << S_CPL5_SOCP_CNT) 13266 #define G_CPL5_SOCP_CNT(x) (((x) >> S_CPL5_SOCP_CNT) & M_CPL5_SOCP_CNT) 13267 13268 #define S_CSTATIC4 4 13269 #define M_CSTATIC4 0x3fU 13270 #define V_CSTATIC4(x) ((x) << S_CSTATIC4) 13271 #define G_CSTATIC4(x) (((x) >> S_CSTATIC4) & M_CSTATIC4) 13272 13273 #define S_CMD_SEL 1 13274 #define V_CMD_SEL(x) ((x) << S_CMD_SEL) 13275 #define F_CMD_SEL V_CMD_SEL(1U) 13276 13277 #define A_TP_DBG_CSIDE_DISP1 0x23b 13278 #define A_TP_DBG_CSIDE_DDP0 0x23c 13279 13280 #define S_DDPMSGLATEST7 28 13281 #define M_DDPMSGLATEST7 0xfU 13282 #define V_DDPMSGLATEST7(x) ((x) << S_DDPMSGLATEST7) 13283 #define G_DDPMSGLATEST7(x) (((x) >> S_DDPMSGLATEST7) & M_DDPMSGLATEST7) 13284 13285 #define S_DDPMSGLATEST6 24 13286 #define M_DDPMSGLATEST6 0xfU 13287 #define V_DDPMSGLATEST6(x) ((x) << S_DDPMSGLATEST6) 13288 #define G_DDPMSGLATEST6(x) (((x) >> S_DDPMSGLATEST6) & M_DDPMSGLATEST6) 13289 13290 #define S_DDPMSGLATEST5 20 13291 #define M_DDPMSGLATEST5 0xfU 13292 #define V_DDPMSGLATEST5(x) ((x) << S_DDPMSGLATEST5) 13293 #define G_DDPMSGLATEST5(x) (((x) >> S_DDPMSGLATEST5) & M_DDPMSGLATEST5) 13294 13295 #define S_DDPMSGLATEST4 16 13296 #define M_DDPMSGLATEST4 0xfU 13297 #define V_DDPMSGLATEST4(x) ((x) << S_DDPMSGLATEST4) 13298 #define G_DDPMSGLATEST4(x) (((x) >> S_DDPMSGLATEST4) & M_DDPMSGLATEST4) 13299 13300 #define S_DDPMSGLATEST3 12 13301 #define M_DDPMSGLATEST3 0xfU 13302 #define V_DDPMSGLATEST3(x) ((x) << S_DDPMSGLATEST3) 13303 #define G_DDPMSGLATEST3(x) (((x) >> S_DDPMSGLATEST3) & M_DDPMSGLATEST3) 13304 13305 #define S_DDPMSGLATEST2 8 13306 #define M_DDPMSGLATEST2 0xfU 13307 #define V_DDPMSGLATEST2(x) ((x) << S_DDPMSGLATEST2) 13308 #define G_DDPMSGLATEST2(x) (((x) >> S_DDPMSGLATEST2) & M_DDPMSGLATEST2) 13309 13310 #define S_DDPMSGLATEST1 4 13311 #define M_DDPMSGLATEST1 0xfU 13312 #define V_DDPMSGLATEST1(x) ((x) << S_DDPMSGLATEST1) 13313 #define G_DDPMSGLATEST1(x) (((x) >> S_DDPMSGLATEST1) & M_DDPMSGLATEST1) 13314 13315 #define S_DDPMSGLATEST0 0 13316 #define M_DDPMSGLATEST0 0xfU 13317 #define V_DDPMSGLATEST0(x) ((x) << S_DDPMSGLATEST0) 13318 #define G_DDPMSGLATEST0(x) (((x) >> S_DDPMSGLATEST0) & M_DDPMSGLATEST0) 13319 13320 #define A_TP_DBG_CSIDE_DDP1 0x23d 13321 #define A_TP_DBG_CSIDE_FRM 0x23e 13322 13323 #define S_CRX2XERROR 28 13324 #define M_CRX2XERROR 0xfU 13325 #define V_CRX2XERROR(x) ((x) << S_CRX2XERROR) 13326 #define G_CRX2XERROR(x) (((x) >> S_CRX2XERROR) & M_CRX2XERROR) 13327 13328 #define S_CPLDTX2XERROR 24 13329 #define M_CPLDTX2XERROR 0xfU 13330 #define V_CPLDTX2XERROR(x) ((x) << S_CPLDTX2XERROR) 13331 #define G_CPLDTX2XERROR(x) (((x) >> S_CPLDTX2XERROR) & M_CPLDTX2XERROR) 13332 13333 #define S_CTXERROR 22 13334 #define M_CTXERROR 0x3U 13335 #define V_CTXERROR(x) ((x) << S_CTXERROR) 13336 #define G_CTXERROR(x) (((x) >> S_CTXERROR) & M_CTXERROR) 13337 13338 #define S_CPLDRXERROR 20 13339 #define M_CPLDRXERROR 0x3U 13340 #define V_CPLDRXERROR(x) ((x) << S_CPLDRXERROR) 13341 #define G_CPLDRXERROR(x) (((x) >> S_CPLDRXERROR) & M_CPLDRXERROR) 13342 13343 #define S_CPLRXERROR 18 13344 #define M_CPLRXERROR 0x3U 13345 #define V_CPLRXERROR(x) ((x) << S_CPLRXERROR) 13346 #define G_CPLRXERROR(x) (((x) >> S_CPLRXERROR) & M_CPLRXERROR) 13347 13348 #define S_CPLTXERROR 16 13349 #define M_CPLTXERROR 0x3U 13350 #define V_CPLTXERROR(x) ((x) << S_CPLTXERROR) 13351 #define G_CPLTXERROR(x) (((x) >> S_CPLTXERROR) & M_CPLTXERROR) 13352 13353 #define S_CPRSERROR 0 13354 #define M_CPRSERROR 0xfU 13355 #define V_CPRSERROR(x) ((x) << S_CPRSERROR) 13356 #define G_CPRSERROR(x) (((x) >> S_CPRSERROR) & M_CPRSERROR) 13357 13358 #define A_TP_DBG_CSIDE_INT 0x23f 13359 13360 #define S_CRXVALID2X 28 13361 #define M_CRXVALID2X 0xfU 13362 #define V_CRXVALID2X(x) ((x) << S_CRXVALID2X) 13363 #define G_CRXVALID2X(x) (((x) >> S_CRXVALID2X) & M_CRXVALID2X) 13364 13365 #define S_CRXAFULL2X 24 13366 #define M_CRXAFULL2X 0xfU 13367 #define V_CRXAFULL2X(x) ((x) << S_CRXAFULL2X) 13368 #define G_CRXAFULL2X(x) (((x) >> S_CRXAFULL2X) & M_CRXAFULL2X) 13369 13370 #define S_CTXVALID2X 22 13371 #define M_CTXVALID2X 0x3U 13372 #define V_CTXVALID2X(x) ((x) << S_CTXVALID2X) 13373 #define G_CTXVALID2X(x) (((x) >> S_CTXVALID2X) & M_CTXVALID2X) 13374 13375 #define S_CTXAFULL2X 20 13376 #define M_CTXAFULL2X 0x3U 13377 #define V_CTXAFULL2X(x) ((x) << S_CTXAFULL2X) 13378 #define G_CTXAFULL2X(x) (((x) >> S_CTXAFULL2X) & M_CTXAFULL2X) 13379 13380 #define S_PLD2X_RXVALID 18 13381 #define M_PLD2X_RXVALID 0x3U 13382 #define V_PLD2X_RXVALID(x) ((x) << S_PLD2X_RXVALID) 13383 #define G_PLD2X_RXVALID(x) (((x) >> S_PLD2X_RXVALID) & M_PLD2X_RXVALID) 13384 13385 #define S_PLD2X_RXAFULL 16 13386 #define M_PLD2X_RXAFULL 0x3U 13387 #define V_PLD2X_RXAFULL(x) ((x) << S_PLD2X_RXAFULL) 13388 #define G_PLD2X_RXAFULL(x) (((x) >> S_PLD2X_RXAFULL) & M_PLD2X_RXAFULL) 13389 13390 #define S_CSIDE_DDP_VALID 14 13391 #define M_CSIDE_DDP_VALID 0x3U 13392 #define V_CSIDE_DDP_VALID(x) ((x) << S_CSIDE_DDP_VALID) 13393 #define G_CSIDE_DDP_VALID(x) (((x) >> S_CSIDE_DDP_VALID) & M_CSIDE_DDP_VALID) 13394 13395 #define S_DDP_AFULL 12 13396 #define M_DDP_AFULL 0x3U 13397 #define V_DDP_AFULL(x) ((x) << S_DDP_AFULL) 13398 #define G_DDP_AFULL(x) (((x) >> S_DDP_AFULL) & M_DDP_AFULL) 13399 13400 #define S_TRC_RXVALID 11 13401 #define V_TRC_RXVALID(x) ((x) << S_TRC_RXVALID) 13402 #define F_TRC_RXVALID V_TRC_RXVALID(1U) 13403 13404 #define S_TRC_RXFULL 10 13405 #define V_TRC_RXFULL(x) ((x) << S_TRC_RXFULL) 13406 #define F_TRC_RXFULL V_TRC_RXFULL(1U) 13407 13408 #define S_CPL5_TXVALID 9 13409 #define V_CPL5_TXVALID(x) ((x) << S_CPL5_TXVALID) 13410 #define F_CPL5_TXVALID V_CPL5_TXVALID(1U) 13411 13412 #define S_CPL5_TXFULL 8 13413 #define V_CPL5_TXFULL(x) ((x) << S_CPL5_TXFULL) 13414 #define F_CPL5_TXFULL V_CPL5_TXFULL(1U) 13415 13416 #define S_PLD2X_TXVALID 4 13417 #define M_PLD2X_TXVALID 0xfU 13418 #define V_PLD2X_TXVALID(x) ((x) << S_PLD2X_TXVALID) 13419 #define G_PLD2X_TXVALID(x) (((x) >> S_PLD2X_TXVALID) & M_PLD2X_TXVALID) 13420 13421 #define S_PLD2X_TXAFULL 0 13422 #define M_PLD2X_TXAFULL 0xfU 13423 #define V_PLD2X_TXAFULL(x) ((x) << S_PLD2X_TXAFULL) 13424 #define G_PLD2X_TXAFULL(x) (((x) >> S_PLD2X_TXAFULL) & M_PLD2X_TXAFULL) 13425 13426 #define A_TP_CHDR_CONFIG 0x240 13427 13428 #define S_CH1HIGH 24 13429 #define M_CH1HIGH 0xffU 13430 #define V_CH1HIGH(x) ((x) << S_CH1HIGH) 13431 #define G_CH1HIGH(x) (((x) >> S_CH1HIGH) & M_CH1HIGH) 13432 13433 #define S_CH1LOW 16 13434 #define M_CH1LOW 0xffU 13435 #define V_CH1LOW(x) ((x) << S_CH1LOW) 13436 #define G_CH1LOW(x) (((x) >> S_CH1LOW) & M_CH1LOW) 13437 13438 #define S_CH0HIGH 8 13439 #define M_CH0HIGH 0xffU 13440 #define V_CH0HIGH(x) ((x) << S_CH0HIGH) 13441 #define G_CH0HIGH(x) (((x) >> S_CH0HIGH) & M_CH0HIGH) 13442 13443 #define S_CH0LOW 0 13444 #define M_CH0LOW 0xffU 13445 #define V_CH0LOW(x) ((x) << S_CH0LOW) 13446 #define G_CH0LOW(x) (((x) >> S_CH0LOW) & M_CH0LOW) 13447 13448 #define A_TP_UTRN_CONFIG 0x241 13449 13450 #define S_CH2FIFOLIMIT 16 13451 #define M_CH2FIFOLIMIT 0xffU 13452 #define V_CH2FIFOLIMIT(x) ((x) << S_CH2FIFOLIMIT) 13453 #define G_CH2FIFOLIMIT(x) (((x) >> S_CH2FIFOLIMIT) & M_CH2FIFOLIMIT) 13454 13455 #define S_CH1FIFOLIMIT 8 13456 #define M_CH1FIFOLIMIT 0xffU 13457 #define V_CH1FIFOLIMIT(x) ((x) << S_CH1FIFOLIMIT) 13458 #define G_CH1FIFOLIMIT(x) (((x) >> S_CH1FIFOLIMIT) & M_CH1FIFOLIMIT) 13459 13460 #define S_CH0FIFOLIMIT 0 13461 #define M_CH0FIFOLIMIT 0xffU 13462 #define V_CH0FIFOLIMIT(x) ((x) << S_CH0FIFOLIMIT) 13463 #define G_CH0FIFOLIMIT(x) (((x) >> S_CH0FIFOLIMIT) & M_CH0FIFOLIMIT) 13464 13465 #define A_TP_CDSP_CONFIG 0x242 13466 13467 #define S_WRITEZEROEN 4 13468 #define V_WRITEZEROEN(x) ((x) << S_WRITEZEROEN) 13469 #define F_WRITEZEROEN V_WRITEZEROEN(1U) 13470 13471 #define S_WRITEZEROOP 0 13472 #define M_WRITEZEROOP 0xfU 13473 #define V_WRITEZEROOP(x) ((x) << S_WRITEZEROOP) 13474 #define G_WRITEZEROOP(x) (((x) >> S_WRITEZEROOP) & M_WRITEZEROOP) 13475 13476 #define A_TP_TRC_CONFIG 0x244 13477 13478 #define S_TRCRR 1 13479 #define V_TRCRR(x) ((x) << S_TRCRR) 13480 #define F_TRCRR V_TRCRR(1U) 13481 13482 #define S_TRCCH 0 13483 #define V_TRCCH(x) ((x) << S_TRCCH) 13484 #define F_TRCCH V_TRCCH(1U) 13485 13486 #define A_TP_TAG_CONFIG 0x245 13487 13488 #define S_ETAGTYPE 16 13489 #define M_ETAGTYPE 0xffffU 13490 #define V_ETAGTYPE(x) ((x) << S_ETAGTYPE) 13491 #define G_ETAGTYPE(x) (((x) >> S_ETAGTYPE) & M_ETAGTYPE) 13492 13493 #define A_TP_DBG_CSIDE_PRS 0x246 13494 13495 #define S_CPRSSTATE3 24 13496 #define M_CPRSSTATE3 0x7U 13497 #define V_CPRSSTATE3(x) ((x) << S_CPRSSTATE3) 13498 #define G_CPRSSTATE3(x) (((x) >> S_CPRSSTATE3) & M_CPRSSTATE3) 13499 13500 #define S_CPRSSTATE2 16 13501 #define M_CPRSSTATE2 0x7U 13502 #define V_CPRSSTATE2(x) ((x) << S_CPRSSTATE2) 13503 #define G_CPRSSTATE2(x) (((x) >> S_CPRSSTATE2) & M_CPRSSTATE2) 13504 13505 #define S_CPRSSTATE1 8 13506 #define M_CPRSSTATE1 0x7U 13507 #define V_CPRSSTATE1(x) ((x) << S_CPRSSTATE1) 13508 #define G_CPRSSTATE1(x) (((x) >> S_CPRSSTATE1) & M_CPRSSTATE1) 13509 13510 #define S_CPRSSTATE0 0 13511 #define M_CPRSSTATE0 0x7U 13512 #define V_CPRSSTATE0(x) ((x) << S_CPRSSTATE0) 13513 #define G_CPRSSTATE0(x) (((x) >> S_CPRSSTATE0) & M_CPRSSTATE0) 13514 13515 #define A_TP_DBG_CSIDE_DEMUX 0x247 13516 13517 #define S_CALLDONE 28 13518 #define M_CALLDONE 0xfU 13519 #define V_CALLDONE(x) ((x) << S_CALLDONE) 13520 #define G_CALLDONE(x) (((x) >> S_CALLDONE) & M_CALLDONE) 13521 13522 #define S_CTCPL5DONE 24 13523 #define M_CTCPL5DONE 0xfU 13524 #define V_CTCPL5DONE(x) ((x) << S_CTCPL5DONE) 13525 #define G_CTCPL5DONE(x) (((x) >> S_CTCPL5DONE) & M_CTCPL5DONE) 13526 13527 #define S_CTXZEROPDONE 20 13528 #define M_CTXZEROPDONE 0xfU 13529 #define V_CTXZEROPDONE(x) ((x) << S_CTXZEROPDONE) 13530 #define G_CTXZEROPDONE(x) (((x) >> S_CTXZEROPDONE) & M_CTXZEROPDONE) 13531 13532 #define S_CPLDDONE 16 13533 #define M_CPLDDONE 0xfU 13534 #define V_CPLDDONE(x) ((x) << S_CPLDDONE) 13535 #define G_CPLDDONE(x) (((x) >> S_CPLDDONE) & M_CPLDDONE) 13536 13537 #define S_CTTCPOPDONE 12 13538 #define M_CTTCPOPDONE 0xfU 13539 #define V_CTTCPOPDONE(x) ((x) << S_CTTCPOPDONE) 13540 #define G_CTTCPOPDONE(x) (((x) >> S_CTTCPOPDONE) & M_CTTCPOPDONE) 13541 13542 #define S_CDBDONE 8 13543 #define M_CDBDONE 0xfU 13544 #define V_CDBDONE(x) ((x) << S_CDBDONE) 13545 #define G_CDBDONE(x) (((x) >> S_CDBDONE) & M_CDBDONE) 13546 13547 #define S_CISSFIFODONE 4 13548 #define M_CISSFIFODONE 0xfU 13549 #define V_CISSFIFODONE(x) ((x) << S_CISSFIFODONE) 13550 #define G_CISSFIFODONE(x) (((x) >> S_CISSFIFODONE) & M_CISSFIFODONE) 13551 13552 #define S_CTXPKTCSUMDONE 0 13553 #define M_CTXPKTCSUMDONE 0xfU 13554 #define V_CTXPKTCSUMDONE(x) ((x) << S_CTXPKTCSUMDONE) 13555 #define G_CTXPKTCSUMDONE(x) (((x) >> S_CTXPKTCSUMDONE) & M_CTXPKTCSUMDONE) 13556 13557 #define A_TP_FIFO_CONFIG 0x8c0 13558 13559 #define S_CH1_OUTPUT 27 13560 #define M_CH1_OUTPUT 0x1fU 13561 #define V_CH1_OUTPUT(x) ((x) << S_CH1_OUTPUT) 13562 #define G_CH1_OUTPUT(x) (((x) >> S_CH1_OUTPUT) & M_CH1_OUTPUT) 13563 13564 #define S_CH2_OUTPUT 22 13565 #define M_CH2_OUTPUT 0x1fU 13566 #define V_CH2_OUTPUT(x) ((x) << S_CH2_OUTPUT) 13567 #define G_CH2_OUTPUT(x) (((x) >> S_CH2_OUTPUT) & M_CH2_OUTPUT) 13568 13569 #define S_STROBE1 16 13570 #define V_STROBE1(x) ((x) << S_STROBE1) 13571 #define F_STROBE1 V_STROBE1(1U) 13572 13573 #define S_CH1_INPUT 11 13574 #define M_CH1_INPUT 0x1fU 13575 #define V_CH1_INPUT(x) ((x) << S_CH1_INPUT) 13576 #define G_CH1_INPUT(x) (((x) >> S_CH1_INPUT) & M_CH1_INPUT) 13577 13578 #define S_CH2_INPUT 6 13579 #define M_CH2_INPUT 0x1fU 13580 #define V_CH2_INPUT(x) ((x) << S_CH2_INPUT) 13581 #define G_CH2_INPUT(x) (((x) >> S_CH2_INPUT) & M_CH2_INPUT) 13582 13583 #define S_CH3_INPUT 1 13584 #define M_CH3_INPUT 0x1fU 13585 #define V_CH3_INPUT(x) ((x) << S_CH3_INPUT) 13586 #define G_CH3_INPUT(x) (((x) >> S_CH3_INPUT) & M_CH3_INPUT) 13587 13588 #define S_STROBE0 0 13589 #define V_STROBE0(x) ((x) << S_STROBE0) 13590 #define F_STROBE0 V_STROBE0(1U) 13591 13592 #define A_TP_MIB_MAC_IN_ERR_0 0x0 13593 #define A_TP_MIB_MAC_IN_ERR_1 0x1 13594 #define A_TP_MIB_MAC_IN_ERR_2 0x2 13595 #define A_TP_MIB_MAC_IN_ERR_3 0x3 13596 #define A_TP_MIB_HDR_IN_ERR_0 0x4 13597 #define A_TP_MIB_HDR_IN_ERR_1 0x5 13598 #define A_TP_MIB_HDR_IN_ERR_2 0x6 13599 #define A_TP_MIB_HDR_IN_ERR_3 0x7 13600 #define A_TP_MIB_TCP_IN_ERR_0 0x8 13601 #define A_TP_MIB_TCP_IN_ERR_1 0x9 13602 #define A_TP_MIB_TCP_IN_ERR_2 0xa 13603 #define A_TP_MIB_TCP_IN_ERR_3 0xb 13604 #define A_TP_MIB_TCP_OUT_RST 0xc 13605 #define A_TP_MIB_TCP_IN_SEG_HI 0x10 13606 #define A_TP_MIB_TCP_IN_SEG_LO 0x11 13607 #define A_TP_MIB_TCP_OUT_SEG_HI 0x12 13608 #define A_TP_MIB_TCP_OUT_SEG_LO 0x13 13609 #define A_TP_MIB_TCP_RXT_SEG_HI 0x14 13610 #define A_TP_MIB_TCP_RXT_SEG_LO 0x15 13611 #define A_TP_MIB_TNL_CNG_DROP_0 0x18 13612 #define A_TP_MIB_TNL_CNG_DROP_1 0x19 13613 #define A_TP_MIB_TNL_CNG_DROP_2 0x1a 13614 #define A_TP_MIB_TNL_CNG_DROP_3 0x1b 13615 #define A_TP_MIB_OFD_CHN_DROP_0 0x1c 13616 #define A_TP_MIB_OFD_CHN_DROP_1 0x1d 13617 #define A_TP_MIB_OFD_CHN_DROP_2 0x1e 13618 #define A_TP_MIB_OFD_CHN_DROP_3 0x1f 13619 #define A_TP_MIB_TNL_OUT_PKT_0 0x20 13620 #define A_TP_MIB_TNL_OUT_PKT_1 0x21 13621 #define A_TP_MIB_TNL_OUT_PKT_2 0x22 13622 #define A_TP_MIB_TNL_OUT_PKT_3 0x23 13623 #define A_TP_MIB_TNL_IN_PKT_0 0x24 13624 #define A_TP_MIB_TNL_IN_PKT_1 0x25 13625 #define A_TP_MIB_TNL_IN_PKT_2 0x26 13626 #define A_TP_MIB_TNL_IN_PKT_3 0x27 13627 #define A_TP_MIB_TCP_V6IN_ERR_0 0x28 13628 #define A_TP_MIB_TCP_V6IN_ERR_1 0x29 13629 #define A_TP_MIB_TCP_V6IN_ERR_2 0x2a 13630 #define A_TP_MIB_TCP_V6IN_ERR_3 0x2b 13631 #define A_TP_MIB_TCP_V6OUT_RST 0x2c 13632 #define A_TP_MIB_TCP_V6IN_SEG_HI 0x30 13633 #define A_TP_MIB_TCP_V6IN_SEG_LO 0x31 13634 #define A_TP_MIB_TCP_V6OUT_SEG_HI 0x32 13635 #define A_TP_MIB_TCP_V6OUT_SEG_LO 0x33 13636 #define A_TP_MIB_TCP_V6RXT_SEG_HI 0x34 13637 #define A_TP_MIB_TCP_V6RXT_SEG_LO 0x35 13638 #define A_TP_MIB_OFD_ARP_DROP 0x36 13639 #define A_TP_MIB_OFD_DFR_DROP 0x37 13640 #define A_TP_MIB_CPL_IN_REQ_0 0x38 13641 #define A_TP_MIB_CPL_IN_REQ_1 0x39 13642 #define A_TP_MIB_CPL_IN_REQ_2 0x3a 13643 #define A_TP_MIB_CPL_IN_REQ_3 0x3b 13644 #define A_TP_MIB_CPL_OUT_RSP_0 0x3c 13645 #define A_TP_MIB_CPL_OUT_RSP_1 0x3d 13646 #define A_TP_MIB_CPL_OUT_RSP_2 0x3e 13647 #define A_TP_MIB_CPL_OUT_RSP_3 0x3f 13648 #define A_TP_MIB_TNL_LPBK_0 0x40 13649 #define A_TP_MIB_TNL_LPBK_1 0x41 13650 #define A_TP_MIB_TNL_LPBK_2 0x42 13651 #define A_TP_MIB_TNL_LPBK_3 0x43 13652 #define A_TP_MIB_TNL_DROP_0 0x44 13653 #define A_TP_MIB_TNL_DROP_1 0x45 13654 #define A_TP_MIB_TNL_DROP_2 0x46 13655 #define A_TP_MIB_TNL_DROP_3 0x47 13656 #define A_TP_MIB_FCOE_DDP_0 0x48 13657 #define A_TP_MIB_FCOE_DDP_1 0x49 13658 #define A_TP_MIB_FCOE_DDP_2 0x4a 13659 #define A_TP_MIB_FCOE_DDP_3 0x4b 13660 #define A_TP_MIB_FCOE_DROP_0 0x4c 13661 #define A_TP_MIB_FCOE_DROP_1 0x4d 13662 #define A_TP_MIB_FCOE_DROP_2 0x4e 13663 #define A_TP_MIB_FCOE_DROP_3 0x4f 13664 #define A_TP_MIB_FCOE_BYTE_0_HI 0x50 13665 #define A_TP_MIB_FCOE_BYTE_0_LO 0x51 13666 #define A_TP_MIB_FCOE_BYTE_1_HI 0x52 13667 #define A_TP_MIB_FCOE_BYTE_1_LO 0x53 13668 #define A_TP_MIB_FCOE_BYTE_2_HI 0x54 13669 #define A_TP_MIB_FCOE_BYTE_2_LO 0x55 13670 #define A_TP_MIB_FCOE_BYTE_3_HI 0x56 13671 #define A_TP_MIB_FCOE_BYTE_3_LO 0x57 13672 #define A_TP_MIB_OFD_VLN_DROP_0 0x58 13673 #define A_TP_MIB_OFD_VLN_DROP_1 0x59 13674 #define A_TP_MIB_OFD_VLN_DROP_2 0x5a 13675 #define A_TP_MIB_OFD_VLN_DROP_3 0x5b 13676 #define A_TP_MIB_USM_PKTS 0x5c 13677 #define A_TP_MIB_USM_DROP 0x5d 13678 #define A_TP_MIB_USM_BYTES_HI 0x5e 13679 #define A_TP_MIB_USM_BYTES_LO 0x5f 13680 #define A_TP_MIB_TID_DEL 0x60 13681 #define A_TP_MIB_TID_INV 0x61 13682 #define A_TP_MIB_TID_ACT 0x62 13683 #define A_TP_MIB_TID_PAS 0x63 13684 #define A_TP_MIB_RQE_DFR_MOD 0x64 13685 #define A_TP_MIB_RQE_DFR_PKT 0x65 13686 #define A_TP_MIB_CPL_OUT_ERR_0 0x68 13687 #define A_TP_MIB_CPL_OUT_ERR_1 0x69 13688 #define A_TP_MIB_CPL_OUT_ERR_2 0x6a 13689 #define A_TP_MIB_CPL_OUT_ERR_3 0x6b 13690 13691 /* registers for module ULP_TX */ 13692 #define ULP_TX_BASE_ADDR 0x8dc0 13693 13694 #define A_ULP_TX_CONFIG 0x8dc0 13695 13696 #define S_STAG_MIX_ENABLE 2 13697 #define V_STAG_MIX_ENABLE(x) ((x) << S_STAG_MIX_ENABLE) 13698 #define F_STAG_MIX_ENABLE V_STAG_MIX_ENABLE(1U) 13699 13700 #define S_STAGF_FIX_DISABLE 1 13701 #define V_STAGF_FIX_DISABLE(x) ((x) << S_STAGF_FIX_DISABLE) 13702 #define F_STAGF_FIX_DISABLE V_STAGF_FIX_DISABLE(1U) 13703 13704 #define S_EXTRA_TAG_INSERTION_ENABLE 0 13705 #define V_EXTRA_TAG_INSERTION_ENABLE(x) ((x) << S_EXTRA_TAG_INSERTION_ENABLE) 13706 #define F_EXTRA_TAG_INSERTION_ENABLE V_EXTRA_TAG_INSERTION_ENABLE(1U) 13707 13708 #define A_ULP_TX_PERR_INJECT 0x8dc4 13709 #define A_ULP_TX_INT_ENABLE 0x8dc8 13710 13711 #define S_PBL_BOUND_ERR_CH3 31 13712 #define V_PBL_BOUND_ERR_CH3(x) ((x) << S_PBL_BOUND_ERR_CH3) 13713 #define F_PBL_BOUND_ERR_CH3 V_PBL_BOUND_ERR_CH3(1U) 13714 13715 #define S_PBL_BOUND_ERR_CH2 30 13716 #define V_PBL_BOUND_ERR_CH2(x) ((x) << S_PBL_BOUND_ERR_CH2) 13717 #define F_PBL_BOUND_ERR_CH2 V_PBL_BOUND_ERR_CH2(1U) 13718 13719 #define S_PBL_BOUND_ERR_CH1 29 13720 #define V_PBL_BOUND_ERR_CH1(x) ((x) << S_PBL_BOUND_ERR_CH1) 13721 #define F_PBL_BOUND_ERR_CH1 V_PBL_BOUND_ERR_CH1(1U) 13722 13723 #define S_PBL_BOUND_ERR_CH0 28 13724 #define V_PBL_BOUND_ERR_CH0(x) ((x) << S_PBL_BOUND_ERR_CH0) 13725 #define F_PBL_BOUND_ERR_CH0 V_PBL_BOUND_ERR_CH0(1U) 13726 13727 #define S_SGE2ULP_FIFO_PERR_SET3 27 13728 #define V_SGE2ULP_FIFO_PERR_SET3(x) ((x) << S_SGE2ULP_FIFO_PERR_SET3) 13729 #define F_SGE2ULP_FIFO_PERR_SET3 V_SGE2ULP_FIFO_PERR_SET3(1U) 13730 13731 #define S_SGE2ULP_FIFO_PERR_SET2 26 13732 #define V_SGE2ULP_FIFO_PERR_SET2(x) ((x) << S_SGE2ULP_FIFO_PERR_SET2) 13733 #define F_SGE2ULP_FIFO_PERR_SET2 V_SGE2ULP_FIFO_PERR_SET2(1U) 13734 13735 #define S_SGE2ULP_FIFO_PERR_SET1 25 13736 #define V_SGE2ULP_FIFO_PERR_SET1(x) ((x) << S_SGE2ULP_FIFO_PERR_SET1) 13737 #define F_SGE2ULP_FIFO_PERR_SET1 V_SGE2ULP_FIFO_PERR_SET1(1U) 13738 13739 #define S_SGE2ULP_FIFO_PERR_SET0 24 13740 #define V_SGE2ULP_FIFO_PERR_SET0(x) ((x) << S_SGE2ULP_FIFO_PERR_SET0) 13741 #define F_SGE2ULP_FIFO_PERR_SET0 V_SGE2ULP_FIFO_PERR_SET0(1U) 13742 13743 #define S_CIM2ULP_FIFO_PERR_SET3 23 13744 #define V_CIM2ULP_FIFO_PERR_SET3(x) ((x) << S_CIM2ULP_FIFO_PERR_SET3) 13745 #define F_CIM2ULP_FIFO_PERR_SET3 V_CIM2ULP_FIFO_PERR_SET3(1U) 13746 13747 #define S_CIM2ULP_FIFO_PERR_SET2 22 13748 #define V_CIM2ULP_FIFO_PERR_SET2(x) ((x) << S_CIM2ULP_FIFO_PERR_SET2) 13749 #define F_CIM2ULP_FIFO_PERR_SET2 V_CIM2ULP_FIFO_PERR_SET2(1U) 13750 13751 #define S_CIM2ULP_FIFO_PERR_SET1 21 13752 #define V_CIM2ULP_FIFO_PERR_SET1(x) ((x) << S_CIM2ULP_FIFO_PERR_SET1) 13753 #define F_CIM2ULP_FIFO_PERR_SET1 V_CIM2ULP_FIFO_PERR_SET1(1U) 13754 13755 #define S_CIM2ULP_FIFO_PERR_SET0 20 13756 #define V_CIM2ULP_FIFO_PERR_SET0(x) ((x) << S_CIM2ULP_FIFO_PERR_SET0) 13757 #define F_CIM2ULP_FIFO_PERR_SET0 V_CIM2ULP_FIFO_PERR_SET0(1U) 13758 13759 #define S_CQE_FIFO_PERR_SET3 19 13760 #define V_CQE_FIFO_PERR_SET3(x) ((x) << S_CQE_FIFO_PERR_SET3) 13761 #define F_CQE_FIFO_PERR_SET3 V_CQE_FIFO_PERR_SET3(1U) 13762 13763 #define S_CQE_FIFO_PERR_SET2 18 13764 #define V_CQE_FIFO_PERR_SET2(x) ((x) << S_CQE_FIFO_PERR_SET2) 13765 #define F_CQE_FIFO_PERR_SET2 V_CQE_FIFO_PERR_SET2(1U) 13766 13767 #define S_CQE_FIFO_PERR_SET1 17 13768 #define V_CQE_FIFO_PERR_SET1(x) ((x) << S_CQE_FIFO_PERR_SET1) 13769 #define F_CQE_FIFO_PERR_SET1 V_CQE_FIFO_PERR_SET1(1U) 13770 13771 #define S_CQE_FIFO_PERR_SET0 16 13772 #define V_CQE_FIFO_PERR_SET0(x) ((x) << S_CQE_FIFO_PERR_SET0) 13773 #define F_CQE_FIFO_PERR_SET0 V_CQE_FIFO_PERR_SET0(1U) 13774 13775 #define S_PBL_FIFO_PERR_SET3 15 13776 #define V_PBL_FIFO_PERR_SET3(x) ((x) << S_PBL_FIFO_PERR_SET3) 13777 #define F_PBL_FIFO_PERR_SET3 V_PBL_FIFO_PERR_SET3(1U) 13778 13779 #define S_PBL_FIFO_PERR_SET2 14 13780 #define V_PBL_FIFO_PERR_SET2(x) ((x) << S_PBL_FIFO_PERR_SET2) 13781 #define F_PBL_FIFO_PERR_SET2 V_PBL_FIFO_PERR_SET2(1U) 13782 13783 #define S_PBL_FIFO_PERR_SET1 13 13784 #define V_PBL_FIFO_PERR_SET1(x) ((x) << S_PBL_FIFO_PERR_SET1) 13785 #define F_PBL_FIFO_PERR_SET1 V_PBL_FIFO_PERR_SET1(1U) 13786 13787 #define S_PBL_FIFO_PERR_SET0 12 13788 #define V_PBL_FIFO_PERR_SET0(x) ((x) << S_PBL_FIFO_PERR_SET0) 13789 #define F_PBL_FIFO_PERR_SET0 V_PBL_FIFO_PERR_SET0(1U) 13790 13791 #define S_CMD_FIFO_PERR_SET3 11 13792 #define V_CMD_FIFO_PERR_SET3(x) ((x) << S_CMD_FIFO_PERR_SET3) 13793 #define F_CMD_FIFO_PERR_SET3 V_CMD_FIFO_PERR_SET3(1U) 13794 13795 #define S_CMD_FIFO_PERR_SET2 10 13796 #define V_CMD_FIFO_PERR_SET2(x) ((x) << S_CMD_FIFO_PERR_SET2) 13797 #define F_CMD_FIFO_PERR_SET2 V_CMD_FIFO_PERR_SET2(1U) 13798 13799 #define S_CMD_FIFO_PERR_SET1 9 13800 #define V_CMD_FIFO_PERR_SET1(x) ((x) << S_CMD_FIFO_PERR_SET1) 13801 #define F_CMD_FIFO_PERR_SET1 V_CMD_FIFO_PERR_SET1(1U) 13802 13803 #define S_CMD_FIFO_PERR_SET0 8 13804 #define V_CMD_FIFO_PERR_SET0(x) ((x) << S_CMD_FIFO_PERR_SET0) 13805 #define F_CMD_FIFO_PERR_SET0 V_CMD_FIFO_PERR_SET0(1U) 13806 13807 #define S_LSO_HDR_SRAM_PERR_SET3 7 13808 #define V_LSO_HDR_SRAM_PERR_SET3(x) ((x) << S_LSO_HDR_SRAM_PERR_SET3) 13809 #define F_LSO_HDR_SRAM_PERR_SET3 V_LSO_HDR_SRAM_PERR_SET3(1U) 13810 13811 #define S_LSO_HDR_SRAM_PERR_SET2 6 13812 #define V_LSO_HDR_SRAM_PERR_SET2(x) ((x) << S_LSO_HDR_SRAM_PERR_SET2) 13813 #define F_LSO_HDR_SRAM_PERR_SET2 V_LSO_HDR_SRAM_PERR_SET2(1U) 13814 13815 #define S_LSO_HDR_SRAM_PERR_SET1 5 13816 #define V_LSO_HDR_SRAM_PERR_SET1(x) ((x) << S_LSO_HDR_SRAM_PERR_SET1) 13817 #define F_LSO_HDR_SRAM_PERR_SET1 V_LSO_HDR_SRAM_PERR_SET1(1U) 13818 13819 #define S_LSO_HDR_SRAM_PERR_SET0 4 13820 #define V_LSO_HDR_SRAM_PERR_SET0(x) ((x) << S_LSO_HDR_SRAM_PERR_SET0) 13821 #define F_LSO_HDR_SRAM_PERR_SET0 V_LSO_HDR_SRAM_PERR_SET0(1U) 13822 13823 #define S_IMM_DATA_PERR_SET_CH3 3 13824 #define V_IMM_DATA_PERR_SET_CH3(x) ((x) << S_IMM_DATA_PERR_SET_CH3) 13825 #define F_IMM_DATA_PERR_SET_CH3 V_IMM_DATA_PERR_SET_CH3(1U) 13826 13827 #define S_IMM_DATA_PERR_SET_CH2 2 13828 #define V_IMM_DATA_PERR_SET_CH2(x) ((x) << S_IMM_DATA_PERR_SET_CH2) 13829 #define F_IMM_DATA_PERR_SET_CH2 V_IMM_DATA_PERR_SET_CH2(1U) 13830 13831 #define S_IMM_DATA_PERR_SET_CH1 1 13832 #define V_IMM_DATA_PERR_SET_CH1(x) ((x) << S_IMM_DATA_PERR_SET_CH1) 13833 #define F_IMM_DATA_PERR_SET_CH1 V_IMM_DATA_PERR_SET_CH1(1U) 13834 13835 #define S_IMM_DATA_PERR_SET_CH0 0 13836 #define V_IMM_DATA_PERR_SET_CH0(x) ((x) << S_IMM_DATA_PERR_SET_CH0) 13837 #define F_IMM_DATA_PERR_SET_CH0 V_IMM_DATA_PERR_SET_CH0(1U) 13838 13839 #define A_ULP_TX_INT_CAUSE 0x8dcc 13840 #define A_ULP_TX_PERR_ENABLE 0x8dd0 13841 #define A_ULP_TX_TPT_LLIMIT 0x8dd4 13842 #define A_ULP_TX_TPT_ULIMIT 0x8dd8 13843 #define A_ULP_TX_PBL_LLIMIT 0x8ddc 13844 #define A_ULP_TX_PBL_ULIMIT 0x8de0 13845 #define A_ULP_TX_CPL_ERR_OFFSET 0x8de4 13846 #define A_ULP_TX_CPL_ERR_MASK_L 0x8de8 13847 #define A_ULP_TX_CPL_ERR_MASK_H 0x8dec 13848 #define A_ULP_TX_CPL_ERR_VALUE_L 0x8df0 13849 #define A_ULP_TX_CPL_ERR_VALUE_H 0x8df4 13850 #define A_ULP_TX_CPL_PACK_SIZE1 0x8df8 13851 13852 #define S_CH3SIZE1 24 13853 #define M_CH3SIZE1 0xffU 13854 #define V_CH3SIZE1(x) ((x) << S_CH3SIZE1) 13855 #define G_CH3SIZE1(x) (((x) >> S_CH3SIZE1) & M_CH3SIZE1) 13856 13857 #define S_CH2SIZE1 16 13858 #define M_CH2SIZE1 0xffU 13859 #define V_CH2SIZE1(x) ((x) << S_CH2SIZE1) 13860 #define G_CH2SIZE1(x) (((x) >> S_CH2SIZE1) & M_CH2SIZE1) 13861 13862 #define S_CH1SIZE1 8 13863 #define M_CH1SIZE1 0xffU 13864 #define V_CH1SIZE1(x) ((x) << S_CH1SIZE1) 13865 #define G_CH1SIZE1(x) (((x) >> S_CH1SIZE1) & M_CH1SIZE1) 13866 13867 #define S_CH0SIZE1 0 13868 #define M_CH0SIZE1 0xffU 13869 #define V_CH0SIZE1(x) ((x) << S_CH0SIZE1) 13870 #define G_CH0SIZE1(x) (((x) >> S_CH0SIZE1) & M_CH0SIZE1) 13871 13872 #define A_ULP_TX_CPL_PACK_SIZE2 0x8dfc 13873 13874 #define S_CH3SIZE2 24 13875 #define M_CH3SIZE2 0xffU 13876 #define V_CH3SIZE2(x) ((x) << S_CH3SIZE2) 13877 #define G_CH3SIZE2(x) (((x) >> S_CH3SIZE2) & M_CH3SIZE2) 13878 13879 #define S_CH2SIZE2 16 13880 #define M_CH2SIZE2 0xffU 13881 #define V_CH2SIZE2(x) ((x) << S_CH2SIZE2) 13882 #define G_CH2SIZE2(x) (((x) >> S_CH2SIZE2) & M_CH2SIZE2) 13883 13884 #define S_CH1SIZE2 8 13885 #define M_CH1SIZE2 0xffU 13886 #define V_CH1SIZE2(x) ((x) << S_CH1SIZE2) 13887 #define G_CH1SIZE2(x) (((x) >> S_CH1SIZE2) & M_CH1SIZE2) 13888 13889 #define S_CH0SIZE2 0 13890 #define M_CH0SIZE2 0xffU 13891 #define V_CH0SIZE2(x) ((x) << S_CH0SIZE2) 13892 #define G_CH0SIZE2(x) (((x) >> S_CH0SIZE2) & M_CH0SIZE2) 13893 13894 #define A_ULP_TX_ERR_MSG2CIM 0x8e00 13895 #define A_ULP_TX_ERR_TABLE_BASE 0x8e04 13896 #define A_ULP_TX_ERR_CNT_CH0 0x8e10 13897 13898 #define S_ERR_CNT0 0 13899 #define M_ERR_CNT0 0xfffffU 13900 #define V_ERR_CNT0(x) ((x) << S_ERR_CNT0) 13901 #define G_ERR_CNT0(x) (((x) >> S_ERR_CNT0) & M_ERR_CNT0) 13902 13903 #define A_ULP_TX_ERR_CNT_CH1 0x8e14 13904 13905 #define S_ERR_CNT1 0 13906 #define M_ERR_CNT1 0xfffffU 13907 #define V_ERR_CNT1(x) ((x) << S_ERR_CNT1) 13908 #define G_ERR_CNT1(x) (((x) >> S_ERR_CNT1) & M_ERR_CNT1) 13909 13910 #define A_ULP_TX_ERR_CNT_CH2 0x8e18 13911 13912 #define S_ERR_CNT2 0 13913 #define M_ERR_CNT2 0xfffffU 13914 #define V_ERR_CNT2(x) ((x) << S_ERR_CNT2) 13915 #define G_ERR_CNT2(x) (((x) >> S_ERR_CNT2) & M_ERR_CNT2) 13916 13917 #define A_ULP_TX_ERR_CNT_CH3 0x8e1c 13918 13919 #define S_ERR_CNT3 0 13920 #define M_ERR_CNT3 0xfffffU 13921 #define V_ERR_CNT3(x) ((x) << S_ERR_CNT3) 13922 #define G_ERR_CNT3(x) (((x) >> S_ERR_CNT3) & M_ERR_CNT3) 13923 13924 #define A_ULP_TX_ULP2TP_BIST_CMD 0x8e30 13925 #define A_ULP_TX_ULP2TP_BIST_ERROR_CNT 0x8e34 13926 #define A_ULP_TX_FPGA_CMD_CTRL 0x8e38 13927 #define A_ULP_TX_FPGA_CMD_0 0x8e3c 13928 #define A_ULP_TX_FPGA_CMD_1 0x8e40 13929 #define A_ULP_TX_FPGA_CMD_2 0x8e44 13930 #define A_ULP_TX_FPGA_CMD_3 0x8e48 13931 #define A_ULP_TX_FPGA_CMD_4 0x8e4c 13932 #define A_ULP_TX_FPGA_CMD_5 0x8e50 13933 #define A_ULP_TX_FPGA_CMD_6 0x8e54 13934 #define A_ULP_TX_FPGA_CMD_7 0x8e58 13935 #define A_ULP_TX_FPGA_CMD_8 0x8e5c 13936 #define A_ULP_TX_FPGA_CMD_9 0x8e60 13937 #define A_ULP_TX_FPGA_CMD_10 0x8e64 13938 #define A_ULP_TX_FPGA_CMD_11 0x8e68 13939 #define A_ULP_TX_FPGA_CMD_12 0x8e6c 13940 #define A_ULP_TX_FPGA_CMD_13 0x8e70 13941 #define A_ULP_TX_FPGA_CMD_14 0x8e74 13942 #define A_ULP_TX_FPGA_CMD_15 0x8e78 13943 #define A_ULP_TX_SE_CNT_ERR 0x8ea0 13944 13945 #define S_ERR_CH3 12 13946 #define M_ERR_CH3 0xfU 13947 #define V_ERR_CH3(x) ((x) << S_ERR_CH3) 13948 #define G_ERR_CH3(x) (((x) >> S_ERR_CH3) & M_ERR_CH3) 13949 13950 #define S_ERR_CH2 8 13951 #define M_ERR_CH2 0xfU 13952 #define V_ERR_CH2(x) ((x) << S_ERR_CH2) 13953 #define G_ERR_CH2(x) (((x) >> S_ERR_CH2) & M_ERR_CH2) 13954 13955 #define S_ERR_CH1 4 13956 #define M_ERR_CH1 0xfU 13957 #define V_ERR_CH1(x) ((x) << S_ERR_CH1) 13958 #define G_ERR_CH1(x) (((x) >> S_ERR_CH1) & M_ERR_CH1) 13959 13960 #define S_ERR_CH0 0 13961 #define M_ERR_CH0 0xfU 13962 #define V_ERR_CH0(x) ((x) << S_ERR_CH0) 13963 #define G_ERR_CH0(x) (((x) >> S_ERR_CH0) & M_ERR_CH0) 13964 13965 #define A_ULP_TX_SE_CNT_CLR 0x8ea4 13966 13967 #define S_CLR_DROP 16 13968 #define M_CLR_DROP 0xfU 13969 #define V_CLR_DROP(x) ((x) << S_CLR_DROP) 13970 #define G_CLR_DROP(x) (((x) >> S_CLR_DROP) & M_CLR_DROP) 13971 13972 #define S_CLR_CH3 12 13973 #define M_CLR_CH3 0xfU 13974 #define V_CLR_CH3(x) ((x) << S_CLR_CH3) 13975 #define G_CLR_CH3(x) (((x) >> S_CLR_CH3) & M_CLR_CH3) 13976 13977 #define S_CLR_CH2 8 13978 #define M_CLR_CH2 0xfU 13979 #define V_CLR_CH2(x) ((x) << S_CLR_CH2) 13980 #define G_CLR_CH2(x) (((x) >> S_CLR_CH2) & M_CLR_CH2) 13981 13982 #define S_CLR_CH1 4 13983 #define M_CLR_CH1 0xfU 13984 #define V_CLR_CH1(x) ((x) << S_CLR_CH1) 13985 #define G_CLR_CH1(x) (((x) >> S_CLR_CH1) & M_CLR_CH1) 13986 13987 #define S_CLR_CH0 0 13988 #define M_CLR_CH0 0xfU 13989 #define V_CLR_CH0(x) ((x) << S_CLR_CH0) 13990 #define G_CLR_CH0(x) (((x) >> S_CLR_CH0) & M_CLR_CH0) 13991 13992 #define A_ULP_TX_SE_CNT_CH0 0x8ea8 13993 13994 #define S_SOP_CNT_ULP2TP 28 13995 #define M_SOP_CNT_ULP2TP 0xfU 13996 #define V_SOP_CNT_ULP2TP(x) ((x) << S_SOP_CNT_ULP2TP) 13997 #define G_SOP_CNT_ULP2TP(x) (((x) >> S_SOP_CNT_ULP2TP) & M_SOP_CNT_ULP2TP) 13998 13999 #define S_EOP_CNT_ULP2TP 24 14000 #define M_EOP_CNT_ULP2TP 0xfU 14001 #define V_EOP_CNT_ULP2TP(x) ((x) << S_EOP_CNT_ULP2TP) 14002 #define G_EOP_CNT_ULP2TP(x) (((x) >> S_EOP_CNT_ULP2TP) & M_EOP_CNT_ULP2TP) 14003 14004 #define S_SOP_CNT_LSO_IN 20 14005 #define M_SOP_CNT_LSO_IN 0xfU 14006 #define V_SOP_CNT_LSO_IN(x) ((x) << S_SOP_CNT_LSO_IN) 14007 #define G_SOP_CNT_LSO_IN(x) (((x) >> S_SOP_CNT_LSO_IN) & M_SOP_CNT_LSO_IN) 14008 14009 #define S_EOP_CNT_LSO_IN 16 14010 #define M_EOP_CNT_LSO_IN 0xfU 14011 #define V_EOP_CNT_LSO_IN(x) ((x) << S_EOP_CNT_LSO_IN) 14012 #define G_EOP_CNT_LSO_IN(x) (((x) >> S_EOP_CNT_LSO_IN) & M_EOP_CNT_LSO_IN) 14013 14014 #define S_SOP_CNT_ALG_IN 12 14015 #define M_SOP_CNT_ALG_IN 0xfU 14016 #define V_SOP_CNT_ALG_IN(x) ((x) << S_SOP_CNT_ALG_IN) 14017 #define G_SOP_CNT_ALG_IN(x) (((x) >> S_SOP_CNT_ALG_IN) & M_SOP_CNT_ALG_IN) 14018 14019 #define S_EOP_CNT_ALG_IN 8 14020 #define M_EOP_CNT_ALG_IN 0xfU 14021 #define V_EOP_CNT_ALG_IN(x) ((x) << S_EOP_CNT_ALG_IN) 14022 #define G_EOP_CNT_ALG_IN(x) (((x) >> S_EOP_CNT_ALG_IN) & M_EOP_CNT_ALG_IN) 14023 14024 #define S_SOP_CNT_CIM2ULP 4 14025 #define M_SOP_CNT_CIM2ULP 0xfU 14026 #define V_SOP_CNT_CIM2ULP(x) ((x) << S_SOP_CNT_CIM2ULP) 14027 #define G_SOP_CNT_CIM2ULP(x) (((x) >> S_SOP_CNT_CIM2ULP) & M_SOP_CNT_CIM2ULP) 14028 14029 #define S_EOP_CNT_CIM2ULP 0 14030 #define M_EOP_CNT_CIM2ULP 0xfU 14031 #define V_EOP_CNT_CIM2ULP(x) ((x) << S_EOP_CNT_CIM2ULP) 14032 #define G_EOP_CNT_CIM2ULP(x) (((x) >> S_EOP_CNT_CIM2ULP) & M_EOP_CNT_CIM2ULP) 14033 14034 #define A_ULP_TX_SE_CNT_CH1 0x8eac 14035 #define A_ULP_TX_SE_CNT_CH2 0x8eb0 14036 #define A_ULP_TX_SE_CNT_CH3 0x8eb4 14037 #define A_ULP_TX_DROP_CNT 0x8eb8 14038 14039 #define S_DROP_CH3 12 14040 #define M_DROP_CH3 0xfU 14041 #define V_DROP_CH3(x) ((x) << S_DROP_CH3) 14042 #define G_DROP_CH3(x) (((x) >> S_DROP_CH3) & M_DROP_CH3) 14043 14044 #define S_DROP_CH2 8 14045 #define M_DROP_CH2 0xfU 14046 #define V_DROP_CH2(x) ((x) << S_DROP_CH2) 14047 #define G_DROP_CH2(x) (((x) >> S_DROP_CH2) & M_DROP_CH2) 14048 14049 #define S_DROP_CH1 4 14050 #define M_DROP_CH1 0xfU 14051 #define V_DROP_CH1(x) ((x) << S_DROP_CH1) 14052 #define G_DROP_CH1(x) (((x) >> S_DROP_CH1) & M_DROP_CH1) 14053 14054 #define S_DROP_CH0 0 14055 #define M_DROP_CH0 0xfU 14056 #define V_DROP_CH0(x) ((x) << S_DROP_CH0) 14057 #define G_DROP_CH0(x) (((x) >> S_DROP_CH0) & M_DROP_CH0) 14058 14059 #define A_ULP_TX_LA_RDPTR_0 0x8ec0 14060 #define A_ULP_TX_LA_RDDATA_0 0x8ec4 14061 #define A_ULP_TX_LA_WRPTR_0 0x8ec8 14062 #define A_ULP_TX_LA_RESERVED_0 0x8ecc 14063 #define A_ULP_TX_LA_RDPTR_1 0x8ed0 14064 #define A_ULP_TX_LA_RDDATA_1 0x8ed4 14065 #define A_ULP_TX_LA_WRPTR_1 0x8ed8 14066 #define A_ULP_TX_LA_RESERVED_1 0x8edc 14067 #define A_ULP_TX_LA_RDPTR_2 0x8ee0 14068 #define A_ULP_TX_LA_RDDATA_2 0x8ee4 14069 #define A_ULP_TX_LA_WRPTR_2 0x8ee8 14070 #define A_ULP_TX_LA_RESERVED_2 0x8eec 14071 #define A_ULP_TX_LA_RDPTR_3 0x8ef0 14072 #define A_ULP_TX_LA_RDDATA_3 0x8ef4 14073 #define A_ULP_TX_LA_WRPTR_3 0x8ef8 14074 #define A_ULP_TX_LA_RESERVED_3 0x8efc 14075 #define A_ULP_TX_LA_RDPTR_4 0x8f00 14076 #define A_ULP_TX_LA_RDDATA_4 0x8f04 14077 #define A_ULP_TX_LA_WRPTR_4 0x8f08 14078 #define A_ULP_TX_LA_RESERVED_4 0x8f0c 14079 #define A_ULP_TX_LA_RDPTR_5 0x8f10 14080 #define A_ULP_TX_LA_RDDATA_5 0x8f14 14081 #define A_ULP_TX_LA_WRPTR_5 0x8f18 14082 #define A_ULP_TX_LA_RESERVED_5 0x8f1c 14083 #define A_ULP_TX_LA_RDPTR_6 0x8f20 14084 #define A_ULP_TX_LA_RDDATA_6 0x8f24 14085 #define A_ULP_TX_LA_WRPTR_6 0x8f28 14086 #define A_ULP_TX_LA_RESERVED_6 0x8f2c 14087 #define A_ULP_TX_LA_RDPTR_7 0x8f30 14088 #define A_ULP_TX_LA_RDDATA_7 0x8f34 14089 #define A_ULP_TX_LA_WRPTR_7 0x8f38 14090 #define A_ULP_TX_LA_RESERVED_7 0x8f3c 14091 #define A_ULP_TX_LA_RDPTR_8 0x8f40 14092 #define A_ULP_TX_LA_RDDATA_8 0x8f44 14093 #define A_ULP_TX_LA_WRPTR_8 0x8f48 14094 #define A_ULP_TX_LA_RESERVED_8 0x8f4c 14095 #define A_ULP_TX_LA_RDPTR_9 0x8f50 14096 #define A_ULP_TX_LA_RDDATA_9 0x8f54 14097 #define A_ULP_TX_LA_WRPTR_9 0x8f58 14098 #define A_ULP_TX_LA_RESERVED_9 0x8f5c 14099 #define A_ULP_TX_LA_RDPTR_10 0x8f60 14100 #define A_ULP_TX_LA_RDDATA_10 0x8f64 14101 #define A_ULP_TX_LA_WRPTR_10 0x8f68 14102 #define A_ULP_TX_LA_RESERVED_10 0x8f6c 14103 14104 /* registers for module PM_RX */ 14105 #define PM_RX_BASE_ADDR 0x8fc0 14106 14107 #define A_PM_RX_CFG 0x8fc0 14108 #define A_PM_RX_MODE 0x8fc4 14109 14110 #define S_RX_USE_BUNDLE_LEN 4 14111 #define V_RX_USE_BUNDLE_LEN(x) ((x) << S_RX_USE_BUNDLE_LEN) 14112 #define F_RX_USE_BUNDLE_LEN V_RX_USE_BUNDLE_LEN(1U) 14113 14114 #define S_STAT_TO_CH 3 14115 #define V_STAT_TO_CH(x) ((x) << S_STAT_TO_CH) 14116 #define F_STAT_TO_CH V_STAT_TO_CH(1U) 14117 14118 #define S_STAT_FROM_CH 1 14119 #define M_STAT_FROM_CH 0x3U 14120 #define V_STAT_FROM_CH(x) ((x) << S_STAT_FROM_CH) 14121 #define G_STAT_FROM_CH(x) (((x) >> S_STAT_FROM_CH) & M_STAT_FROM_CH) 14122 14123 #define S_PREFETCH_ENABLE 0 14124 #define V_PREFETCH_ENABLE(x) ((x) << S_PREFETCH_ENABLE) 14125 #define F_PREFETCH_ENABLE V_PREFETCH_ENABLE(1U) 14126 14127 #define A_PM_RX_STAT_CONFIG 0x8fc8 14128 #define A_PM_RX_STAT_COUNT 0x8fcc 14129 #define A_PM_RX_STAT_LSB 0x8fd0 14130 #define A_PM_RX_STAT_MSB 0x8fd4 14131 #define A_PM_RX_INT_ENABLE 0x8fd8 14132 14133 #define S_ZERO_E_CMD_ERROR 22 14134 #define V_ZERO_E_CMD_ERROR(x) ((x) << S_ZERO_E_CMD_ERROR) 14135 #define F_ZERO_E_CMD_ERROR V_ZERO_E_CMD_ERROR(1U) 14136 14137 #define S_IESPI0_FIFO2X_RX_FRAMING_ERROR 21 14138 #define V_IESPI0_FIFO2X_RX_FRAMING_ERROR(x) \ 14139 ((x) << S_IESPI0_FIFO2X_RX_FRAMING_ERROR) 14140 #define F_IESPI0_FIFO2X_RX_FRAMING_ERROR V_IESPI0_FIFO2X_RX_FRAMING_ERROR(1U) 14141 14142 #define S_IESPI1_FIFO2X_RX_FRAMING_ERROR 20 14143 #define V_IESPI1_FIFO2X_RX_FRAMING_ERROR(x) \ 14144 ((x) << S_IESPI1_FIFO2X_RX_FRAMING_ERROR) 14145 #define F_IESPI1_FIFO2X_RX_FRAMING_ERROR V_IESPI1_FIFO2X_RX_FRAMING_ERROR(1U) 14146 14147 #define S_IESPI2_FIFO2X_RX_FRAMING_ERROR 19 14148 #define V_IESPI2_FIFO2X_RX_FRAMING_ERROR(x) \ 14149 ((x) << S_IESPI2_FIFO2X_RX_FRAMING_ERROR) 14150 #define F_IESPI2_FIFO2X_RX_FRAMING_ERROR V_IESPI2_FIFO2X_RX_FRAMING_ERROR(1U) 14151 14152 #define S_IESPI3_FIFO2X_RX_FRAMING_ERROR 18 14153 #define V_IESPI3_FIFO2X_RX_FRAMING_ERROR(x) \ 14154 ((x) << S_IESPI3_FIFO2X_RX_FRAMING_ERROR) 14155 #define F_IESPI3_FIFO2X_RX_FRAMING_ERROR V_IESPI3_FIFO2X_RX_FRAMING_ERROR(1U) 14156 14157 #define S_IESPI0_RX_FRAMING_ERROR 17 14158 #define V_IESPI0_RX_FRAMING_ERROR(x) ((x) << S_IESPI0_RX_FRAMING_ERROR) 14159 #define F_IESPI0_RX_FRAMING_ERROR V_IESPI0_RX_FRAMING_ERROR(1U) 14160 14161 #define S_IESPI1_RX_FRAMING_ERROR 16 14162 #define V_IESPI1_RX_FRAMING_ERROR(x) ((x) << S_IESPI1_RX_FRAMING_ERROR) 14163 #define F_IESPI1_RX_FRAMING_ERROR V_IESPI1_RX_FRAMING_ERROR(1U) 14164 14165 #define S_IESPI2_RX_FRAMING_ERROR 15 14166 #define V_IESPI2_RX_FRAMING_ERROR(x) ((x) << S_IESPI2_RX_FRAMING_ERROR) 14167 #define F_IESPI2_RX_FRAMING_ERROR V_IESPI2_RX_FRAMING_ERROR(1U) 14168 14169 #define S_IESPI3_RX_FRAMING_ERROR 14 14170 #define V_IESPI3_RX_FRAMING_ERROR(x) ((x) << S_IESPI3_RX_FRAMING_ERROR) 14171 #define F_IESPI3_RX_FRAMING_ERROR V_IESPI3_RX_FRAMING_ERROR(1U) 14172 14173 #define S_IESPI0_TX_FRAMING_ERROR 13 14174 #define V_IESPI0_TX_FRAMING_ERROR(x) ((x) << S_IESPI0_TX_FRAMING_ERROR) 14175 #define F_IESPI0_TX_FRAMING_ERROR V_IESPI0_TX_FRAMING_ERROR(1U) 14176 14177 #define S_IESPI1_TX_FRAMING_ERROR 12 14178 #define V_IESPI1_TX_FRAMING_ERROR(x) ((x) << S_IESPI1_TX_FRAMING_ERROR) 14179 #define F_IESPI1_TX_FRAMING_ERROR V_IESPI1_TX_FRAMING_ERROR(1U) 14180 14181 #define S_IESPI2_TX_FRAMING_ERROR 11 14182 #define V_IESPI2_TX_FRAMING_ERROR(x) ((x) << S_IESPI2_TX_FRAMING_ERROR) 14183 #define F_IESPI2_TX_FRAMING_ERROR V_IESPI2_TX_FRAMING_ERROR(1U) 14184 14185 #define S_IESPI3_TX_FRAMING_ERROR 10 14186 #define V_IESPI3_TX_FRAMING_ERROR(x) ((x) << S_IESPI3_TX_FRAMING_ERROR) 14187 #define F_IESPI3_TX_FRAMING_ERROR V_IESPI3_TX_FRAMING_ERROR(1U) 14188 14189 #define S_OCSPI0_RX_FRAMING_ERROR 9 14190 #define V_OCSPI0_RX_FRAMING_ERROR(x) ((x) << S_OCSPI0_RX_FRAMING_ERROR) 14191 #define F_OCSPI0_RX_FRAMING_ERROR V_OCSPI0_RX_FRAMING_ERROR(1U) 14192 14193 #define S_OCSPI1_RX_FRAMING_ERROR 8 14194 #define V_OCSPI1_RX_FRAMING_ERROR(x) ((x) << S_OCSPI1_RX_FRAMING_ERROR) 14195 #define F_OCSPI1_RX_FRAMING_ERROR V_OCSPI1_RX_FRAMING_ERROR(1U) 14196 14197 #define S_OCSPI0_TX_FRAMING_ERROR 7 14198 #define V_OCSPI0_TX_FRAMING_ERROR(x) ((x) << S_OCSPI0_TX_FRAMING_ERROR) 14199 #define F_OCSPI0_TX_FRAMING_ERROR V_OCSPI0_TX_FRAMING_ERROR(1U) 14200 14201 #define S_OCSPI1_TX_FRAMING_ERROR 6 14202 #define V_OCSPI1_TX_FRAMING_ERROR(x) ((x) << S_OCSPI1_TX_FRAMING_ERROR) 14203 #define F_OCSPI1_TX_FRAMING_ERROR V_OCSPI1_TX_FRAMING_ERROR(1U) 14204 14205 #define S_OCSPI0_OFIFO2X_TX_FRAMING_ERROR 5 14206 #define V_OCSPI0_OFIFO2X_TX_FRAMING_ERROR(x) \ 14207 ((x) << S_OCSPI0_OFIFO2X_TX_FRAMING_ERROR) 14208 #define F_OCSPI0_OFIFO2X_TX_FRAMING_ERROR \ 14209 V_OCSPI0_OFIFO2X_TX_FRAMING_ERROR(1U) 14210 14211 #define S_OCSPI1_OFIFO2X_TX_FRAMING_ERROR 4 14212 #define V_OCSPI1_OFIFO2X_TX_FRAMING_ERROR(x) \ 14213 ((x) << S_OCSPI1_OFIFO2X_TX_FRAMING_ERROR) 14214 #define F_OCSPI1_OFIFO2X_TX_FRAMING_ERROR \ 14215 V_OCSPI1_OFIFO2X_TX_FRAMING_ERROR(1U) 14216 14217 #define S_OCSPI_PAR_ERROR 3 14218 #define V_OCSPI_PAR_ERROR(x) ((x) << S_OCSPI_PAR_ERROR) 14219 #define F_OCSPI_PAR_ERROR V_OCSPI_PAR_ERROR(1U) 14220 14221 #define S_DB_OPTIONS_PAR_ERROR 2 14222 #define V_DB_OPTIONS_PAR_ERROR(x) ((x) << S_DB_OPTIONS_PAR_ERROR) 14223 #define F_DB_OPTIONS_PAR_ERROR V_DB_OPTIONS_PAR_ERROR(1U) 14224 14225 #define S_IESPI_PAR_ERROR 1 14226 #define V_IESPI_PAR_ERROR(x) ((x) << S_IESPI_PAR_ERROR) 14227 #define F_IESPI_PAR_ERROR V_IESPI_PAR_ERROR(1U) 14228 14229 #define S_E_PCMD_PAR_ERROR 0 14230 #define V_E_PCMD_PAR_ERROR(x) ((x) << S_E_PCMD_PAR_ERROR) 14231 #define F_E_PCMD_PAR_ERROR V_E_PCMD_PAR_ERROR(1U) 14232 14233 #define A_PM_RX_INT_CAUSE 0x8fdc 14234 14235 /* registers for module PM_TX */ 14236 #define PM_TX_BASE_ADDR 0x8fe0 14237 14238 #define A_PM_TX_CFG 0x8fe0 14239 14240 #define S_CH3_OUTPUT 17 14241 #define M_CH3_OUTPUT 0x1fU 14242 #define V_CH3_OUTPUT(x) ((x) << S_CH3_OUTPUT) 14243 #define G_CH3_OUTPUT(x) (((x) >> S_CH3_OUTPUT) & M_CH3_OUTPUT) 14244 14245 #define A_PM_TX_MODE 0x8fe4 14246 14247 #define S_CONG_THRESH3 25 14248 #define M_CONG_THRESH3 0x7fU 14249 #define V_CONG_THRESH3(x) ((x) << S_CONG_THRESH3) 14250 #define G_CONG_THRESH3(x) (((x) >> S_CONG_THRESH3) & M_CONG_THRESH3) 14251 14252 #define S_CONG_THRESH2 18 14253 #define M_CONG_THRESH2 0x7fU 14254 #define V_CONG_THRESH2(x) ((x) << S_CONG_THRESH2) 14255 #define G_CONG_THRESH2(x) (((x) >> S_CONG_THRESH2) & M_CONG_THRESH2) 14256 14257 #define S_CONG_THRESH1 11 14258 #define M_CONG_THRESH1 0x7fU 14259 #define V_CONG_THRESH1(x) ((x) << S_CONG_THRESH1) 14260 #define G_CONG_THRESH1(x) (((x) >> S_CONG_THRESH1) & M_CONG_THRESH1) 14261 14262 #define S_CONG_THRESH0 4 14263 #define M_CONG_THRESH0 0x7fU 14264 #define V_CONG_THRESH0(x) ((x) << S_CONG_THRESH0) 14265 #define G_CONG_THRESH0(x) (((x) >> S_CONG_THRESH0) & M_CONG_THRESH0) 14266 14267 #define S_TX_USE_BUNDLE_LEN 3 14268 #define V_TX_USE_BUNDLE_LEN(x) ((x) << S_TX_USE_BUNDLE_LEN) 14269 #define F_TX_USE_BUNDLE_LEN V_TX_USE_BUNDLE_LEN(1U) 14270 14271 #define S_STAT_CHANNEL 1 14272 #define M_STAT_CHANNEL 0x3U 14273 #define V_STAT_CHANNEL(x) ((x) << S_STAT_CHANNEL) 14274 #define G_STAT_CHANNEL(x) (((x) >> S_STAT_CHANNEL) & M_STAT_CHANNEL) 14275 14276 #define A_PM_TX_STAT_CONFIG 0x8fe8 14277 #define A_PM_TX_STAT_COUNT 0x8fec 14278 #define A_PM_TX_STAT_LSB 0x8ff0 14279 #define A_PM_TX_STAT_MSB 0x8ff4 14280 #define A_PM_TX_INT_ENABLE 0x8ff8 14281 14282 #define S_PCMD_LEN_OVFL0 31 14283 #define V_PCMD_LEN_OVFL0(x) ((x) << S_PCMD_LEN_OVFL0) 14284 #define F_PCMD_LEN_OVFL0 V_PCMD_LEN_OVFL0(1U) 14285 14286 #define S_PCMD_LEN_OVFL1 30 14287 #define V_PCMD_LEN_OVFL1(x) ((x) << S_PCMD_LEN_OVFL1) 14288 #define F_PCMD_LEN_OVFL1 V_PCMD_LEN_OVFL1(1U) 14289 14290 #define S_PCMD_LEN_OVFL2 29 14291 #define V_PCMD_LEN_OVFL2(x) ((x) << S_PCMD_LEN_OVFL2) 14292 #define F_PCMD_LEN_OVFL2 V_PCMD_LEN_OVFL2(1U) 14293 14294 #define S_ZERO_C_CMD_ERRO 28 14295 #define V_ZERO_C_CMD_ERRO(x) ((x) << S_ZERO_C_CMD_ERRO) 14296 #define F_ZERO_C_CMD_ERRO V_ZERO_C_CMD_ERRO(1U) 14297 14298 #define S_ICSPI0_FIFO2X_RX_FRAMING_ERROR 27 14299 #define V_ICSPI0_FIFO2X_RX_FRAMING_ERROR(x) \ 14300 ((x) << S_ICSPI0_FIFO2X_RX_FRAMING_ERROR) 14301 #define F_ICSPI0_FIFO2X_RX_FRAMING_ERROR V_ICSPI0_FIFO2X_RX_FRAMING_ERROR(1U) 14302 14303 #define S_ICSPI1_FIFO2X_RX_FRAMING_ERROR 26 14304 #define V_ICSPI1_FIFO2X_RX_FRAMING_ERROR(x) \ 14305 ((x) << S_ICSPI1_FIFO2X_RX_FRAMING_ERROR) 14306 #define F_ICSPI1_FIFO2X_RX_FRAMING_ERROR V_ICSPI1_FIFO2X_RX_FRAMING_ERROR(1U) 14307 14308 #define S_ICSPI2_FIFO2X_RX_FRAMING_ERROR 25 14309 #define V_ICSPI2_FIFO2X_RX_FRAMING_ERROR(x) \ 14310 ((x) << S_ICSPI2_FIFO2X_RX_FRAMING_ERROR) 14311 #define F_ICSPI2_FIFO2X_RX_FRAMING_ERROR V_ICSPI2_FIFO2X_RX_FRAMING_ERROR(1U) 14312 14313 #define S_ICSPI3_FIFO2X_RX_FRAMING_ERROR 24 14314 #define V_ICSPI3_FIFO2X_RX_FRAMING_ERROR(x) \ 14315 ((x) << S_ICSPI3_FIFO2X_RX_FRAMING_ERROR) 14316 #define F_ICSPI3_FIFO2X_RX_FRAMING_ERROR V_ICSPI3_FIFO2X_RX_FRAMING_ERROR(1U) 14317 14318 #define S_ICSPI0_RX_FRAMING_ERROR 23 14319 #define V_ICSPI0_RX_FRAMING_ERROR(x) ((x) << S_ICSPI0_RX_FRAMING_ERROR) 14320 #define F_ICSPI0_RX_FRAMING_ERROR V_ICSPI0_RX_FRAMING_ERROR(1U) 14321 14322 #define S_ICSPI1_RX_FRAMING_ERROR 22 14323 #define V_ICSPI1_RX_FRAMING_ERROR(x) ((x) << S_ICSPI1_RX_FRAMING_ERROR) 14324 #define F_ICSPI1_RX_FRAMING_ERROR V_ICSPI1_RX_FRAMING_ERROR(1U) 14325 14326 #define S_ICSPI2_RX_FRAMING_ERROR 21 14327 #define V_ICSPI2_RX_FRAMING_ERROR(x) ((x) << S_ICSPI2_RX_FRAMING_ERROR) 14328 #define F_ICSPI2_RX_FRAMING_ERROR V_ICSPI2_RX_FRAMING_ERROR(1U) 14329 14330 #define S_ICSPI3_RX_FRAMING_ERROR 20 14331 #define V_ICSPI3_RX_FRAMING_ERROR(x) ((x) << S_ICSPI3_RX_FRAMING_ERROR) 14332 #define F_ICSPI3_RX_FRAMING_ERROR V_ICSPI3_RX_FRAMING_ERROR(1U) 14333 14334 #define S_ICSPI0_TX_FRAMING_ERROR 19 14335 #define V_ICSPI0_TX_FRAMING_ERROR(x) ((x) << S_ICSPI0_TX_FRAMING_ERROR) 14336 #define F_ICSPI0_TX_FRAMING_ERROR V_ICSPI0_TX_FRAMING_ERROR(1U) 14337 14338 #define S_ICSPI1_TX_FRAMING_ERROR 18 14339 #define V_ICSPI1_TX_FRAMING_ERROR(x) ((x) << S_ICSPI1_TX_FRAMING_ERROR) 14340 #define F_ICSPI1_TX_FRAMING_ERROR V_ICSPI1_TX_FRAMING_ERROR(1U) 14341 14342 #define S_ICSPI2_TX_FRAMING_ERROR 17 14343 #define V_ICSPI2_TX_FRAMING_ERROR(x) ((x) << S_ICSPI2_TX_FRAMING_ERROR) 14344 #define F_ICSPI2_TX_FRAMING_ERROR V_ICSPI2_TX_FRAMING_ERROR(1U) 14345 14346 #define S_ICSPI3_TX_FRAMING_ERROR 16 14347 #define V_ICSPI3_TX_FRAMING_ERROR(x) ((x) << S_ICSPI3_TX_FRAMING_ERROR) 14348 #define F_ICSPI3_TX_FRAMING_ERROR V_ICSPI3_TX_FRAMING_ERROR(1U) 14349 14350 #define S_OESPI0_RX_FRAMING_ERROR 15 14351 #define V_OESPI0_RX_FRAMING_ERROR(x) ((x) << S_OESPI0_RX_FRAMING_ERROR) 14352 #define F_OESPI0_RX_FRAMING_ERROR V_OESPI0_RX_FRAMING_ERROR(1U) 14353 14354 #define S_OESPI1_RX_FRAMING_ERROR 14 14355 #define V_OESPI1_RX_FRAMING_ERROR(x) ((x) << S_OESPI1_RX_FRAMING_ERROR) 14356 #define F_OESPI1_RX_FRAMING_ERROR V_OESPI1_RX_FRAMING_ERROR(1U) 14357 14358 #define S_OESPI2_RX_FRAMING_ERROR 13 14359 #define V_OESPI2_RX_FRAMING_ERROR(x) ((x) << S_OESPI2_RX_FRAMING_ERROR) 14360 #define F_OESPI2_RX_FRAMING_ERROR V_OESPI2_RX_FRAMING_ERROR(1U) 14361 14362 #define S_OESPI3_RX_FRAMING_ERROR 12 14363 #define V_OESPI3_RX_FRAMING_ERROR(x) ((x) << S_OESPI3_RX_FRAMING_ERROR) 14364 #define F_OESPI3_RX_FRAMING_ERROR V_OESPI3_RX_FRAMING_ERROR(1U) 14365 14366 #define S_OESPI0_TX_FRAMING_ERROR 11 14367 #define V_OESPI0_TX_FRAMING_ERROR(x) ((x) << S_OESPI0_TX_FRAMING_ERROR) 14368 #define F_OESPI0_TX_FRAMING_ERROR V_OESPI0_TX_FRAMING_ERROR(1U) 14369 14370 #define S_OESPI1_TX_FRAMING_ERROR 10 14371 #define V_OESPI1_TX_FRAMING_ERROR(x) ((x) << S_OESPI1_TX_FRAMING_ERROR) 14372 #define F_OESPI1_TX_FRAMING_ERROR V_OESPI1_TX_FRAMING_ERROR(1U) 14373 14374 #define S_OESPI2_TX_FRAMING_ERROR 9 14375 #define V_OESPI2_TX_FRAMING_ERROR(x) ((x) << S_OESPI2_TX_FRAMING_ERROR) 14376 #define F_OESPI2_TX_FRAMING_ERROR V_OESPI2_TX_FRAMING_ERROR(1U) 14377 14378 #define S_OESPI3_TX_FRAMING_ERROR 8 14379 #define V_OESPI3_TX_FRAMING_ERROR(x) ((x) << S_OESPI3_TX_FRAMING_ERROR) 14380 #define F_OESPI3_TX_FRAMING_ERROR V_OESPI3_TX_FRAMING_ERROR(1U) 14381 14382 #define S_OESPI0_OFIFO2X_TX_FRAMING_ERROR 7 14383 #define V_OESPI0_OFIFO2X_TX_FRAMING_ERROR(x) \ 14384 ((x) << S_OESPI0_OFIFO2X_TX_FRAMING_ERROR) 14385 #define F_OESPI0_OFIFO2X_TX_FRAMING_ERROR \ 14386 V_OESPI0_OFIFO2X_TX_FRAMING_ERROR(1U) 14387 14388 #define S_OESPI1_OFIFO2X_TX_FRAMING_ERROR 6 14389 #define V_OESPI1_OFIFO2X_TX_FRAMING_ERROR(x) \ 14390 ((x) << S_OESPI1_OFIFO2X_TX_FRAMING_ERROR) 14391 #define F_OESPI1_OFIFO2X_TX_FRAMING_ERROR \ 14392 V_OESPI1_OFIFO2X_TX_FRAMING_ERROR(1U) 14393 14394 #define S_OESPI2_OFIFO2X_TX_FRAMING_ERROR 5 14395 #define V_OESPI2_OFIFO2X_TX_FRAMING_ERROR(x) \ 14396 ((x) << S_OESPI2_OFIFO2X_TX_FRAMING_ERROR) 14397 #define F_OESPI2_OFIFO2X_TX_FRAMING_ERROR \ 14398 V_OESPI2_OFIFO2X_TX_FRAMING_ERROR(1U) 14399 14400 #define S_OESPI3_OFIFO2X_TX_FRAMING_ERROR 4 14401 #define V_OESPI3_OFIFO2X_TX_FRAMING_ERROR(x) \ 14402 ((x) << S_OESPI3_OFIFO2X_TX_FRAMING_ERROR) 14403 #define F_OESPI3_OFIFO2X_TX_FRAMING_ERROR \ 14404 V_OESPI3_OFIFO2X_TX_FRAMING_ERROR(1U) 14405 14406 #define S_OESPI_PAR_ERROR 3 14407 #define V_OESPI_PAR_ERROR(x) ((x) << S_OESPI_PAR_ERROR) 14408 #define F_OESPI_PAR_ERROR V_OESPI_PAR_ERROR(1U) 14409 14410 #define S_ICSPI_PAR_ERROR 1 14411 #define V_ICSPI_PAR_ERROR(x) ((x) << S_ICSPI_PAR_ERROR) 14412 #define F_ICSPI_PAR_ERROR V_ICSPI_PAR_ERROR(1U) 14413 14414 #define S_C_PCMD_PAR_ERROR 0 14415 #define V_C_PCMD_PAR_ERROR(x) ((x) << S_C_PCMD_PAR_ERROR) 14416 #define F_C_PCMD_PAR_ERROR V_C_PCMD_PAR_ERROR(1U) 14417 14418 #define A_PM_TX_INT_CAUSE 0x8ffc 14419 14420 #define S_ZERO_C_CMD_ERROR 28 14421 #define V_ZERO_C_CMD_ERROR(x) ((x) << S_ZERO_C_CMD_ERROR) 14422 #define F_ZERO_C_CMD_ERROR V_ZERO_C_CMD_ERROR(1U) 14423 14424 /* registers for module MPS */ 14425 #define MPS_BASE_ADDR 0x9000 14426 14427 #define A_MPS_PORT_CTL 0x0 14428 14429 #define S_LPBKEN 31 14430 #define V_LPBKEN(x) ((x) << S_LPBKEN) 14431 #define F_LPBKEN V_LPBKEN(1U) 14432 14433 #define S_PORTTXEN 30 14434 #define V_PORTTXEN(x) ((x) << S_PORTTXEN) 14435 #define F_PORTTXEN V_PORTTXEN(1U) 14436 14437 #define S_PORTRXEN 29 14438 #define V_PORTRXEN(x) ((x) << S_PORTRXEN) 14439 #define F_PORTRXEN V_PORTRXEN(1U) 14440 14441 #define S_PPPEN 28 14442 #define V_PPPEN(x) ((x) << S_PPPEN) 14443 #define F_PPPEN V_PPPEN(1U) 14444 14445 #define S_FCSSTRIPEN 27 14446 #define V_FCSSTRIPEN(x) ((x) << S_FCSSTRIPEN) 14447 #define F_FCSSTRIPEN V_FCSSTRIPEN(1U) 14448 14449 #define S_PPPANDPAUSE 26 14450 #define V_PPPANDPAUSE(x) ((x) << S_PPPANDPAUSE) 14451 #define F_PPPANDPAUSE V_PPPANDPAUSE(1U) 14452 14453 #define S_PRIOPPPENMAP 16 14454 #define M_PRIOPPPENMAP 0xffU 14455 #define V_PRIOPPPENMAP(x) ((x) << S_PRIOPPPENMAP) 14456 #define G_PRIOPPPENMAP(x) (((x) >> S_PRIOPPPENMAP) & M_PRIOPPPENMAP) 14457 14458 #define A_MPS_VF_CTL 0x0 14459 #define A_MPS_PORT_PAUSE_CTL 0x4 14460 14461 #define S_TIMEUNIT 0 14462 #define M_TIMEUNIT 0xffffU 14463 #define V_TIMEUNIT(x) ((x) << S_TIMEUNIT) 14464 #define G_TIMEUNIT(x) (((x) >> S_TIMEUNIT) & M_TIMEUNIT) 14465 14466 #define A_MPS_PORT_TX_PAUSE_CTL 0x8 14467 14468 #define S_REGSENDOFF 24 14469 #define M_REGSENDOFF 0xffU 14470 #define V_REGSENDOFF(x) ((x) << S_REGSENDOFF) 14471 #define G_REGSENDOFF(x) (((x) >> S_REGSENDOFF) & M_REGSENDOFF) 14472 14473 #define S_REGSENDON 16 14474 #define M_REGSENDON 0xffU 14475 #define V_REGSENDON(x) ((x) << S_REGSENDON) 14476 #define G_REGSENDON(x) (((x) >> S_REGSENDON) & M_REGSENDON) 14477 14478 #define S_SGESENDEN 8 14479 #define M_SGESENDEN 0xffU 14480 #define V_SGESENDEN(x) ((x) << S_SGESENDEN) 14481 #define G_SGESENDEN(x) (((x) >> S_SGESENDEN) & M_SGESENDEN) 14482 14483 #define S_RXSENDEN 0 14484 #define M_RXSENDEN 0xffU 14485 #define V_RXSENDEN(x) ((x) << S_RXSENDEN) 14486 #define G_RXSENDEN(x) (((x) >> S_RXSENDEN) & M_RXSENDEN) 14487 14488 #define A_MPS_PORT_TX_PAUSE_CTL2 0xc 14489 14490 #define S_XOFFDISABLE 0 14491 #define V_XOFFDISABLE(x) ((x) << S_XOFFDISABLE) 14492 #define F_XOFFDISABLE V_XOFFDISABLE(1U) 14493 14494 #define A_MPS_PORT_RX_PAUSE_CTL 0x10 14495 14496 #define S_REGHALTON 8 14497 #define M_REGHALTON 0xffU 14498 #define V_REGHALTON(x) ((x) << S_REGHALTON) 14499 #define G_REGHALTON(x) (((x) >> S_REGHALTON) & M_REGHALTON) 14500 14501 #define S_RXHALTEN 0 14502 #define M_RXHALTEN 0xffU 14503 #define V_RXHALTEN(x) ((x) << S_RXHALTEN) 14504 #define G_RXHALTEN(x) (((x) >> S_RXHALTEN) & M_RXHALTEN) 14505 14506 #define A_MPS_PORT_TX_PAUSE_STATUS 0x14 14507 14508 #define S_REGSENDING 16 14509 #define M_REGSENDING 0xffU 14510 #define V_REGSENDING(x) ((x) << S_REGSENDING) 14511 #define G_REGSENDING(x) (((x) >> S_REGSENDING) & M_REGSENDING) 14512 14513 #define S_SGESENDING 8 14514 #define M_SGESENDING 0xffU 14515 #define V_SGESENDING(x) ((x) << S_SGESENDING) 14516 #define G_SGESENDING(x) (((x) >> S_SGESENDING) & M_SGESENDING) 14517 14518 #define S_RXSENDING 0 14519 #define M_RXSENDING 0xffU 14520 #define V_RXSENDING(x) ((x) << S_RXSENDING) 14521 #define G_RXSENDING(x) (((x) >> S_RXSENDING) & M_RXSENDING) 14522 14523 #define A_MPS_PORT_RX_PAUSE_STATUS 0x18 14524 14525 #define S_REGHALTED 8 14526 #define M_REGHALTED 0xffU 14527 #define V_REGHALTED(x) ((x) << S_REGHALTED) 14528 #define G_REGHALTED(x) (((x) >> S_REGHALTED) & M_REGHALTED) 14529 14530 #define S_RXHALTED 0 14531 #define M_RXHALTED 0xffU 14532 #define V_RXHALTED(x) ((x) << S_RXHALTED) 14533 #define G_RXHALTED(x) (((x) >> S_RXHALTED) & M_RXHALTED) 14534 14535 #define A_MPS_PORT_TX_PAUSE_DEST_L 0x1c 14536 #define A_MPS_PORT_TX_PAUSE_DEST_H 0x20 14537 14538 #define S_ADDR 0 14539 #define M_ADDR 0xffffU 14540 #define V_ADDR(x) ((x) << S_ADDR) 14541 #define G_ADDR(x) (((x) >> S_ADDR) & M_ADDR) 14542 14543 #define A_MPS_PORT_TX_PAUSE_SOURCE_L 0x24 14544 #define A_MPS_PORT_TX_PAUSE_SOURCE_H 0x28 14545 #define A_MPS_PORT_PRTY_BUFFER_GROUP_MAP 0x2c 14546 14547 #define S_PRTY7 14 14548 #define M_PRTY7 0x3U 14549 #define V_PRTY7(x) ((x) << S_PRTY7) 14550 #define G_PRTY7(x) (((x) >> S_PRTY7) & M_PRTY7) 14551 14552 #define S_PRTY6 12 14553 #define M_PRTY6 0x3U 14554 #define V_PRTY6(x) ((x) << S_PRTY6) 14555 #define G_PRTY6(x) (((x) >> S_PRTY6) & M_PRTY6) 14556 14557 #define S_PRTY5 10 14558 #define M_PRTY5 0x3U 14559 #define V_PRTY5(x) ((x) << S_PRTY5) 14560 #define G_PRTY5(x) (((x) >> S_PRTY5) & M_PRTY5) 14561 14562 #define S_PRTY4 8 14563 #define M_PRTY4 0x3U 14564 #define V_PRTY4(x) ((x) << S_PRTY4) 14565 #define G_PRTY4(x) (((x) >> S_PRTY4) & M_PRTY4) 14566 14567 #define S_PRTY3 6 14568 #define M_PRTY3 0x3U 14569 #define V_PRTY3(x) ((x) << S_PRTY3) 14570 #define G_PRTY3(x) (((x) >> S_PRTY3) & M_PRTY3) 14571 14572 #define S_PRTY2 4 14573 #define M_PRTY2 0x3U 14574 #define V_PRTY2(x) ((x) << S_PRTY2) 14575 #define G_PRTY2(x) (((x) >> S_PRTY2) & M_PRTY2) 14576 14577 #define S_PRTY1 2 14578 #define M_PRTY1 0x3U 14579 #define V_PRTY1(x) ((x) << S_PRTY1) 14580 #define G_PRTY1(x) (((x) >> S_PRTY1) & M_PRTY1) 14581 14582 #define S_PRTY0 0 14583 #define M_PRTY0 0x3U 14584 #define V_PRTY0(x) ((x) << S_PRTY0) 14585 #define G_PRTY0(x) (((x) >> S_PRTY0) & M_PRTY0) 14586 14587 #define A_MPS_VF_STAT_TX_VF_BCAST_BYTES_L 0x80 14588 #define A_MPS_VF_STAT_TX_VF_BCAST_BYTES_H 0x84 14589 #define A_MPS_VF_STAT_TX_VF_BCAST_FRAMES_L 0x88 14590 #define A_MPS_VF_STAT_TX_VF_BCAST_FRAMES_H 0x8c 14591 #define A_MPS_VF_STAT_TX_VF_MCAST_BYTES_L 0x90 14592 #define A_MPS_VF_STAT_TX_VF_MCAST_BYTES_H 0x94 14593 #define A_MPS_VF_STAT_TX_VF_MCAST_FRAMES_L 0x98 14594 #define A_MPS_VF_STAT_TX_VF_MCAST_FRAMES_H 0x9c 14595 #define A_MPS_VF_STAT_TX_VF_UCAST_BYTES_L 0xa0 14596 #define A_MPS_VF_STAT_TX_VF_UCAST_BYTES_H 0xa4 14597 #define A_MPS_VF_STAT_TX_VF_UCAST_FRAMES_L 0xa8 14598 #define A_MPS_VF_STAT_TX_VF_UCAST_FRAMES_H 0xac 14599 #define A_MPS_VF_STAT_TX_VF_DROP_FRAMES_L 0xb0 14600 #define A_MPS_VF_STAT_TX_VF_DROP_FRAMES_H 0xb4 14601 #define A_MPS_VF_STAT_TX_VF_OFFLOAD_BYTES_L 0xb8 14602 #define A_MPS_VF_STAT_TX_VF_OFFLOAD_BYTES_H 0xbc 14603 #define A_MPS_VF_STAT_TX_VF_OFFLOAD_FRAMES_L 0xc0 14604 #define A_MPS_VF_STAT_TX_VF_OFFLOAD_FRAMES_H 0xc4 14605 #define A_MPS_VF_STAT_RX_VF_BCAST_BYTES_L 0xc8 14606 #define A_MPS_VF_STAT_RX_VF_BCAST_BYTES_H 0xcc 14607 #define A_MPS_VF_STAT_RX_VF_BCAST_FRAMES_L 0xd0 14608 #define A_MPS_VF_STAT_RX_VF_BCAST_FRAMES_H 0xd4 14609 #define A_MPS_VF_STAT_RX_VF_MCAST_BYTES_L 0xd8 14610 #define A_MPS_VF_STAT_RX_VF_MCAST_BYTES_H 0xdc 14611 #define A_MPS_VF_STAT_RX_VF_MCAST_FRAMES_L 0xe0 14612 #define A_MPS_VF_STAT_RX_VF_MCAST_FRAMES_H 0xe4 14613 #define A_MPS_VF_STAT_RX_VF_UCAST_BYTES_L 0xe8 14614 #define A_MPS_VF_STAT_RX_VF_UCAST_BYTES_H 0xec 14615 #define A_MPS_VF_STAT_RX_VF_UCAST_FRAMES_L 0xf0 14616 #define A_MPS_VF_STAT_RX_VF_UCAST_FRAMES_H 0xf4 14617 #define A_MPS_VF_STAT_RX_VF_ERR_FRAMES_L 0xf8 14618 #define A_MPS_VF_STAT_RX_VF_ERR_FRAMES_H 0xfc 14619 #define A_MPS_PORT_RX_CTL 0x100 14620 14621 #define S_NO_RPLCT_M 20 14622 #define V_NO_RPLCT_M(x) ((x) << S_NO_RPLCT_M) 14623 #define F_NO_RPLCT_M V_NO_RPLCT_M(1U) 14624 14625 #define S_RPLCT_SEL_L 18 14626 #define M_RPLCT_SEL_L 0x3U 14627 #define V_RPLCT_SEL_L(x) ((x) << S_RPLCT_SEL_L) 14628 #define G_RPLCT_SEL_L(x) (((x) >> S_RPLCT_SEL_L) & M_RPLCT_SEL_L) 14629 14630 #define S_FLTR_VLAN_SEL 17 14631 #define V_FLTR_VLAN_SEL(x) ((x) << S_FLTR_VLAN_SEL) 14632 #define F_FLTR_VLAN_SEL V_FLTR_VLAN_SEL(1U) 14633 14634 #define S_PRIO_VLAN_SEL 16 14635 #define V_PRIO_VLAN_SEL(x) ((x) << S_PRIO_VLAN_SEL) 14636 #define F_PRIO_VLAN_SEL V_PRIO_VLAN_SEL(1U) 14637 14638 #define S_CHK_8023_LEN_M 15 14639 #define V_CHK_8023_LEN_M(x) ((x) << S_CHK_8023_LEN_M) 14640 #define F_CHK_8023_LEN_M V_CHK_8023_LEN_M(1U) 14641 14642 #define S_CHK_8023_LEN_L 14 14643 #define V_CHK_8023_LEN_L(x) ((x) << S_CHK_8023_LEN_L) 14644 #define F_CHK_8023_LEN_L V_CHK_8023_LEN_L(1U) 14645 14646 #define S_NIV_DROP 13 14647 #define V_NIV_DROP(x) ((x) << S_NIV_DROP) 14648 #define F_NIV_DROP V_NIV_DROP(1U) 14649 14650 #define S_NOV_DROP 12 14651 #define V_NOV_DROP(x) ((x) << S_NOV_DROP) 14652 #define F_NOV_DROP V_NOV_DROP(1U) 14653 14654 #define S_CLS_PRT 11 14655 #define V_CLS_PRT(x) ((x) << S_CLS_PRT) 14656 #define F_CLS_PRT V_CLS_PRT(1U) 14657 14658 #define S_RX_QFC_EN 10 14659 #define V_RX_QFC_EN(x) ((x) << S_RX_QFC_EN) 14660 #define F_RX_QFC_EN V_RX_QFC_EN(1U) 14661 14662 #define S_QFC_FWD_UP 9 14663 #define V_QFC_FWD_UP(x) ((x) << S_QFC_FWD_UP) 14664 #define F_QFC_FWD_UP V_QFC_FWD_UP(1U) 14665 14666 #define S_PPP_FWD_UP 8 14667 #define V_PPP_FWD_UP(x) ((x) << S_PPP_FWD_UP) 14668 #define F_PPP_FWD_UP V_PPP_FWD_UP(1U) 14669 14670 #define S_PAUSE_FWD_UP 7 14671 #define V_PAUSE_FWD_UP(x) ((x) << S_PAUSE_FWD_UP) 14672 #define F_PAUSE_FWD_UP V_PAUSE_FWD_UP(1U) 14673 14674 #define S_LPBK_BP 6 14675 #define V_LPBK_BP(x) ((x) << S_LPBK_BP) 14676 #define F_LPBK_BP V_LPBK_BP(1U) 14677 14678 #define S_PASS_NO_MATCH 5 14679 #define V_PASS_NO_MATCH(x) ((x) << S_PASS_NO_MATCH) 14680 #define F_PASS_NO_MATCH V_PASS_NO_MATCH(1U) 14681 14682 #define S_IVLAN_EN 4 14683 #define V_IVLAN_EN(x) ((x) << S_IVLAN_EN) 14684 #define F_IVLAN_EN V_IVLAN_EN(1U) 14685 14686 #define S_OVLAN_EN3 3 14687 #define V_OVLAN_EN3(x) ((x) << S_OVLAN_EN3) 14688 #define F_OVLAN_EN3 V_OVLAN_EN3(1U) 14689 14690 #define S_OVLAN_EN2 2 14691 #define V_OVLAN_EN2(x) ((x) << S_OVLAN_EN2) 14692 #define F_OVLAN_EN2 V_OVLAN_EN2(1U) 14693 14694 #define S_OVLAN_EN1 1 14695 #define V_OVLAN_EN1(x) ((x) << S_OVLAN_EN1) 14696 #define F_OVLAN_EN1 V_OVLAN_EN1(1U) 14697 14698 #define S_OVLAN_EN0 0 14699 #define V_OVLAN_EN0(x) ((x) << S_OVLAN_EN0) 14700 #define F_OVLAN_EN0 V_OVLAN_EN0(1U) 14701 14702 #define A_MPS_PORT_RX_MTU 0x104 14703 #define A_MPS_PORT_RX_PF_MAP 0x108 14704 #define A_MPS_PORT_RX_VF_MAP0 0x10c 14705 #define A_MPS_PORT_RX_VF_MAP1 0x110 14706 #define A_MPS_PORT_RX_VF_MAP2 0x114 14707 #define A_MPS_PORT_RX_VF_MAP3 0x118 14708 #define A_MPS_PORT_RX_IVLAN 0x11c 14709 14710 #define S_IVLAN_ETYPE 0 14711 #define M_IVLAN_ETYPE 0xffffU 14712 #define V_IVLAN_ETYPE(x) ((x) << S_IVLAN_ETYPE) 14713 #define G_IVLAN_ETYPE(x) (((x) >> S_IVLAN_ETYPE) & M_IVLAN_ETYPE) 14714 14715 #define A_MPS_PORT_RX_OVLAN0 0x120 14716 14717 #define S_OVLAN_MASK 16 14718 #define M_OVLAN_MASK 0xffffU 14719 #define V_OVLAN_MASK(x) ((x) << S_OVLAN_MASK) 14720 #define G_OVLAN_MASK(x) (((x) >> S_OVLAN_MASK) & M_OVLAN_MASK) 14721 14722 #define S_OVLAN_ETYPE 0 14723 #define M_OVLAN_ETYPE 0xffffU 14724 #define V_OVLAN_ETYPE(x) ((x) << S_OVLAN_ETYPE) 14725 #define G_OVLAN_ETYPE(x) (((x) >> S_OVLAN_ETYPE) & M_OVLAN_ETYPE) 14726 14727 #define A_MPS_PORT_RX_OVLAN1 0x124 14728 #define A_MPS_PORT_RX_OVLAN2 0x128 14729 #define A_MPS_PORT_RX_OVLAN3 0x12c 14730 #define A_MPS_PORT_RX_RSS_HASH 0x130 14731 #define A_MPS_PORT_RX_RSS_CONTROL 0x134 14732 14733 #define S_RSS_CTRL 16 14734 #define M_RSS_CTRL 0xffU 14735 #define V_RSS_CTRL(x) ((x) << S_RSS_CTRL) 14736 #define G_RSS_CTRL(x) (((x) >> S_RSS_CTRL) & M_RSS_CTRL) 14737 14738 #define S_QUE_NUM 0 14739 #define M_QUE_NUM 0xffffU 14740 #define V_QUE_NUM(x) ((x) << S_QUE_NUM) 14741 #define G_QUE_NUM(x) (((x) >> S_QUE_NUM) & M_QUE_NUM) 14742 14743 #define A_MPS_PORT_RX_CTL1 0x138 14744 14745 #define S_FIXED_PFVF_MAC 13 14746 #define V_FIXED_PFVF_MAC(x) ((x) << S_FIXED_PFVF_MAC) 14747 #define F_FIXED_PFVF_MAC V_FIXED_PFVF_MAC(1U) 14748 14749 #define S_FIXED_PFVF_LPBK 12 14750 #define V_FIXED_PFVF_LPBK(x) ((x) << S_FIXED_PFVF_LPBK) 14751 #define F_FIXED_PFVF_LPBK V_FIXED_PFVF_LPBK(1U) 14752 14753 #define S_FIXED_PFVF_LPBK_OV 11 14754 #define V_FIXED_PFVF_LPBK_OV(x) ((x) << S_FIXED_PFVF_LPBK_OV) 14755 #define F_FIXED_PFVF_LPBK_OV V_FIXED_PFVF_LPBK_OV(1U) 14756 14757 #define S_FIXED_PF 8 14758 #define M_FIXED_PF 0x7U 14759 #define V_FIXED_PF(x) ((x) << S_FIXED_PF) 14760 #define G_FIXED_PF(x) (((x) >> S_FIXED_PF) & M_FIXED_PF) 14761 14762 #define S_FIXED_VF_VLD 7 14763 #define V_FIXED_VF_VLD(x) ((x) << S_FIXED_VF_VLD) 14764 #define F_FIXED_VF_VLD V_FIXED_VF_VLD(1U) 14765 14766 #define S_FIXED_VF 0 14767 #define M_FIXED_VF 0x7fU 14768 #define V_FIXED_VF(x) ((x) << S_FIXED_VF) 14769 #define G_FIXED_VF(x) (((x) >> S_FIXED_VF) & M_FIXED_VF) 14770 14771 #define A_MPS_PORT_RX_SPARE 0x13c 14772 #define A_MPS_PORT_TX_MAC_RELOAD_CH0 0x190 14773 14774 #define S_CREDIT 0 14775 #define M_CREDIT 0xffffU 14776 #define V_CREDIT(x) ((x) << S_CREDIT) 14777 #define G_CREDIT(x) (((x) >> S_CREDIT) & M_CREDIT) 14778 14779 #define A_MPS_PORT_TX_MAC_RELOAD_CH1 0x194 14780 #define A_MPS_PORT_TX_MAC_RELOAD_CH2 0x198 14781 #define A_MPS_PORT_TX_MAC_RELOAD_CH3 0x19c 14782 #define A_MPS_PORT_TX_MAC_RELOAD_CH4 0x1a0 14783 #define A_MPS_PORT_TX_LPBK_RELOAD_CH0 0x1a8 14784 #define A_MPS_PORT_TX_LPBK_RELOAD_CH1 0x1ac 14785 #define A_MPS_PORT_TX_LPBK_RELOAD_CH2 0x1b0 14786 #define A_MPS_PORT_TX_LPBK_RELOAD_CH3 0x1b4 14787 #define A_MPS_PORT_TX_LPBK_RELOAD_CH4 0x1b8 14788 #define A_MPS_PORT_TX_FIFO_CTL 0x1c4 14789 14790 #define S_FIFOTH 5 14791 #define M_FIFOTH 0x1ffU 14792 #define V_FIFOTH(x) ((x) << S_FIFOTH) 14793 #define G_FIFOTH(x) (((x) >> S_FIFOTH) & M_FIFOTH) 14794 14795 #define S_FIFOEN 4 14796 #define V_FIFOEN(x) ((x) << S_FIFOEN) 14797 #define F_FIFOEN V_FIFOEN(1U) 14798 14799 #define S_MAXPKTCNT 0 14800 #define M_MAXPKTCNT 0xfU 14801 #define V_MAXPKTCNT(x) ((x) << S_MAXPKTCNT) 14802 #define G_MAXPKTCNT(x) (((x) >> S_MAXPKTCNT) & M_MAXPKTCNT) 14803 14804 #define A_MPS_PORT_FPGA_PAUSE_CTL 0x1c8 14805 #define A_MPS_PORT_CLS_HASH_SRAM 0x200 14806 14807 #define S_VALID 20 14808 #define V_VALID(x) ((x) << S_VALID) 14809 #define F_VALID V_VALID(1U) 14810 14811 #define S_HASHPORTMAP 16 14812 #define M_HASHPORTMAP 0xfU 14813 #define V_HASHPORTMAP(x) ((x) << S_HASHPORTMAP) 14814 #define G_HASHPORTMAP(x) (((x) >> S_HASHPORTMAP) & M_HASHPORTMAP) 14815 14816 #define S_MULTILISTEN 15 14817 #define V_MULTILISTEN(x) ((x) << S_MULTILISTEN) 14818 #define F_MULTILISTEN V_MULTILISTEN(1U) 14819 14820 #define S_PRIORITY 12 14821 #define M_PRIORITY 0x7U 14822 #define V_PRIORITY(x) ((x) << S_PRIORITY) 14823 #define G_PRIORITY(x) (((x) >> S_PRIORITY) & M_PRIORITY) 14824 14825 #define S_REPLICATE 11 14826 #define V_REPLICATE(x) ((x) << S_REPLICATE) 14827 #define F_REPLICATE V_REPLICATE(1U) 14828 14829 #define S_PF 8 14830 #define M_PF 0x7U 14831 #define V_PF(x) ((x) << S_PF) 14832 #define G_PF(x) (((x) >> S_PF) & M_PF) 14833 14834 #define S_VF_VALID 7 14835 #define V_VF_VALID(x) ((x) << S_VF_VALID) 14836 #define F_VF_VALID V_VF_VALID(1U) 14837 14838 #define S_VF 0 14839 #define M_VF 0x7fU 14840 #define V_VF(x) ((x) << S_VF) 14841 #define G_VF(x) (((x) >> S_VF) & M_VF) 14842 14843 #define A_MPS_PF_CTL 0x2c0 14844 14845 #define S_TXEN 1 14846 #define V_TXEN(x) ((x) << S_TXEN) 14847 #define F_TXEN V_TXEN(1U) 14848 14849 #define S_RXEN 0 14850 #define V_RXEN(x) ((x) << S_RXEN) 14851 #define F_RXEN V_RXEN(1U) 14852 14853 #define A_MPS_PF_TX_QINQ_VLAN 0x2e0 14854 14855 #define S_PROTOCOLID 16 14856 #define M_PROTOCOLID 0xffffU 14857 #define V_PROTOCOLID(x) ((x) << S_PROTOCOLID) 14858 #define G_PROTOCOLID(x) (((x) >> S_PROTOCOLID) & M_PROTOCOLID) 14859 14860 #define S_VLAN_PRIO 13 14861 #define M_VLAN_PRIO 0x7U 14862 #define V_VLAN_PRIO(x) ((x) << S_VLAN_PRIO) 14863 #define G_VLAN_PRIO(x) (((x) >> S_VLAN_PRIO) & M_VLAN_PRIO) 14864 14865 #define S_CFI 12 14866 #define V_CFI(x) ((x) << S_CFI) 14867 #define F_CFI V_CFI(1U) 14868 14869 #define S_TAG 0 14870 #define M_TAG 0xfffU 14871 #define V_TAG(x) ((x) << S_TAG) 14872 #define G_TAG(x) (((x) >> S_TAG) & M_TAG) 14873 14874 #define A_MPS_PF_STAT_TX_PF_BCAST_BYTES_L 0x300 14875 #define A_MPS_PF_STAT_TX_PF_BCAST_BYTES_H 0x304 14876 #define A_MPS_PORT_CLS_HASH_CTL 0x304 14877 14878 #define S_UNICASTENABLE 31 14879 #define V_UNICASTENABLE(x) ((x) << S_UNICASTENABLE) 14880 #define F_UNICASTENABLE V_UNICASTENABLE(1U) 14881 14882 #define A_MPS_PF_STAT_TX_PF_BCAST_FRAMES_L 0x308 14883 #define A_MPS_PORT_CLS_PROMISCUOUS_CTL 0x308 14884 14885 #define S_PROMISCEN 31 14886 #define V_PROMISCEN(x) ((x) << S_PROMISCEN) 14887 #define F_PROMISCEN V_PROMISCEN(1U) 14888 14889 #define A_MPS_PF_STAT_TX_PF_BCAST_FRAMES_H 0x30c 14890 #define A_MPS_PORT_CLS_BMC_MAC_ADDR_L 0x30c 14891 #define A_MPS_PF_STAT_TX_PF_MCAST_BYTES_L 0x310 14892 #define A_MPS_PORT_CLS_BMC_MAC_ADDR_H 0x310 14893 14894 #define S_MATCHBOTH 17 14895 #define V_MATCHBOTH(x) ((x) << S_MATCHBOTH) 14896 #define F_MATCHBOTH V_MATCHBOTH(1U) 14897 14898 #define S_BMC_VLD 16 14899 #define V_BMC_VLD(x) ((x) << S_BMC_VLD) 14900 #define F_BMC_VLD V_BMC_VLD(1U) 14901 14902 #define A_MPS_PF_STAT_TX_PF_MCAST_BYTES_H 0x314 14903 #define A_MPS_PORT_CLS_BMC_VLAN 0x314 14904 14905 #define S_BMC_VLAN_SEL 13 14906 #define V_BMC_VLAN_SEL(x) ((x) << S_BMC_VLAN_SEL) 14907 #define F_BMC_VLAN_SEL V_BMC_VLAN_SEL(1U) 14908 14909 #define S_VLAN_VLD 12 14910 #define V_VLAN_VLD(x) ((x) << S_VLAN_VLD) 14911 #define F_VLAN_VLD V_VLAN_VLD(1U) 14912 14913 #define A_MPS_PF_STAT_TX_PF_MCAST_FRAMES_L 0x318 14914 #define A_MPS_PORT_CLS_CTL 0x318 14915 14916 #define S_PF_VLAN_SEL 0 14917 #define V_PF_VLAN_SEL(x) ((x) << S_PF_VLAN_SEL) 14918 #define F_PF_VLAN_SEL V_PF_VLAN_SEL(1U) 14919 14920 #define A_MPS_PF_STAT_TX_PF_MCAST_FRAMES_H 0x31c 14921 #define A_MPS_PF_STAT_TX_PF_UCAST_BYTES_L 0x320 14922 #define A_MPS_PF_STAT_TX_PF_UCAST_BYTES_H 0x324 14923 #define A_MPS_PF_STAT_TX_PF_UCAST_FRAMES_L 0x328 14924 #define A_MPS_PF_STAT_TX_PF_UCAST_FRAMES_H 0x32c 14925 #define A_MPS_PF_STAT_TX_PF_OFFLOAD_BYTES_L 0x330 14926 #define A_MPS_PF_STAT_TX_PF_OFFLOAD_BYTES_H 0x334 14927 #define A_MPS_PF_STAT_TX_PF_OFFLOAD_FRAMES_L 0x338 14928 #define A_MPS_PF_STAT_TX_PF_OFFLOAD_FRAMES_H 0x33c 14929 #define A_MPS_PF_STAT_RX_PF_BYTES_L 0x340 14930 #define A_MPS_PF_STAT_RX_PF_BYTES_H 0x344 14931 #define A_MPS_PF_STAT_RX_PF_FRAMES_L 0x348 14932 #define A_MPS_PF_STAT_RX_PF_FRAMES_H 0x34c 14933 #define A_MPS_PF_STAT_RX_PF_BCAST_BYTES_L 0x350 14934 #define A_MPS_PF_STAT_RX_PF_BCAST_BYTES_H 0x354 14935 #define A_MPS_PF_STAT_RX_PF_BCAST_FRAMES_L 0x358 14936 #define A_MPS_PF_STAT_RX_PF_BCAST_FRAMES_H 0x35c 14937 #define A_MPS_PF_STAT_RX_PF_MCAST_BYTES_L 0x360 14938 #define A_MPS_PF_STAT_RX_PF_MCAST_BYTES_H 0x364 14939 #define A_MPS_PF_STAT_RX_PF_MCAST_FRAMES_L 0x368 14940 #define A_MPS_PF_STAT_RX_PF_MCAST_FRAMES_H 0x36c 14941 #define A_MPS_PF_STAT_RX_PF_UCAST_BYTES_L 0x370 14942 #define A_MPS_PF_STAT_RX_PF_UCAST_BYTES_H 0x374 14943 #define A_MPS_PF_STAT_RX_PF_UCAST_FRAMES_L 0x378 14944 #define A_MPS_PF_STAT_RX_PF_UCAST_FRAMES_H 0x37c 14945 #define A_MPS_PF_STAT_RX_PF_ERR_FRAMES_L 0x380 14946 #define A_MPS_PF_STAT_RX_PF_ERR_FRAMES_H 0x384 14947 #define A_MPS_PORT_STAT_TX_PORT_BYTES_L 0x400 14948 #define A_MPS_PORT_STAT_TX_PORT_BYTES_H 0x404 14949 #define A_MPS_PORT_STAT_TX_PORT_FRAMES_L 0x408 14950 #define A_MPS_PORT_STAT_TX_PORT_FRAMES_H 0x40c 14951 #define A_MPS_PORT_STAT_TX_PORT_BCAST_L 0x410 14952 #define A_MPS_PORT_STAT_TX_PORT_BCAST_H 0x414 14953 #define A_MPS_PORT_STAT_TX_PORT_MCAST_L 0x418 14954 #define A_MPS_PORT_STAT_TX_PORT_MCAST_H 0x41c 14955 #define A_MPS_PORT_STAT_TX_PORT_UCAST_L 0x420 14956 #define A_MPS_PORT_STAT_TX_PORT_UCAST_H 0x424 14957 #define A_MPS_PORT_STAT_TX_PORT_ERROR_L 0x428 14958 #define A_MPS_PORT_STAT_TX_PORT_ERROR_H 0x42c 14959 #define A_MPS_PORT_STAT_TX_PORT_64B_L 0x430 14960 #define A_MPS_PORT_STAT_TX_PORT_64B_H 0x434 14961 #define A_MPS_PORT_STAT_TX_PORT_65B_127B_L 0x438 14962 #define A_MPS_PORT_STAT_TX_PORT_65B_127B_H 0x43c 14963 #define A_MPS_PORT_STAT_TX_PORT_128B_255B_L 0x440 14964 #define A_MPS_PORT_STAT_TX_PORT_128B_255B_H 0x444 14965 #define A_MPS_PORT_STAT_TX_PORT_256B_511B_L 0x448 14966 #define A_MPS_PORT_STAT_TX_PORT_256B_511B_H 0x44c 14967 #define A_MPS_PORT_STAT_TX_PORT_512B_1023B_L 0x450 14968 #define A_MPS_PORT_STAT_TX_PORT_512B_1023B_H 0x454 14969 #define A_MPS_PORT_STAT_TX_PORT_1024B_1518B_L 0x458 14970 #define A_MPS_PORT_STAT_TX_PORT_1024B_1518B_H 0x45c 14971 #define A_MPS_PORT_STAT_TX_PORT_1519B_MAX_L 0x460 14972 #define A_MPS_PORT_STAT_TX_PORT_1519B_MAX_H 0x464 14973 #define A_MPS_PORT_STAT_TX_PORT_DROP_L 0x468 14974 #define A_MPS_PORT_STAT_TX_PORT_DROP_H 0x46c 14975 #define A_MPS_PORT_STAT_TX_PORT_PAUSE_L 0x470 14976 #define A_MPS_PORT_STAT_TX_PORT_PAUSE_H 0x474 14977 #define A_MPS_PORT_STAT_TX_PORT_PPP0_L 0x478 14978 #define A_MPS_PORT_STAT_TX_PORT_PPP0_H 0x47c 14979 #define A_MPS_PORT_STAT_TX_PORT_PPP1_L 0x480 14980 #define A_MPS_PORT_STAT_TX_PORT_PPP1_H 0x484 14981 #define A_MPS_PORT_STAT_TX_PORT_PPP2_L 0x488 14982 #define A_MPS_PORT_STAT_TX_PORT_PPP2_H 0x48c 14983 #define A_MPS_PORT_STAT_TX_PORT_PPP3_L 0x490 14984 #define A_MPS_PORT_STAT_TX_PORT_PPP3_H 0x494 14985 #define A_MPS_PORT_STAT_TX_PORT_PPP4_L 0x498 14986 #define A_MPS_PORT_STAT_TX_PORT_PPP4_H 0x49c 14987 #define A_MPS_PORT_STAT_TX_PORT_PPP5_L 0x4a0 14988 #define A_MPS_PORT_STAT_TX_PORT_PPP5_H 0x4a4 14989 #define A_MPS_PORT_STAT_TX_PORT_PPP6_L 0x4a8 14990 #define A_MPS_PORT_STAT_TX_PORT_PPP6_H 0x4ac 14991 #define A_MPS_PORT_STAT_TX_PORT_PPP7_L 0x4b0 14992 #define A_MPS_PORT_STAT_TX_PORT_PPP7_H 0x4b4 14993 #define A_MPS_PORT_STAT_LB_PORT_BYTES_L 0x4c0 14994 #define A_MPS_PORT_STAT_LB_PORT_BYTES_H 0x4c4 14995 #define A_MPS_PORT_STAT_LB_PORT_FRAMES_L 0x4c8 14996 #define A_MPS_PORT_STAT_LB_PORT_FRAMES_H 0x4cc 14997 #define A_MPS_PORT_STAT_LB_PORT_BCAST_L 0x4d0 14998 #define A_MPS_PORT_STAT_LB_PORT_BCAST_H 0x4d4 14999 #define A_MPS_PORT_STAT_LB_PORT_MCAST_L 0x4d8 15000 #define A_MPS_PORT_STAT_LB_PORT_MCAST_H 0x4dc 15001 #define A_MPS_PORT_STAT_LB_PORT_UCAST_L 0x4e0 15002 #define A_MPS_PORT_STAT_LB_PORT_UCAST_H 0x4e4 15003 #define A_MPS_PORT_STAT_LB_PORT_ERROR_L 0x4e8 15004 #define A_MPS_PORT_STAT_LB_PORT_ERROR_H 0x4ec 15005 #define A_MPS_PORT_STAT_LB_PORT_64B_L 0x4f0 15006 #define A_MPS_PORT_STAT_LB_PORT_64B_H 0x4f4 15007 #define A_MPS_PORT_STAT_LB_PORT_65B_127B_L 0x4f8 15008 #define A_MPS_PORT_STAT_LB_PORT_65B_127B_H 0x4fc 15009 #define A_MPS_PORT_STAT_LB_PORT_128B_255B_L 0x500 15010 #define A_MPS_PORT_STAT_LB_PORT_128B_255B_H 0x504 15011 #define A_MPS_PORT_STAT_LB_PORT_256B_511B_L 0x508 15012 #define A_MPS_PORT_STAT_LB_PORT_256B_511B_H 0x50c 15013 #define A_MPS_PORT_STAT_LB_PORT_512B_1023B_L 0x510 15014 #define A_MPS_PORT_STAT_LB_PORT_512B_1023B_H 0x514 15015 #define A_MPS_PORT_STAT_LB_PORT_1024B_1518B_L 0x518 15016 #define A_MPS_PORT_STAT_LB_PORT_1024B_1518B_H 0x51c 15017 #define A_MPS_PORT_STAT_LB_PORT_1519B_MAX_L 0x520 15018 #define A_MPS_PORT_STAT_LB_PORT_1519B_MAX_H 0x524 15019 #define A_MPS_PORT_STAT_LB_PORT_DROP_FRAMES 0x528 15020 #define A_MPS_PORT_STAT_RX_PORT_BYTES_L 0x540 15021 #define A_MPS_PORT_STAT_RX_PORT_BYTES_H 0x544 15022 #define A_MPS_PORT_STAT_RX_PORT_FRAMES_L 0x548 15023 #define A_MPS_PORT_STAT_RX_PORT_FRAMES_H 0x54c 15024 #define A_MPS_PORT_STAT_RX_PORT_BCAST_L 0x550 15025 #define A_MPS_PORT_STAT_RX_PORT_BCAST_H 0x554 15026 #define A_MPS_PORT_STAT_RX_PORT_MCAST_L 0x558 15027 #define A_MPS_PORT_STAT_RX_PORT_MCAST_H 0x55c 15028 #define A_MPS_PORT_STAT_RX_PORT_UCAST_L 0x560 15029 #define A_MPS_PORT_STAT_RX_PORT_UCAST_H 0x564 15030 #define A_MPS_PORT_STAT_RX_PORT_MTU_ERROR_L 0x568 15031 #define A_MPS_PORT_STAT_RX_PORT_MTU_ERROR_H 0x56c 15032 #define A_MPS_PORT_STAT_RX_PORT_MTU_CRC_ERROR_L 0x570 15033 #define A_MPS_PORT_STAT_RX_PORT_MTU_CRC_ERROR_H 0x574 15034 #define A_MPS_PORT_STAT_RX_PORT_CRC_ERROR_L 0x578 15035 #define A_MPS_PORT_STAT_RX_PORT_CRC_ERROR_H 0x57c 15036 #define A_MPS_PORT_STAT_RX_PORT_LEN_ERROR_L 0x580 15037 #define A_MPS_PORT_STAT_RX_PORT_LEN_ERROR_H 0x584 15038 #define A_MPS_PORT_STAT_RX_PORT_SYM_ERROR_L 0x588 15039 #define A_MPS_PORT_STAT_RX_PORT_SYM_ERROR_H 0x58c 15040 #define A_MPS_PORT_STAT_RX_PORT_64B_L 0x590 15041 #define A_MPS_PORT_STAT_RX_PORT_64B_H 0x594 15042 #define A_MPS_PORT_STAT_RX_PORT_65B_127B_L 0x598 15043 #define A_MPS_PORT_STAT_RX_PORT_65B_127B_H 0x59c 15044 #define A_MPS_PORT_STAT_RX_PORT_128B_255B_L 0x5a0 15045 #define A_MPS_PORT_STAT_RX_PORT_128B_255B_H 0x5a4 15046 #define A_MPS_PORT_STAT_RX_PORT_256B_511B_L 0x5a8 15047 #define A_MPS_PORT_STAT_RX_PORT_256B_511B_H 0x5ac 15048 #define A_MPS_PORT_STAT_RX_PORT_512B_1023B_L 0x5b0 15049 #define A_MPS_PORT_STAT_RX_PORT_512B_1023B_H 0x5b4 15050 #define A_MPS_PORT_STAT_RX_PORT_1024B_1518B_L 0x5b8 15051 #define A_MPS_PORT_STAT_RX_PORT_1024B_1518B_H 0x5bc 15052 #define A_MPS_PORT_STAT_RX_PORT_1519B_MAX_L 0x5c0 15053 #define A_MPS_PORT_STAT_RX_PORT_1519B_MAX_H 0x5c4 15054 #define A_MPS_PORT_STAT_RX_PORT_PAUSE_L 0x5c8 15055 #define A_MPS_PORT_STAT_RX_PORT_PAUSE_H 0x5cc 15056 #define A_MPS_PORT_STAT_RX_PORT_PPP0_L 0x5d0 15057 #define A_MPS_PORT_STAT_RX_PORT_PPP0_H 0x5d4 15058 #define A_MPS_PORT_STAT_RX_PORT_PPP1_L 0x5d8 15059 #define A_MPS_PORT_STAT_RX_PORT_PPP1_H 0x5dc 15060 #define A_MPS_PORT_STAT_RX_PORT_PPP2_L 0x5e0 15061 #define A_MPS_PORT_STAT_RX_PORT_PPP2_H 0x5e4 15062 #define A_MPS_PORT_STAT_RX_PORT_PPP3_L 0x5e8 15063 #define A_MPS_PORT_STAT_RX_PORT_PPP3_H 0x5ec 15064 #define A_MPS_PORT_STAT_RX_PORT_PPP4_L 0x5f0 15065 #define A_MPS_PORT_STAT_RX_PORT_PPP4_H 0x5f4 15066 #define A_MPS_PORT_STAT_RX_PORT_PPP5_L 0x5f8 15067 #define A_MPS_PORT_STAT_RX_PORT_PPP5_H 0x5fc 15068 #define A_MPS_PORT_STAT_RX_PORT_PPP6_L 0x600 15069 #define A_MPS_PORT_STAT_RX_PORT_PPP6_H 0x604 15070 #define A_MPS_PORT_STAT_RX_PORT_PPP7_L 0x608 15071 #define A_MPS_PORT_STAT_RX_PORT_PPP7_H 0x60c 15072 #define A_MPS_PORT_STAT_RX_PORT_LESS_64B_L 0x610 15073 #define A_MPS_PORT_STAT_RX_PORT_LESS_64B_H 0x614 15074 #define A_MPS_CMN_CTL 0x9000 15075 15076 #define S_DETECT8023 3 15077 #define V_DETECT8023(x) ((x) << S_DETECT8023) 15078 #define F_DETECT8023 V_DETECT8023(1U) 15079 15080 #define S_VFDIRECTACCESS 2 15081 #define V_VFDIRECTACCESS(x) ((x) << S_VFDIRECTACCESS) 15082 #define F_VFDIRECTACCESS V_VFDIRECTACCESS(1U) 15083 15084 #define S_NUMPORTS 0 15085 #define M_NUMPORTS 0x3U 15086 #define V_NUMPORTS(x) ((x) << S_NUMPORTS) 15087 #define G_NUMPORTS(x) (((x) >> S_NUMPORTS) & M_NUMPORTS) 15088 15089 #define A_MPS_INT_ENABLE 0x9004 15090 15091 #define S_STATINTENB 5 15092 #define V_STATINTENB(x) ((x) << S_STATINTENB) 15093 #define F_STATINTENB V_STATINTENB(1U) 15094 15095 #define S_TXINTENB 4 15096 #define V_TXINTENB(x) ((x) << S_TXINTENB) 15097 #define F_TXINTENB V_TXINTENB(1U) 15098 15099 #define S_RXINTENB 3 15100 #define V_RXINTENB(x) ((x) << S_RXINTENB) 15101 #define F_RXINTENB V_RXINTENB(1U) 15102 15103 #define S_TRCINTENB 2 15104 #define V_TRCINTENB(x) ((x) << S_TRCINTENB) 15105 #define F_TRCINTENB V_TRCINTENB(1U) 15106 15107 #define S_CLSINTENB 1 15108 #define V_CLSINTENB(x) ((x) << S_CLSINTENB) 15109 #define F_CLSINTENB V_CLSINTENB(1U) 15110 15111 #define S_PLINTENB 0 15112 #define V_PLINTENB(x) ((x) << S_PLINTENB) 15113 #define F_PLINTENB V_PLINTENB(1U) 15114 15115 #define A_MPS_INT_CAUSE 0x9008 15116 15117 #define S_STATINT 5 15118 #define V_STATINT(x) ((x) << S_STATINT) 15119 #define F_STATINT V_STATINT(1U) 15120 15121 #define S_TXINT 4 15122 #define V_TXINT(x) ((x) << S_TXINT) 15123 #define F_TXINT V_TXINT(1U) 15124 15125 #define S_RXINT 3 15126 #define V_RXINT(x) ((x) << S_RXINT) 15127 #define F_RXINT V_RXINT(1U) 15128 15129 #define S_TRCINT 2 15130 #define V_TRCINT(x) ((x) << S_TRCINT) 15131 #define F_TRCINT V_TRCINT(1U) 15132 15133 #define S_CLSINT 1 15134 #define V_CLSINT(x) ((x) << S_CLSINT) 15135 #define F_CLSINT V_CLSINT(1U) 15136 15137 #define S_PLINT 0 15138 #define V_PLINT(x) ((x) << S_PLINT) 15139 #define F_PLINT V_PLINT(1U) 15140 15141 #define A_MPS_VF_TX_CTL_31_0 0x9010 15142 #define A_MPS_VF_TX_CTL_63_32 0x9014 15143 #define A_MPS_VF_TX_CTL_95_64 0x9018 15144 #define A_MPS_VF_TX_CTL_127_96 0x901c 15145 #define A_MPS_VF_RX_CTL_31_0 0x9020 15146 #define A_MPS_VF_RX_CTL_63_32 0x9024 15147 #define A_MPS_VF_RX_CTL_95_64 0x9028 15148 #define A_MPS_VF_RX_CTL_127_96 0x902c 15149 #define A_MPS_TX_PAUSE_DURATION_BUF_GRP0 0x9030 15150 15151 #define S_VALUE 0 15152 #define M_VALUE 0xffffU 15153 #define V_VALUE(x) ((x) << S_VALUE) 15154 #define G_VALUE(x) (((x) >> S_VALUE) & M_VALUE) 15155 15156 #define A_MPS_TX_PAUSE_DURATION_BUF_GRP1 0x9034 15157 #define A_MPS_TX_PAUSE_DURATION_BUF_GRP2 0x9038 15158 #define A_MPS_TX_PAUSE_DURATION_BUF_GRP3 0x903c 15159 #define A_MPS_TX_PAUSE_RETRANS_BUF_GRP0 0x9040 15160 #define A_MPS_TX_PAUSE_RETRANS_BUF_GRP1 0x9044 15161 #define A_MPS_TX_PAUSE_RETRANS_BUF_GRP2 0x9048 15162 #define A_MPS_TX_PAUSE_RETRANS_BUF_GRP3 0x904c 15163 #define A_MPS_TP_CSIDE_MUX_CTL_P0 0x9050 15164 15165 #define S_WEIGHT 0 15166 #define M_WEIGHT 0xfffU 15167 #define V_WEIGHT(x) ((x) << S_WEIGHT) 15168 #define G_WEIGHT(x) (((x) >> S_WEIGHT) & M_WEIGHT) 15169 15170 #define A_MPS_TP_CSIDE_MUX_CTL_P1 0x9054 15171 #define A_MPS_WOL_CTL_MODE 0x9058 15172 15173 #define S_WOL_MODE 0 15174 #define V_WOL_MODE(x) ((x) << S_WOL_MODE) 15175 #define F_WOL_MODE V_WOL_MODE(1U) 15176 15177 #define A_MPS_FPGA_DEBUG 0x9060 15178 15179 #define S_LPBK_EN 8 15180 #define V_LPBK_EN(x) ((x) << S_LPBK_EN) 15181 #define F_LPBK_EN V_LPBK_EN(1U) 15182 15183 #define S_CH_MAP3 6 15184 #define M_CH_MAP3 0x3U 15185 #define V_CH_MAP3(x) ((x) << S_CH_MAP3) 15186 #define G_CH_MAP3(x) (((x) >> S_CH_MAP3) & M_CH_MAP3) 15187 15188 #define S_CH_MAP2 4 15189 #define M_CH_MAP2 0x3U 15190 #define V_CH_MAP2(x) ((x) << S_CH_MAP2) 15191 #define G_CH_MAP2(x) (((x) >> S_CH_MAP2) & M_CH_MAP2) 15192 15193 #define S_CH_MAP1 2 15194 #define M_CH_MAP1 0x3U 15195 #define V_CH_MAP1(x) ((x) << S_CH_MAP1) 15196 #define G_CH_MAP1(x) (((x) >> S_CH_MAP1) & M_CH_MAP1) 15197 15198 #define S_CH_MAP0 0 15199 #define M_CH_MAP0 0x3U 15200 #define V_CH_MAP0(x) ((x) << S_CH_MAP0) 15201 #define G_CH_MAP0(x) (((x) >> S_CH_MAP0) & M_CH_MAP0) 15202 15203 #define A_MPS_DEBUG_CTL 0x9068 15204 15205 #define S_DBGMODECTL_H 11 15206 #define V_DBGMODECTL_H(x) ((x) << S_DBGMODECTL_H) 15207 #define F_DBGMODECTL_H V_DBGMODECTL_H(1U) 15208 15209 #define S_DBGSEL_H 6 15210 #define M_DBGSEL_H 0x1fU 15211 #define V_DBGSEL_H(x) ((x) << S_DBGSEL_H) 15212 #define G_DBGSEL_H(x) (((x) >> S_DBGSEL_H) & M_DBGSEL_H) 15213 15214 #define S_DBGMODECTL_L 5 15215 #define V_DBGMODECTL_L(x) ((x) << S_DBGMODECTL_L) 15216 #define F_DBGMODECTL_L V_DBGMODECTL_L(1U) 15217 15218 #define S_DBGSEL_L 0 15219 #define M_DBGSEL_L 0x1fU 15220 #define V_DBGSEL_L(x) ((x) << S_DBGSEL_L) 15221 #define G_DBGSEL_L(x) (((x) >> S_DBGSEL_L) & M_DBGSEL_L) 15222 15223 #define A_MPS_DEBUG_DATA_REG_L 0x906c 15224 #define A_MPS_DEBUG_DATA_REG_H 0x9070 15225 #define A_MPS_TOP_SPARE 0x9074 15226 15227 #define S_TOPSPARE 12 15228 #define M_TOPSPARE 0xfffffU 15229 #define V_TOPSPARE(x) ((x) << S_TOPSPARE) 15230 #define G_TOPSPARE(x) (((x) >> S_TOPSPARE) & M_TOPSPARE) 15231 15232 #define S_CHIKN_14463 8 15233 #define M_CHIKN_14463 0xfU 15234 #define V_CHIKN_14463(x) ((x) << S_CHIKN_14463) 15235 #define G_CHIKN_14463(x) (((x) >> S_CHIKN_14463) & M_CHIKN_14463) 15236 15237 #define S_OVLANSELLPBK3 7 15238 #define V_OVLANSELLPBK3(x) ((x) << S_OVLANSELLPBK3) 15239 #define F_OVLANSELLPBK3 V_OVLANSELLPBK3(1U) 15240 15241 #define S_OVLANSELLPBK2 6 15242 #define V_OVLANSELLPBK2(x) ((x) << S_OVLANSELLPBK2) 15243 #define F_OVLANSELLPBK2 V_OVLANSELLPBK2(1U) 15244 15245 #define S_OVLANSELLPBK1 5 15246 #define V_OVLANSELLPBK1(x) ((x) << S_OVLANSELLPBK1) 15247 #define F_OVLANSELLPBK1 V_OVLANSELLPBK1(1U) 15248 15249 #define S_OVLANSELLPBK0 4 15250 #define V_OVLANSELLPBK0(x) ((x) << S_OVLANSELLPBK0) 15251 #define F_OVLANSELLPBK0 V_OVLANSELLPBK0(1U) 15252 15253 #define S_OVLANSELMAC3 3 15254 #define V_OVLANSELMAC3(x) ((x) << S_OVLANSELMAC3) 15255 #define F_OVLANSELMAC3 V_OVLANSELMAC3(1U) 15256 15257 #define S_OVLANSELMAC2 2 15258 #define V_OVLANSELMAC2(x) ((x) << S_OVLANSELMAC2) 15259 #define F_OVLANSELMAC2 V_OVLANSELMAC2(1U) 15260 15261 #define S_OVLANSELMAC1 1 15262 #define V_OVLANSELMAC1(x) ((x) << S_OVLANSELMAC1) 15263 #define F_OVLANSELMAC1 V_OVLANSELMAC1(1U) 15264 15265 #define S_OVLANSELMAC0 0 15266 #define V_OVLANSELMAC0(x) ((x) << S_OVLANSELMAC0) 15267 #define F_OVLANSELMAC0 V_OVLANSELMAC0(1U) 15268 15269 #define A_MPS_BUILD_REVISION 0x90fc 15270 #define A_MPS_TX_PRTY_SEL 0x9400 15271 15272 #define S_CH4_PRTY 20 15273 #define M_CH4_PRTY 0x7U 15274 #define V_CH4_PRTY(x) ((x) << S_CH4_PRTY) 15275 #define G_CH4_PRTY(x) (((x) >> S_CH4_PRTY) & M_CH4_PRTY) 15276 15277 #define S_CH3_PRTY 16 15278 #define M_CH3_PRTY 0x7U 15279 #define V_CH3_PRTY(x) ((x) << S_CH3_PRTY) 15280 #define G_CH3_PRTY(x) (((x) >> S_CH3_PRTY) & M_CH3_PRTY) 15281 15282 #define S_CH2_PRTY 12 15283 #define M_CH2_PRTY 0x7U 15284 #define V_CH2_PRTY(x) ((x) << S_CH2_PRTY) 15285 #define G_CH2_PRTY(x) (((x) >> S_CH2_PRTY) & M_CH2_PRTY) 15286 15287 #define S_CH1_PRTY 8 15288 #define M_CH1_PRTY 0x7U 15289 #define V_CH1_PRTY(x) ((x) << S_CH1_PRTY) 15290 #define G_CH1_PRTY(x) (((x) >> S_CH1_PRTY) & M_CH1_PRTY) 15291 15292 #define S_CH0_PRTY 4 15293 #define M_CH0_PRTY 0x7U 15294 #define V_CH0_PRTY(x) ((x) << S_CH0_PRTY) 15295 #define G_CH0_PRTY(x) (((x) >> S_CH0_PRTY) & M_CH0_PRTY) 15296 15297 #define S_TP_SOURCE 2 15298 #define M_TP_SOURCE 0x3U 15299 #define V_TP_SOURCE(x) ((x) << S_TP_SOURCE) 15300 #define G_TP_SOURCE(x) (((x) >> S_TP_SOURCE) & M_TP_SOURCE) 15301 15302 #define S_NCSI_SOURCE 0 15303 #define M_NCSI_SOURCE 0x3U 15304 #define V_NCSI_SOURCE(x) ((x) << S_NCSI_SOURCE) 15305 #define G_NCSI_SOURCE(x) (((x) >> S_NCSI_SOURCE) & M_NCSI_SOURCE) 15306 15307 #define A_MPS_TX_INT_ENABLE 0x9404 15308 15309 #define S_PORTERR 16 15310 #define V_PORTERR(x) ((x) << S_PORTERR) 15311 #define F_PORTERR V_PORTERR(1U) 15312 15313 #define S_FRMERR 15 15314 #define V_FRMERR(x) ((x) << S_FRMERR) 15315 #define F_FRMERR V_FRMERR(1U) 15316 15317 #define S_SECNTERR 14 15318 #define V_SECNTERR(x) ((x) << S_SECNTERR) 15319 #define F_SECNTERR V_SECNTERR(1U) 15320 15321 #define S_BUBBLE 13 15322 #define V_BUBBLE(x) ((x) << S_BUBBLE) 15323 #define F_BUBBLE V_BUBBLE(1U) 15324 15325 #define S_TXDESCFIFO 9 15326 #define M_TXDESCFIFO 0xfU 15327 #define V_TXDESCFIFO(x) ((x) << S_TXDESCFIFO) 15328 #define G_TXDESCFIFO(x) (((x) >> S_TXDESCFIFO) & M_TXDESCFIFO) 15329 15330 #define S_TXDATAFIFO 5 15331 #define M_TXDATAFIFO 0xfU 15332 #define V_TXDATAFIFO(x) ((x) << S_TXDATAFIFO) 15333 #define G_TXDATAFIFO(x) (((x) >> S_TXDATAFIFO) & M_TXDATAFIFO) 15334 15335 #define S_NCSIFIFO 4 15336 #define V_NCSIFIFO(x) ((x) << S_NCSIFIFO) 15337 #define F_NCSIFIFO V_NCSIFIFO(1U) 15338 15339 #define S_TPFIFO 0 15340 #define M_TPFIFO 0xfU 15341 #define V_TPFIFO(x) ((x) << S_TPFIFO) 15342 #define G_TPFIFO(x) (((x) >> S_TPFIFO) & M_TPFIFO) 15343 15344 #define A_MPS_TX_INT_CAUSE 0x9408 15345 #define A_MPS_TX_PERR_ENABLE 0x9410 15346 #define A_MPS_TX_PERR_INJECT 0x9414 15347 15348 #define S_MPSTXMEMSEL 1 15349 #define M_MPSTXMEMSEL 0x1fU 15350 #define V_MPSTXMEMSEL(x) ((x) << S_MPSTXMEMSEL) 15351 #define G_MPSTXMEMSEL(x) (((x) >> S_MPSTXMEMSEL) & M_MPSTXMEMSEL) 15352 15353 #define A_MPS_TX_SE_CNT_TP01 0x9418 15354 #define A_MPS_TX_SE_CNT_TP23 0x941c 15355 #define A_MPS_TX_SE_CNT_MAC01 0x9420 15356 #define A_MPS_TX_SE_CNT_MAC23 0x9424 15357 #define A_MPS_TX_SECNT_SPI_BUBBLE_ERR 0x9428 15358 15359 #define S_BUBBLEERR 16 15360 #define M_BUBBLEERR 0xffU 15361 #define V_BUBBLEERR(x) ((x) << S_BUBBLEERR) 15362 #define G_BUBBLEERR(x) (((x) >> S_BUBBLEERR) & M_BUBBLEERR) 15363 15364 #define S_SPI 8 15365 #define M_SPI 0xffU 15366 #define V_SPI(x) ((x) << S_SPI) 15367 #define G_SPI(x) (((x) >> S_SPI) & M_SPI) 15368 15369 #define S_SECNT 0 15370 #define M_SECNT 0xffU 15371 #define V_SECNT(x) ((x) << S_SECNT) 15372 #define G_SECNT(x) (((x) >> S_SECNT) & M_SECNT) 15373 15374 #define A_MPS_TX_SECNT_BUBBLE_CLR 0x942c 15375 15376 #define S_BUBBLECLR 8 15377 #define M_BUBBLECLR 0xffU 15378 #define V_BUBBLECLR(x) ((x) << S_BUBBLECLR) 15379 #define G_BUBBLECLR(x) (((x) >> S_BUBBLECLR) & M_BUBBLECLR) 15380 15381 #define A_MPS_TX_PORT_ERR 0x9430 15382 15383 #define S_LPBKPT3 7 15384 #define V_LPBKPT3(x) ((x) << S_LPBKPT3) 15385 #define F_LPBKPT3 V_LPBKPT3(1U) 15386 15387 #define S_LPBKPT2 6 15388 #define V_LPBKPT2(x) ((x) << S_LPBKPT2) 15389 #define F_LPBKPT2 V_LPBKPT2(1U) 15390 15391 #define S_LPBKPT1 5 15392 #define V_LPBKPT1(x) ((x) << S_LPBKPT1) 15393 #define F_LPBKPT1 V_LPBKPT1(1U) 15394 15395 #define S_LPBKPT0 4 15396 #define V_LPBKPT0(x) ((x) << S_LPBKPT0) 15397 #define F_LPBKPT0 V_LPBKPT0(1U) 15398 15399 #define S_PT3 3 15400 #define V_PT3(x) ((x) << S_PT3) 15401 #define F_PT3 V_PT3(1U) 15402 15403 #define S_PT2 2 15404 #define V_PT2(x) ((x) << S_PT2) 15405 #define F_PT2 V_PT2(1U) 15406 15407 #define S_PT1 1 15408 #define V_PT1(x) ((x) << S_PT1) 15409 #define F_PT1 V_PT1(1U) 15410 15411 #define S_PT0 0 15412 #define V_PT0(x) ((x) << S_PT0) 15413 #define F_PT0 V_PT0(1U) 15414 15415 #define A_MPS_TX_LPBK_DROP_BP_CTL_CH0 0x9434 15416 15417 #define S_BPEN 1 15418 #define V_BPEN(x) ((x) << S_BPEN) 15419 #define F_BPEN V_BPEN(1U) 15420 15421 #define S_DROPEN 0 15422 #define V_DROPEN(x) ((x) << S_DROPEN) 15423 #define F_DROPEN V_DROPEN(1U) 15424 15425 #define A_MPS_TX_LPBK_DROP_BP_CTL_CH1 0x9438 15426 #define A_MPS_TX_LPBK_DROP_BP_CTL_CH2 0x943c 15427 #define A_MPS_TX_LPBK_DROP_BP_CTL_CH3 0x9440 15428 #define A_MPS_TX_DEBUG_REG_TP2TX_10 0x9444 15429 15430 #define S_SOPCH1 31 15431 #define V_SOPCH1(x) ((x) << S_SOPCH1) 15432 #define F_SOPCH1 V_SOPCH1(1U) 15433 15434 #define S_EOPCH1 30 15435 #define V_EOPCH1(x) ((x) << S_EOPCH1) 15436 #define F_EOPCH1 V_EOPCH1(1U) 15437 15438 #define S_SIZECH1 27 15439 #define M_SIZECH1 0x7U 15440 #define V_SIZECH1(x) ((x) << S_SIZECH1) 15441 #define G_SIZECH1(x) (((x) >> S_SIZECH1) & M_SIZECH1) 15442 15443 #define S_ERRCH1 26 15444 #define V_ERRCH1(x) ((x) << S_ERRCH1) 15445 #define F_ERRCH1 V_ERRCH1(1U) 15446 15447 #define S_FULLCH1 25 15448 #define V_FULLCH1(x) ((x) << S_FULLCH1) 15449 #define F_FULLCH1 V_FULLCH1(1U) 15450 15451 #define S_VALIDCH1 24 15452 #define V_VALIDCH1(x) ((x) << S_VALIDCH1) 15453 #define F_VALIDCH1 V_VALIDCH1(1U) 15454 15455 #define S_DATACH1 16 15456 #define M_DATACH1 0xffU 15457 #define V_DATACH1(x) ((x) << S_DATACH1) 15458 #define G_DATACH1(x) (((x) >> S_DATACH1) & M_DATACH1) 15459 15460 #define S_SOPCH0 15 15461 #define V_SOPCH0(x) ((x) << S_SOPCH0) 15462 #define F_SOPCH0 V_SOPCH0(1U) 15463 15464 #define S_EOPCH0 14 15465 #define V_EOPCH0(x) ((x) << S_EOPCH0) 15466 #define F_EOPCH0 V_EOPCH0(1U) 15467 15468 #define S_SIZECH0 11 15469 #define M_SIZECH0 0x7U 15470 #define V_SIZECH0(x) ((x) << S_SIZECH0) 15471 #define G_SIZECH0(x) (((x) >> S_SIZECH0) & M_SIZECH0) 15472 15473 #define S_ERRCH0 10 15474 #define V_ERRCH0(x) ((x) << S_ERRCH0) 15475 #define F_ERRCH0 V_ERRCH0(1U) 15476 15477 #define S_FULLCH0 9 15478 #define V_FULLCH0(x) ((x) << S_FULLCH0) 15479 #define F_FULLCH0 V_FULLCH0(1U) 15480 15481 #define S_VALIDCH0 8 15482 #define V_VALIDCH0(x) ((x) << S_VALIDCH0) 15483 #define F_VALIDCH0 V_VALIDCH0(1U) 15484 15485 #define S_DATACH0 0 15486 #define M_DATACH0 0xffU 15487 #define V_DATACH0(x) ((x) << S_DATACH0) 15488 #define G_DATACH0(x) (((x) >> S_DATACH0) & M_DATACH0) 15489 15490 #define A_MPS_TX_DEBUG_REG_TP2TX_32 0x9448 15491 15492 #define S_SOPCH3 31 15493 #define V_SOPCH3(x) ((x) << S_SOPCH3) 15494 #define F_SOPCH3 V_SOPCH3(1U) 15495 15496 #define S_EOPCH3 30 15497 #define V_EOPCH3(x) ((x) << S_EOPCH3) 15498 #define F_EOPCH3 V_EOPCH3(1U) 15499 15500 #define S_SIZECH3 27 15501 #define M_SIZECH3 0x7U 15502 #define V_SIZECH3(x) ((x) << S_SIZECH3) 15503 #define G_SIZECH3(x) (((x) >> S_SIZECH3) & M_SIZECH3) 15504 15505 #define S_ERRCH3 26 15506 #define V_ERRCH3(x) ((x) << S_ERRCH3) 15507 #define F_ERRCH3 V_ERRCH3(1U) 15508 15509 #define S_FULLCH3 25 15510 #define V_FULLCH3(x) ((x) << S_FULLCH3) 15511 #define F_FULLCH3 V_FULLCH3(1U) 15512 15513 #define S_VALIDCH3 24 15514 #define V_VALIDCH3(x) ((x) << S_VALIDCH3) 15515 #define F_VALIDCH3 V_VALIDCH3(1U) 15516 15517 #define S_DATACH3 16 15518 #define M_DATACH3 0xffU 15519 #define V_DATACH3(x) ((x) << S_DATACH3) 15520 #define G_DATACH3(x) (((x) >> S_DATACH3) & M_DATACH3) 15521 15522 #define S_SOPCH2 15 15523 #define V_SOPCH2(x) ((x) << S_SOPCH2) 15524 #define F_SOPCH2 V_SOPCH2(1U) 15525 15526 #define S_EOPCH2 14 15527 #define V_EOPCH2(x) ((x) << S_EOPCH2) 15528 #define F_EOPCH2 V_EOPCH2(1U) 15529 15530 #define S_SIZECH2 11 15531 #define M_SIZECH2 0x7U 15532 #define V_SIZECH2(x) ((x) << S_SIZECH2) 15533 #define G_SIZECH2(x) (((x) >> S_SIZECH2) & M_SIZECH2) 15534 15535 #define S_ERRCH2 10 15536 #define V_ERRCH2(x) ((x) << S_ERRCH2) 15537 #define F_ERRCH2 V_ERRCH2(1U) 15538 15539 #define S_FULLCH2 9 15540 #define V_FULLCH2(x) ((x) << S_FULLCH2) 15541 #define F_FULLCH2 V_FULLCH2(1U) 15542 15543 #define S_VALIDCH2 8 15544 #define V_VALIDCH2(x) ((x) << S_VALIDCH2) 15545 #define F_VALIDCH2 V_VALIDCH2(1U) 15546 15547 #define S_DATACH2 0 15548 #define M_DATACH2 0xffU 15549 #define V_DATACH2(x) ((x) << S_DATACH2) 15550 #define G_DATACH2(x) (((x) >> S_DATACH2) & M_DATACH2) 15551 15552 #define A_MPS_TX_DEBUG_REG_TX2MAC_10 0x944c 15553 15554 #define S_SOPPT1 31 15555 #define V_SOPPT1(x) ((x) << S_SOPPT1) 15556 #define F_SOPPT1 V_SOPPT1(1U) 15557 15558 #define S_EOPPT1 30 15559 #define V_EOPPT1(x) ((x) << S_EOPPT1) 15560 #define F_EOPPT1 V_EOPPT1(1U) 15561 15562 #define S_SIZEPT1 27 15563 #define M_SIZEPT1 0x7U 15564 #define V_SIZEPT1(x) ((x) << S_SIZEPT1) 15565 #define G_SIZEPT1(x) (((x) >> S_SIZEPT1) & M_SIZEPT1) 15566 15567 #define S_ERRPT1 26 15568 #define V_ERRPT1(x) ((x) << S_ERRPT1) 15569 #define F_ERRPT1 V_ERRPT1(1U) 15570 15571 #define S_FULLPT1 25 15572 #define V_FULLPT1(x) ((x) << S_FULLPT1) 15573 #define F_FULLPT1 V_FULLPT1(1U) 15574 15575 #define S_VALIDPT1 24 15576 #define V_VALIDPT1(x) ((x) << S_VALIDPT1) 15577 #define F_VALIDPT1 V_VALIDPT1(1U) 15578 15579 #define S_DATAPT1 16 15580 #define M_DATAPT1 0xffU 15581 #define V_DATAPT1(x) ((x) << S_DATAPT1) 15582 #define G_DATAPT1(x) (((x) >> S_DATAPT1) & M_DATAPT1) 15583 15584 #define S_SOPPT0 15 15585 #define V_SOPPT0(x) ((x) << S_SOPPT0) 15586 #define F_SOPPT0 V_SOPPT0(1U) 15587 15588 #define S_EOPPT0 14 15589 #define V_EOPPT0(x) ((x) << S_EOPPT0) 15590 #define F_EOPPT0 V_EOPPT0(1U) 15591 15592 #define S_SIZEPT0 11 15593 #define M_SIZEPT0 0x7U 15594 #define V_SIZEPT0(x) ((x) << S_SIZEPT0) 15595 #define G_SIZEPT0(x) (((x) >> S_SIZEPT0) & M_SIZEPT0) 15596 15597 #define S_ERRPT0 10 15598 #define V_ERRPT0(x) ((x) << S_ERRPT0) 15599 #define F_ERRPT0 V_ERRPT0(1U) 15600 15601 #define S_FULLPT0 9 15602 #define V_FULLPT0(x) ((x) << S_FULLPT0) 15603 #define F_FULLPT0 V_FULLPT0(1U) 15604 15605 #define S_VALIDPT0 8 15606 #define V_VALIDPT0(x) ((x) << S_VALIDPT0) 15607 #define F_VALIDPT0 V_VALIDPT0(1U) 15608 15609 #define S_DATAPT0 0 15610 #define M_DATAPT0 0xffU 15611 #define V_DATAPT0(x) ((x) << S_DATAPT0) 15612 #define G_DATAPT0(x) (((x) >> S_DATAPT0) & M_DATAPT0) 15613 15614 #define A_MPS_TX_DEBUG_REG_TX2MAC_32 0x9450 15615 15616 #define S_SOPPT3 31 15617 #define V_SOPPT3(x) ((x) << S_SOPPT3) 15618 #define F_SOPPT3 V_SOPPT3(1U) 15619 15620 #define S_EOPPT3 30 15621 #define V_EOPPT3(x) ((x) << S_EOPPT3) 15622 #define F_EOPPT3 V_EOPPT3(1U) 15623 15624 #define S_SIZEPT3 27 15625 #define M_SIZEPT3 0x7U 15626 #define V_SIZEPT3(x) ((x) << S_SIZEPT3) 15627 #define G_SIZEPT3(x) (((x) >> S_SIZEPT3) & M_SIZEPT3) 15628 15629 #define S_ERRPT3 26 15630 #define V_ERRPT3(x) ((x) << S_ERRPT3) 15631 #define F_ERRPT3 V_ERRPT3(1U) 15632 15633 #define S_FULLPT3 25 15634 #define V_FULLPT3(x) ((x) << S_FULLPT3) 15635 #define F_FULLPT3 V_FULLPT3(1U) 15636 15637 #define S_VALIDPT3 24 15638 #define V_VALIDPT3(x) ((x) << S_VALIDPT3) 15639 #define F_VALIDPT3 V_VALIDPT3(1U) 15640 15641 #define S_DATAPT3 16 15642 #define M_DATAPT3 0xffU 15643 #define V_DATAPT3(x) ((x) << S_DATAPT3) 15644 #define G_DATAPT3(x) (((x) >> S_DATAPT3) & M_DATAPT3) 15645 15646 #define S_SOPPT2 15 15647 #define V_SOPPT2(x) ((x) << S_SOPPT2) 15648 #define F_SOPPT2 V_SOPPT2(1U) 15649 15650 #define S_EOPPT2 14 15651 #define V_EOPPT2(x) ((x) << S_EOPPT2) 15652 #define F_EOPPT2 V_EOPPT2(1U) 15653 15654 #define S_SIZEPT2 11 15655 #define M_SIZEPT2 0x7U 15656 #define V_SIZEPT2(x) ((x) << S_SIZEPT2) 15657 #define G_SIZEPT2(x) (((x) >> S_SIZEPT2) & M_SIZEPT2) 15658 15659 #define S_ERRPT2 10 15660 #define V_ERRPT2(x) ((x) << S_ERRPT2) 15661 #define F_ERRPT2 V_ERRPT2(1U) 15662 15663 #define S_FULLPT2 9 15664 #define V_FULLPT2(x) ((x) << S_FULLPT2) 15665 #define F_FULLPT2 V_FULLPT2(1U) 15666 15667 #define S_VALIDPT2 8 15668 #define V_VALIDPT2(x) ((x) << S_VALIDPT2) 15669 #define F_VALIDPT2 V_VALIDPT2(1U) 15670 15671 #define S_DATAPT2 0 15672 #define M_DATAPT2 0xffU 15673 #define V_DATAPT2(x) ((x) << S_DATAPT2) 15674 #define G_DATAPT2(x) (((x) >> S_DATAPT2) & M_DATAPT2) 15675 15676 #define A_MPS_TX_SGE_CH_PAUSE_IGNR 0x9454 15677 15678 #define S_SGEPAUSEIGNR 0 15679 #define M_SGEPAUSEIGNR 0xfU 15680 #define V_SGEPAUSEIGNR(x) ((x) << S_SGEPAUSEIGNR) 15681 #define G_SGEPAUSEIGNR(x) (((x) >> S_SGEPAUSEIGNR) & M_SGEPAUSEIGNR) 15682 15683 #define A_MPS_TX_DEBUG_SUBPART_SEL 0x9458 15684 15685 #define S_SUBPRTH 11 15686 #define M_SUBPRTH 0x1fU 15687 #define V_SUBPRTH(x) ((x) << S_SUBPRTH) 15688 #define G_SUBPRTH(x) (((x) >> S_SUBPRTH) & M_SUBPRTH) 15689 15690 #define S_PORTH 8 15691 #define M_PORTH 0x7U 15692 #define V_PORTH(x) ((x) << S_PORTH) 15693 #define G_PORTH(x) (((x) >> S_PORTH) & M_PORTH) 15694 15695 #define S_SUBPRTL 3 15696 #define M_SUBPRTL 0x1fU 15697 #define V_SUBPRTL(x) ((x) << S_SUBPRTL) 15698 #define G_SUBPRTL(x) (((x) >> S_SUBPRTL) & M_SUBPRTL) 15699 15700 #define S_PORTL 0 15701 #define M_PORTL 0x7U 15702 #define V_PORTL(x) ((x) << S_PORTL) 15703 #define G_PORTL(x) (((x) >> S_PORTL) & M_PORTL) 15704 15705 #define A_MPS_STAT_CTL 0x9600 15706 15707 #define S_COUNTVFINPF 1 15708 #define V_COUNTVFINPF(x) ((x) << S_COUNTVFINPF) 15709 #define F_COUNTVFINPF V_COUNTVFINPF(1U) 15710 15711 #define S_LPBKERRSTAT 0 15712 #define V_LPBKERRSTAT(x) ((x) << S_LPBKERRSTAT) 15713 #define F_LPBKERRSTAT V_LPBKERRSTAT(1U) 15714 15715 #define A_MPS_STAT_INT_ENABLE 0x9608 15716 15717 #define S_PLREADSYNCERR 0 15718 #define V_PLREADSYNCERR(x) ((x) << S_PLREADSYNCERR) 15719 #define F_PLREADSYNCERR V_PLREADSYNCERR(1U) 15720 15721 #define A_MPS_STAT_INT_CAUSE 0x960c 15722 #define A_MPS_STAT_PERR_INT_ENABLE_SRAM 0x9610 15723 15724 #define S_RXBG 20 15725 #define V_RXBG(x) ((x) << S_RXBG) 15726 #define F_RXBG V_RXBG(1U) 15727 15728 #define S_RXVF 18 15729 #define M_RXVF 0x3U 15730 #define V_RXVF(x) ((x) << S_RXVF) 15731 #define G_RXVF(x) (((x) >> S_RXVF) & M_RXVF) 15732 15733 #define S_TXVF 16 15734 #define M_TXVF 0x3U 15735 #define V_TXVF(x) ((x) << S_TXVF) 15736 #define G_TXVF(x) (((x) >> S_TXVF) & M_TXVF) 15737 15738 #define S_RXPF 13 15739 #define M_RXPF 0x7U 15740 #define V_RXPF(x) ((x) << S_RXPF) 15741 #define G_RXPF(x) (((x) >> S_RXPF) & M_RXPF) 15742 15743 #define S_TXPF 11 15744 #define M_TXPF 0x3U 15745 #define V_TXPF(x) ((x) << S_TXPF) 15746 #define G_TXPF(x) (((x) >> S_TXPF) & M_TXPF) 15747 15748 #define S_RXPORT 7 15749 #define M_RXPORT 0xfU 15750 #define V_RXPORT(x) ((x) << S_RXPORT) 15751 #define G_RXPORT(x) (((x) >> S_RXPORT) & M_RXPORT) 15752 15753 #define S_LBPORT 4 15754 #define M_LBPORT 0x7U 15755 #define V_LBPORT(x) ((x) << S_LBPORT) 15756 #define G_LBPORT(x) (((x) >> S_LBPORT) & M_LBPORT) 15757 15758 #define S_TXPORT 0 15759 #define M_TXPORT 0xfU 15760 #define V_TXPORT(x) ((x) << S_TXPORT) 15761 #define G_TXPORT(x) (((x) >> S_TXPORT) & M_TXPORT) 15762 15763 #define A_MPS_STAT_PERR_INT_CAUSE_SRAM 0x9614 15764 #define A_MPS_STAT_PERR_ENABLE_SRAM 0x9618 15765 #define A_MPS_STAT_PERR_INT_ENABLE_TX_FIFO 0x961c 15766 15767 #define S_TX 12 15768 #define M_TX 0xffU 15769 #define V_TX(x) ((x) << S_TX) 15770 #define G_TX(x) (((x) >> S_TX) & M_TX) 15771 15772 #define S_TXPAUSEFIFO 8 15773 #define M_TXPAUSEFIFO 0xfU 15774 #define V_TXPAUSEFIFO(x) ((x) << S_TXPAUSEFIFO) 15775 #define G_TXPAUSEFIFO(x) (((x) >> S_TXPAUSEFIFO) & M_TXPAUSEFIFO) 15776 15777 #define S_DROP 0 15778 #define M_DROP 0xffU 15779 #define V_DROP(x) ((x) << S_DROP) 15780 #define G_DROP(x) (((x) >> S_DROP) & M_DROP) 15781 15782 #define A_MPS_STAT_PERR_INT_CAUSE_TX_FIFO 0x9620 15783 #define A_MPS_STAT_PERR_ENABLE_TX_FIFO 0x9624 15784 #define A_MPS_STAT_PERR_INT_ENABLE_RX_FIFO 0x9628 15785 15786 #define S_PAUSEFIFO 20 15787 #define M_PAUSEFIFO 0xfU 15788 #define V_PAUSEFIFO(x) ((x) << S_PAUSEFIFO) 15789 #define G_PAUSEFIFO(x) (((x) >> S_PAUSEFIFO) & M_PAUSEFIFO) 15790 15791 #define S_LPBK 16 15792 #define M_LPBK 0xfU 15793 #define V_LPBK(x) ((x) << S_LPBK) 15794 #define G_LPBK(x) (((x) >> S_LPBK) & M_LPBK) 15795 15796 #define S_NQ 8 15797 #define M_NQ 0xffU 15798 #define V_NQ(x) ((x) << S_NQ) 15799 #define G_NQ(x) (((x) >> S_NQ) & M_NQ) 15800 15801 #define S_PV 4 15802 #define M_PV 0xfU 15803 #define V_PV(x) ((x) << S_PV) 15804 #define G_PV(x) (((x) >> S_PV) & M_PV) 15805 15806 #define S_MAC 0 15807 #define M_MAC 0xfU 15808 #define V_MAC(x) ((x) << S_MAC) 15809 #define G_MAC(x) (((x) >> S_MAC) & M_MAC) 15810 15811 #define A_MPS_STAT_PERR_INT_CAUSE_RX_FIFO 0x962c 15812 #define A_MPS_STAT_PERR_ENABLE_RX_FIFO 0x9630 15813 #define A_MPS_STAT_PERR_INJECT 0x9634 15814 15815 #define S_STATMEMSEL 1 15816 #define M_STATMEMSEL 0x7fU 15817 #define V_STATMEMSEL(x) ((x) << S_STATMEMSEL) 15818 #define G_STATMEMSEL(x) (((x) >> S_STATMEMSEL) & M_STATMEMSEL) 15819 15820 #define A_MPS_STAT_DEBUG_SUB_SEL 0x9638 15821 #define A_MPS_STAT_RX_BG_0_MAC_DROP_FRAME_L 0x9640 15822 #define A_MPS_STAT_RX_BG_0_MAC_DROP_FRAME_H 0x9644 15823 #define A_MPS_STAT_RX_BG_1_MAC_DROP_FRAME_L 0x9648 15824 #define A_MPS_STAT_RX_BG_1_MAC_DROP_FRAME_H 0x964c 15825 #define A_MPS_STAT_RX_BG_2_MAC_DROP_FRAME_L 0x9650 15826 #define A_MPS_STAT_RX_BG_2_MAC_DROP_FRAME_H 0x9654 15827 #define A_MPS_STAT_RX_BG_3_MAC_DROP_FRAME_L 0x9658 15828 #define A_MPS_STAT_RX_BG_3_MAC_DROP_FRAME_H 0x965c 15829 #define A_MPS_STAT_RX_BG_0_LB_DROP_FRAME_L 0x9660 15830 #define A_MPS_STAT_RX_BG_0_LB_DROP_FRAME_H 0x9664 15831 #define A_MPS_STAT_RX_BG_1_LB_DROP_FRAME_L 0x9668 15832 #define A_MPS_STAT_RX_BG_1_LB_DROP_FRAME_H 0x966c 15833 #define A_MPS_STAT_RX_BG_2_LB_DROP_FRAME_L 0x9670 15834 #define A_MPS_STAT_RX_BG_2_LB_DROP_FRAME_H 0x9674 15835 #define A_MPS_STAT_RX_BG_3_LB_DROP_FRAME_L 0x9678 15836 #define A_MPS_STAT_RX_BG_3_LB_DROP_FRAME_H 0x967c 15837 #define A_MPS_STAT_RX_BG_0_MAC_TRUNC_FRAME_L 0x9680 15838 #define A_MPS_STAT_RX_BG_0_MAC_TRUNC_FRAME_H 0x9684 15839 #define A_MPS_STAT_RX_BG_1_MAC_TRUNC_FRAME_L 0x9688 15840 #define A_MPS_STAT_RX_BG_1_MAC_TRUNC_FRAME_H 0x968c 15841 #define A_MPS_STAT_RX_BG_2_MAC_TRUNC_FRAME_L 0x9690 15842 #define A_MPS_STAT_RX_BG_2_MAC_TRUNC_FRAME_H 0x9694 15843 #define A_MPS_STAT_RX_BG_3_MAC_TRUNC_FRAME_L 0x9698 15844 #define A_MPS_STAT_RX_BG_3_MAC_TRUNC_FRAME_H 0x969c 15845 #define A_MPS_STAT_RX_BG_0_LB_TRUNC_FRAME_L 0x96a0 15846 #define A_MPS_STAT_RX_BG_0_LB_TRUNC_FRAME_H 0x96a4 15847 #define A_MPS_STAT_RX_BG_1_LB_TRUNC_FRAME_L 0x96a8 15848 #define A_MPS_STAT_RX_BG_1_LB_TRUNC_FRAME_H 0x96ac 15849 #define A_MPS_STAT_RX_BG_2_LB_TRUNC_FRAME_L 0x96b0 15850 #define A_MPS_STAT_RX_BG_2_LB_TRUNC_FRAME_H 0x96b4 15851 #define A_MPS_STAT_RX_BG_3_LB_TRUNC_FRAME_L 0x96b8 15852 #define A_MPS_STAT_RX_BG_3_LB_TRUNC_FRAME_H 0x96bc 15853 #define A_MPS_TRC_CFG 0x9800 15854 15855 #define S_TRCFIFOEMPTY 4 15856 #define V_TRCFIFOEMPTY(x) ((x) << S_TRCFIFOEMPTY) 15857 #define F_TRCFIFOEMPTY V_TRCFIFOEMPTY(1U) 15858 15859 #define S_TRCIGNOREDROPINPUT 3 15860 #define V_TRCIGNOREDROPINPUT(x) ((x) << S_TRCIGNOREDROPINPUT) 15861 #define F_TRCIGNOREDROPINPUT V_TRCIGNOREDROPINPUT(1U) 15862 15863 #define S_TRCKEEPDUPLICATES 2 15864 #define V_TRCKEEPDUPLICATES(x) ((x) << S_TRCKEEPDUPLICATES) 15865 #define F_TRCKEEPDUPLICATES V_TRCKEEPDUPLICATES(1U) 15866 15867 #define S_TRCEN 1 15868 #define V_TRCEN(x) ((x) << S_TRCEN) 15869 #define F_TRCEN V_TRCEN(1U) 15870 15871 #define S_TRCMULTIFILTER 0 15872 #define V_TRCMULTIFILTER(x) ((x) << S_TRCMULTIFILTER) 15873 #define F_TRCMULTIFILTER V_TRCMULTIFILTER(1U) 15874 15875 #define A_MPS_TRC_RSS_HASH 0x9804 15876 #define A_MPS_TRC_RSS_CONTROL 0x9808 15877 15878 #define S_RSSCONTROL 16 15879 #define M_RSSCONTROL 0xffU 15880 #define V_RSSCONTROL(x) ((x) << S_RSSCONTROL) 15881 #define G_RSSCONTROL(x) (((x) >> S_RSSCONTROL) & M_RSSCONTROL) 15882 15883 #define S_QUEUENUMBER 0 15884 #define M_QUEUENUMBER 0xffffU 15885 #define V_QUEUENUMBER(x) ((x) << S_QUEUENUMBER) 15886 #define G_QUEUENUMBER(x) (((x) >> S_QUEUENUMBER) & M_QUEUENUMBER) 15887 15888 #define A_MPS_TRC_FILTER_MATCH_CTL_A 0x9810 15889 15890 #define S_TFINVERTMATCH 24 15891 #define V_TFINVERTMATCH(x) ((x) << S_TFINVERTMATCH) 15892 #define F_TFINVERTMATCH V_TFINVERTMATCH(1U) 15893 15894 #define S_TFPKTTOOLARGE 23 15895 #define V_TFPKTTOOLARGE(x) ((x) << S_TFPKTTOOLARGE) 15896 #define F_TFPKTTOOLARGE V_TFPKTTOOLARGE(1U) 15897 15898 #define S_TFEN 22 15899 #define V_TFEN(x) ((x) << S_TFEN) 15900 #define F_TFEN V_TFEN(1U) 15901 15902 #define S_TFPORT 18 15903 #define M_TFPORT 0xfU 15904 #define V_TFPORT(x) ((x) << S_TFPORT) 15905 #define G_TFPORT(x) (((x) >> S_TFPORT) & M_TFPORT) 15906 15907 #define S_TFDROP 17 15908 #define V_TFDROP(x) ((x) << S_TFDROP) 15909 #define F_TFDROP V_TFDROP(1U) 15910 15911 #define S_TFSOPEOPERR 16 15912 #define V_TFSOPEOPERR(x) ((x) << S_TFSOPEOPERR) 15913 #define F_TFSOPEOPERR V_TFSOPEOPERR(1U) 15914 15915 #define S_TFLENGTH 8 15916 #define M_TFLENGTH 0x1fU 15917 #define V_TFLENGTH(x) ((x) << S_TFLENGTH) 15918 #define G_TFLENGTH(x) (((x) >> S_TFLENGTH) & M_TFLENGTH) 15919 15920 #define S_TFOFFSET 0 15921 #define M_TFOFFSET 0x1fU 15922 #define V_TFOFFSET(x) ((x) << S_TFOFFSET) 15923 #define G_TFOFFSET(x) (((x) >> S_TFOFFSET) & M_TFOFFSET) 15924 15925 #define A_MPS_TRC_FILTER_MATCH_CTL_B 0x9820 15926 15927 #define S_TFMINPKTSIZE 16 15928 #define M_TFMINPKTSIZE 0x1ffU 15929 #define V_TFMINPKTSIZE(x) ((x) << S_TFMINPKTSIZE) 15930 #define G_TFMINPKTSIZE(x) (((x) >> S_TFMINPKTSIZE) & M_TFMINPKTSIZE) 15931 15932 #define S_TFCAPTUREMAX 0 15933 #define M_TFCAPTUREMAX 0x3fffU 15934 #define V_TFCAPTUREMAX(x) ((x) << S_TFCAPTUREMAX) 15935 #define G_TFCAPTUREMAX(x) (((x) >> S_TFCAPTUREMAX) & M_TFCAPTUREMAX) 15936 15937 #define A_MPS_TRC_FILTER_RUNT_CTL 0x9830 15938 15939 #define S_TFRUNTSIZE 0 15940 #define M_TFRUNTSIZE 0x3fU 15941 #define V_TFRUNTSIZE(x) ((x) << S_TFRUNTSIZE) 15942 #define G_TFRUNTSIZE(x) (((x) >> S_TFRUNTSIZE) & M_TFRUNTSIZE) 15943 15944 #define A_MPS_TRC_FILTER_DROP 0x9840 15945 15946 #define S_TFDROPINPCOUNT 16 15947 #define M_TFDROPINPCOUNT 0xffffU 15948 #define V_TFDROPINPCOUNT(x) ((x) << S_TFDROPINPCOUNT) 15949 #define G_TFDROPINPCOUNT(x) (((x) >> S_TFDROPINPCOUNT) & M_TFDROPINPCOUNT) 15950 15951 #define S_TFDROPBUFFERCOUNT 0 15952 #define M_TFDROPBUFFERCOUNT 0xffffU 15953 #define V_TFDROPBUFFERCOUNT(x) ((x) << S_TFDROPBUFFERCOUNT) 15954 #define G_TFDROPBUFFERCOUNT(x) \ 15955 (((x) >> S_TFDROPBUFFERCOUNT) & M_TFDROPBUFFERCOUNT) 15956 15957 #define A_MPS_TRC_PERR_INJECT 0x9850 15958 15959 #define S_TRCMEMSEL 1 15960 #define M_TRCMEMSEL 0xfU 15961 #define V_TRCMEMSEL(x) ((x) << S_TRCMEMSEL) 15962 #define G_TRCMEMSEL(x) (((x) >> S_TRCMEMSEL) & M_TRCMEMSEL) 15963 15964 #define A_MPS_TRC_PERR_ENABLE 0x9854 15965 15966 #define S_MISCPERR 8 15967 #define V_MISCPERR(x) ((x) << S_MISCPERR) 15968 #define F_MISCPERR V_MISCPERR(1U) 15969 15970 #define S_PKTFIFO 4 15971 #define M_PKTFIFO 0xfU 15972 #define V_PKTFIFO(x) ((x) << S_PKTFIFO) 15973 #define G_PKTFIFO(x) (((x) >> S_PKTFIFO) & M_PKTFIFO) 15974 15975 #define S_FILTMEM 0 15976 #define M_FILTMEM 0xfU 15977 #define V_FILTMEM(x) ((x) << S_FILTMEM) 15978 #define G_FILTMEM(x) (((x) >> S_FILTMEM) & M_FILTMEM) 15979 15980 #define A_MPS_TRC_INT_ENABLE 0x9858 15981 15982 #define S_TRCPLERRENB 9 15983 #define V_TRCPLERRENB(x) ((x) << S_TRCPLERRENB) 15984 #define F_TRCPLERRENB V_TRCPLERRENB(1U) 15985 15986 #define A_MPS_TRC_INT_CAUSE 0x985c 15987 #define A_MPS_TRC_TIMESTAMP_L 0x9860 15988 #define A_MPS_TRC_TIMESTAMP_H 0x9864 15989 #define A_MPS_TRC_FILTER0_MATCH 0x9c00 15990 #define A_MPS_TRC_FILTER0_DONT_CARE 0x9c80 15991 #define A_MPS_TRC_FILTER1_MATCH 0x9d00 15992 #define A_MPS_TRC_FILTER1_DONT_CARE 0x9d80 15993 #define A_MPS_TRC_FILTER2_MATCH 0x9e00 15994 #define A_MPS_TRC_FILTER2_DONT_CARE 0x9e80 15995 #define A_MPS_TRC_FILTER3_MATCH 0x9f00 15996 #define A_MPS_TRC_FILTER3_DONT_CARE 0x9f80 15997 #define A_MPS_CLS_CTL 0xd000 15998 15999 #define S_MEMWRITEFAULT 4 16000 #define V_MEMWRITEFAULT(x) ((x) << S_MEMWRITEFAULT) 16001 #define F_MEMWRITEFAULT V_MEMWRITEFAULT(1U) 16002 16003 #define S_MEMWRITEWAITING 3 16004 #define V_MEMWRITEWAITING(x) ((x) << S_MEMWRITEWAITING) 16005 #define F_MEMWRITEWAITING V_MEMWRITEWAITING(1U) 16006 16007 #define S_CIMNOPROMISCUOUS 2 16008 #define V_CIMNOPROMISCUOUS(x) ((x) << S_CIMNOPROMISCUOUS) 16009 #define F_CIMNOPROMISCUOUS V_CIMNOPROMISCUOUS(1U) 16010 16011 #define S_HYPERVISORONLY 1 16012 #define V_HYPERVISORONLY(x) ((x) << S_HYPERVISORONLY) 16013 #define F_HYPERVISORONLY V_HYPERVISORONLY(1U) 16014 16015 #define S_VLANCLSEN 0 16016 #define V_VLANCLSEN(x) ((x) << S_VLANCLSEN) 16017 #define F_VLANCLSEN V_VLANCLSEN(1U) 16018 16019 #define A_MPS_CLS_ARB_WEIGHT 0xd004 16020 16021 #define S_PLWEIGHT 16 16022 #define M_PLWEIGHT 0x1fU 16023 #define V_PLWEIGHT(x) ((x) << S_PLWEIGHT) 16024 #define G_PLWEIGHT(x) (((x) >> S_PLWEIGHT) & M_PLWEIGHT) 16025 16026 #define S_CIMWEIGHT 8 16027 #define M_CIMWEIGHT 0x1fU 16028 #define V_CIMWEIGHT(x) ((x) << S_CIMWEIGHT) 16029 #define G_CIMWEIGHT(x) (((x) >> S_CIMWEIGHT) & M_CIMWEIGHT) 16030 16031 #define S_LPBKWEIGHT 0 16032 #define M_LPBKWEIGHT 0x1fU 16033 #define V_LPBKWEIGHT(x) ((x) << S_LPBKWEIGHT) 16034 #define G_LPBKWEIGHT(x) (((x) >> S_LPBKWEIGHT) & M_LPBKWEIGHT) 16035 16036 #define A_MPS_CLS_BMC_MAC_ADDR_L 0xd010 16037 #define A_MPS_CLS_BMC_MAC_ADDR_H 0xd014 16038 #define A_MPS_CLS_BMC_VLAN 0xd018 16039 #define A_MPS_CLS_PERR_INJECT 0xd01c 16040 16041 #define S_CLS_MEMSEL 1 16042 #define M_CLS_MEMSEL 0x3U 16043 #define V_CLS_MEMSEL(x) ((x) << S_CLS_MEMSEL) 16044 #define G_CLS_MEMSEL(x) (((x) >> S_CLS_MEMSEL) & M_CLS_MEMSEL) 16045 16046 #define A_MPS_CLS_PERR_ENABLE 0xd020 16047 16048 #define S_HASHSRAM 2 16049 #define V_HASHSRAM(x) ((x) << S_HASHSRAM) 16050 #define F_HASHSRAM V_HASHSRAM(1U) 16051 16052 #define S_MATCHTCAM 1 16053 #define V_MATCHTCAM(x) ((x) << S_MATCHTCAM) 16054 #define F_MATCHTCAM V_MATCHTCAM(1U) 16055 16056 #define S_MATCHSRAM 0 16057 #define V_MATCHSRAM(x) ((x) << S_MATCHSRAM) 16058 #define F_MATCHSRAM V_MATCHSRAM(1U) 16059 16060 #define A_MPS_CLS_INT_ENABLE 0xd024 16061 16062 #define S_PLERRENB 3 16063 #define V_PLERRENB(x) ((x) << S_PLERRENB) 16064 #define F_PLERRENB V_PLERRENB(1U) 16065 16066 #define A_MPS_CLS_INT_CAUSE 0xd028 16067 #define A_MPS_CLS_PL_TEST_DATA_L 0xd02c 16068 #define A_MPS_CLS_PL_TEST_DATA_H 0xd030 16069 #define A_MPS_CLS_PL_TEST_RES_DATA 0xd034 16070 16071 #define S_CLS_PRIORITY 24 16072 #define M_CLS_PRIORITY 0x7U 16073 #define V_CLS_PRIORITY(x) ((x) << S_CLS_PRIORITY) 16074 #define G_CLS_PRIORITY(x) (((x) >> S_CLS_PRIORITY) & M_CLS_PRIORITY) 16075 16076 #define S_CLS_REPLICATE 23 16077 #define V_CLS_REPLICATE(x) ((x) << S_CLS_REPLICATE) 16078 #define F_CLS_REPLICATE V_CLS_REPLICATE(1U) 16079 16080 #define S_CLS_INDEX 14 16081 #define M_CLS_INDEX 0x1ffU 16082 #define V_CLS_INDEX(x) ((x) << S_CLS_INDEX) 16083 #define G_CLS_INDEX(x) (((x) >> S_CLS_INDEX) & M_CLS_INDEX) 16084 16085 #define S_CLS_VF 7 16086 #define M_CLS_VF 0x7fU 16087 #define V_CLS_VF(x) ((x) << S_CLS_VF) 16088 #define G_CLS_VF(x) (((x) >> S_CLS_VF) & M_CLS_VF) 16089 16090 #define S_CLS_VF_VLD 6 16091 #define V_CLS_VF_VLD(x) ((x) << S_CLS_VF_VLD) 16092 #define F_CLS_VF_VLD V_CLS_VF_VLD(1U) 16093 16094 #define S_CLS_PF 3 16095 #define M_CLS_PF 0x7U 16096 #define V_CLS_PF(x) ((x) << S_CLS_PF) 16097 #define G_CLS_PF(x) (((x) >> S_CLS_PF) & M_CLS_PF) 16098 16099 #define S_CLS_MATCH 0 16100 #define M_CLS_MATCH 0x7U 16101 #define V_CLS_MATCH(x) ((x) << S_CLS_MATCH) 16102 #define G_CLS_MATCH(x) (((x) >> S_CLS_MATCH) & M_CLS_MATCH) 16103 16104 #define A_MPS_CLS_PL_TEST_CTL 0xd038 16105 16106 #define S_PLTESTCTL 0 16107 #define V_PLTESTCTL(x) ((x) << S_PLTESTCTL) 16108 #define F_PLTESTCTL V_PLTESTCTL(1U) 16109 16110 #define A_MPS_CLS_PORT_BMC_CTL 0xd03c 16111 16112 #define S_PRTBMCCTL 0 16113 #define V_PRTBMCCTL(x) ((x) << S_PRTBMCCTL) 16114 #define F_PRTBMCCTL V_PRTBMCCTL(1U) 16115 16116 #define A_MPS_CLS_VLAN_TABLE 0xdfc0 16117 16118 #define S_VLAN_MASK 16 16119 #define M_VLAN_MASK 0xfffU 16120 #define V_VLAN_MASK(x) ((x) << S_VLAN_MASK) 16121 #define G_VLAN_MASK(x) (((x) >> S_VLAN_MASK) & M_VLAN_MASK) 16122 16123 #define S_VLANPF 13 16124 #define M_VLANPF 0x7U 16125 #define V_VLANPF(x) ((x) << S_VLANPF) 16126 #define G_VLANPF(x) (((x) >> S_VLANPF) & M_VLANPF) 16127 16128 #define S_VLAN_VALID 12 16129 #define V_VLAN_VALID(x) ((x) << S_VLAN_VALID) 16130 #define F_VLAN_VALID V_VLAN_VALID(1U) 16131 16132 #define A_MPS_CLS_SRAM_L 0xe000 16133 16134 #define S_MULTILISTEN3 28 16135 #define V_MULTILISTEN3(x) ((x) << S_MULTILISTEN3) 16136 #define F_MULTILISTEN3 V_MULTILISTEN3(1U) 16137 16138 #define S_MULTILISTEN2 27 16139 #define V_MULTILISTEN2(x) ((x) << S_MULTILISTEN2) 16140 #define F_MULTILISTEN2 V_MULTILISTEN2(1U) 16141 16142 #define S_MULTILISTEN1 26 16143 #define V_MULTILISTEN1(x) ((x) << S_MULTILISTEN1) 16144 #define F_MULTILISTEN1 V_MULTILISTEN1(1U) 16145 16146 #define S_MULTILISTEN0 25 16147 #define V_MULTILISTEN0(x) ((x) << S_MULTILISTEN0) 16148 #define F_MULTILISTEN0 V_MULTILISTEN0(1U) 16149 16150 #define S_SRAM_PRIO3 22 16151 #define M_SRAM_PRIO3 0x7U 16152 #define V_SRAM_PRIO3(x) ((x) << S_SRAM_PRIO3) 16153 #define G_SRAM_PRIO3(x) (((x) >> S_SRAM_PRIO3) & M_SRAM_PRIO3) 16154 16155 #define S_SRAM_PRIO2 19 16156 #define M_SRAM_PRIO2 0x7U 16157 #define V_SRAM_PRIO2(x) ((x) << S_SRAM_PRIO2) 16158 #define G_SRAM_PRIO2(x) (((x) >> S_SRAM_PRIO2) & M_SRAM_PRIO2) 16159 16160 #define S_SRAM_PRIO1 16 16161 #define M_SRAM_PRIO1 0x7U 16162 #define V_SRAM_PRIO1(x) ((x) << S_SRAM_PRIO1) 16163 #define G_SRAM_PRIO1(x) (((x) >> S_SRAM_PRIO1) & M_SRAM_PRIO1) 16164 16165 #define S_SRAM_PRIO0 13 16166 #define M_SRAM_PRIO0 0x7U 16167 #define V_SRAM_PRIO0(x) ((x) << S_SRAM_PRIO0) 16168 #define G_SRAM_PRIO0(x) (((x) >> S_SRAM_PRIO0) & M_SRAM_PRIO0) 16169 16170 #define S_SRAM_VLD 12 16171 #define V_SRAM_VLD(x) ((x) << S_SRAM_VLD) 16172 #define F_SRAM_VLD V_SRAM_VLD(1U) 16173 16174 #define A_MPS_CLS_SRAM_H 0xe004 16175 16176 #define S_MACPARITY1 9 16177 #define V_MACPARITY1(x) ((x) << S_MACPARITY1) 16178 #define F_MACPARITY1 V_MACPARITY1(1U) 16179 16180 #define S_MACPARITY0 8 16181 #define V_MACPARITY0(x) ((x) << S_MACPARITY0) 16182 #define F_MACPARITY0 V_MACPARITY0(1U) 16183 16184 #define S_MACPARITYMASKSIZE 4 16185 #define M_MACPARITYMASKSIZE 0xfU 16186 #define V_MACPARITYMASKSIZE(x) ((x) << S_MACPARITYMASKSIZE) 16187 #define G_MACPARITYMASKSIZE(x) \ 16188 (((x) >> S_MACPARITYMASKSIZE) & M_MACPARITYMASKSIZE) 16189 16190 #define S_PORTMAP 0 16191 #define M_PORTMAP 0xfU 16192 #define V_PORTMAP(x) ((x) << S_PORTMAP) 16193 #define G_PORTMAP(x) (((x) >> S_PORTMAP) & M_PORTMAP) 16194 16195 #define A_MPS_CLS_TCAM_Y_L 0xf000 16196 #define A_MPS_CLS_TCAM_Y_H 0xf004 16197 16198 #define S_TCAMYH 0 16199 #define M_TCAMYH 0xffffU 16200 #define V_TCAMYH(x) ((x) << S_TCAMYH) 16201 #define G_TCAMYH(x) (((x) >> S_TCAMYH) & M_TCAMYH) 16202 16203 #define A_MPS_CLS_TCAM_X_L 0xf008 16204 #define A_MPS_CLS_TCAM_X_H 0xf00c 16205 16206 #define S_TCAMXH 0 16207 #define M_TCAMXH 0xffffU 16208 #define V_TCAMXH(x) ((x) << S_TCAMXH) 16209 #define G_TCAMXH(x) (((x) >> S_TCAMXH) & M_TCAMXH) 16210 16211 #define A_MPS_RX_CTL 0x11000 16212 16213 #define S_FILT_VLAN_SEL 17 16214 #define V_FILT_VLAN_SEL(x) ((x) << S_FILT_VLAN_SEL) 16215 #define F_FILT_VLAN_SEL V_FILT_VLAN_SEL(1U) 16216 16217 #define S_CBA_EN 16 16218 #define V_CBA_EN(x) ((x) << S_CBA_EN) 16219 #define F_CBA_EN V_CBA_EN(1U) 16220 16221 #define S_BLK_SNDR 12 16222 #define M_BLK_SNDR 0xfU 16223 #define V_BLK_SNDR(x) ((x) << S_BLK_SNDR) 16224 #define G_BLK_SNDR(x) (((x) >> S_BLK_SNDR) & M_BLK_SNDR) 16225 16226 #define S_CMPRS 8 16227 #define M_CMPRS 0xfU 16228 #define V_CMPRS(x) ((x) << S_CMPRS) 16229 #define G_CMPRS(x) (((x) >> S_CMPRS) & M_CMPRS) 16230 16231 #define S_SNF 0 16232 #define M_SNF 0xffU 16233 #define V_SNF(x) ((x) << S_SNF) 16234 #define G_SNF(x) (((x) >> S_SNF) & M_SNF) 16235 16236 #define A_MPS_RX_PORT_MUX_CTL 0x11004 16237 16238 #define S_CTL_P3 12 16239 #define M_CTL_P3 0xfU 16240 #define V_CTL_P3(x) ((x) << S_CTL_P3) 16241 #define G_CTL_P3(x) (((x) >> S_CTL_P3) & M_CTL_P3) 16242 16243 #define S_CTL_P2 8 16244 #define M_CTL_P2 0xfU 16245 #define V_CTL_P2(x) ((x) << S_CTL_P2) 16246 #define G_CTL_P2(x) (((x) >> S_CTL_P2) & M_CTL_P2) 16247 16248 #define S_CTL_P1 4 16249 #define M_CTL_P1 0xfU 16250 #define V_CTL_P1(x) ((x) << S_CTL_P1) 16251 #define G_CTL_P1(x) (((x) >> S_CTL_P1) & M_CTL_P1) 16252 16253 #define S_CTL_P0 0 16254 #define M_CTL_P0 0xfU 16255 #define V_CTL_P0(x) ((x) << S_CTL_P0) 16256 #define G_CTL_P0(x) (((x) >> S_CTL_P0) & M_CTL_P0) 16257 16258 #define A_MPS_RX_PG_FL 0x11008 16259 16260 #define S_RST 16 16261 #define V_RST(x) ((x) << S_RST) 16262 #define F_RST V_RST(1U) 16263 16264 #define S_CNT 0 16265 #define M_CNT 0xffffU 16266 #define V_CNT(x) ((x) << S_CNT) 16267 #define G_CNT(x) (((x) >> S_CNT) & M_CNT) 16268 16269 #define A_MPS_RX_PKT_FL 0x1100c 16270 #define A_MPS_RX_PG_RSV0 0x11010 16271 16272 #define S_CLR_INTR 31 16273 #define V_CLR_INTR(x) ((x) << S_CLR_INTR) 16274 #define F_CLR_INTR V_CLR_INTR(1U) 16275 16276 #define S_SET_INTR 30 16277 #define V_SET_INTR(x) ((x) << S_SET_INTR) 16278 #define F_SET_INTR V_SET_INTR(1U) 16279 16280 #define S_USED 16 16281 #define M_USED 0x7ffU 16282 #define V_USED(x) ((x) << S_USED) 16283 #define G_USED(x) (((x) >> S_USED) & M_USED) 16284 16285 #define S_ALLOC 0 16286 #define M_ALLOC 0x7ffU 16287 #define V_ALLOC(x) ((x) << S_ALLOC) 16288 #define G_ALLOC(x) (((x) >> S_ALLOC) & M_ALLOC) 16289 16290 #define A_MPS_RX_PG_RSV1 0x11014 16291 #define A_MPS_RX_PG_RSV2 0x11018 16292 #define A_MPS_RX_PG_RSV3 0x1101c 16293 #define A_MPS_RX_PG_RSV4 0x11020 16294 #define A_MPS_RX_PG_RSV5 0x11024 16295 #define A_MPS_RX_PG_RSV6 0x11028 16296 #define A_MPS_RX_PG_RSV7 0x1102c 16297 #define A_MPS_RX_PG_SHR_BG0 0x11030 16298 16299 #define S_EN 31 16300 #define V_EN(x) ((x) << S_EN) 16301 #define F_EN V_EN(1U) 16302 16303 #define S_SEL 30 16304 #define V_SEL(x) ((x) << S_SEL) 16305 #define F_SEL V_SEL(1U) 16306 16307 #define S_MAX 16 16308 #define M_MAX 0x7ffU 16309 #define V_MAX(x) ((x) << S_MAX) 16310 #define G_MAX(x) (((x) >> S_MAX) & M_MAX) 16311 16312 #define S_BORW 0 16313 #define M_BORW 0x7ffU 16314 #define V_BORW(x) ((x) << S_BORW) 16315 #define G_BORW(x) (((x) >> S_BORW) & M_BORW) 16316 16317 #define A_MPS_RX_PG_SHR_BG1 0x11034 16318 #define A_MPS_RX_PG_SHR_BG2 0x11038 16319 #define A_MPS_RX_PG_SHR_BG3 0x1103c 16320 #define A_MPS_RX_PG_SHR0 0x11040 16321 16322 #define S_QUOTA 16 16323 #define M_QUOTA 0x7ffU 16324 #define V_QUOTA(x) ((x) << S_QUOTA) 16325 #define G_QUOTA(x) (((x) >> S_QUOTA) & M_QUOTA) 16326 16327 #define S_SHR_USED 0 16328 #define M_SHR_USED 0x7ffU 16329 #define V_SHR_USED(x) ((x) << S_SHR_USED) 16330 #define G_SHR_USED(x) (((x) >> S_SHR_USED) & M_SHR_USED) 16331 16332 #define A_MPS_RX_PG_SHR1 0x11044 16333 #define A_MPS_RX_PG_HYST_BG0 0x11048 16334 16335 #define S_TH 0 16336 #define M_TH 0x7ffU 16337 #define V_TH(x) ((x) << S_TH) 16338 #define G_TH(x) (((x) >> S_TH) & M_TH) 16339 16340 #define A_MPS_RX_PG_HYST_BG1 0x1104c 16341 #define A_MPS_RX_PG_HYST_BG2 0x11050 16342 #define A_MPS_RX_PG_HYST_BG3 0x11054 16343 #define A_MPS_RX_OCH_CTL 0x11058 16344 16345 #define S_DROP_WT 27 16346 #define M_DROP_WT 0x1fU 16347 #define V_DROP_WT(x) ((x) << S_DROP_WT) 16348 #define G_DROP_WT(x) (((x) >> S_DROP_WT) & M_DROP_WT) 16349 16350 #define S_TRUNC_WT 22 16351 #define M_TRUNC_WT 0x1fU 16352 #define V_TRUNC_WT(x) ((x) << S_TRUNC_WT) 16353 #define G_TRUNC_WT(x) (((x) >> S_TRUNC_WT) & M_TRUNC_WT) 16354 16355 #define S_OCH_DRAIN 13 16356 #define M_OCH_DRAIN 0x1fU 16357 #define V_OCH_DRAIN(x) ((x) << S_OCH_DRAIN) 16358 #define G_OCH_DRAIN(x) (((x) >> S_OCH_DRAIN) & M_OCH_DRAIN) 16359 16360 #define S_OCH_DROP 8 16361 #define M_OCH_DROP 0x1fU 16362 #define V_OCH_DROP(x) ((x) << S_OCH_DROP) 16363 #define G_OCH_DROP(x) (((x) >> S_OCH_DROP) & M_OCH_DROP) 16364 16365 #define S_STOP 0 16366 #define M_STOP_ 0x1fU 16367 #define V_STOP(x) ((x) << S_STOP) 16368 #define G_STOP(x) (((x) >> S_STOP) & M_STOP_) 16369 16370 #define A_MPS_RX_LPBK_BP0 0x1105c 16371 16372 #define S_THRESH 0 16373 #define M_THRESH 0x7ffU 16374 #define V_THRESH(x) ((x) << S_THRESH) 16375 #define G_THRESH(x) (((x) >> S_THRESH) & M_THRESH) 16376 16377 #define A_MPS_RX_LPBK_BP1 0x11060 16378 #define A_MPS_RX_LPBK_BP2 0x11064 16379 #define A_MPS_RX_LPBK_BP3 0x11068 16380 #define A_MPS_RX_PORT_GAP 0x1106c 16381 16382 #define S_GAP 0 16383 #define M_GAP 0xfffffU 16384 #define V_GAP(x) ((x) << S_GAP) 16385 #define G_GAP(x) (((x) >> S_GAP) & M_GAP) 16386 16387 #define A_MPS_RX_CHMN_CNT 0x11070 16388 #define A_MPS_RX_PERR_INT_CAUSE 0x11074 16389 16390 #define S_FF 23 16391 #define V_FF(x) ((x) << S_FF) 16392 #define F_FF V_FF(1U) 16393 16394 #define S_PGMO 22 16395 #define V_PGMO(x) ((x) << S_PGMO) 16396 #define F_PGMO V_PGMO(1U) 16397 16398 #define S_PGME 21 16399 #define V_PGME(x) ((x) << S_PGME) 16400 #define F_PGME V_PGME(1U) 16401 16402 #define S_CHMN 20 16403 #define V_CHMN(x) ((x) << S_CHMN) 16404 #define F_CHMN V_CHMN(1U) 16405 16406 #define S_RPLC 19 16407 #define V_RPLC(x) ((x) << S_RPLC) 16408 #define F_RPLC V_RPLC(1U) 16409 16410 #define S_ATRB 18 16411 #define V_ATRB(x) ((x) << S_ATRB) 16412 #define F_ATRB V_ATRB(1U) 16413 16414 #define S_PSMX 17 16415 #define V_PSMX(x) ((x) << S_PSMX) 16416 #define F_PSMX V_PSMX(1U) 16417 16418 #define S_PGLL 16 16419 #define V_PGLL(x) ((x) << S_PGLL) 16420 #define F_PGLL V_PGLL(1U) 16421 16422 #define S_PGFL 15 16423 #define V_PGFL(x) ((x) << S_PGFL) 16424 #define F_PGFL V_PGFL(1U) 16425 16426 #define S_PKTQ 14 16427 #define V_PKTQ(x) ((x) << S_PKTQ) 16428 #define F_PKTQ V_PKTQ(1U) 16429 16430 #define S_PKFL 13 16431 #define V_PKFL(x) ((x) << S_PKFL) 16432 #define F_PKFL V_PKFL(1U) 16433 16434 #define S_PPM3 12 16435 #define V_PPM3(x) ((x) << S_PPM3) 16436 #define F_PPM3 V_PPM3(1U) 16437 16438 #define S_PPM2 11 16439 #define V_PPM2(x) ((x) << S_PPM2) 16440 #define F_PPM2 V_PPM2(1U) 16441 16442 #define S_PPM1 10 16443 #define V_PPM1(x) ((x) << S_PPM1) 16444 #define F_PPM1 V_PPM1(1U) 16445 16446 #define S_PPM0 9 16447 #define V_PPM0(x) ((x) << S_PPM0) 16448 #define F_PPM0 V_PPM0(1U) 16449 16450 #define S_SPMX 8 16451 #define V_SPMX(x) ((x) << S_SPMX) 16452 #define F_SPMX V_SPMX(1U) 16453 16454 #define S_CDL3 7 16455 #define V_CDL3(x) ((x) << S_CDL3) 16456 #define F_CDL3 V_CDL3(1U) 16457 16458 #define S_CDL2 6 16459 #define V_CDL2(x) ((x) << S_CDL2) 16460 #define F_CDL2 V_CDL2(1U) 16461 16462 #define S_CDL1 5 16463 #define V_CDL1(x) ((x) << S_CDL1) 16464 #define F_CDL1 V_CDL1(1U) 16465 16466 #define S_CDL0 4 16467 #define V_CDL0(x) ((x) << S_CDL0) 16468 #define F_CDL0 V_CDL0(1U) 16469 16470 #define S_CDM3 3 16471 #define V_CDM3(x) ((x) << S_CDM3) 16472 #define F_CDM3 V_CDM3(1U) 16473 16474 #define S_CDM2 2 16475 #define V_CDM2(x) ((x) << S_CDM2) 16476 #define F_CDM2 V_CDM2(1U) 16477 16478 #define S_CDM1 1 16479 #define V_CDM1(x) ((x) << S_CDM1) 16480 #define F_CDM1 V_CDM1(1U) 16481 16482 #define S_CDM0 0 16483 #define V_CDM0(x) ((x) << S_CDM0) 16484 #define F_CDM0 V_CDM0(1U) 16485 16486 #define A_MPS_RX_PERR_INT_ENABLE 0x11078 16487 #define A_MPS_RX_PERR_ENABLE 0x1107c 16488 #define A_MPS_RX_PERR_INJECT 0x11080 16489 #define A_MPS_RX_FUNC_INT_CAUSE 0x11084 16490 16491 #define S_INT_ERR_INT 8 16492 #define M_INT_ERR_INT 0x1fU 16493 #define V_INT_ERR_INT(x) ((x) << S_INT_ERR_INT) 16494 #define G_INT_ERR_INT(x) (((x) >> S_INT_ERR_INT) & M_INT_ERR_INT) 16495 16496 #define S_PG_TH_INT7 7 16497 #define V_PG_TH_INT7(x) ((x) << S_PG_TH_INT7) 16498 #define F_PG_TH_INT7 V_PG_TH_INT7(1U) 16499 16500 #define S_PG_TH_INT6 6 16501 #define V_PG_TH_INT6(x) ((x) << S_PG_TH_INT6) 16502 #define F_PG_TH_INT6 V_PG_TH_INT6(1U) 16503 16504 #define S_PG_TH_INT5 5 16505 #define V_PG_TH_INT5(x) ((x) << S_PG_TH_INT5) 16506 #define F_PG_TH_INT5 V_PG_TH_INT5(1U) 16507 16508 #define S_PG_TH_INT4 4 16509 #define V_PG_TH_INT4(x) ((x) << S_PG_TH_INT4) 16510 #define F_PG_TH_INT4 V_PG_TH_INT4(1U) 16511 16512 #define S_PG_TH_INT3 3 16513 #define V_PG_TH_INT3(x) ((x) << S_PG_TH_INT3) 16514 #define F_PG_TH_INT3 V_PG_TH_INT3(1U) 16515 16516 #define S_PG_TH_INT2 2 16517 #define V_PG_TH_INT2(x) ((x) << S_PG_TH_INT2) 16518 #define F_PG_TH_INT2 V_PG_TH_INT2(1U) 16519 16520 #define S_PG_TH_INT1 1 16521 #define V_PG_TH_INT1(x) ((x) << S_PG_TH_INT1) 16522 #define F_PG_TH_INT1 V_PG_TH_INT1(1U) 16523 16524 #define S_PG_TH_INT0 0 16525 #define V_PG_TH_INT0(x) ((x) << S_PG_TH_INT0) 16526 #define F_PG_TH_INT0 V_PG_TH_INT0(1U) 16527 16528 #define A_MPS_RX_FUNC_INT_ENABLE 0x11088 16529 #define A_MPS_RX_PAUSE_GEN_TH_0 0x1108c 16530 16531 #define S_TH_HIGH 16 16532 #define M_TH_HIGH 0xffffU 16533 #define V_TH_HIGH(x) ((x) << S_TH_HIGH) 16534 #define G_TH_HIGH(x) (((x) >> S_TH_HIGH) & M_TH_HIGH) 16535 16536 #define S_TH_LOW 0 16537 #define M_TH_LOW 0xffffU 16538 #define V_TH_LOW(x) ((x) << S_TH_LOW) 16539 #define G_TH_LOW(x) (((x) >> S_TH_LOW) & M_TH_LOW) 16540 16541 #define A_MPS_RX_PAUSE_GEN_TH_1 0x11090 16542 #define A_MPS_RX_PAUSE_GEN_TH_2 0x11094 16543 #define A_MPS_RX_PAUSE_GEN_TH_3 0x11098 16544 #define A_MPS_RX_PPP_ATRB 0x1109c 16545 16546 #define S_ETYPE 16 16547 #define M_ETYPE 0xffffU 16548 #define V_ETYPE(x) ((x) << S_ETYPE) 16549 #define G_ETYPE(x) (((x) >> S_ETYPE) & M_ETYPE) 16550 16551 #define S_OPCODE 0 16552 #define M_OPCODE 0xffffU 16553 #define V_OPCODE(x) ((x) << S_OPCODE) 16554 #define G_OPCODE(x) (((x) >> S_OPCODE) & M_OPCODE) 16555 16556 #define A_MPS_RX_QFC0_ATRB 0x110a0 16557 16558 #define S_DA 0 16559 #define M_DA 0xffffU 16560 #define V_DA(x) ((x) << S_DA) 16561 #define G_DA(x) (((x) >> S_DA) & M_DA) 16562 16563 #define A_MPS_RX_QFC1_ATRB 0x110a4 16564 #define A_MPS_RX_PT_ARB0 0x110a8 16565 16566 #define S_LPBK_WT 16 16567 #define M_LPBK_WT 0x3fffU 16568 #define V_LPBK_WT(x) ((x) << S_LPBK_WT) 16569 #define G_LPBK_WT(x) (((x) >> S_LPBK_WT) & M_LPBK_WT) 16570 16571 #define S_MAC_WT 0 16572 #define M_MAC_WT 0x3fffU 16573 #define V_MAC_WT(x) ((x) << S_MAC_WT) 16574 #define G_MAC_WT(x) (((x) >> S_MAC_WT) & M_MAC_WT) 16575 16576 #define A_MPS_RX_PT_ARB1 0x110ac 16577 #define A_MPS_RX_PT_ARB2 0x110b0 16578 #define A_MPS_RX_PT_ARB3 0x110b4 16579 #define A_MPS_RX_PT_ARB4 0x110b8 16580 #define A_MPS_PF_OUT_EN 0x110bc 16581 16582 #define S_OUTEN 0 16583 #define M_OUTEN 0xffU 16584 #define V_OUTEN(x) ((x) << S_OUTEN) 16585 #define G_OUTEN(x) (((x) >> S_OUTEN) & M_OUTEN) 16586 16587 #define A_MPS_BMC_MTU 0x110c0 16588 16589 #define S_MTU 0 16590 #define M_MTU 0x3fffU 16591 #define V_MTU(x) ((x) << S_MTU) 16592 #define G_MTU(x) (((x) >> S_MTU) & M_MTU) 16593 16594 #define A_MPS_BMC_PKT_CNT 0x110c4 16595 #define A_MPS_BMC_BYTE_CNT 0x110c8 16596 #define A_MPS_PFVF_ATRB_CTL 0x110cc 16597 16598 #define S_RD_WRN 31 16599 #define V_RD_WRN(x) ((x) << S_RD_WRN) 16600 #define F_RD_WRN V_RD_WRN(1U) 16601 16602 #define S_PFVF 0 16603 #define M_PFVF 0xffU 16604 #define V_PFVF(x) ((x) << S_PFVF) 16605 #define G_PFVF(x) (((x) >> S_PFVF) & M_PFVF) 16606 16607 #define A_MPS_PFVF_ATRB 0x110d0 16608 16609 #define S_ATTR_PF 28 16610 #define M_ATTR_PF 0x7U 16611 #define V_ATTR_PF(x) ((x) << S_ATTR_PF) 16612 #define G_ATTR_PF(x) (((x) >> S_ATTR_PF) & M_ATTR_PF) 16613 16614 #define S_OFF 18 16615 #define V_OFF(x) ((x) << S_OFF) 16616 #define F_OFF V_OFF(1U) 16617 16618 #define S_NV_DROP 17 16619 #define V_NV_DROP(x) ((x) << S_NV_DROP) 16620 #define F_NV_DROP V_NV_DROP(1U) 16621 16622 #define S_ATTR_MODE 16 16623 #define V_ATTR_MODE(x) ((x) << S_ATTR_MODE) 16624 #define F_ATTR_MODE V_ATTR_MODE(1U) 16625 16626 #define A_MPS_PFVF_ATRB_FLTR0 0x110d4 16627 16628 #define S_VLAN_EN 16 16629 #define V_VLAN_EN(x) ((x) << S_VLAN_EN) 16630 #define F_VLAN_EN V_VLAN_EN(1U) 16631 16632 #define S_VLAN_ID 0 16633 #define M_VLAN_ID 0xfffU 16634 #define V_VLAN_ID(x) ((x) << S_VLAN_ID) 16635 #define G_VLAN_ID(x) (((x) >> S_VLAN_ID) & M_VLAN_ID) 16636 16637 #define A_MPS_PFVF_ATRB_FLTR1 0x110d8 16638 #define A_MPS_PFVF_ATRB_FLTR2 0x110dc 16639 #define A_MPS_PFVF_ATRB_FLTR3 0x110e0 16640 #define A_MPS_PFVF_ATRB_FLTR4 0x110e4 16641 #define A_MPS_PFVF_ATRB_FLTR5 0x110e8 16642 #define A_MPS_PFVF_ATRB_FLTR6 0x110ec 16643 #define A_MPS_PFVF_ATRB_FLTR7 0x110f0 16644 #define A_MPS_PFVF_ATRB_FLTR8 0x110f4 16645 #define A_MPS_PFVF_ATRB_FLTR9 0x110f8 16646 #define A_MPS_PFVF_ATRB_FLTR10 0x110fc 16647 #define A_MPS_PFVF_ATRB_FLTR11 0x11100 16648 #define A_MPS_PFVF_ATRB_FLTR12 0x11104 16649 #define A_MPS_PFVF_ATRB_FLTR13 0x11108 16650 #define A_MPS_PFVF_ATRB_FLTR14 0x1110c 16651 #define A_MPS_PFVF_ATRB_FLTR15 0x11110 16652 #define A_MPS_RPLC_MAP_CTL 0x11114 16653 16654 #define S_RPLC_MAP_ADDR 0 16655 #define M_RPLC_MAP_ADDR 0x3ffU 16656 #define V_RPLC_MAP_ADDR(x) ((x) << S_RPLC_MAP_ADDR) 16657 #define G_RPLC_MAP_ADDR(x) (((x) >> S_RPLC_MAP_ADDR) & M_RPLC_MAP_ADDR) 16658 16659 #define A_MPS_PF_RPLCT_MAP 0x11118 16660 16661 #define S_PF_EN 0 16662 #define M_PF_EN 0xffU 16663 #define V_PF_EN(x) ((x) << S_PF_EN) 16664 #define G_PF_EN(x) (((x) >> S_PF_EN) & M_PF_EN) 16665 16666 #define A_MPS_VF_RPLCT_MAP0 0x1111c 16667 #define A_MPS_VF_RPLCT_MAP1 0x11120 16668 #define A_MPS_VF_RPLCT_MAP2 0x11124 16669 #define A_MPS_VF_RPLCT_MAP3 0x11128 16670 #define A_MPS_MEM_DBG_CTL 0x1112c 16671 16672 #define S_PKD 17 16673 #define V_PKD(x) ((x) << S_PKD) 16674 #define F_PKD V_PKD(1U) 16675 16676 #define S_PGD 16 16677 #define V_PGD(x) ((x) << S_PGD) 16678 #define F_PGD V_PGD(1U) 16679 16680 #define A_MPS_PKD_MEM_DATA0 0x11130 16681 #define A_MPS_PKD_MEM_DATA1 0x11134 16682 #define A_MPS_PKD_MEM_DATA2 0x11138 16683 #define A_MPS_PGD_MEM_DATA 0x1113c 16684 #define A_MPS_RX_SE_CNT_ERR 0x11140 16685 16686 #define S_RX_SE_ERRMAP 0 16687 #define M_RX_SE_ERRMAP 0xfffffU 16688 #define V_RX_SE_ERRMAP(x) ((x) << S_RX_SE_ERRMAP) 16689 #define G_RX_SE_ERRMAP(x) (((x) >> S_RX_SE_ERRMAP) & M_RX_SE_ERRMAP) 16690 16691 #define A_MPS_RX_SE_CNT_CLR 0x11144 16692 #define A_MPS_RX_SE_CNT_IN0 0x11148 16693 16694 #define S_SOP_CNT_PM 24 16695 #define M_SOP_CNT_PM 0xffU 16696 #define V_SOP_CNT_PM(x) ((x) << S_SOP_CNT_PM) 16697 #define G_SOP_CNT_PM(x) (((x) >> S_SOP_CNT_PM) & M_SOP_CNT_PM) 16698 16699 #define S_EOP_CNT_PM 16 16700 #define M_EOP_CNT_PM 0xffU 16701 #define V_EOP_CNT_PM(x) ((x) << S_EOP_CNT_PM) 16702 #define G_EOP_CNT_PM(x) (((x) >> S_EOP_CNT_PM) & M_EOP_CNT_PM) 16703 16704 #define S_SOP_CNT_IN 8 16705 #define M_SOP_CNT_IN 0xffU 16706 #define V_SOP_CNT_IN(x) ((x) << S_SOP_CNT_IN) 16707 #define G_SOP_CNT_IN(x) (((x) >> S_SOP_CNT_IN) & M_SOP_CNT_IN) 16708 16709 #define S_EOP_CNT_IN 0 16710 #define M_EOP_CNT_IN 0xffU 16711 #define V_EOP_CNT_IN(x) ((x) << S_EOP_CNT_IN) 16712 #define G_EOP_CNT_IN(x) (((x) >> S_EOP_CNT_IN) & M_EOP_CNT_IN) 16713 16714 #define A_MPS_RX_SE_CNT_IN1 0x1114c 16715 #define A_MPS_RX_SE_CNT_IN2 0x11150 16716 #define A_MPS_RX_SE_CNT_IN3 0x11154 16717 #define A_MPS_RX_SE_CNT_IN4 0x11158 16718 #define A_MPS_RX_SE_CNT_IN5 0x1115c 16719 #define A_MPS_RX_SE_CNT_IN6 0x11160 16720 #define A_MPS_RX_SE_CNT_IN7 0x11164 16721 #define A_MPS_RX_SE_CNT_OUT01 0x11168 16722 16723 #define S_SOP_CNT_1 24 16724 #define M_SOP_CNT_1 0xffU 16725 #define V_SOP_CNT_1(x) ((x) << S_SOP_CNT_1) 16726 #define G_SOP_CNT_1(x) (((x) >> S_SOP_CNT_1) & M_SOP_CNT_1) 16727 16728 #define S_EOP_CNT_1 16 16729 #define M_EOP_CNT_1 0xffU 16730 #define V_EOP_CNT_1(x) ((x) << S_EOP_CNT_1) 16731 #define G_EOP_CNT_1(x) (((x) >> S_EOP_CNT_1) & M_EOP_CNT_1) 16732 16733 #define S_SOP_CNT_0 8 16734 #define M_SOP_CNT_0 0xffU 16735 #define V_SOP_CNT_0(x) ((x) << S_SOP_CNT_0) 16736 #define G_SOP_CNT_0(x) (((x) >> S_SOP_CNT_0) & M_SOP_CNT_0) 16737 16738 #define S_EOP_CNT_0 0 16739 #define M_EOP_CNT_0 0xffU 16740 #define V_EOP_CNT_0(x) ((x) << S_EOP_CNT_0) 16741 #define G_EOP_CNT_0(x) (((x) >> S_EOP_CNT_0) & M_EOP_CNT_0) 16742 16743 #define A_MPS_RX_SE_CNT_OUT23 0x1116c 16744 16745 #define S_SOP_CNT_3 24 16746 #define M_SOP_CNT_3 0xffU 16747 #define V_SOP_CNT_3(x) ((x) << S_SOP_CNT_3) 16748 #define G_SOP_CNT_3(x) (((x) >> S_SOP_CNT_3) & M_SOP_CNT_3) 16749 16750 #define S_EOP_CNT_3 16 16751 #define M_EOP_CNT_3 0xffU 16752 #define V_EOP_CNT_3(x) ((x) << S_EOP_CNT_3) 16753 #define G_EOP_CNT_3(x) (((x) >> S_EOP_CNT_3) & M_EOP_CNT_3) 16754 16755 #define S_SOP_CNT_2 8 16756 #define M_SOP_CNT_2 0xffU 16757 #define V_SOP_CNT_2(x) ((x) << S_SOP_CNT_2) 16758 #define G_SOP_CNT_2(x) (((x) >> S_SOP_CNT_2) & M_SOP_CNT_2) 16759 16760 #define S_EOP_CNT_2 0 16761 #define M_EOP_CNT_2 0xffU 16762 #define V_EOP_CNT_2(x) ((x) << S_EOP_CNT_2) 16763 #define G_EOP_CNT_2(x) (((x) >> S_EOP_CNT_2) & M_EOP_CNT_2) 16764 16765 #define A_MPS_RX_SPI_ERR 0x11170 16766 16767 #define S_LENERR 21 16768 #define M_LENERR 0xfU 16769 #define V_LENERR(x) ((x) << S_LENERR) 16770 #define G_LENERR(x) (((x) >> S_LENERR) & M_LENERR) 16771 16772 #define S_SPIERR 0 16773 #define M_SPIERR 0x1fffffU 16774 #define V_SPIERR(x) ((x) << S_SPIERR) 16775 #define G_SPIERR(x) (((x) >> S_SPIERR) & M_SPIERR) 16776 16777 #define A_MPS_RX_IN_BUS_STATE 0x11174 16778 16779 #define S_ST3 24 16780 #define M_ST3 0xffU 16781 #define V_ST3(x) ((x) << S_ST3) 16782 #define G_ST3(x) (((x) >> S_ST3) & M_ST3) 16783 16784 #define S_ST2 16 16785 #define M_ST2 0xffU 16786 #define V_ST2(x) ((x) << S_ST2) 16787 #define G_ST2(x) (((x) >> S_ST2) & M_ST2) 16788 16789 #define S_ST1 8 16790 #define M_ST1 0xffU 16791 #define V_ST1(x) ((x) << S_ST1) 16792 #define G_ST1(x) (((x) >> S_ST1) & M_ST1) 16793 16794 #define S_ST0 0 16795 #define M_ST0 0xffU 16796 #define V_ST0(x) ((x) << S_ST0) 16797 #define G_ST0(x) (((x) >> S_ST0) & M_ST0) 16798 16799 #define A_MPS_RX_OUT_BUS_STATE 0x11178 16800 16801 #define S_ST_NCSI 23 16802 #define M_ST_NCSI 0x1ffU 16803 #define V_ST_NCSI(x) ((x) << S_ST_NCSI) 16804 #define G_ST_NCSI(x) (((x) >> S_ST_NCSI) & M_ST_NCSI) 16805 16806 #define S_ST_TP 0 16807 #define M_ST_TP 0x7fffffU 16808 #define V_ST_TP(x) ((x) << S_ST_TP) 16809 #define G_ST_TP(x) (((x) >> S_ST_TP) & M_ST_TP) 16810 16811 #define A_MPS_RX_DBG_CTL 0x1117c 16812 16813 #define S_OUT_DBG_CHNL 8 16814 #define M_OUT_DBG_CHNL 0x7U 16815 #define V_OUT_DBG_CHNL(x) ((x) << S_OUT_DBG_CHNL) 16816 #define G_OUT_DBG_CHNL(x) (((x) >> S_OUT_DBG_CHNL) & M_OUT_DBG_CHNL) 16817 16818 #define S_DBG_PKD_QSEL 7 16819 #define V_DBG_PKD_QSEL(x) ((x) << S_DBG_PKD_QSEL) 16820 #define F_DBG_PKD_QSEL V_DBG_PKD_QSEL(1U) 16821 16822 #define S_DBG_CDS_INV 6 16823 #define V_DBG_CDS_INV(x) ((x) << S_DBG_CDS_INV) 16824 #define F_DBG_CDS_INV V_DBG_CDS_INV(1U) 16825 16826 #define S_IN_DBG_PORT 3 16827 #define M_IN_DBG_PORT 0x7U 16828 #define V_IN_DBG_PORT(x) ((x) << S_IN_DBG_PORT) 16829 #define G_IN_DBG_PORT(x) (((x) >> S_IN_DBG_PORT) & M_IN_DBG_PORT) 16830 16831 #define S_IN_DBG_CHNL 0 16832 #define M_IN_DBG_CHNL 0x7U 16833 #define V_IN_DBG_CHNL(x) ((x) << S_IN_DBG_CHNL) 16834 #define G_IN_DBG_CHNL(x) (((x) >> S_IN_DBG_CHNL) & M_IN_DBG_CHNL) 16835 16836 #define A_MPS_RX_CLS_DROP_CNT0 0x11180 16837 16838 #define S_LPBK_CNT0 16 16839 #define M_LPBK_CNT0 0xffffU 16840 #define V_LPBK_CNT0(x) ((x) << S_LPBK_CNT0) 16841 #define G_LPBK_CNT0(x) (((x) >> S_LPBK_CNT0) & M_LPBK_CNT0) 16842 16843 #define S_MAC_CNT0 0 16844 #define M_MAC_CNT0 0xffffU 16845 #define V_MAC_CNT0(x) ((x) << S_MAC_CNT0) 16846 #define G_MAC_CNT0(x) (((x) >> S_MAC_CNT0) & M_MAC_CNT0) 16847 16848 #define A_MPS_RX_CLS_DROP_CNT1 0x11184 16849 16850 #define S_LPBK_CNT1 16 16851 #define M_LPBK_CNT1 0xffffU 16852 #define V_LPBK_CNT1(x) ((x) << S_LPBK_CNT1) 16853 #define G_LPBK_CNT1(x) (((x) >> S_LPBK_CNT1) & M_LPBK_CNT1) 16854 16855 #define S_MAC_CNT1 0 16856 #define M_MAC_CNT1 0xffffU 16857 #define V_MAC_CNT1(x) ((x) << S_MAC_CNT1) 16858 #define G_MAC_CNT1(x) (((x) >> S_MAC_CNT1) & M_MAC_CNT1) 16859 16860 #define A_MPS_RX_CLS_DROP_CNT2 0x11188 16861 16862 #define S_LPBK_CNT2 16 16863 #define M_LPBK_CNT2 0xffffU 16864 #define V_LPBK_CNT2(x) ((x) << S_LPBK_CNT2) 16865 #define G_LPBK_CNT2(x) (((x) >> S_LPBK_CNT2) & M_LPBK_CNT2) 16866 16867 #define S_MAC_CNT2 0 16868 #define M_MAC_CNT2 0xffffU 16869 #define V_MAC_CNT2(x) ((x) << S_MAC_CNT2) 16870 #define G_MAC_CNT2(x) (((x) >> S_MAC_CNT2) & M_MAC_CNT2) 16871 16872 #define A_MPS_RX_CLS_DROP_CNT3 0x1118c 16873 16874 #define S_LPBK_CNT3 16 16875 #define M_LPBK_CNT3 0xffffU 16876 #define V_LPBK_CNT3(x) ((x) << S_LPBK_CNT3) 16877 #define G_LPBK_CNT3(x) (((x) >> S_LPBK_CNT3) & M_LPBK_CNT3) 16878 16879 #define S_MAC_CNT3 0 16880 #define M_MAC_CNT3 0xffffU 16881 #define V_MAC_CNT3(x) ((x) << S_MAC_CNT3) 16882 #define G_MAC_CNT3(x) (((x) >> S_MAC_CNT3) & M_MAC_CNT3) 16883 16884 #define A_MPS_RX_SPARE 0x11190 16885 16886 /* registers for module CPL_SWITCH */ 16887 #define CPL_SWITCH_BASE_ADDR 0x19040 16888 16889 #define A_CPL_SWITCH_CNTRL 0x19040 16890 16891 #define S_CPL_PKT_TID 8 16892 #define M_CPL_PKT_TID 0xffffffU 16893 #define V_CPL_PKT_TID(x) ((x) << S_CPL_PKT_TID) 16894 #define G_CPL_PKT_TID(x) (((x) >> S_CPL_PKT_TID) & M_CPL_PKT_TID) 16895 16896 #define S_CIM_TRUNCATE_ENABLE 5 16897 #define V_CIM_TRUNCATE_ENABLE(x) ((x) << S_CIM_TRUNCATE_ENABLE) 16898 #define F_CIM_TRUNCATE_ENABLE V_CIM_TRUNCATE_ENABLE(1U) 16899 16900 #define S_CIM_TO_UP_FULL_SIZE 4 16901 #define V_CIM_TO_UP_FULL_SIZE(x) ((x) << S_CIM_TO_UP_FULL_SIZE) 16902 #define F_CIM_TO_UP_FULL_SIZE V_CIM_TO_UP_FULL_SIZE(1U) 16903 16904 #define S_CPU_NO_ENABLE 3 16905 #define V_CPU_NO_ENABLE(x) ((x) << S_CPU_NO_ENABLE) 16906 #define F_CPU_NO_ENABLE V_CPU_NO_ENABLE(1U) 16907 16908 #define S_SWITCH_TABLE_ENABLE 2 16909 #define V_SWITCH_TABLE_ENABLE(x) ((x) << S_SWITCH_TABLE_ENABLE) 16910 #define F_SWITCH_TABLE_ENABLE V_SWITCH_TABLE_ENABLE(1U) 16911 16912 #define S_SGE_ENABLE 1 16913 #define V_SGE_ENABLE(x) ((x) << S_SGE_ENABLE) 16914 #define F_SGE_ENABLE V_SGE_ENABLE(1U) 16915 16916 #define S_CIM_ENABLE 0 16917 #define V_CIM_ENABLE(x) ((x) << S_CIM_ENABLE) 16918 #define F_CIM_ENABLE V_CIM_ENABLE(1U) 16919 16920 #define A_CPL_SWITCH_TBL_IDX 0x19044 16921 16922 #define S_SWITCH_TBL_IDX 0 16923 #define M_SWITCH_TBL_IDX 0xfU 16924 #define V_SWITCH_TBL_IDX(x) ((x) << S_SWITCH_TBL_IDX) 16925 #define G_SWITCH_TBL_IDX(x) (((x) >> S_SWITCH_TBL_IDX) & M_SWITCH_TBL_IDX) 16926 16927 #define A_CPL_SWITCH_TBL_DATA 0x19048 16928 #define A_CPL_SWITCH_ZERO_ERROR 0x1904c 16929 16930 #define S_ZERO_CMD_CH1 8 16931 #define M_ZERO_CMD_CH1 0xffU 16932 #define V_ZERO_CMD_CH1(x) ((x) << S_ZERO_CMD_CH1) 16933 #define G_ZERO_CMD_CH1(x) (((x) >> S_ZERO_CMD_CH1) & M_ZERO_CMD_CH1) 16934 16935 #define S_ZERO_CMD_CH0 0 16936 #define M_ZERO_CMD_CH0 0xffU 16937 #define V_ZERO_CMD_CH0(x) ((x) << S_ZERO_CMD_CH0) 16938 #define G_ZERO_CMD_CH0(x) (((x) >> S_ZERO_CMD_CH0) & M_ZERO_CMD_CH0) 16939 16940 #define A_CPL_INTR_ENABLE 0x19050 16941 16942 #define S_CIM_OP_MAP_PERR 5 16943 #define V_CIM_OP_MAP_PERR(x) ((x) << S_CIM_OP_MAP_PERR) 16944 #define F_CIM_OP_MAP_PERR V_CIM_OP_MAP_PERR(1U) 16945 16946 #define S_CIM_OVFL_ERROR 4 16947 #define V_CIM_OVFL_ERROR(x) ((x) << S_CIM_OVFL_ERROR) 16948 #define F_CIM_OVFL_ERROR V_CIM_OVFL_ERROR(1U) 16949 16950 #define S_TP_FRAMING_ERROR 3 16951 #define V_TP_FRAMING_ERROR(x) ((x) << S_TP_FRAMING_ERROR) 16952 #define F_TP_FRAMING_ERROR V_TP_FRAMING_ERROR(1U) 16953 16954 #define S_SGE_FRAMING_ERROR 2 16955 #define V_SGE_FRAMING_ERROR(x) ((x) << S_SGE_FRAMING_ERROR) 16956 #define F_SGE_FRAMING_ERROR V_SGE_FRAMING_ERROR(1U) 16957 16958 #define S_CIM_FRAMING_ERROR 1 16959 #define V_CIM_FRAMING_ERROR(x) ((x) << S_CIM_FRAMING_ERROR) 16960 #define F_CIM_FRAMING_ERROR V_CIM_FRAMING_ERROR(1U) 16961 16962 #define S_ZERO_SWITCH_ERROR 0 16963 #define V_ZERO_SWITCH_ERROR(x) ((x) << S_ZERO_SWITCH_ERROR) 16964 #define F_ZERO_SWITCH_ERROR V_ZERO_SWITCH_ERROR(1U) 16965 16966 #define A_CPL_INTR_CAUSE 0x19054 16967 #define A_CPL_MAP_TBL_IDX 0x19058 16968 16969 #define S_MAP_TBL_IDX 0 16970 #define M_MAP_TBL_IDX 0xffU 16971 #define V_MAP_TBL_IDX(x) ((x) << S_MAP_TBL_IDX) 16972 #define G_MAP_TBL_IDX(x) (((x) >> S_MAP_TBL_IDX) & M_MAP_TBL_IDX) 16973 16974 #define A_CPL_MAP_TBL_DATA 0x1905c 16975 16976 #define S_MAP_TBL_DATA 0 16977 #define M_MAP_TBL_DATA 0xffU 16978 #define V_MAP_TBL_DATA(x) ((x) << S_MAP_TBL_DATA) 16979 #define G_MAP_TBL_DATA(x) (((x) >> S_MAP_TBL_DATA) & M_MAP_TBL_DATA) 16980 16981 /* registers for module SMB */ 16982 #define SMB_BASE_ADDR 0x19060 16983 16984 #define A_SMB_GLOBAL_TIME_CFG 0x19060 16985 16986 #define S_MACROCNTCFG 8 16987 #define M_MACROCNTCFG 0x1fU 16988 #define V_MACROCNTCFG(x) ((x) << S_MACROCNTCFG) 16989 #define G_MACROCNTCFG(x) (((x) >> S_MACROCNTCFG) & M_MACROCNTCFG) 16990 16991 #define S_MICROCNTCFG 0 16992 #define M_MICROCNTCFG 0xffU 16993 #define V_MICROCNTCFG(x) ((x) << S_MICROCNTCFG) 16994 #define G_MICROCNTCFG(x) (((x) >> S_MICROCNTCFG) & M_MICROCNTCFG) 16995 16996 #define A_SMB_MST_TIMEOUT_CFG 0x19064 16997 16998 #define S_MSTTIMEOUTCFG 0 16999 #define M_MSTTIMEOUTCFG 0xffffffU 17000 #define V_MSTTIMEOUTCFG(x) ((x) << S_MSTTIMEOUTCFG) 17001 #define G_MSTTIMEOUTCFG(x) (((x) >> S_MSTTIMEOUTCFG) & M_MSTTIMEOUTCFG) 17002 17003 #define A_SMB_MST_CTL_CFG 0x19068 17004 17005 #define S_MSTFIFODBG 31 17006 #define V_MSTFIFODBG(x) ((x) << S_MSTFIFODBG) 17007 #define F_MSTFIFODBG V_MSTFIFODBG(1U) 17008 17009 #define S_MSTFIFODBGCLR 30 17010 #define V_MSTFIFODBGCLR(x) ((x) << S_MSTFIFODBGCLR) 17011 #define F_MSTFIFODBGCLR V_MSTFIFODBGCLR(1U) 17012 17013 #define S_MSTRXBYTECFG 12 17014 #define M_MSTRXBYTECFG 0x3fU 17015 #define V_MSTRXBYTECFG(x) ((x) << S_MSTRXBYTECFG) 17016 #define G_MSTRXBYTECFG(x) (((x) >> S_MSTRXBYTECFG) & M_MSTRXBYTECFG) 17017 17018 #define S_MSTTXBYTECFG 6 17019 #define M_MSTTXBYTECFG 0x3fU 17020 #define V_MSTTXBYTECFG(x) ((x) << S_MSTTXBYTECFG) 17021 #define G_MSTTXBYTECFG(x) (((x) >> S_MSTTXBYTECFG) & M_MSTTXBYTECFG) 17022 17023 #define S_MSTRESET 1 17024 #define V_MSTRESET(x) ((x) << S_MSTRESET) 17025 #define F_MSTRESET V_MSTRESET(1U) 17026 17027 #define S_MSTCTLEN 0 17028 #define V_MSTCTLEN(x) ((x) << S_MSTCTLEN) 17029 #define F_MSTCTLEN V_MSTCTLEN(1U) 17030 17031 #define A_SMB_MST_CTL_STS 0x1906c 17032 17033 #define S_MSTRXBYTECNT 12 17034 #define M_MSTRXBYTECNT 0x3fU 17035 #define V_MSTRXBYTECNT(x) ((x) << S_MSTRXBYTECNT) 17036 #define G_MSTRXBYTECNT(x) (((x) >> S_MSTRXBYTECNT) & M_MSTRXBYTECNT) 17037 17038 #define S_MSTTXBYTECNT 6 17039 #define M_MSTTXBYTECNT 0x3fU 17040 #define V_MSTTXBYTECNT(x) ((x) << S_MSTTXBYTECNT) 17041 #define G_MSTTXBYTECNT(x) (((x) >> S_MSTTXBYTECNT) & M_MSTTXBYTECNT) 17042 17043 #define S_MSTBUSYSTS 0 17044 #define V_MSTBUSYSTS(x) ((x) << S_MSTBUSYSTS) 17045 #define F_MSTBUSYSTS V_MSTBUSYSTS(1U) 17046 17047 #define A_SMB_MST_TX_FIFO_RDWR 0x19070 17048 #define A_SMB_MST_RX_FIFO_RDWR 0x19074 17049 #define A_SMB_SLV_TIMEOUT_CFG 0x19078 17050 17051 #define S_SLVTIMEOUTCFG 0 17052 #define M_SLVTIMEOUTCFG 0xffffffU 17053 #define V_SLVTIMEOUTCFG(x) ((x) << S_SLVTIMEOUTCFG) 17054 #define G_SLVTIMEOUTCFG(x) (((x) >> S_SLVTIMEOUTCFG) & M_SLVTIMEOUTCFG) 17055 17056 #define A_SMB_SLV_CTL_CFG 0x1907c 17057 17058 #define S_SLVFIFODBG 31 17059 #define V_SLVFIFODBG(x) ((x) << S_SLVFIFODBG) 17060 #define F_SLVFIFODBG V_SLVFIFODBG(1U) 17061 17062 #define S_SLVFIFODBGCLR 30 17063 #define V_SLVFIFODBGCLR(x) ((x) << S_SLVFIFODBGCLR) 17064 #define F_SLVFIFODBGCLR V_SLVFIFODBGCLR(1U) 17065 17066 #define S_SLVCRCOUTBITINV 21 17067 #define V_SLVCRCOUTBITINV(x) ((x) << S_SLVCRCOUTBITINV) 17068 #define F_SLVCRCOUTBITINV V_SLVCRCOUTBITINV(1U) 17069 17070 #define S_SLVCRCOUTBITREV 20 17071 #define V_SLVCRCOUTBITREV(x) ((x) << S_SLVCRCOUTBITREV) 17072 #define F_SLVCRCOUTBITREV V_SLVCRCOUTBITREV(1U) 17073 17074 #define S_SLVCRCINBITREV 19 17075 #define V_SLVCRCINBITREV(x) ((x) << S_SLVCRCINBITREV) 17076 #define F_SLVCRCINBITREV V_SLVCRCINBITREV(1U) 17077 17078 #define S_SLVCRCPRESET 11 17079 #define M_SLVCRCPRESET 0xffU 17080 #define V_SLVCRCPRESET(x) ((x) << S_SLVCRCPRESET) 17081 #define G_SLVCRCPRESET(x) (((x) >> S_SLVCRCPRESET) & M_SLVCRCPRESET) 17082 17083 #define S_SLVADDRCFG 4 17084 #define M_SLVADDRCFG 0x7fU 17085 #define V_SLVADDRCFG(x) ((x) << S_SLVADDRCFG) 17086 #define G_SLVADDRCFG(x) (((x) >> S_SLVADDRCFG) & M_SLVADDRCFG) 17087 17088 #define S_SLVALRTSET 2 17089 #define V_SLVALRTSET(x) ((x) << S_SLVALRTSET) 17090 #define F_SLVALRTSET V_SLVALRTSET(1U) 17091 17092 #define S_SLVRESET 1 17093 #define V_SLVRESET(x) ((x) << S_SLVRESET) 17094 #define F_SLVRESET V_SLVRESET(1U) 17095 17096 #define S_SLVCTLEN 0 17097 #define V_SLVCTLEN(x) ((x) << S_SLVCTLEN) 17098 #define F_SLVCTLEN V_SLVCTLEN(1U) 17099 17100 #define A_SMB_SLV_CTL_STS 0x19080 17101 17102 #define S_SLVFIFOTXCNT 12 17103 #define M_SLVFIFOTXCNT 0x3fU 17104 #define V_SLVFIFOTXCNT(x) ((x) << S_SLVFIFOTXCNT) 17105 #define G_SLVFIFOTXCNT(x) (((x) >> S_SLVFIFOTXCNT) & M_SLVFIFOTXCNT) 17106 17107 #define S_SLVFIFOCNT 6 17108 #define M_SLVFIFOCNT 0x3fU 17109 #define V_SLVFIFOCNT(x) ((x) << S_SLVFIFOCNT) 17110 #define G_SLVFIFOCNT(x) (((x) >> S_SLVFIFOCNT) & M_SLVFIFOCNT) 17111 17112 #define S_SLVALRTSTS 2 17113 #define V_SLVALRTSTS(x) ((x) << S_SLVALRTSTS) 17114 #define F_SLVALRTSTS V_SLVALRTSTS(1U) 17115 17116 #define S_SLVBUSYSTS 0 17117 #define V_SLVBUSYSTS(x) ((x) << S_SLVBUSYSTS) 17118 #define F_SLVBUSYSTS V_SLVBUSYSTS(1U) 17119 17120 #define A_SMB_SLV_FIFO_RDWR 0x19084 17121 #define A_SMB_INT_ENABLE 0x1908c 17122 17123 #define S_MSTTXFIFOPAREN 21 17124 #define V_MSTTXFIFOPAREN(x) ((x) << S_MSTTXFIFOPAREN) 17125 #define F_MSTTXFIFOPAREN V_MSTTXFIFOPAREN(1U) 17126 17127 #define S_MSTRXFIFOPAREN 20 17128 #define V_MSTRXFIFOPAREN(x) ((x) << S_MSTRXFIFOPAREN) 17129 #define F_MSTRXFIFOPAREN V_MSTRXFIFOPAREN(1U) 17130 17131 #define S_SLVFIFOPAREN 19 17132 #define V_SLVFIFOPAREN(x) ((x) << S_SLVFIFOPAREN) 17133 #define F_SLVFIFOPAREN V_SLVFIFOPAREN(1U) 17134 17135 #define S_SLVUNEXPBUSSTOPEN 18 17136 #define V_SLVUNEXPBUSSTOPEN(x) ((x) << S_SLVUNEXPBUSSTOPEN) 17137 #define F_SLVUNEXPBUSSTOPEN V_SLVUNEXPBUSSTOPEN(1U) 17138 17139 #define S_SLVUNEXPBUSSTARTEN 17 17140 #define V_SLVUNEXPBUSSTARTEN(x) ((x) << S_SLVUNEXPBUSSTARTEN) 17141 #define F_SLVUNEXPBUSSTARTEN V_SLVUNEXPBUSSTARTEN(1U) 17142 17143 #define S_SLVCOMMANDCODEINVEN 16 17144 #define V_SLVCOMMANDCODEINVEN(x) ((x) << S_SLVCOMMANDCODEINVEN) 17145 #define F_SLVCOMMANDCODEINVEN V_SLVCOMMANDCODEINVEN(1U) 17146 17147 #define S_SLVBYTECNTERREN 15 17148 #define V_SLVBYTECNTERREN(x) ((x) << S_SLVBYTECNTERREN) 17149 #define F_SLVBYTECNTERREN V_SLVBYTECNTERREN(1U) 17150 17151 #define S_SLVUNEXPACKMSTEN 14 17152 #define V_SLVUNEXPACKMSTEN(x) ((x) << S_SLVUNEXPACKMSTEN) 17153 #define F_SLVUNEXPACKMSTEN V_SLVUNEXPACKMSTEN(1U) 17154 17155 #define S_SLVUNEXPNACKMSTEN 13 17156 #define V_SLVUNEXPNACKMSTEN(x) ((x) << S_SLVUNEXPNACKMSTEN) 17157 #define F_SLVUNEXPNACKMSTEN V_SLVUNEXPNACKMSTEN(1U) 17158 17159 #define S_SLVNOBUSSTOPEN 12 17160 #define V_SLVNOBUSSTOPEN(x) ((x) << S_SLVNOBUSSTOPEN) 17161 #define F_SLVNOBUSSTOPEN V_SLVNOBUSSTOPEN(1U) 17162 17163 #define S_SLVNOREPSTARTEN 11 17164 #define V_SLVNOREPSTARTEN(x) ((x) << S_SLVNOREPSTARTEN) 17165 #define F_SLVNOREPSTARTEN V_SLVNOREPSTARTEN(1U) 17166 17167 #define S_SLVRXADDRINTEN 10 17168 #define V_SLVRXADDRINTEN(x) ((x) << S_SLVRXADDRINTEN) 17169 #define F_SLVRXADDRINTEN V_SLVRXADDRINTEN(1U) 17170 17171 #define S_SLVRXPECERRINTEN 9 17172 #define V_SLVRXPECERRINTEN(x) ((x) << S_SLVRXPECERRINTEN) 17173 #define F_SLVRXPECERRINTEN V_SLVRXPECERRINTEN(1U) 17174 17175 #define S_SLVPREPTOARPINTEN 8 17176 #define V_SLVPREPTOARPINTEN(x) ((x) << S_SLVPREPTOARPINTEN) 17177 #define F_SLVPREPTOARPINTEN V_SLVPREPTOARPINTEN(1U) 17178 17179 #define S_SLVTIMEOUTINTEN 7 17180 #define V_SLVTIMEOUTINTEN(x) ((x) << S_SLVTIMEOUTINTEN) 17181 #define F_SLVTIMEOUTINTEN V_SLVTIMEOUTINTEN(1U) 17182 17183 #define S_SLVERRINTEN 6 17184 #define V_SLVERRINTEN(x) ((x) << S_SLVERRINTEN) 17185 #define F_SLVERRINTEN V_SLVERRINTEN(1U) 17186 17187 #define S_SLVDONEINTEN 5 17188 #define V_SLVDONEINTEN(x) ((x) << S_SLVDONEINTEN) 17189 #define F_SLVDONEINTEN V_SLVDONEINTEN(1U) 17190 17191 #define S_SLVRXRDYINTEN 4 17192 #define V_SLVRXRDYINTEN(x) ((x) << S_SLVRXRDYINTEN) 17193 #define F_SLVRXRDYINTEN V_SLVRXRDYINTEN(1U) 17194 17195 #define S_MSTTIMEOUTINTEN 3 17196 #define V_MSTTIMEOUTINTEN(x) ((x) << S_MSTTIMEOUTINTEN) 17197 #define F_MSTTIMEOUTINTEN V_MSTTIMEOUTINTEN(1U) 17198 17199 #define S_MSTNACKINTEN 2 17200 #define V_MSTNACKINTEN(x) ((x) << S_MSTNACKINTEN) 17201 #define F_MSTNACKINTEN V_MSTNACKINTEN(1U) 17202 17203 #define S_MSTLOSTARBINTEN 1 17204 #define V_MSTLOSTARBINTEN(x) ((x) << S_MSTLOSTARBINTEN) 17205 #define F_MSTLOSTARBINTEN V_MSTLOSTARBINTEN(1U) 17206 17207 #define S_MSTDONEINTEN 0 17208 #define V_MSTDONEINTEN(x) ((x) << S_MSTDONEINTEN) 17209 #define F_MSTDONEINTEN V_MSTDONEINTEN(1U) 17210 17211 #define A_SMB_INT_CAUSE 0x19090 17212 17213 #define S_MSTTXFIFOPARINT 21 17214 #define V_MSTTXFIFOPARINT(x) ((x) << S_MSTTXFIFOPARINT) 17215 #define F_MSTTXFIFOPARINT V_MSTTXFIFOPARINT(1U) 17216 17217 #define S_MSTRXFIFOPARINT 20 17218 #define V_MSTRXFIFOPARINT(x) ((x) << S_MSTRXFIFOPARINT) 17219 #define F_MSTRXFIFOPARINT V_MSTRXFIFOPARINT(1U) 17220 17221 #define S_SLVFIFOPARINT 19 17222 #define V_SLVFIFOPARINT(x) ((x) << S_SLVFIFOPARINT) 17223 #define F_SLVFIFOPARINT V_SLVFIFOPARINT(1U) 17224 17225 #define S_SLVUNEXPBUSSTOPINT 18 17226 #define V_SLVUNEXPBUSSTOPINT(x) ((x) << S_SLVUNEXPBUSSTOPINT) 17227 #define F_SLVUNEXPBUSSTOPINT V_SLVUNEXPBUSSTOPINT(1U) 17228 17229 #define S_SLVUNEXPBUSSTARTINT 17 17230 #define V_SLVUNEXPBUSSTARTINT(x) ((x) << S_SLVUNEXPBUSSTARTINT) 17231 #define F_SLVUNEXPBUSSTARTINT V_SLVUNEXPBUSSTARTINT(1U) 17232 17233 #define S_SLVCOMMANDCODEINVINT 16 17234 #define V_SLVCOMMANDCODEINVINT(x) ((x) << S_SLVCOMMANDCODEINVINT) 17235 #define F_SLVCOMMANDCODEINVINT V_SLVCOMMANDCODEINVINT(1U) 17236 17237 #define S_SLVBYTECNTERRINT 15 17238 #define V_SLVBYTECNTERRINT(x) ((x) << S_SLVBYTECNTERRINT) 17239 #define F_SLVBYTECNTERRINT V_SLVBYTECNTERRINT(1U) 17240 17241 #define S_SLVUNEXPACKMSTINT 14 17242 #define V_SLVUNEXPACKMSTINT(x) ((x) << S_SLVUNEXPACKMSTINT) 17243 #define F_SLVUNEXPACKMSTINT V_SLVUNEXPACKMSTINT(1U) 17244 17245 #define S_SLVUNEXPNACKMSTINT 13 17246 #define V_SLVUNEXPNACKMSTINT(x) ((x) << S_SLVUNEXPNACKMSTINT) 17247 #define F_SLVUNEXPNACKMSTINT V_SLVUNEXPNACKMSTINT(1U) 17248 17249 #define S_SLVNOBUSSTOPINT 12 17250 #define V_SLVNOBUSSTOPINT(x) ((x) << S_SLVNOBUSSTOPINT) 17251 #define F_SLVNOBUSSTOPINT V_SLVNOBUSSTOPINT(1U) 17252 17253 #define S_SLVNOREPSTARTINT 11 17254 #define V_SLVNOREPSTARTINT(x) ((x) << S_SLVNOREPSTARTINT) 17255 #define F_SLVNOREPSTARTINT V_SLVNOREPSTARTINT(1U) 17256 17257 #define S_SLVRXADDRINT 10 17258 #define V_SLVRXADDRINT(x) ((x) << S_SLVRXADDRINT) 17259 #define F_SLVRXADDRINT V_SLVRXADDRINT(1U) 17260 17261 #define S_SLVRXPECERRINT 9 17262 #define V_SLVRXPECERRINT(x) ((x) << S_SLVRXPECERRINT) 17263 #define F_SLVRXPECERRINT V_SLVRXPECERRINT(1U) 17264 17265 #define S_SLVPREPTOARPINT 8 17266 #define V_SLVPREPTOARPINT(x) ((x) << S_SLVPREPTOARPINT) 17267 #define F_SLVPREPTOARPINT V_SLVPREPTOARPINT(1U) 17268 17269 #define S_SLVTIMEOUTINT 7 17270 #define V_SLVTIMEOUTINT(x) ((x) << S_SLVTIMEOUTINT) 17271 #define F_SLVTIMEOUTINT V_SLVTIMEOUTINT(1U) 17272 17273 #define S_SLVERRINT 6 17274 #define V_SLVERRINT(x) ((x) << S_SLVERRINT) 17275 #define F_SLVERRINT V_SLVERRINT(1U) 17276 17277 #define S_SLVDONEINT 5 17278 #define V_SLVDONEINT(x) ((x) << S_SLVDONEINT) 17279 #define F_SLVDONEINT V_SLVDONEINT(1U) 17280 17281 #define S_SLVRXRDYINT 4 17282 #define V_SLVRXRDYINT(x) ((x) << S_SLVRXRDYINT) 17283 #define F_SLVRXRDYINT V_SLVRXRDYINT(1U) 17284 17285 #define S_MSTTIMEOUTINT 3 17286 #define V_MSTTIMEOUTINT(x) ((x) << S_MSTTIMEOUTINT) 17287 #define F_MSTTIMEOUTINT V_MSTTIMEOUTINT(1U) 17288 17289 #define S_MSTNACKINT 2 17290 #define V_MSTNACKINT(x) ((x) << S_MSTNACKINT) 17291 #define F_MSTNACKINT V_MSTNACKINT(1U) 17292 17293 #define S_MSTLOSTARBINT 1 17294 #define V_MSTLOSTARBINT(x) ((x) << S_MSTLOSTARBINT) 17295 #define F_MSTLOSTARBINT V_MSTLOSTARBINT(1U) 17296 17297 #define S_MSTDONEINT 0 17298 #define V_MSTDONEINT(x) ((x) << S_MSTDONEINT) 17299 #define F_MSTDONEINT V_MSTDONEINT(1U) 17300 17301 #define A_SMB_DEBUG_DATA 0x19094 17302 17303 #define S_DEBUGDATAH 16 17304 #define M_DEBUGDATAH 0xffffU 17305 #define V_DEBUGDATAH(x) ((x) << S_DEBUGDATAH) 17306 #define G_DEBUGDATAH(x) (((x) >> S_DEBUGDATAH) & M_DEBUGDATAH) 17307 17308 #define S_DEBUGDATAL 0 17309 #define M_DEBUGDATAL 0xffffU 17310 #define V_DEBUGDATAL(x) ((x) << S_DEBUGDATAL) 17311 #define G_DEBUGDATAL(x) (((x) >> S_DEBUGDATAL) & M_DEBUGDATAL) 17312 17313 #define A_SMB_PERR_EN 0x19098 17314 17315 #define S_MSTTXFIFOPERREN 2 17316 #define V_MSTTXFIFOPERREN(x) ((x) << S_MSTTXFIFOPERREN) 17317 #define F_MSTTXFIFOPERREN V_MSTTXFIFOPERREN(1U) 17318 17319 #define S_MSTRXFIFOPERREN 1 17320 #define V_MSTRXFIFOPERREN(x) ((x) << S_MSTRXFIFOPERREN) 17321 #define F_MSTRXFIFOPERREN V_MSTRXFIFOPERREN(1U) 17322 17323 #define S_SLVFIFOPERREN 0 17324 #define V_SLVFIFOPERREN(x) ((x) << S_SLVFIFOPERREN) 17325 #define F_SLVFIFOPERREN V_SLVFIFOPERREN(1U) 17326 17327 #define A_SMB_PERR_INJ 0x1909c 17328 17329 #define S_MSTTXINJDATAERR 3 17330 #define V_MSTTXINJDATAERR(x) ((x) << S_MSTTXINJDATAERR) 17331 #define F_MSTTXINJDATAERR V_MSTTXINJDATAERR(1U) 17332 17333 #define S_MSTRXINJDATAERR 2 17334 #define V_MSTRXINJDATAERR(x) ((x) << S_MSTRXINJDATAERR) 17335 #define F_MSTRXINJDATAERR V_MSTRXINJDATAERR(1U) 17336 17337 #define S_SLVINJDATAERR 1 17338 #define V_SLVINJDATAERR(x) ((x) << S_SLVINJDATAERR) 17339 #define F_SLVINJDATAERR V_SLVINJDATAERR(1U) 17340 17341 #define S_FIFOINJDATAERREN 0 17342 #define V_FIFOINJDATAERREN(x) ((x) << S_FIFOINJDATAERREN) 17343 #define F_FIFOINJDATAERREN V_FIFOINJDATAERREN(1U) 17344 17345 #define A_SMB_SLV_ARP_CTL 0x190a0 17346 17347 #define S_ARPCOMMANDCODE 2 17348 #define M_ARPCOMMANDCODE 0xffU 17349 #define V_ARPCOMMANDCODE(x) ((x) << S_ARPCOMMANDCODE) 17350 #define G_ARPCOMMANDCODE(x) (((x) >> S_ARPCOMMANDCODE) & M_ARPCOMMANDCODE) 17351 17352 #define S_ARPADDRRES 1 17353 #define V_ARPADDRRES(x) ((x) << S_ARPADDRRES) 17354 #define F_ARPADDRRES V_ARPADDRRES(1U) 17355 17356 #define S_ARPADDRVAL 0 17357 #define V_ARPADDRVAL(x) ((x) << S_ARPADDRVAL) 17358 #define F_ARPADDRVAL V_ARPADDRVAL(1U) 17359 17360 #define A_SMB_ARP_UDID0 0x190a4 17361 #define A_SMB_ARP_UDID1 0x190a8 17362 17363 #define S_SUBSYSTEMVENDORID 16 17364 #define M_SUBSYSTEMVENDORID 0xffffU 17365 #define V_SUBSYSTEMVENDORID(x) ((x) << S_SUBSYSTEMVENDORID) 17366 #define G_SUBSYSTEMVENDORID(x) \ 17367 (((x) >> S_SUBSYSTEMVENDORID) & M_SUBSYSTEMVENDORID) 17368 17369 #define S_SUBSYSTEMDEVICEID 0 17370 #define M_SUBSYSTEMDEVICEID 0xffffU 17371 #define V_SUBSYSTEMDEVICEID(x) ((x) << S_SUBSYSTEMDEVICEID) 17372 #define G_SUBSYSTEMDEVICEID(x) \ 17373 (((x) >> S_SUBSYSTEMDEVICEID) & M_SUBSYSTEMDEVICEID) 17374 17375 #define A_SMB_ARP_UDID2 0x190ac 17376 17377 #define S_DEVICEID 16 17378 #define M_DEVICEID 0xffffU 17379 #define V_DEVICEID(x) ((x) << S_DEVICEID) 17380 #define G_DEVICEID(x) (((x) >> S_DEVICEID) & M_DEVICEID) 17381 17382 #define S_INTERFACE 0 17383 #define M_INTERFACE 0xffffU 17384 #define V_INTERFACE(x) ((x) << S_INTERFACE) 17385 #define G_INTERFACE(x) (((x) >> S_INTERFACE) & M_INTERFACE) 17386 17387 #define A_SMB_ARP_UDID3 0x190b0 17388 17389 #define S_DEVICECAP 24 17390 #define M_DEVICECAP 0xffU 17391 #define V_DEVICECAP(x) ((x) << S_DEVICECAP) 17392 #define G_DEVICECAP(x) (((x) >> S_DEVICECAP) & M_DEVICECAP) 17393 17394 #define S_VERSIONID 16 17395 #define M_VERSIONID 0xffU 17396 #define V_VERSIONID(x) ((x) << S_VERSIONID) 17397 #define G_VERSIONID(x) (((x) >> S_VERSIONID) & M_VERSIONID) 17398 17399 #define S_VENDORID 0 17400 #define M_VENDORID 0xffffU 17401 #define V_VENDORID(x) ((x) << S_VENDORID) 17402 #define G_VENDORID(x) (((x) >> S_VENDORID) & M_VENDORID) 17403 17404 #define A_SMB_SLV_AUX_ADDR0 0x190b4 17405 17406 #define S_AUXADDR0VAL 6 17407 #define V_AUXADDR0VAL(x) ((x) << S_AUXADDR0VAL) 17408 #define F_AUXADDR0VAL V_AUXADDR0VAL(1U) 17409 17410 #define S_AUXADDR0 0 17411 #define M_AUXADDR0 0x3fU 17412 #define V_AUXADDR0(x) ((x) << S_AUXADDR0) 17413 #define G_AUXADDR0(x) (((x) >> S_AUXADDR0) & M_AUXADDR0) 17414 17415 #define A_SMB_SLV_AUX_ADDR1 0x190b8 17416 17417 #define S_AUXADDR1VAL 6 17418 #define V_AUXADDR1VAL(x) ((x) << S_AUXADDR1VAL) 17419 #define F_AUXADDR1VAL V_AUXADDR1VAL(1U) 17420 17421 #define S_AUXADDR1 0 17422 #define M_AUXADDR1 0x3fU 17423 #define V_AUXADDR1(x) ((x) << S_AUXADDR1) 17424 #define G_AUXADDR1(x) (((x) >> S_AUXADDR1) & M_AUXADDR1) 17425 17426 #define A_SMB_SLV_AUX_ADDR2 0x190bc 17427 17428 #define S_AUXADDR2VAL 6 17429 #define V_AUXADDR2VAL(x) ((x) << S_AUXADDR2VAL) 17430 #define F_AUXADDR2VAL V_AUXADDR2VAL(1U) 17431 17432 #define S_AUXADDR2 0 17433 #define M_AUXADDR2 0x3fU 17434 #define V_AUXADDR2(x) ((x) << S_AUXADDR2) 17435 #define G_AUXADDR2(x) (((x) >> S_AUXADDR2) & M_AUXADDR2) 17436 17437 #define A_SMB_SLV_AUX_ADDR3 0x190c0 17438 17439 #define S_AUXADDR3VAL 6 17440 #define V_AUXADDR3VAL(x) ((x) << S_AUXADDR3VAL) 17441 #define F_AUXADDR3VAL V_AUXADDR3VAL(1U) 17442 17443 #define S_AUXADDR3 0 17444 #define M_AUXADDR3 0x3fU 17445 #define V_AUXADDR3(x) ((x) << S_AUXADDR3) 17446 #define G_AUXADDR3(x) (((x) >> S_AUXADDR3) & M_AUXADDR3) 17447 17448 #define A_SMB_COMMAND_CODE0 0x190c4 17449 17450 #define S_SMBUSCOMMANDCODE0 0 17451 #define M_SMBUSCOMMANDCODE0 0xffU 17452 #define V_SMBUSCOMMANDCODE0(x) ((x) << S_SMBUSCOMMANDCODE0) 17453 #define G_SMBUSCOMMANDCODE0(x) \ 17454 (((x) >> S_SMBUSCOMMANDCODE0) & M_SMBUSCOMMANDCODE0) 17455 17456 #define A_SMB_COMMAND_CODE1 0x190c8 17457 17458 #define S_SMBUSCOMMANDCODE1 0 17459 #define M_SMBUSCOMMANDCODE1 0xffU 17460 #define V_SMBUSCOMMANDCODE1(x) ((x) << S_SMBUSCOMMANDCODE1) 17461 #define G_SMBUSCOMMANDCODE1(x) \ 17462 (((x) >> S_SMBUSCOMMANDCODE1) & M_SMBUSCOMMANDCODE1) 17463 17464 #define A_SMB_COMMAND_CODE2 0x190cc 17465 17466 #define S_SMBUSCOMMANDCODE2 0 17467 #define M_SMBUSCOMMANDCODE2 0xffU 17468 #define V_SMBUSCOMMANDCODE2(x) ((x) << S_SMBUSCOMMANDCODE2) 17469 #define G_SMBUSCOMMANDCODE2(x) \ 17470 (((x) >> S_SMBUSCOMMANDCODE2) & M_SMBUSCOMMANDCODE2) 17471 17472 #define A_SMB_COMMAND_CODE3 0x190d0 17473 17474 #define S_SMBUSCOMMANDCODE3 0 17475 #define M_SMBUSCOMMANDCODE3 0xffU 17476 #define V_SMBUSCOMMANDCODE3(x) ((x) << S_SMBUSCOMMANDCODE3) 17477 #define G_SMBUSCOMMANDCODE3(x) \ 17478 (((x) >> S_SMBUSCOMMANDCODE3) & M_SMBUSCOMMANDCODE3) 17479 17480 #define A_SMB_COMMAND_CODE4 0x190d4 17481 17482 #define S_SMBUSCOMMANDCODE4 0 17483 #define M_SMBUSCOMMANDCODE4 0xffU 17484 #define V_SMBUSCOMMANDCODE4(x) ((x) << S_SMBUSCOMMANDCODE4) 17485 #define G_SMBUSCOMMANDCODE4(x) \ 17486 (((x) >> S_SMBUSCOMMANDCODE4) & M_SMBUSCOMMANDCODE4) 17487 17488 #define A_SMB_COMMAND_CODE5 0x190d8 17489 17490 #define S_SMBUSCOMMANDCODE5 0 17491 #define M_SMBUSCOMMANDCODE5 0xffU 17492 #define V_SMBUSCOMMANDCODE5(x) ((x) << S_SMBUSCOMMANDCODE5) 17493 #define G_SMBUSCOMMANDCODE5(x) \ 17494 (((x) >> S_SMBUSCOMMANDCODE5) & M_SMBUSCOMMANDCODE5) 17495 17496 #define A_SMB_COMMAND_CODE6 0x190dc 17497 17498 #define S_SMBUSCOMMANDCODE6 0 17499 #define M_SMBUSCOMMANDCODE6 0xffU 17500 #define V_SMBUSCOMMANDCODE6(x) ((x) << S_SMBUSCOMMANDCODE6) 17501 #define G_SMBUSCOMMANDCODE6(x) \ 17502 (((x) >> S_SMBUSCOMMANDCODE6) & M_SMBUSCOMMANDCODE6) 17503 17504 #define A_SMB_COMMAND_CODE7 0x190e0 17505 17506 #define S_SMBUSCOMMANDCODE7 0 17507 #define M_SMBUSCOMMANDCODE7 0xffU 17508 #define V_SMBUSCOMMANDCODE7(x) ((x) << S_SMBUSCOMMANDCODE7) 17509 #define G_SMBUSCOMMANDCODE7(x) \ 17510 (((x) >> S_SMBUSCOMMANDCODE7) & M_SMBUSCOMMANDCODE7) 17511 17512 #define A_SMB_MICRO_CNT_CLK_CFG 0x190e4 17513 17514 #define S_MACROCNTCLKCFG 8 17515 #define M_MACROCNTCLKCFG 0x1fU 17516 #define V_MACROCNTCLKCFG(x) ((x) << S_MACROCNTCLKCFG) 17517 #define G_MACROCNTCLKCFG(x) (((x) >> S_MACROCNTCLKCFG) & M_MACROCNTCLKCFG) 17518 17519 #define S_MICROCNTCLKCFG 0 17520 #define M_MICROCNTCLKCFG 0xffU 17521 #define V_MICROCNTCLKCFG(x) ((x) << S_MICROCNTCLKCFG) 17522 #define G_MICROCNTCLKCFG(x) (((x) >> S_MICROCNTCLKCFG) & M_MICROCNTCLKCFG) 17523 17524 /* registers for module I2CM */ 17525 #define I2CM_BASE_ADDR 0x190f0 17526 17527 #define A_I2CM_CFG 0x190f0 17528 17529 #define S_I2C_CLKDIV 0 17530 #define M_I2C_CLKDIV 0xfffU 17531 #define V_I2C_CLKDIV(x) ((x) << S_I2C_CLKDIV) 17532 #define G_I2C_CLKDIV(x) (((x) >> S_I2C_CLKDIV) & M_I2C_CLKDIV) 17533 17534 #define A_I2CM_DATA 0x190f4 17535 17536 #define S_I2C_DATA 0 17537 #define M_I2C_DATA 0xffU 17538 #define V_I2C_DATA(x) ((x) << S_I2C_DATA) 17539 #define G_I2C_DATA(x) (((x) >> S_I2C_DATA) & M_I2C_DATA) 17540 17541 #define A_I2CM_OP 0x190f8 17542 17543 #define S_I2C_ACK 30 17544 #define V_I2C_ACK(x) ((x) << S_I2C_ACK) 17545 #define F_I2C_ACK V_I2C_ACK(1U) 17546 17547 #define S_I2C_CONT 1 17548 #define V_I2C_CONT(x) ((x) << S_I2C_CONT) 17549 #define F_I2C_CONT V_I2C_CONT(1U) 17550 17551 #define S_OP 0 17552 #define V_OP(x) ((x) << S_OP) 17553 #define F_OP V_OP(1U) 17554 17555 /* registers for module MI */ 17556 #define MI_BASE_ADDR 0x19100 17557 17558 #define A_MI_CFG 0x19100 17559 17560 #define S_T4_ST 14 17561 #define V_T4_ST(x) ((x) << S_T4_ST) 17562 #define F_T4_ST V_T4_ST(1U) 17563 17564 #define S_CLKDIV 5 17565 #define M_CLKDIV 0xffU 17566 #define V_CLKDIV(x) ((x) << S_CLKDIV) 17567 #define G_CLKDIV(x) (((x) >> S_CLKDIV) & M_CLKDIV) 17568 17569 #define S_ST 3 17570 #define M_ST 0x3U 17571 #define V_ST(x) ((x) << S_ST) 17572 #define G_ST(x) (((x) >> S_ST) & M_ST) 17573 17574 #define S_PREEN 2 17575 #define V_PREEN(x) ((x) << S_PREEN) 17576 #define F_PREEN V_PREEN(1U) 17577 17578 #define S_MDIINV 1 17579 #define V_MDIINV(x) ((x) << S_MDIINV) 17580 #define F_MDIINV V_MDIINV(1U) 17581 17582 #define S_MDIO_1P2V_SEL 0 17583 #define V_MDIO_1P2V_SEL(x) ((x) << S_MDIO_1P2V_SEL) 17584 #define F_MDIO_1P2V_SEL V_MDIO_1P2V_SEL(1U) 17585 17586 #define A_MI_ADDR 0x19104 17587 17588 #define S_PHYADDR 5 17589 #define M_PHYADDR 0x1fU 17590 #define V_PHYADDR(x) ((x) << S_PHYADDR) 17591 #define G_PHYADDR(x) (((x) >> S_PHYADDR) & M_PHYADDR) 17592 17593 #define S_REGADDR 0 17594 #define M_REGADDR 0x1fU 17595 #define V_REGADDR(x) ((x) << S_REGADDR) 17596 #define G_REGADDR(x) (((x) >> S_REGADDR) & M_REGADDR) 17597 17598 #define A_MI_DATA 0x19108 17599 17600 #define S_MDIDATA 0 17601 #define M_MDIDATA 0xffffU 17602 #define V_MDIDATA(x) ((x) << S_MDIDATA) 17603 #define G_MDIDATA(x) (((x) >> S_MDIDATA) & M_MDIDATA) 17604 17605 #define A_MI_OP 0x1910c 17606 17607 #define S_INC 2 17608 #define V_INC(x) ((x) << S_INC) 17609 #define F_INC V_INC(1U) 17610 17611 #define S_MDIOP 0 17612 #define M_MDIOP 0x3U 17613 #define V_MDIOP(x) ((x) << S_MDIOP) 17614 #define G_MDIOP(x) (((x) >> S_MDIOP) & M_MDIOP) 17615 17616 /* registers for module UART */ 17617 #define UART_BASE_ADDR 0x19110 17618 17619 #define A_UART_CONFIG 0x19110 17620 17621 #define S_STOPBITS 22 17622 #define M_STOPBITS 0x3U 17623 #define V_STOPBITS(x) ((x) << S_STOPBITS) 17624 #define G_STOPBITS(x) (((x) >> S_STOPBITS) & M_STOPBITS) 17625 17626 #define S_PARITY 20 17627 #define M_PARITY 0x3U 17628 #define V_PARITY(x) ((x) << S_PARITY) 17629 #define G_PARITY(x) (((x) >> S_PARITY) & M_PARITY) 17630 17631 #define S_DATABITS 16 17632 #define M_DATABITS 0xfU 17633 #define V_DATABITS(x) ((x) << S_DATABITS) 17634 #define G_DATABITS(x) (((x) >> S_DATABITS) & M_DATABITS) 17635 17636 #define S_UART_CLKDIV 0 17637 #define M_UART_CLKDIV 0xfffU 17638 #define V_UART_CLKDIV(x) ((x) << S_UART_CLKDIV) 17639 #define G_UART_CLKDIV(x) (((x) >> S_UART_CLKDIV) & M_UART_CLKDIV) 17640 17641 /* registers for module PMU */ 17642 #define PMU_BASE_ADDR 0x19120 17643 17644 #define A_PMU_PART_CG_PWRMODE 0x19120 17645 17646 #define S_TPPARTCGEN 14 17647 #define V_TPPARTCGEN(x) ((x) << S_TPPARTCGEN) 17648 #define F_TPPARTCGEN V_TPPARTCGEN(1U) 17649 17650 #define S_PDPPARTCGEN 13 17651 #define V_PDPPARTCGEN(x) ((x) << S_PDPPARTCGEN) 17652 #define F_PDPPARTCGEN V_PDPPARTCGEN(1U) 17653 17654 #define S_PCIEPARTCGEN 12 17655 #define V_PCIEPARTCGEN(x) ((x) << S_PCIEPARTCGEN) 17656 #define F_PCIEPARTCGEN V_PCIEPARTCGEN(1U) 17657 17658 #define S_EDC1PARTCGEN 11 17659 #define V_EDC1PARTCGEN(x) ((x) << S_EDC1PARTCGEN) 17660 #define F_EDC1PARTCGEN V_EDC1PARTCGEN(1U) 17661 17662 #define S_MCPARTCGEN 10 17663 #define V_MCPARTCGEN(x) ((x) << S_MCPARTCGEN) 17664 #define F_MCPARTCGEN V_MCPARTCGEN(1U) 17665 17666 #define S_EDC0PARTCGEN 9 17667 #define V_EDC0PARTCGEN(x) ((x) << S_EDC0PARTCGEN) 17668 #define F_EDC0PARTCGEN V_EDC0PARTCGEN(1U) 17669 17670 #define S_LEPARTCGEN 8 17671 #define V_LEPARTCGEN(x) ((x) << S_LEPARTCGEN) 17672 #define F_LEPARTCGEN V_LEPARTCGEN(1U) 17673 17674 #define S_INITPOWERMODE 0 17675 #define M_INITPOWERMODE 0x3U 17676 #define V_INITPOWERMODE(x) ((x) << S_INITPOWERMODE) 17677 #define G_INITPOWERMODE(x) (((x) >> S_INITPOWERMODE) & M_INITPOWERMODE) 17678 17679 #define A_PMU_SLEEPMODE_WAKEUP 0x19124 17680 17681 #define S_HWWAKEUPEN 5 17682 #define V_HWWAKEUPEN(x) ((x) << S_HWWAKEUPEN) 17683 #define F_HWWAKEUPEN V_HWWAKEUPEN(1U) 17684 17685 #define S_PORT3SLEEPMODE 4 17686 #define V_PORT3SLEEPMODE(x) ((x) << S_PORT3SLEEPMODE) 17687 #define F_PORT3SLEEPMODE V_PORT3SLEEPMODE(1U) 17688 17689 #define S_PORT2SLEEPMODE 3 17690 #define V_PORT2SLEEPMODE(x) ((x) << S_PORT2SLEEPMODE) 17691 #define F_PORT2SLEEPMODE V_PORT2SLEEPMODE(1U) 17692 17693 #define S_PORT1SLEEPMODE 2 17694 #define V_PORT1SLEEPMODE(x) ((x) << S_PORT1SLEEPMODE) 17695 #define F_PORT1SLEEPMODE V_PORT1SLEEPMODE(1U) 17696 17697 #define S_PORT0SLEEPMODE 1 17698 #define V_PORT0SLEEPMODE(x) ((x) << S_PORT0SLEEPMODE) 17699 #define F_PORT0SLEEPMODE V_PORT0SLEEPMODE(1U) 17700 17701 #define S_WAKEUP 0 17702 #define V_WAKEUP(x) ((x) << S_WAKEUP) 17703 #define F_WAKEUP V_WAKEUP(1U) 17704 17705 /* registers for module ULP_RX */ 17706 #define ULP_RX_BASE_ADDR 0x19150 17707 17708 #define A_ULP_RX_CTL 0x19150 17709 17710 #define S_PCMD1THRESHOLD 24 17711 #define M_PCMD1THRESHOLD 0xffU 17712 #define V_PCMD1THRESHOLD(x) ((x) << S_PCMD1THRESHOLD) 17713 #define G_PCMD1THRESHOLD(x) (((x) >> S_PCMD1THRESHOLD) & M_PCMD1THRESHOLD) 17714 17715 #define S_PCMD0THRESHOLD 16 17716 #define M_PCMD0THRESHOLD 0xffU 17717 #define V_PCMD0THRESHOLD(x) ((x) << S_PCMD0THRESHOLD) 17718 #define G_PCMD0THRESHOLD(x) (((x) >> S_PCMD0THRESHOLD) & M_PCMD0THRESHOLD) 17719 17720 #define S_DISABLE_0B_STAG_ERR 14 17721 #define V_DISABLE_0B_STAG_ERR(x) ((x) << S_DISABLE_0B_STAG_ERR) 17722 #define F_DISABLE_0B_STAG_ERR V_DISABLE_0B_STAG_ERR(1U) 17723 17724 #define S_RDMA_0B_WR_OPCODE 10 17725 #define M_RDMA_0B_WR_OPCODE 0xfU 17726 #define V_RDMA_0B_WR_OPCODE(x) ((x) << S_RDMA_0B_WR_OPCODE) 17727 #define G_RDMA_0B_WR_OPCODE(x) \ 17728 (((x) >> S_RDMA_0B_WR_OPCODE) & M_RDMA_0B_WR_OPCODE) 17729 17730 #define S_RDMA_0B_WR_PASS 9 17731 #define V_RDMA_0B_WR_PASS(x) ((x) << S_RDMA_0B_WR_PASS) 17732 #define F_RDMA_0B_WR_PASS V_RDMA_0B_WR_PASS(1U) 17733 17734 #define S_STAG_RQE 8 17735 #define V_STAG_RQE(x) ((x) << S_STAG_RQE) 17736 #define F_STAG_RQE V_STAG_RQE(1U) 17737 17738 #define S_RDMA_STATE_EN 7 17739 #define V_RDMA_STATE_EN(x) ((x) << S_RDMA_STATE_EN) 17740 #define F_RDMA_STATE_EN V_RDMA_STATE_EN(1U) 17741 17742 #define S_CRC1_EN 6 17743 #define V_CRC1_EN(x) ((x) << S_CRC1_EN) 17744 #define F_CRC1_EN V_CRC1_EN(1U) 17745 17746 #define S_RDMA_0B_WR_CQE 5 17747 #define V_RDMA_0B_WR_CQE(x) ((x) << S_RDMA_0B_WR_CQE) 17748 #define F_RDMA_0B_WR_CQE V_RDMA_0B_WR_CQE(1U) 17749 17750 #define S_PCIE_ATRB_EN 4 17751 #define V_PCIE_ATRB_EN(x) ((x) << S_PCIE_ATRB_EN) 17752 #define F_PCIE_ATRB_EN V_PCIE_ATRB_EN(1U) 17753 17754 #define S_RDMA_PERMISSIVE_MODE 3 17755 #define V_RDMA_PERMISSIVE_MODE(x) ((x) << S_RDMA_PERMISSIVE_MODE) 17756 #define F_RDMA_PERMISSIVE_MODE V_RDMA_PERMISSIVE_MODE(1U) 17757 17758 #define S_PAGEPODME 2 17759 #define V_PAGEPODME(x) ((x) << S_PAGEPODME) 17760 #define F_PAGEPODME V_PAGEPODME(1U) 17761 17762 #define S_ISCSITAGTCB 1 17763 #define V_ISCSITAGTCB(x) ((x) << S_ISCSITAGTCB) 17764 #define F_ISCSITAGTCB V_ISCSITAGTCB(1U) 17765 17766 #define S_TDDPTAGTCB 0 17767 #define V_TDDPTAGTCB(x) ((x) << S_TDDPTAGTCB) 17768 #define F_TDDPTAGTCB V_TDDPTAGTCB(1U) 17769 17770 #define A_ULP_RX_INT_ENABLE 0x19154 17771 17772 #define S_ENABLE_CTX_1 24 17773 #define V_ENABLE_CTX_1(x) ((x) << S_ENABLE_CTX_1) 17774 #define F_ENABLE_CTX_1 V_ENABLE_CTX_1(1U) 17775 17776 #define S_ENABLE_CTX_0 23 17777 #define V_ENABLE_CTX_0(x) ((x) << S_ENABLE_CTX_0) 17778 #define F_ENABLE_CTX_0 V_ENABLE_CTX_0(1U) 17779 17780 #define S_ENABLE_FF 22 17781 #define V_ENABLE_FF(x) ((x) << S_ENABLE_FF) 17782 #define F_ENABLE_FF V_ENABLE_FF(1U) 17783 17784 #define S_ENABLE_APF_1 21 17785 #define V_ENABLE_APF_1(x) ((x) << S_ENABLE_APF_1) 17786 #define F_ENABLE_APF_1 V_ENABLE_APF_1(1U) 17787 17788 #define S_ENABLE_APF_0 20 17789 #define V_ENABLE_APF_0(x) ((x) << S_ENABLE_APF_0) 17790 #define F_ENABLE_APF_0 V_ENABLE_APF_0(1U) 17791 17792 #define S_ENABLE_AF_1 19 17793 #define V_ENABLE_AF_1(x) ((x) << S_ENABLE_AF_1) 17794 #define F_ENABLE_AF_1 V_ENABLE_AF_1(1U) 17795 17796 #define S_ENABLE_AF_0 18 17797 #define V_ENABLE_AF_0(x) ((x) << S_ENABLE_AF_0) 17798 #define F_ENABLE_AF_0 V_ENABLE_AF_0(1U) 17799 17800 #define S_ENABLE_PCMDF_1 17 17801 #define V_ENABLE_PCMDF_1(x) ((x) << S_ENABLE_PCMDF_1) 17802 #define F_ENABLE_PCMDF_1 V_ENABLE_PCMDF_1(1U) 17803 17804 #define S_ENABLE_MPARC_1 16 17805 #define V_ENABLE_MPARC_1(x) ((x) << S_ENABLE_MPARC_1) 17806 #define F_ENABLE_MPARC_1 V_ENABLE_MPARC_1(1U) 17807 17808 #define S_ENABLE_MPARF_1 15 17809 #define V_ENABLE_MPARF_1(x) ((x) << S_ENABLE_MPARF_1) 17810 #define F_ENABLE_MPARF_1 V_ENABLE_MPARF_1(1U) 17811 17812 #define S_ENABLE_DDPCF_1 14 17813 #define V_ENABLE_DDPCF_1(x) ((x) << S_ENABLE_DDPCF_1) 17814 #define F_ENABLE_DDPCF_1 V_ENABLE_DDPCF_1(1U) 17815 17816 #define S_ENABLE_TPTCF_1 13 17817 #define V_ENABLE_TPTCF_1(x) ((x) << S_ENABLE_TPTCF_1) 17818 #define F_ENABLE_TPTCF_1 V_ENABLE_TPTCF_1(1U) 17819 17820 #define S_ENABLE_PCMDF_0 12 17821 #define V_ENABLE_PCMDF_0(x) ((x) << S_ENABLE_PCMDF_0) 17822 #define F_ENABLE_PCMDF_0 V_ENABLE_PCMDF_0(1U) 17823 17824 #define S_ENABLE_MPARC_0 11 17825 #define V_ENABLE_MPARC_0(x) ((x) << S_ENABLE_MPARC_0) 17826 #define F_ENABLE_MPARC_0 V_ENABLE_MPARC_0(1U) 17827 17828 #define S_ENABLE_MPARF_0 10 17829 #define V_ENABLE_MPARF_0(x) ((x) << S_ENABLE_MPARF_0) 17830 #define F_ENABLE_MPARF_0 V_ENABLE_MPARF_0(1U) 17831 17832 #define S_ENABLE_DDPCF_0 9 17833 #define V_ENABLE_DDPCF_0(x) ((x) << S_ENABLE_DDPCF_0) 17834 #define F_ENABLE_DDPCF_0 V_ENABLE_DDPCF_0(1U) 17835 17836 #define S_ENABLE_TPTCF_0 8 17837 #define V_ENABLE_TPTCF_0(x) ((x) << S_ENABLE_TPTCF_0) 17838 #define F_ENABLE_TPTCF_0 V_ENABLE_TPTCF_0(1U) 17839 17840 #define S_ENABLE_DDPDF_1 7 17841 #define V_ENABLE_DDPDF_1(x) ((x) << S_ENABLE_DDPDF_1) 17842 #define F_ENABLE_DDPDF_1 V_ENABLE_DDPDF_1(1U) 17843 17844 #define S_ENABLE_DDPMF_1 6 17845 #define V_ENABLE_DDPMF_1(x) ((x) << S_ENABLE_DDPMF_1) 17846 #define F_ENABLE_DDPMF_1 V_ENABLE_DDPMF_1(1U) 17847 17848 #define S_ENABLE_MEMRF_1 5 17849 #define V_ENABLE_MEMRF_1(x) ((x) << S_ENABLE_MEMRF_1) 17850 #define F_ENABLE_MEMRF_1 V_ENABLE_MEMRF_1(1U) 17851 17852 #define S_ENABLE_PRSDF_1 4 17853 #define V_ENABLE_PRSDF_1(x) ((x) << S_ENABLE_PRSDF_1) 17854 #define F_ENABLE_PRSDF_1 V_ENABLE_PRSDF_1(1U) 17855 17856 #define S_ENABLE_DDPDF_0 3 17857 #define V_ENABLE_DDPDF_0(x) ((x) << S_ENABLE_DDPDF_0) 17858 #define F_ENABLE_DDPDF_0 V_ENABLE_DDPDF_0(1U) 17859 17860 #define S_ENABLE_DDPMF_0 2 17861 #define V_ENABLE_DDPMF_0(x) ((x) << S_ENABLE_DDPMF_0) 17862 #define F_ENABLE_DDPMF_0 V_ENABLE_DDPMF_0(1U) 17863 17864 #define S_ENABLE_MEMRF_0 1 17865 #define V_ENABLE_MEMRF_0(x) ((x) << S_ENABLE_MEMRF_0) 17866 #define F_ENABLE_MEMRF_0 V_ENABLE_MEMRF_0(1U) 17867 17868 #define S_ENABLE_PRSDF_0 0 17869 #define V_ENABLE_PRSDF_0(x) ((x) << S_ENABLE_PRSDF_0) 17870 #define F_ENABLE_PRSDF_0 V_ENABLE_PRSDF_0(1U) 17871 17872 #define A_ULP_RX_INT_CAUSE 0x19158 17873 17874 #define S_CAUSE_CTX_1 24 17875 #define V_CAUSE_CTX_1(x) ((x) << S_CAUSE_CTX_1) 17876 #define F_CAUSE_CTX_1 V_CAUSE_CTX_1(1U) 17877 17878 #define S_CAUSE_CTX_0 23 17879 #define V_CAUSE_CTX_0(x) ((x) << S_CAUSE_CTX_0) 17880 #define F_CAUSE_CTX_0 V_CAUSE_CTX_0(1U) 17881 17882 #define S_CAUSE_FF 22 17883 #define V_CAUSE_FF(x) ((x) << S_CAUSE_FF) 17884 #define F_CAUSE_FF V_CAUSE_FF(1U) 17885 17886 #define S_CAUSE_APF_1 21 17887 #define V_CAUSE_APF_1(x) ((x) << S_CAUSE_APF_1) 17888 #define F_CAUSE_APF_1 V_CAUSE_APF_1(1U) 17889 17890 #define S_CAUSE_APF_0 20 17891 #define V_CAUSE_APF_0(x) ((x) << S_CAUSE_APF_0) 17892 #define F_CAUSE_APF_0 V_CAUSE_APF_0(1U) 17893 17894 #define S_CAUSE_AF_1 19 17895 #define V_CAUSE_AF_1(x) ((x) << S_CAUSE_AF_1) 17896 #define F_CAUSE_AF_1 V_CAUSE_AF_1(1U) 17897 17898 #define S_CAUSE_AF_0 18 17899 #define V_CAUSE_AF_0(x) ((x) << S_CAUSE_AF_0) 17900 #define F_CAUSE_AF_0 V_CAUSE_AF_0(1U) 17901 17902 #define S_CAUSE_PCMDF_1 17 17903 #define V_CAUSE_PCMDF_1(x) ((x) << S_CAUSE_PCMDF_1) 17904 #define F_CAUSE_PCMDF_1 V_CAUSE_PCMDF_1(1U) 17905 17906 #define S_CAUSE_MPARC_1 16 17907 #define V_CAUSE_MPARC_1(x) ((x) << S_CAUSE_MPARC_1) 17908 #define F_CAUSE_MPARC_1 V_CAUSE_MPARC_1(1U) 17909 17910 #define S_CAUSE_MPARF_1 15 17911 #define V_CAUSE_MPARF_1(x) ((x) << S_CAUSE_MPARF_1) 17912 #define F_CAUSE_MPARF_1 V_CAUSE_MPARF_1(1U) 17913 17914 #define S_CAUSE_DDPCF_1 14 17915 #define V_CAUSE_DDPCF_1(x) ((x) << S_CAUSE_DDPCF_1) 17916 #define F_CAUSE_DDPCF_1 V_CAUSE_DDPCF_1(1U) 17917 17918 #define S_CAUSE_TPTCF_1 13 17919 #define V_CAUSE_TPTCF_1(x) ((x) << S_CAUSE_TPTCF_1) 17920 #define F_CAUSE_TPTCF_1 V_CAUSE_TPTCF_1(1U) 17921 17922 #define S_CAUSE_PCMDF_0 12 17923 #define V_CAUSE_PCMDF_0(x) ((x) << S_CAUSE_PCMDF_0) 17924 #define F_CAUSE_PCMDF_0 V_CAUSE_PCMDF_0(1U) 17925 17926 #define S_CAUSE_MPARC_0 11 17927 #define V_CAUSE_MPARC_0(x) ((x) << S_CAUSE_MPARC_0) 17928 #define F_CAUSE_MPARC_0 V_CAUSE_MPARC_0(1U) 17929 17930 #define S_CAUSE_MPARF_0 10 17931 #define V_CAUSE_MPARF_0(x) ((x) << S_CAUSE_MPARF_0) 17932 #define F_CAUSE_MPARF_0 V_CAUSE_MPARF_0(1U) 17933 17934 #define S_CAUSE_DDPCF_0 9 17935 #define V_CAUSE_DDPCF_0(x) ((x) << S_CAUSE_DDPCF_0) 17936 #define F_CAUSE_DDPCF_0 V_CAUSE_DDPCF_0(1U) 17937 17938 #define S_CAUSE_TPTCF_0 8 17939 #define V_CAUSE_TPTCF_0(x) ((x) << S_CAUSE_TPTCF_0) 17940 #define F_CAUSE_TPTCF_0 V_CAUSE_TPTCF_0(1U) 17941 17942 #define S_CAUSE_DDPDF_1 7 17943 #define V_CAUSE_DDPDF_1(x) ((x) << S_CAUSE_DDPDF_1) 17944 #define F_CAUSE_DDPDF_1 V_CAUSE_DDPDF_1(1U) 17945 17946 #define S_CAUSE_DDPMF_1 6 17947 #define V_CAUSE_DDPMF_1(x) ((x) << S_CAUSE_DDPMF_1) 17948 #define F_CAUSE_DDPMF_1 V_CAUSE_DDPMF_1(1U) 17949 17950 #define S_CAUSE_MEMRF_1 5 17951 #define V_CAUSE_MEMRF_1(x) ((x) << S_CAUSE_MEMRF_1) 17952 #define F_CAUSE_MEMRF_1 V_CAUSE_MEMRF_1(1U) 17953 17954 #define S_CAUSE_PRSDF_1 4 17955 #define V_CAUSE_PRSDF_1(x) ((x) << S_CAUSE_PRSDF_1) 17956 #define F_CAUSE_PRSDF_1 V_CAUSE_PRSDF_1(1U) 17957 17958 #define S_CAUSE_DDPDF_0 3 17959 #define V_CAUSE_DDPDF_0(x) ((x) << S_CAUSE_DDPDF_0) 17960 #define F_CAUSE_DDPDF_0 V_CAUSE_DDPDF_0(1U) 17961 17962 #define S_CAUSE_DDPMF_0 2 17963 #define V_CAUSE_DDPMF_0(x) ((x) << S_CAUSE_DDPMF_0) 17964 #define F_CAUSE_DDPMF_0 V_CAUSE_DDPMF_0(1U) 17965 17966 #define S_CAUSE_MEMRF_0 1 17967 #define V_CAUSE_MEMRF_0(x) ((x) << S_CAUSE_MEMRF_0) 17968 #define F_CAUSE_MEMRF_0 V_CAUSE_MEMRF_0(1U) 17969 17970 #define S_CAUSE_PRSDF_0 0 17971 #define V_CAUSE_PRSDF_0(x) ((x) << S_CAUSE_PRSDF_0) 17972 #define F_CAUSE_PRSDF_0 V_CAUSE_PRSDF_0(1U) 17973 17974 #define A_ULP_RX_ISCSI_LLIMIT 0x1915c 17975 17976 #define S_ISCSILLIMIT 6 17977 #define M_ISCSILLIMIT 0x3ffffffU 17978 #define V_ISCSILLIMIT(x) ((x) << S_ISCSILLIMIT) 17979 #define G_ISCSILLIMIT(x) (((x) >> S_ISCSILLIMIT) & M_ISCSILLIMIT) 17980 17981 #define A_ULP_RX_ISCSI_ULIMIT 0x19160 17982 17983 #define S_ISCSIULIMIT 6 17984 #define M_ISCSIULIMIT 0x3ffffffU 17985 #define V_ISCSIULIMIT(x) ((x) << S_ISCSIULIMIT) 17986 #define G_ISCSIULIMIT(x) (((x) >> S_ISCSIULIMIT) & M_ISCSIULIMIT) 17987 17988 #define A_ULP_RX_ISCSI_TAGMASK 0x19164 17989 17990 #define S_ISCSITAGMASK 6 17991 #define M_ISCSITAGMASK 0x3ffffffU 17992 #define V_ISCSITAGMASK(x) ((x) << S_ISCSITAGMASK) 17993 #define G_ISCSITAGMASK(x) (((x) >> S_ISCSITAGMASK) & M_ISCSITAGMASK) 17994 17995 #define A_ULP_RX_ISCSI_PSZ 0x19168 17996 17997 #define S_HPZ3 24 17998 #define M_HPZ3 0xfU 17999 #define V_HPZ3(x) ((x) << S_HPZ3) 18000 #define G_HPZ3(x) (((x) >> S_HPZ3) & M_HPZ3) 18001 18002 #define S_HPZ2 16 18003 #define M_HPZ2 0xfU 18004 #define V_HPZ2(x) ((x) << S_HPZ2) 18005 #define G_HPZ2(x) (((x) >> S_HPZ2) & M_HPZ2) 18006 18007 #define S_HPZ1 8 18008 #define M_HPZ1 0xfU 18009 #define V_HPZ1(x) ((x) << S_HPZ1) 18010 #define G_HPZ1(x) (((x) >> S_HPZ1) & M_HPZ1) 18011 18012 #define S_HPZ0 0 18013 #define M_HPZ0 0xfU 18014 #define V_HPZ0(x) ((x) << S_HPZ0) 18015 #define G_HPZ0(x) (((x) >> S_HPZ0) & M_HPZ0) 18016 18017 #define A_ULP_RX_TDDP_LLIMIT 0x1916c 18018 18019 #define S_TDDPLLIMIT 6 18020 #define M_TDDPLLIMIT 0x3ffffffU 18021 #define V_TDDPLLIMIT(x) ((x) << S_TDDPLLIMIT) 18022 #define G_TDDPLLIMIT(x) (((x) >> S_TDDPLLIMIT) & M_TDDPLLIMIT) 18023 18024 #define A_ULP_RX_TDDP_ULIMIT 0x19170 18025 18026 #define S_TDDPULIMIT 6 18027 #define M_TDDPULIMIT 0x3ffffffU 18028 #define V_TDDPULIMIT(x) ((x) << S_TDDPULIMIT) 18029 #define G_TDDPULIMIT(x) (((x) >> S_TDDPULIMIT) & M_TDDPULIMIT) 18030 18031 #define A_ULP_RX_TDDP_TAGMASK 0x19174 18032 18033 #define S_TDDPTAGMASK 6 18034 #define M_TDDPTAGMASK 0x3ffffffU 18035 #define V_TDDPTAGMASK(x) ((x) << S_TDDPTAGMASK) 18036 #define G_TDDPTAGMASK(x) (((x) >> S_TDDPTAGMASK) & M_TDDPTAGMASK) 18037 18038 #define A_ULP_RX_TDDP_PSZ 0x19178 18039 #define A_ULP_RX_STAG_LLIMIT 0x1917c 18040 #define A_ULP_RX_STAG_ULIMIT 0x19180 18041 #define A_ULP_RX_RQ_LLIMIT 0x19184 18042 #define A_ULP_RX_RQ_ULIMIT 0x19188 18043 #define A_ULP_RX_PBL_LLIMIT 0x1918c 18044 #define A_ULP_RX_PBL_ULIMIT 0x19190 18045 #define A_ULP_RX_CTX_BASE 0x19194 18046 #define A_ULP_RX_PERR_ENABLE 0x1919c 18047 #define A_ULP_RX_PERR_INJECT 0x191a0 18048 #define A_ULP_RX_RQUDP_LLIMIT 0x191a4 18049 #define A_ULP_RX_RQUDP_ULIMIT 0x191a8 18050 #define A_ULP_RX_CTX_ACC_CH0 0x191ac 18051 18052 #define S_REQ 21 18053 #define V_REQ(x) ((x) << S_REQ) 18054 #define F_REQ V_REQ(1U) 18055 18056 #define S_WB 20 18057 #define V_WB(x) ((x) << S_WB) 18058 #define F_WB V_WB(1U) 18059 18060 #define S_ULPRX_TID 0 18061 #define M_ULPRX_TID 0xfffffU 18062 #define V_ULPRX_TID(x) ((x) << S_ULPRX_TID) 18063 #define G_ULPRX_TID(x) (((x) >> S_ULPRX_TID) & M_ULPRX_TID) 18064 18065 #define A_ULP_RX_CTX_ACC_CH1 0x191b0 18066 #define A_ULP_RX_SE_CNT_ERR 0x191d0 18067 #define A_ULP_RX_SE_CNT_CLR 0x191d4 18068 18069 #define S_CLRCHAN0 4 18070 #define M_CLRCHAN0 0xfU 18071 #define V_CLRCHAN0(x) ((x) << S_CLRCHAN0) 18072 #define G_CLRCHAN0(x) (((x) >> S_CLRCHAN0) & M_CLRCHAN0) 18073 18074 #define S_CLRCHAN1 0 18075 #define M_CLRCHAN1 0xfU 18076 #define V_CLRCHAN1(x) ((x) << S_CLRCHAN1) 18077 #define G_CLRCHAN1(x) (((x) >> S_CLRCHAN1) & M_CLRCHAN1) 18078 18079 #define A_ULP_RX_SE_CNT_CH0 0x191d8 18080 18081 #define S_SOP_CNT_OUT0 28 18082 #define M_SOP_CNT_OUT0 0xfU 18083 #define V_SOP_CNT_OUT0(x) ((x) << S_SOP_CNT_OUT0) 18084 #define G_SOP_CNT_OUT0(x) (((x) >> S_SOP_CNT_OUT0) & M_SOP_CNT_OUT0) 18085 18086 #define S_EOP_CNT_OUT0 24 18087 #define M_EOP_CNT_OUT0 0xfU 18088 #define V_EOP_CNT_OUT0(x) ((x) << S_EOP_CNT_OUT0) 18089 #define G_EOP_CNT_OUT0(x) (((x) >> S_EOP_CNT_OUT0) & M_EOP_CNT_OUT0) 18090 18091 #define S_SOP_CNT_AL0 20 18092 #define M_SOP_CNT_AL0 0xfU 18093 #define V_SOP_CNT_AL0(x) ((x) << S_SOP_CNT_AL0) 18094 #define G_SOP_CNT_AL0(x) (((x) >> S_SOP_CNT_AL0) & M_SOP_CNT_AL0) 18095 18096 #define S_EOP_CNT_AL0 16 18097 #define M_EOP_CNT_AL0 0xfU 18098 #define V_EOP_CNT_AL0(x) ((x) << S_EOP_CNT_AL0) 18099 #define G_EOP_CNT_AL0(x) (((x) >> S_EOP_CNT_AL0) & M_EOP_CNT_AL0) 18100 18101 #define S_SOP_CNT_MR0 12 18102 #define M_SOP_CNT_MR0 0xfU 18103 #define V_SOP_CNT_MR0(x) ((x) << S_SOP_CNT_MR0) 18104 #define G_SOP_CNT_MR0(x) (((x) >> S_SOP_CNT_MR0) & M_SOP_CNT_MR0) 18105 18106 #define S_EOP_CNT_MR0 8 18107 #define M_EOP_CNT_MR0 0xfU 18108 #define V_EOP_CNT_MR0(x) ((x) << S_EOP_CNT_MR0) 18109 #define G_EOP_CNT_MR0(x) (((x) >> S_EOP_CNT_MR0) & M_EOP_CNT_MR0) 18110 18111 #define S_SOP_CNT_IN0 4 18112 #define M_SOP_CNT_IN0 0xfU 18113 #define V_SOP_CNT_IN0(x) ((x) << S_SOP_CNT_IN0) 18114 #define G_SOP_CNT_IN0(x) (((x) >> S_SOP_CNT_IN0) & M_SOP_CNT_IN0) 18115 18116 #define S_EOP_CNT_IN0 0 18117 #define M_EOP_CNT_IN0 0xfU 18118 #define V_EOP_CNT_IN0(x) ((x) << S_EOP_CNT_IN0) 18119 #define G_EOP_CNT_IN0(x) (((x) >> S_EOP_CNT_IN0) & M_EOP_CNT_IN0) 18120 18121 #define A_ULP_RX_SE_CNT_CH1 0x191dc 18122 18123 #define S_SOP_CNT_OUT1 28 18124 #define M_SOP_CNT_OUT1 0xfU 18125 #define V_SOP_CNT_OUT1(x) ((x) << S_SOP_CNT_OUT1) 18126 #define G_SOP_CNT_OUT1(x) (((x) >> S_SOP_CNT_OUT1) & M_SOP_CNT_OUT1) 18127 18128 #define S_EOP_CNT_OUT1 24 18129 #define M_EOP_CNT_OUT1 0xfU 18130 #define V_EOP_CNT_OUT1(x) ((x) << S_EOP_CNT_OUT1) 18131 #define G_EOP_CNT_OUT1(x) (((x) >> S_EOP_CNT_OUT1) & M_EOP_CNT_OUT1) 18132 18133 #define S_SOP_CNT_AL1 20 18134 #define M_SOP_CNT_AL1 0xfU 18135 #define V_SOP_CNT_AL1(x) ((x) << S_SOP_CNT_AL1) 18136 #define G_SOP_CNT_AL1(x) (((x) >> S_SOP_CNT_AL1) & M_SOP_CNT_AL1) 18137 18138 #define S_EOP_CNT_AL1 16 18139 #define M_EOP_CNT_AL1 0xfU 18140 #define V_EOP_CNT_AL1(x) ((x) << S_EOP_CNT_AL1) 18141 #define G_EOP_CNT_AL1(x) (((x) >> S_EOP_CNT_AL1) & M_EOP_CNT_AL1) 18142 18143 #define S_SOP_CNT_MR1 12 18144 #define M_SOP_CNT_MR1 0xfU 18145 #define V_SOP_CNT_MR1(x) ((x) << S_SOP_CNT_MR1) 18146 #define G_SOP_CNT_MR1(x) (((x) >> S_SOP_CNT_MR1) & M_SOP_CNT_MR1) 18147 18148 #define S_EOP_CNT_MR1 8 18149 #define M_EOP_CNT_MR1 0xfU 18150 #define V_EOP_CNT_MR1(x) ((x) << S_EOP_CNT_MR1) 18151 #define G_EOP_CNT_MR1(x) (((x) >> S_EOP_CNT_MR1) & M_EOP_CNT_MR1) 18152 18153 #define S_SOP_CNT_IN1 4 18154 #define M_SOP_CNT_IN1 0xfU 18155 #define V_SOP_CNT_IN1(x) ((x) << S_SOP_CNT_IN1) 18156 #define G_SOP_CNT_IN1(x) (((x) >> S_SOP_CNT_IN1) & M_SOP_CNT_IN1) 18157 18158 #define S_EOP_CNT_IN1 0 18159 #define M_EOP_CNT_IN1 0xfU 18160 #define V_EOP_CNT_IN1(x) ((x) << S_EOP_CNT_IN1) 18161 #define G_EOP_CNT_IN1(x) (((x) >> S_EOP_CNT_IN1) & M_EOP_CNT_IN1) 18162 18163 #define A_ULP_RX_DBG_CTL 0x191e0 18164 18165 #define S_EN_DBG_H 17 18166 #define V_EN_DBG_H(x) ((x) << S_EN_DBG_H) 18167 #define F_EN_DBG_H V_EN_DBG_H(1U) 18168 18169 #define S_EN_DBG_L 16 18170 #define V_EN_DBG_L(x) ((x) << S_EN_DBG_L) 18171 #define F_EN_DBG_L V_EN_DBG_L(1U) 18172 18173 #define S_SEL_H 8 18174 #define M_SEL_H 0xffU 18175 #define V_SEL_H(x) ((x) << S_SEL_H) 18176 #define G_SEL_H(x) (((x) >> S_SEL_H) & M_SEL_H) 18177 18178 #define S_SEL_L 0 18179 #define M_SEL_L 0xffU 18180 #define V_SEL_L(x) ((x) << S_SEL_L) 18181 #define G_SEL_L(x) (((x) >> S_SEL_L) & M_SEL_L) 18182 18183 #define A_ULP_RX_DBG_DATAH 0x191e4 18184 #define A_ULP_RX_DBG_DATAL 0x191e8 18185 #define A_ULP_RX_LA_CHNL 0x19238 18186 18187 #define S_CHNL_SEL 0 18188 #define V_CHNL_SEL(x) ((x) << S_CHNL_SEL) 18189 #define F_CHNL_SEL V_CHNL_SEL(1U) 18190 18191 #define A_ULP_RX_LA_CTL 0x1923c 18192 18193 #define S_TRC_SEL 0 18194 #define V_TRC_SEL(x) ((x) << S_TRC_SEL) 18195 #define F_TRC_SEL V_TRC_SEL(1U) 18196 18197 #define A_ULP_RX_LA_RDPTR 0x19240 18198 18199 #define S_RD_PTR 0 18200 #define M_RD_PTR 0x1ffU 18201 #define V_RD_PTR(x) ((x) << S_RD_PTR) 18202 #define G_RD_PTR(x) (((x) >> S_RD_PTR) & M_RD_PTR) 18203 18204 #define A_ULP_RX_LA_RDDATA 0x19244 18205 #define A_ULP_RX_LA_WRPTR 0x19248 18206 18207 #define S_WR_PTR 0 18208 #define M_WR_PTR 0x1ffU 18209 #define V_WR_PTR(x) ((x) << S_WR_PTR) 18210 #define G_WR_PTR(x) (((x) >> S_WR_PTR) & M_WR_PTR) 18211 18212 #define A_ULP_RX_LA_RESERVED 0x1924c 18213 18214 /* registers for module SF */ 18215 #define SF_BASE_ADDR 0x193f8 18216 18217 #define A_SF_DATA 0x193f8 18218 #define A_SF_OP 0x193fc 18219 18220 #define S_SF_LOCK 4 18221 #define V_SF_LOCK(x) ((x) << S_SF_LOCK) 18222 #define F_SF_LOCK V_SF_LOCK(1U) 18223 18224 #define S_CONT 3 18225 #define V_CONT(x) ((x) << S_CONT) 18226 #define F_CONT V_CONT(1U) 18227 18228 #define S_BYTECNT 1 18229 #define M_BYTECNT 0x3U 18230 #define V_BYTECNT(x) ((x) << S_BYTECNT) 18231 #define G_BYTECNT(x) (((x) >> S_BYTECNT) & M_BYTECNT) 18232 18233 /* registers for module PL */ 18234 #define PL_BASE_ADDR 0x19400 18235 18236 #define A_PL_VF_WHOAMI 0x0 18237 18238 #define S_PORTXMAP 24 18239 #define M_PORTXMAP 0x7U 18240 #define V_PORTXMAP(x) ((x) << S_PORTXMAP) 18241 #define G_PORTXMAP(x) (((x) >> S_PORTXMAP) & M_PORTXMAP) 18242 18243 #define S_SOURCEBUS 16 18244 #define M_SOURCEBUS 0x3U 18245 #define V_SOURCEBUS(x) ((x) << S_SOURCEBUS) 18246 #define G_SOURCEBUS(x) (((x) >> S_SOURCEBUS) & M_SOURCEBUS) 18247 18248 #define S_SOURCEPF 8 18249 #define M_SOURCEPF 0x7U 18250 #define V_SOURCEPF(x) ((x) << S_SOURCEPF) 18251 #define G_SOURCEPF(x) (((x) >> S_SOURCEPF) & M_SOURCEPF) 18252 18253 #define S_ISVF 7 18254 #define V_ISVF(x) ((x) << S_ISVF) 18255 #define F_ISVF V_ISVF(1U) 18256 18257 #define S_VFID 0 18258 #define M_VFID 0x7fU 18259 #define V_VFID(x) ((x) << S_VFID) 18260 #define G_VFID(x) (((x) >> S_VFID) & M_VFID) 18261 18262 #define A_PL_PF_INT_CAUSE 0x3c0 18263 18264 #define S_PFSW 3 18265 #define V_PFSW(x) ((x) << S_PFSW) 18266 #define F_PFSW V_PFSW(1U) 18267 18268 #define S_PFSGE 2 18269 #define V_PFSGE(x) ((x) << S_PFSGE) 18270 #define F_PFSGE V_PFSGE(1U) 18271 18272 #define S_PFCIM 1 18273 #define V_PFCIM(x) ((x) << S_PFCIM) 18274 #define F_PFCIM V_PFCIM(1U) 18275 18276 #define S_PFMPS 0 18277 #define V_PFMPS(x) ((x) << S_PFMPS) 18278 #define F_PFMPS V_PFMPS(1U) 18279 18280 #define A_PL_PF_INT_ENABLE 0x3c4 18281 #define A_PL_PF_CTL 0x3c8 18282 18283 #define S_SWINT 0 18284 #define V_SWINT(x) ((x) << S_SWINT) 18285 #define F_SWINT V_SWINT(1U) 18286 18287 #define A_PL_WHOAMI 0x19400 18288 #define A_PL_PERR_CAUSE 0x19404 18289 18290 #define S_UART 28 18291 #define V_UART(x) ((x) << S_UART) 18292 #define F_UART V_UART(1U) 18293 18294 #define S_ULP_TX 27 18295 #define V_ULP_TX(x) ((x) << S_ULP_TX) 18296 #define F_ULP_TX V_ULP_TX(1U) 18297 18298 #define S_SGE 26 18299 #define V_SGE(x) ((x) << S_SGE) 18300 #define F_SGE V_SGE(1U) 18301 18302 #define S_HMA 25 18303 #define V_HMA(x) ((x) << S_HMA) 18304 #define F_HMA V_HMA(1U) 18305 18306 #define S_CPL_SWITCH 24 18307 #define V_CPL_SWITCH(x) ((x) << S_CPL_SWITCH) 18308 #define F_CPL_SWITCH V_CPL_SWITCH(1U) 18309 18310 #define S_ULP_RX 23 18311 #define V_ULP_RX(x) ((x) << S_ULP_RX) 18312 #define F_ULP_RX V_ULP_RX(1U) 18313 18314 #define S_PM_RX 22 18315 #define V_PM_RX(x) ((x) << S_PM_RX) 18316 #define F_PM_RX V_PM_RX(1U) 18317 18318 #define S_PM_TX 21 18319 #define V_PM_TX(x) ((x) << S_PM_TX) 18320 #define F_PM_TX V_PM_TX(1U) 18321 18322 #define S_MA 20 18323 #define V_MA(x) ((x) << S_MA) 18324 #define F_MA V_MA(1U) 18325 18326 #define S_TP 19 18327 #define V_TP(x) ((x) << S_TP) 18328 #define F_TP V_TP(1U) 18329 18330 #define S_LE 18 18331 #define V_LE(x) ((x) << S_LE) 18332 #define F_LE V_LE(1U) 18333 18334 #define S_EDC1 17 18335 #define V_EDC1(x) ((x) << S_EDC1) 18336 #define F_EDC1 V_EDC1(1U) 18337 18338 #define S_EDC0 16 18339 #define V_EDC0(x) ((x) << S_EDC0) 18340 #define F_EDC0 V_EDC0(1U) 18341 18342 #define S_MC 15 18343 #define V_MC(x) ((x) << S_MC) 18344 #define F_MC V_MC(1U) 18345 18346 #define S_PCIE 14 18347 #define V_PCIE(x) ((x) << S_PCIE) 18348 #define F_PCIE V_PCIE(1U) 18349 18350 #define S_PMU 13 18351 #define V_PMU(x) ((x) << S_PMU) 18352 #define F_PMU V_PMU(1U) 18353 18354 #define S_XGMAC_KR1 12 18355 #define V_XGMAC_KR1(x) ((x) << S_XGMAC_KR1) 18356 #define F_XGMAC_KR1 V_XGMAC_KR1(1U) 18357 18358 #define S_XGMAC_KR0 11 18359 #define V_XGMAC_KR0(x) ((x) << S_XGMAC_KR0) 18360 #define F_XGMAC_KR0 V_XGMAC_KR0(1U) 18361 18362 #define S_XGMAC1 10 18363 #define V_XGMAC1(x) ((x) << S_XGMAC1) 18364 #define F_XGMAC1 V_XGMAC1(1U) 18365 18366 #define S_XGMAC0 9 18367 #define V_XGMAC0(x) ((x) << S_XGMAC0) 18368 #define F_XGMAC0 V_XGMAC0(1U) 18369 18370 #define S_SMB 8 18371 #define V_SMB(x) ((x) << S_SMB) 18372 #define F_SMB V_SMB(1U) 18373 18374 #define S_SF 7 18375 #define V_SF(x) ((x) << S_SF) 18376 #define F_SF V_SF(1U) 18377 18378 #define S_PL 6 18379 #define V_PL(x) ((x) << S_PL) 18380 #define F_PL V_PL(1U) 18381 18382 #define S_NCSI 5 18383 #define V_NCSI(x) ((x) << S_NCSI) 18384 #define F_NCSI V_NCSI(1U) 18385 18386 #define S_MPS 4 18387 #define V_MPS(x) ((x) << S_MPS) 18388 #define F_MPS V_MPS(1U) 18389 18390 #define S_MI 3 18391 #define V_MI(x) ((x) << S_MI) 18392 #define F_MI V_MI(1U) 18393 18394 #define S_DBG 2 18395 #define V_DBG(x) ((x) << S_DBG) 18396 #define F_DBG V_DBG(1U) 18397 18398 #define S_I2CM 1 18399 #define V_I2CM(x) ((x) << S_I2CM) 18400 #define F_I2CM V_I2CM(1U) 18401 18402 #define S_CIM 0 18403 #define V_CIM(x) ((x) << S_CIM) 18404 #define F_CIM V_CIM(1U) 18405 18406 #define A_PL_PERR_ENABLE 0x19408 18407 #define A_PL_INT_CAUSE 0x1940c 18408 18409 #define S_FLR 30 18410 #define V_FLR(x) ((x) << S_FLR) 18411 #define F_FLR V_FLR(1U) 18412 18413 #define S_SW_CIM 29 18414 #define V_SW_CIM(x) ((x) << S_SW_CIM) 18415 #define F_SW_CIM V_SW_CIM(1U) 18416 18417 #define A_PL_INT_ENABLE 0x19410 18418 #define A_PL_INT_MAP0 0x19414 18419 18420 #define S_MAPNCSI 16 18421 #define M_MAPNCSI 0x1ffU 18422 #define V_MAPNCSI(x) ((x) << S_MAPNCSI) 18423 #define G_MAPNCSI(x) (((x) >> S_MAPNCSI) & M_MAPNCSI) 18424 18425 #define S_MAPDEFAULT 0 18426 #define M_MAPDEFAULT 0x1ffU 18427 #define V_MAPDEFAULT(x) ((x) << S_MAPDEFAULT) 18428 #define G_MAPDEFAULT(x) (((x) >> S_MAPDEFAULT) & M_MAPDEFAULT) 18429 18430 #define A_PL_INT_MAP1 0x19418 18431 18432 #define S_MAPXGMAC1 16 18433 #define M_MAPXGMAC1 0x1ffU 18434 #define V_MAPXGMAC1(x) ((x) << S_MAPXGMAC1) 18435 #define G_MAPXGMAC1(x) (((x) >> S_MAPXGMAC1) & M_MAPXGMAC1) 18436 18437 #define S_MAPXGMAC0 0 18438 #define M_MAPXGMAC0 0x1ffU 18439 #define V_MAPXGMAC0(x) ((x) << S_MAPXGMAC0) 18440 #define G_MAPXGMAC0(x) (((x) >> S_MAPXGMAC0) & M_MAPXGMAC0) 18441 18442 #define A_PL_INT_MAP2 0x1941c 18443 18444 #define S_MAPXGMAC_KR1 16 18445 #define M_MAPXGMAC_KR1 0x1ffU 18446 #define V_MAPXGMAC_KR1(x) ((x) << S_MAPXGMAC_KR1) 18447 #define G_MAPXGMAC_KR1(x) (((x) >> S_MAPXGMAC_KR1) & M_MAPXGMAC_KR1) 18448 18449 #define S_MAPXGMAC_KR0 0 18450 #define M_MAPXGMAC_KR0 0x1ffU 18451 #define V_MAPXGMAC_KR0(x) ((x) << S_MAPXGMAC_KR0) 18452 #define G_MAPXGMAC_KR0(x) (((x) >> S_MAPXGMAC_KR0) & M_MAPXGMAC_KR0) 18453 18454 #define A_PL_INT_MAP3 0x19420 18455 18456 #define S_MAPMI 16 18457 #define M_MAPMI 0x1ffU 18458 #define V_MAPMI(x) ((x) << S_MAPMI) 18459 #define G_MAPMI(x) (((x) >> S_MAPMI) & M_MAPMI) 18460 18461 #define S_MAPSMB 0 18462 #define M_MAPSMB 0x1ffU 18463 #define V_MAPSMB(x) ((x) << S_MAPSMB) 18464 #define G_MAPSMB(x) (((x) >> S_MAPSMB) & M_MAPSMB) 18465 18466 #define A_PL_INT_MAP4 0x19424 18467 18468 #define S_MAPDBG 16 18469 #define M_MAPDBG 0x1ffU 18470 #define V_MAPDBG(x) ((x) << S_MAPDBG) 18471 #define G_MAPDBG(x) (((x) >> S_MAPDBG) & M_MAPDBG) 18472 18473 #define S_MAPI2CM 0 18474 #define M_MAPI2CM 0x1ffU 18475 #define V_MAPI2CM(x) ((x) << S_MAPI2CM) 18476 #define G_MAPI2CM(x) (((x) >> S_MAPI2CM) & M_MAPI2CM) 18477 18478 #define A_PL_RST 0x19428 18479 18480 #define S_FATALPERREN 3 18481 #define V_FATALPERREN(x) ((x) << S_FATALPERREN) 18482 #define F_FATALPERREN V_FATALPERREN(1U) 18483 18484 #define S_SWINTCIM 2 18485 #define V_SWINTCIM(x) ((x) << S_SWINTCIM) 18486 #define F_SWINTCIM V_SWINTCIM(1U) 18487 18488 #define S_PIORST 1 18489 #define V_PIORST(x) ((x) << S_PIORST) 18490 #define F_PIORST V_PIORST(1U) 18491 18492 #define S_PIORSTMODE 0 18493 #define V_PIORSTMODE(x) ((x) << S_PIORSTMODE) 18494 #define F_PIORSTMODE V_PIORSTMODE(1U) 18495 18496 #define A_PL_PL_PERR_INJECT 0x1942c 18497 18498 #define S_PL_MEMSEL 1 18499 #define V_PL_MEMSEL(x) ((x) << S_PL_MEMSEL) 18500 #define F_PL_MEMSEL V_PL_MEMSEL(1U) 18501 18502 #define A_PL_PL_INT_CAUSE 0x19430 18503 18504 #define S_PF_ENABLEERR 5 18505 #define V_PF_ENABLEERR(x) ((x) << S_PF_ENABLEERR) 18506 #define F_PF_ENABLEERR V_PF_ENABLEERR(1U) 18507 18508 #define S_FATALPERR 4 18509 #define V_FATALPERR(x) ((x) << S_FATALPERR) 18510 #define F_FATALPERR V_FATALPERR(1U) 18511 18512 #define S_INVALIDACCESS 3 18513 #define V_INVALIDACCESS(x) ((x) << S_INVALIDACCESS) 18514 #define F_INVALIDACCESS V_INVALIDACCESS(1U) 18515 18516 #define S_TIMEOUT 2 18517 #define V_TIMEOUT(x) ((x) << S_TIMEOUT) 18518 #define F_TIMEOUT V_TIMEOUT(1U) 18519 18520 #define S_PLERR 1 18521 #define V_PLERR(x) ((x) << S_PLERR) 18522 #define F_PLERR V_PLERR(1U) 18523 18524 #define S_PERRVFID 0 18525 #define V_PERRVFID(x) ((x) << S_PERRVFID) 18526 #define F_PERRVFID V_PERRVFID(1U) 18527 18528 #define A_PL_PL_INT_ENABLE 0x19434 18529 #define A_PL_PL_PERR_ENABLE 0x19438 18530 #define A_PL_REV 0x1943c 18531 18532 #define S_REV 0 18533 #define M_REV 0xfU 18534 #define V_REV(x) ((x) << S_REV) 18535 #define G_REV(x) (((x) >> S_REV) & M_REV) 18536 18537 #define A_PL_SEMAPHORE_CTL 0x1944c 18538 18539 #define S_LOCKSTATUS 16 18540 #define M_LOCKSTATUS 0xffU 18541 #define V_LOCKSTATUS(x) ((x) << S_LOCKSTATUS) 18542 #define G_LOCKSTATUS(x) (((x) >> S_LOCKSTATUS) & M_LOCKSTATUS) 18543 18544 #define S_OWNEROVERRIDE 8 18545 #define V_OWNEROVERRIDE(x) ((x) << S_OWNEROVERRIDE) 18546 #define F_OWNEROVERRIDE V_OWNEROVERRIDE(1U) 18547 18548 #define S_ENABLEPF 0 18549 #define M_ENABLEPF 0xffU 18550 #define V_ENABLEPF(x) ((x) << S_ENABLEPF) 18551 #define G_ENABLEPF(x) (((x) >> S_ENABLEPF) & M_ENABLEPF) 18552 18553 #define A_PL_SEMAPHORE_LOCK 0x19450 18554 18555 #define S_SEMLOCK 31 18556 #define V_SEMLOCK(x) ((x) << S_SEMLOCK) 18557 #define F_SEMLOCK V_SEMLOCK(1U) 18558 18559 #define S_SEMSRCBUS 3 18560 #define M_SEMSRCBUS 0x3U 18561 #define V_SEMSRCBUS(x) ((x) << S_SEMSRCBUS) 18562 #define G_SEMSRCBUS(x) (((x) >> S_SEMSRCBUS) & M_SEMSRCBUS) 18563 18564 #define S_SEMSRCPF 0 18565 #define M_SEMSRCPF 0x7U 18566 #define V_SEMSRCPF(x) ((x) << S_SEMSRCPF) 18567 #define G_SEMSRCPF(x) (((x) >> S_SEMSRCPF) & M_SEMSRCPF) 18568 18569 #define A_PL_PF_ENABLE 0x19470 18570 18571 #define S_PF_ENABLE 0 18572 #define M_PF_ENABLE 0xffU 18573 #define V_PF_ENABLE(x) ((x) << S_PF_ENABLE) 18574 #define G_PF_ENABLE(x) (((x) >> S_PF_ENABLE) & M_PF_ENABLE) 18575 18576 #define A_PL_PORTX_MAP 0x19474 18577 18578 #define S_MAP7 28 18579 #define M_MAP7 0x7U 18580 #define V_MAP7(x) ((x) << S_MAP7) 18581 #define G_MAP7(x) (((x) >> S_MAP7) & M_MAP7) 18582 18583 #define S_MAP6 24 18584 #define M_MAP6 0x7U 18585 #define V_MAP6(x) ((x) << S_MAP6) 18586 #define G_MAP6(x) (((x) >> S_MAP6) & M_MAP6) 18587 18588 #define S_MAP5 20 18589 #define M_MAP5 0x7U 18590 #define V_MAP5(x) ((x) << S_MAP5) 18591 #define G_MAP5(x) (((x) >> S_MAP5) & M_MAP5) 18592 18593 #define S_MAP4 16 18594 #define M_MAP4 0x7U 18595 #define V_MAP4(x) ((x) << S_MAP4) 18596 #define G_MAP4(x) (((x) >> S_MAP4) & M_MAP4) 18597 18598 #define S_MAP3 12 18599 #define M_MAP3 0x7U 18600 #define V_MAP3(x) ((x) << S_MAP3) 18601 #define G_MAP3(x) (((x) >> S_MAP3) & M_MAP3) 18602 18603 #define S_MAP2 8 18604 #define M_MAP2 0x7U 18605 #define V_MAP2(x) ((x) << S_MAP2) 18606 #define G_MAP2(x) (((x) >> S_MAP2) & M_MAP2) 18607 18608 #define S_MAP1 4 18609 #define M_MAP1 0x7U 18610 #define V_MAP1(x) ((x) << S_MAP1) 18611 #define G_MAP1(x) (((x) >> S_MAP1) & M_MAP1) 18612 18613 #define S_MAP0 0 18614 #define M_MAP0 0x7U 18615 #define V_MAP0(x) ((x) << S_MAP0) 18616 #define G_MAP0(x) (((x) >> S_MAP0) & M_MAP0) 18617 18618 #define A_PL_VF_SLICE_L 0x19490 18619 18620 #define S_LIMITADDR 16 18621 #define M_LIMITADDR 0x3ffU 18622 #define V_LIMITADDR(x) ((x) << S_LIMITADDR) 18623 #define G_LIMITADDR(x) (((x) >> S_LIMITADDR) & M_LIMITADDR) 18624 18625 #define S_SLICEBASEADDR 0 18626 #define M_SLICEBASEADDR 0x3ffU 18627 #define V_SLICEBASEADDR(x) ((x) << S_SLICEBASEADDR) 18628 #define G_SLICEBASEADDR(x) (((x) >> S_SLICEBASEADDR) & M_SLICEBASEADDR) 18629 18630 #define A_PL_VF_SLICE_H 0x19494 18631 18632 #define S_MODINDX 16 18633 #define M_MODINDX 0x7U 18634 #define V_MODINDX(x) ((x) << S_MODINDX) 18635 #define G_MODINDX(x) (((x) >> S_MODINDX) & M_MODINDX) 18636 18637 #define S_MODOFFSET 0 18638 #define M_MODOFFSET 0x3ffU 18639 #define V_MODOFFSET(x) ((x) << S_MODOFFSET) 18640 #define G_MODOFFSET(x) (((x) >> S_MODOFFSET) & M_MODOFFSET) 18641 18642 #define A_PL_FLR_VF_STATUS 0x194d0 18643 #define A_PL_FLR_PF_STATUS 0x194e0 18644 18645 #define S_FLR_PF 0 18646 #define M_FLR_PF 0xffU 18647 #define V_FLR_PF(x) ((x) << S_FLR_PF) 18648 #define G_FLR_PF(x) (((x) >> S_FLR_PF) & M_FLR_PF) 18649 18650 #define A_PL_TIMEOUT_CTL 0x194f0 18651 18652 #define S_PL_TIMEOUT 0 18653 #define M_PL_TIMEOUT 0xffffU 18654 #define V_PL_TIMEOUT(x) ((x) << S_PL_TIMEOUT) 18655 #define G_PL_TIMEOUT(x) (((x) >> S_PL_TIMEOUT) & M_PL_TIMEOUT) 18656 18657 #define A_PL_TIMEOUT_STATUS0 0x194f4 18658 18659 #define S_PL_TOADDR 2 18660 #define M_PL_TOADDR 0xfffffffU 18661 #define V_PL_TOADDR(x) ((x) << S_PL_TOADDR) 18662 #define G_PL_TOADDR(x) (((x) >> S_PL_TOADDR) & M_PL_TOADDR) 18663 18664 #define A_PL_TIMEOUT_STATUS1 0x194f8 18665 18666 #define S_PL_TOVALID 31 18667 #define V_PL_TOVALID(x) ((x) << S_PL_TOVALID) 18668 #define F_PL_TOVALID V_PL_TOVALID(1U) 18669 18670 #define S_WRITE 22 18671 #define V_WRITE(x) ((x) << S_WRITE) 18672 #define F_WRITE V_WRITE(1U) 18673 18674 #define S_PL_TOBUS 20 18675 #define M_PL_TOBUS 0x3U 18676 #define V_PL_TOBUS(x) ((x) << S_PL_TOBUS) 18677 #define G_PL_TOBUS(x) (((x) >> S_PL_TOBUS) & M_PL_TOBUS) 18678 18679 #define S_RGN 19 18680 #define V_RGN(x) ((x) << S_RGN) 18681 #define F_RGN V_RGN(1U) 18682 18683 #define S_PL_TOPF 16 18684 #define M_PL_TOPF 0x7U 18685 #define V_PL_TOPF(x) ((x) << S_PL_TOPF) 18686 #define G_PL_TOPF(x) (((x) >> S_PL_TOPF) & M_PL_TOPF) 18687 18688 #define S_PL_TORID 0 18689 #define M_PL_TORID 0xffffU 18690 #define V_PL_TORID(x) ((x) << S_PL_TORID) 18691 #define G_PL_TORID(x) (((x) >> S_PL_TORID) & M_PL_TORID) 18692 18693 #define A_PL_VFID_MAP 0x19800 18694 18695 #define S_VFID_VLD 7 18696 #define V_VFID_VLD(x) ((x) << S_VFID_VLD) 18697 #define F_VFID_VLD V_VFID_VLD(1U) 18698 18699 /* registers for module LE */ 18700 #define LE_BASE_ADDR 0x19c00 18701 18702 #define A_LE_BUF_CONFIG 0x19c00 18703 #define A_LE_DB_CONFIG 0x19c04 18704 18705 #define S_TCAMCMDOVLAPEN 21 18706 #define V_TCAMCMDOVLAPEN(x) ((x) << S_TCAMCMDOVLAPEN) 18707 #define F_TCAMCMDOVLAPEN V_TCAMCMDOVLAPEN(1U) 18708 18709 #define S_HASHEN 20 18710 #define V_HASHEN(x) ((x) << S_HASHEN) 18711 #define F_HASHEN V_HASHEN(1U) 18712 18713 #define S_ASBOTHSRCHEN 18 18714 #define V_ASBOTHSRCHEN(x) ((x) << S_ASBOTHSRCHEN) 18715 #define F_ASBOTHSRCHEN V_ASBOTHSRCHEN(1U) 18716 18717 #define S_ASLIPCOMPEN 17 18718 #define V_ASLIPCOMPEN(x) ((x) << S_ASLIPCOMPEN) 18719 #define F_ASLIPCOMPEN V_ASLIPCOMPEN(1U) 18720 18721 #define S_BUILD 16 18722 #define V_BUILD(x) ((x) << S_BUILD) 18723 #define F_BUILD V_BUILD(1U) 18724 18725 #define S_FILTEREN 11 18726 #define V_FILTEREN(x) ((x) << S_FILTEREN) 18727 #define F_FILTEREN V_FILTEREN(1U) 18728 18729 #define S_SYNMODE 7 18730 #define M_SYNMODE 0x3U 18731 #define V_SYNMODE(x) ((x) << S_SYNMODE) 18732 #define G_SYNMODE(x) (((x) >> S_SYNMODE) & M_SYNMODE) 18733 18734 #define S_LEBUSEN 5 18735 #define V_LEBUSEN(x) ((x) << S_LEBUSEN) 18736 #define F_LEBUSEN V_LEBUSEN(1U) 18737 18738 #define S_ELOOKDUMEN 4 18739 #define V_ELOOKDUMEN(x) ((x) << S_ELOOKDUMEN) 18740 #define F_ELOOKDUMEN V_ELOOKDUMEN(1U) 18741 18742 #define S_IPV4ONLYEN 3 18743 #define V_IPV4ONLYEN(x) ((x) << S_IPV4ONLYEN) 18744 #define F_IPV4ONLYEN V_IPV4ONLYEN(1U) 18745 18746 #define S_MOSTCMDOEN 2 18747 #define V_MOSTCMDOEN(x) ((x) << S_MOSTCMDOEN) 18748 #define F_MOSTCMDOEN V_MOSTCMDOEN(1U) 18749 18750 #define S_DELACTSYNOEN 1 18751 #define V_DELACTSYNOEN(x) ((x) << S_DELACTSYNOEN) 18752 #define F_DELACTSYNOEN V_DELACTSYNOEN(1U) 18753 18754 #define S_CMDOVERLAPDIS 0 18755 #define V_CMDOVERLAPDIS(x) ((x) << S_CMDOVERLAPDIS) 18756 #define F_CMDOVERLAPDIS V_CMDOVERLAPDIS(1U) 18757 18758 #define A_LE_MISC 0x19c08 18759 18760 #define S_CMPUNVAIL 0 18761 #define M_CMPUNVAIL 0xfU 18762 #define V_CMPUNVAIL(x) ((x) << S_CMPUNVAIL) 18763 #define G_CMPUNVAIL(x) (((x) >> S_CMPUNVAIL) & M_CMPUNVAIL) 18764 18765 #define A_LE_DB_ROUTING_TABLE_INDEX 0x19c10 18766 18767 #define S_RTINDX 7 18768 #define M_RTINDX 0x3fU 18769 #define V_RTINDX(x) ((x) << S_RTINDX) 18770 #define G_RTINDX(x) (((x) >> S_RTINDX) & M_RTINDX) 18771 18772 #define A_LE_DB_FILTER_TABLE_INDEX 0x19c14 18773 18774 #define S_FTINDX 7 18775 #define M_FTINDX 0x3fU 18776 #define V_FTINDX(x) ((x) << S_FTINDX) 18777 #define G_FTINDX(x) (((x) >> S_FTINDX) & M_FTINDX) 18778 18779 #define A_LE_DB_SERVER_INDEX 0x19c18 18780 18781 #define S_SRINDX 7 18782 #define M_SRINDX 0x3fU 18783 #define V_SRINDX(x) ((x) << S_SRINDX) 18784 #define G_SRINDX(x) (((x) >> S_SRINDX) & M_SRINDX) 18785 18786 #define A_LE_DB_CLIP_TABLE_INDEX 0x19c1c 18787 18788 #define S_CLIPTINDX 7 18789 #define M_CLIPTINDX 0x3fU 18790 #define V_CLIPTINDX(x) ((x) << S_CLIPTINDX) 18791 #define G_CLIPTINDX(x) (((x) >> S_CLIPTINDX) & M_CLIPTINDX) 18792 18793 #define A_LE_DB_ACT_CNT_IPV4 0x19c20 18794 18795 #define S_ACTCNTIPV4 0 18796 #define M_ACTCNTIPV4 0xfffffU 18797 #define V_ACTCNTIPV4(x) ((x) << S_ACTCNTIPV4) 18798 #define G_ACTCNTIPV4(x) (((x) >> S_ACTCNTIPV4) & M_ACTCNTIPV4) 18799 18800 #define A_LE_DB_ACT_CNT_IPV6 0x19c24 18801 18802 #define S_ACTCNTIPV6 0 18803 #define M_ACTCNTIPV6 0xfffffU 18804 #define V_ACTCNTIPV6(x) ((x) << S_ACTCNTIPV6) 18805 #define G_ACTCNTIPV6(x) (((x) >> S_ACTCNTIPV6) & M_ACTCNTIPV6) 18806 18807 #define A_LE_DB_HASH_CONFIG 0x19c28 18808 18809 #define S_HASHTIDSIZE 16 18810 #define M_HASHTIDSIZE 0x3fU 18811 #define V_HASHTIDSIZE(x) ((x) << S_HASHTIDSIZE) 18812 #define G_HASHTIDSIZE(x) (((x) >> S_HASHTIDSIZE) & M_HASHTIDSIZE) 18813 18814 #define S_HASHSIZE 0 18815 #define M_HASHSIZE 0x3fU 18816 #define V_HASHSIZE(x) ((x) << S_HASHSIZE) 18817 #define G_HASHSIZE(x) (((x) >> S_HASHSIZE) & M_HASHSIZE) 18818 18819 #define A_LE_DB_HASH_TABLE_BASE 0x19c2c 18820 #define A_LE_DB_HASH_TID_BASE 0x19c30 18821 #define A_LE_DB_SIZE 0x19c34 18822 #define A_LE_DB_INT_ENABLE 0x19c38 18823 18824 #define S_MSGSEL 27 18825 #define M_MSGSEL 0x1fU 18826 #define V_MSGSEL(x) ((x) << S_MSGSEL) 18827 #define G_MSGSEL(x) (((x) >> S_MSGSEL) & M_MSGSEL) 18828 18829 #define S_REQQPARERR 16 18830 #define V_REQQPARERR(x) ((x) << S_REQQPARERR) 18831 #define F_REQQPARERR V_REQQPARERR(1U) 18832 18833 #define S_UNKNOWNCMD 15 18834 #define V_UNKNOWNCMD(x) ((x) << S_UNKNOWNCMD) 18835 #define F_UNKNOWNCMD V_UNKNOWNCMD(1U) 18836 18837 #define S_DROPFILTERHIT 13 18838 #define V_DROPFILTERHIT(x) ((x) << S_DROPFILTERHIT) 18839 #define F_DROPFILTERHIT V_DROPFILTERHIT(1U) 18840 18841 #define S_FILTERHIT 12 18842 #define V_FILTERHIT(x) ((x) << S_FILTERHIT) 18843 #define F_FILTERHIT V_FILTERHIT(1U) 18844 18845 #define S_SYNCOOKIEOFF 11 18846 #define V_SYNCOOKIEOFF(x) ((x) << S_SYNCOOKIEOFF) 18847 #define F_SYNCOOKIEOFF V_SYNCOOKIEOFF(1U) 18848 18849 #define S_SYNCOOKIEBAD 10 18850 #define V_SYNCOOKIEBAD(x) ((x) << S_SYNCOOKIEBAD) 18851 #define F_SYNCOOKIEBAD V_SYNCOOKIEBAD(1U) 18852 18853 #define S_SYNCOOKIE 9 18854 #define V_SYNCOOKIE(x) ((x) << S_SYNCOOKIE) 18855 #define F_SYNCOOKIE V_SYNCOOKIE(1U) 18856 18857 #define S_NFASRCHFAIL 8 18858 #define V_NFASRCHFAIL(x) ((x) << S_NFASRCHFAIL) 18859 #define F_NFASRCHFAIL V_NFASRCHFAIL(1U) 18860 18861 #define S_ACTRGNFULL 7 18862 #define V_ACTRGNFULL(x) ((x) << S_ACTRGNFULL) 18863 #define F_ACTRGNFULL V_ACTRGNFULL(1U) 18864 18865 #define S_PARITYERR 6 18866 #define V_PARITYERR(x) ((x) << S_PARITYERR) 18867 #define F_PARITYERR V_PARITYERR(1U) 18868 18869 #define S_LIPMISS 5 18870 #define V_LIPMISS(x) ((x) << S_LIPMISS) 18871 #define F_LIPMISS V_LIPMISS(1U) 18872 18873 #define S_LIP0 4 18874 #define V_LIP0(x) ((x) << S_LIP0) 18875 #define F_LIP0 V_LIP0(1U) 18876 18877 #define S_MISS 3 18878 #define V_MISS(x) ((x) << S_MISS) 18879 #define F_MISS V_MISS(1U) 18880 18881 #define S_ROUTINGHIT 2 18882 #define V_ROUTINGHIT(x) ((x) << S_ROUTINGHIT) 18883 #define F_ROUTINGHIT V_ROUTINGHIT(1U) 18884 18885 #define S_ACTIVEHIT 1 18886 #define V_ACTIVEHIT(x) ((x) << S_ACTIVEHIT) 18887 #define F_ACTIVEHIT V_ACTIVEHIT(1U) 18888 18889 #define S_SERVERHIT 0 18890 #define V_SERVERHIT(x) ((x) << S_SERVERHIT) 18891 #define F_SERVERHIT V_SERVERHIT(1U) 18892 18893 #define A_LE_DB_INT_CAUSE 0x19c3c 18894 #define A_LE_DB_INT_TID 0x19c40 18895 18896 #define S_INTTID 0 18897 #define M_INTTID 0xfffffU 18898 #define V_INTTID(x) ((x) << S_INTTID) 18899 #define G_INTTID(x) (((x) >> S_INTTID) & M_INTTID) 18900 18901 #define A_LE_DB_INT_PTID 0x19c44 18902 18903 #define S_INTPTID 0 18904 #define M_INTPTID 0xfffffU 18905 #define V_INTPTID(x) ((x) << S_INTPTID) 18906 #define G_INTPTID(x) (((x) >> S_INTPTID) & M_INTPTID) 18907 18908 #define A_LE_DB_INT_INDEX 0x19c48 18909 18910 #define S_INTINDEX 0 18911 #define M_INTINDEX 0xfffffU 18912 #define V_INTINDEX(x) ((x) << S_INTINDEX) 18913 #define G_INTINDEX(x) (((x) >> S_INTINDEX) & M_INTINDEX) 18914 18915 #define A_LE_DB_INT_CMD 0x19c4c 18916 18917 #define S_INTCMD 0 18918 #define M_INTCMD 0xfU 18919 #define V_INTCMD(x) ((x) << S_INTCMD) 18920 #define G_INTCMD(x) (((x) >> S_INTCMD) & M_INTCMD) 18921 18922 #define A_LE_DB_MASK_IPV4 0x19c50 18923 #define A_LE_DB_MASK_IPV6 0x19ca0 18924 #define A_LE_DB_REQ_RSP_CNT 0x19ce4 18925 #define A_LE_DB_DBGI_CONFIG 0x19cf0 18926 18927 #define S_DBGICMDPERR 31 18928 #define V_DBGICMDPERR(x) ((x) << S_DBGICMDPERR) 18929 #define F_DBGICMDPERR V_DBGICMDPERR(1U) 18930 18931 #define S_DBGICMDRANGE 22 18932 #define M_DBGICMDRANGE 0x7U 18933 #define V_DBGICMDRANGE(x) ((x) << S_DBGICMDRANGE) 18934 #define G_DBGICMDRANGE(x) (((x) >> S_DBGICMDRANGE) & M_DBGICMDRANGE) 18935 18936 #define S_DBGICMDMSKTYPE 21 18937 #define V_DBGICMDMSKTYPE(x) ((x) << S_DBGICMDMSKTYPE) 18938 #define F_DBGICMDMSKTYPE V_DBGICMDMSKTYPE(1U) 18939 18940 #define S_DBGICMDSEARCH 20 18941 #define V_DBGICMDSEARCH(x) ((x) << S_DBGICMDSEARCH) 18942 #define F_DBGICMDSEARCH V_DBGICMDSEARCH(1U) 18943 18944 #define S_DBGICMDREAD 19 18945 #define V_DBGICMDREAD(x) ((x) << S_DBGICMDREAD) 18946 #define F_DBGICMDREAD V_DBGICMDREAD(1U) 18947 18948 #define S_DBGICMDLEARN 18 18949 #define V_DBGICMDLEARN(x) ((x) << S_DBGICMDLEARN) 18950 #define F_DBGICMDLEARN V_DBGICMDLEARN(1U) 18951 18952 #define S_DBGICMDERASE 17 18953 #define V_DBGICMDERASE(x) ((x) << S_DBGICMDERASE) 18954 #define F_DBGICMDERASE V_DBGICMDERASE(1U) 18955 18956 #define S_DBGICMDIPV6 16 18957 #define V_DBGICMDIPV6(x) ((x) << S_DBGICMDIPV6) 18958 #define F_DBGICMDIPV6 V_DBGICMDIPV6(1U) 18959 18960 #define S_DBGICMDTYPE 13 18961 #define M_DBGICMDTYPE 0x7U 18962 #define V_DBGICMDTYPE(x) ((x) << S_DBGICMDTYPE) 18963 #define G_DBGICMDTYPE(x) (((x) >> S_DBGICMDTYPE) & M_DBGICMDTYPE) 18964 18965 #define S_DBGICMDACKERR 12 18966 #define V_DBGICMDACKERR(x) ((x) << S_DBGICMDACKERR) 18967 #define F_DBGICMDACKERR V_DBGICMDACKERR(1U) 18968 18969 #define S_DBGICMDBUSY 3 18970 #define V_DBGICMDBUSY(x) ((x) << S_DBGICMDBUSY) 18971 #define F_DBGICMDBUSY V_DBGICMDBUSY(1U) 18972 18973 #define S_DBGICMDSTRT 2 18974 #define V_DBGICMDSTRT(x) ((x) << S_DBGICMDSTRT) 18975 #define F_DBGICMDSTRT V_DBGICMDSTRT(1U) 18976 18977 #define S_DBGICMDMODE 0 18978 #define M_DBGICMDMODE 0x3U 18979 #define V_DBGICMDMODE(x) ((x) << S_DBGICMDMODE) 18980 #define G_DBGICMDMODE(x) (((x) >> S_DBGICMDMODE) & M_DBGICMDMODE) 18981 18982 #define A_LE_DB_DBGI_REQ_TCAM_CMD 0x19cf4 18983 18984 #define S_DBGICMD 20 18985 #define M_DBGICMD 0xfU 18986 #define V_DBGICMD(x) ((x) << S_DBGICMD) 18987 #define G_DBGICMD(x) (((x) >> S_DBGICMD) & M_DBGICMD) 18988 18989 #define S_DBGITINDEX 0 18990 #define M_DBGITINDEX 0xfffffU 18991 #define V_DBGITINDEX(x) ((x) << S_DBGITINDEX) 18992 #define G_DBGITINDEX(x) (((x) >> S_DBGITINDEX) & M_DBGITINDEX) 18993 18994 #define A_LE_PERR_ENABLE 0x19cf8 18995 18996 #define S_REQQUEUE 1 18997 #define V_REQQUEUE(x) ((x) << S_REQQUEUE) 18998 #define F_REQQUEUE V_REQQUEUE(1U) 18999 19000 #define S_TCAM 0 19001 #define V_TCAM(x) ((x) << S_TCAM) 19002 #define F_TCAM V_TCAM(1U) 19003 19004 #define A_LE_SPARE 0x19cfc 19005 #define A_LE_DB_DBGI_REQ_DATA 0x19d00 19006 #define A_LE_DB_DBGI_REQ_MASK 0x19d50 19007 #define A_LE_DB_DBGI_RSP_STATUS 0x19d94 19008 19009 #define S_DBGIRSPINDEX 12 19010 #define M_DBGIRSPINDEX 0xfffffU 19011 #define V_DBGIRSPINDEX(x) ((x) << S_DBGIRSPINDEX) 19012 #define G_DBGIRSPINDEX(x) (((x) >> S_DBGIRSPINDEX) & M_DBGIRSPINDEX) 19013 19014 #define S_DBGIRSPMSG 8 19015 #define M_DBGIRSPMSG 0xfU 19016 #define V_DBGIRSPMSG(x) ((x) << S_DBGIRSPMSG) 19017 #define G_DBGIRSPMSG(x) (((x) >> S_DBGIRSPMSG) & M_DBGIRSPMSG) 19018 19019 #define S_DBGIRSPMSGVLD 7 19020 #define V_DBGIRSPMSGVLD(x) ((x) << S_DBGIRSPMSGVLD) 19021 #define F_DBGIRSPMSGVLD V_DBGIRSPMSGVLD(1U) 19022 19023 #define S_DBGIRSPMHIT 2 19024 #define V_DBGIRSPMHIT(x) ((x) << S_DBGIRSPMHIT) 19025 #define F_DBGIRSPMHIT V_DBGIRSPMHIT(1U) 19026 19027 #define S_DBGIRSPHIT 1 19028 #define V_DBGIRSPHIT(x) ((x) << S_DBGIRSPHIT) 19029 #define F_DBGIRSPHIT V_DBGIRSPHIT(1U) 19030 19031 #define S_DBGIRSPVALID 0 19032 #define V_DBGIRSPVALID(x) ((x) << S_DBGIRSPVALID) 19033 #define F_DBGIRSPVALID V_DBGIRSPVALID(1U) 19034 19035 #define A_LE_DB_DBGI_RSP_DATA 0x19da0 19036 #define A_LE_DB_DBGI_RSP_LAST_CMD 0x19de4 19037 19038 #define S_LASTCMDB 16 19039 #define M_LASTCMDB 0x7ffU 19040 #define V_LASTCMDB(x) ((x) << S_LASTCMDB) 19041 #define G_LASTCMDB(x) (((x) >> S_LASTCMDB) & M_LASTCMDB) 19042 19043 #define S_LASTCMDA 0 19044 #define M_LASTCMDA 0x7ffU 19045 #define V_LASTCMDA(x) ((x) << S_LASTCMDA) 19046 #define G_LASTCMDA(x) (((x) >> S_LASTCMDA) & M_LASTCMDA) 19047 19048 #define A_LE_DB_DROP_FILTER_ENTRY 0x19de8 19049 19050 #define S_DROPFILTEREN 31 19051 #define V_DROPFILTEREN(x) ((x) << S_DROPFILTEREN) 19052 #define F_DROPFILTEREN V_DROPFILTEREN(1U) 19053 19054 #define S_DROPFILTERCLEAR 17 19055 #define V_DROPFILTERCLEAR(x) ((x) << S_DROPFILTERCLEAR) 19056 #define F_DROPFILTERCLEAR V_DROPFILTERCLEAR(1U) 19057 19058 #define S_DROPFILTERSET 16 19059 #define V_DROPFILTERSET(x) ((x) << S_DROPFILTERSET) 19060 #define F_DROPFILTERSET V_DROPFILTERSET(1U) 19061 19062 #define S_DROPFILTERFIDX 0 19063 #define M_DROPFILTERFIDX 0x1fffU 19064 #define V_DROPFILTERFIDX(x) ((x) << S_DROPFILTERFIDX) 19065 #define G_DROPFILTERFIDX(x) (((x) >> S_DROPFILTERFIDX) & M_DROPFILTERFIDX) 19066 19067 #define A_LE_DB_PTID_SVRBASE 0x19df0 19068 19069 #define S_SVRBASE_ADDR 2 19070 #define M_SVRBASE_ADDR 0x3ffffU 19071 #define V_SVRBASE_ADDR(x) ((x) << S_SVRBASE_ADDR) 19072 #define G_SVRBASE_ADDR(x) (((x) >> S_SVRBASE_ADDR) & M_SVRBASE_ADDR) 19073 19074 #define A_LE_DB_FTID_FLTRBASE 0x19df4 19075 19076 #define S_FLTRBASE_ADDR 2 19077 #define M_FLTRBASE_ADDR 0x3ffffU 19078 #define V_FLTRBASE_ADDR(x) ((x) << S_FLTRBASE_ADDR) 19079 #define G_FLTRBASE_ADDR(x) (((x) >> S_FLTRBASE_ADDR) & M_FLTRBASE_ADDR) 19080 19081 #define A_LE_DB_TID_HASHBASE 0x19df8 19082 19083 #define S_HASHBASE_ADDR 2 19084 #define M_HASHBASE_ADDR 0xfffffU 19085 #define V_HASHBASE_ADDR(x) ((x) << S_HASHBASE_ADDR) 19086 #define G_HASHBASE_ADDR(x) (((x) >> S_HASHBASE_ADDR) & M_HASHBASE_ADDR) 19087 19088 #define A_LE_PERR_INJECT 0x19dfc 19089 19090 #define S_LEMEMSEL 1 19091 #define M_LEMEMSEL 0x7U 19092 #define V_LEMEMSEL(x) ((x) << S_LEMEMSEL) 19093 #define G_LEMEMSEL(x) (((x) >> S_LEMEMSEL) & M_LEMEMSEL) 19094 19095 #define A_LE_DB_ACTIVE_MASK_IPV4 0x19e00 19096 #define A_LE_DB_ACTIVE_MASK_IPV6 0x19e50 19097 #define A_LE_HASH_MASK_GEN_IPV4 0x19ea0 19098 #define A_LE_HASH_MASK_GEN_IPV6 0x19eb0 19099 #define A_LE_HASH_MASK_CMP_IPV4 0x19ee0 19100 #define A_LE_HASH_MASK_CMP_IPV6 0x19ef0 19101 #define A_LE_DEBUG_LA_CONFIG 0x19f20 19102 #define A_LE_REQ_DEBUG_LA_DATA 0x19f24 19103 #define A_LE_REQ_DEBUG_LA_WRPTR 0x19f28 19104 #define A_LE_RSP_DEBUG_LA_DATA 0x19f2c 19105 #define A_LE_RSP_DEBUG_LA_WRPTR 0x19f30 19106 19107 /* registers for module NCSI */ 19108 #define NCSI_BASE_ADDR 0x1a000 19109 19110 #define A_NCSI_PORT_CFGREG 0x1a000 19111 19112 #define S_WIREEN 28 19113 #define M_WIREEN 0xfU 19114 #define V_WIREEN(x) ((x) << S_WIREEN) 19115 #define G_WIREEN(x) (((x) >> S_WIREEN) & M_WIREEN) 19116 19117 #define S_STRP_CRC 24 19118 #define M_STRP_CRC 0xfU 19119 #define V_STRP_CRC(x) ((x) << S_STRP_CRC) 19120 #define G_STRP_CRC(x) (((x) >> S_STRP_CRC) & M_STRP_CRC) 19121 19122 #define S_RX_HALT 22 19123 #define V_RX_HALT(x) ((x) << S_RX_HALT) 19124 #define F_RX_HALT V_RX_HALT(1U) 19125 19126 #define S_FLUSH_RX_FIFO 21 19127 #define V_FLUSH_RX_FIFO(x) ((x) << S_FLUSH_RX_FIFO) 19128 #define F_FLUSH_RX_FIFO V_FLUSH_RX_FIFO(1U) 19129 19130 #define S_HW_ARB_EN 20 19131 #define V_HW_ARB_EN(x) ((x) << S_HW_ARB_EN) 19132 #define F_HW_ARB_EN V_HW_ARB_EN(1U) 19133 19134 #define S_SOFT_PKG_SEL 19 19135 #define V_SOFT_PKG_SEL(x) ((x) << S_SOFT_PKG_SEL) 19136 #define F_SOFT_PKG_SEL V_SOFT_PKG_SEL(1U) 19137 19138 #define S_ERR_DISCARD_EN 18 19139 #define V_ERR_DISCARD_EN(x) ((x) << S_ERR_DISCARD_EN) 19140 #define F_ERR_DISCARD_EN V_ERR_DISCARD_EN(1U) 19141 19142 #define S_MAX_PKT_SIZE 4 19143 #define M_MAX_PKT_SIZE 0x3fffU 19144 #define V_MAX_PKT_SIZE(x) ((x) << S_MAX_PKT_SIZE) 19145 #define G_MAX_PKT_SIZE(x) (((x) >> S_MAX_PKT_SIZE) & M_MAX_PKT_SIZE) 19146 19147 #define S_RX_BYTE_SWAP 3 19148 #define V_RX_BYTE_SWAP(x) ((x) << S_RX_BYTE_SWAP) 19149 #define F_RX_BYTE_SWAP V_RX_BYTE_SWAP(1U) 19150 19151 #define S_TX_BYTE_SWAP 2 19152 #define V_TX_BYTE_SWAP(x) ((x) << S_TX_BYTE_SWAP) 19153 #define F_TX_BYTE_SWAP V_TX_BYTE_SWAP(1U) 19154 19155 #define A_NCSI_RST_CTRL 0x1a004 19156 19157 #define S_MAC_REF_RST 2 19158 #define V_MAC_REF_RST(x) ((x) << S_MAC_REF_RST) 19159 #define F_MAC_REF_RST V_MAC_REF_RST(1U) 19160 19161 #define S_MAC_RX_RST 1 19162 #define V_MAC_RX_RST(x) ((x) << S_MAC_RX_RST) 19163 #define F_MAC_RX_RST V_MAC_RX_RST(1U) 19164 19165 #define S_MAC_TX_RST 0 19166 #define V_MAC_TX_RST(x) ((x) << S_MAC_TX_RST) 19167 #define F_MAC_TX_RST V_MAC_TX_RST(1U) 19168 19169 #define A_NCSI_CH0_SADDR_LOW 0x1a010 19170 #define A_NCSI_CH0_SADDR_HIGH 0x1a014 19171 19172 #define S_CHO_SADDR_EN 31 19173 #define V_CHO_SADDR_EN(x) ((x) << S_CHO_SADDR_EN) 19174 #define F_CHO_SADDR_EN V_CHO_SADDR_EN(1U) 19175 19176 #define S_CH0_SADDR_HIGH 0 19177 #define M_CH0_SADDR_HIGH 0xffffU 19178 #define V_CH0_SADDR_HIGH(x) ((x) << S_CH0_SADDR_HIGH) 19179 #define G_CH0_SADDR_HIGH(x) (((x) >> S_CH0_SADDR_HIGH) & M_CH0_SADDR_HIGH) 19180 19181 #define A_NCSI_CH1_SADDR_LOW 0x1a018 19182 #define A_NCSI_CH1_SADDR_HIGH 0x1a01c 19183 19184 #define S_CH1_SADDR_EN 31 19185 #define V_CH1_SADDR_EN(x) ((x) << S_CH1_SADDR_EN) 19186 #define F_CH1_SADDR_EN V_CH1_SADDR_EN(1U) 19187 19188 #define S_CH1_SADDR_HIGH 0 19189 #define M_CH1_SADDR_HIGH 0xffffU 19190 #define V_CH1_SADDR_HIGH(x) ((x) << S_CH1_SADDR_HIGH) 19191 #define G_CH1_SADDR_HIGH(x) (((x) >> S_CH1_SADDR_HIGH) & M_CH1_SADDR_HIGH) 19192 19193 #define A_NCSI_CH2_SADDR_LOW 0x1a020 19194 #define A_NCSI_CH2_SADDR_HIGH 0x1a024 19195 19196 #define S_CH2_SADDR_EN 31 19197 #define V_CH2_SADDR_EN(x) ((x) << S_CH2_SADDR_EN) 19198 #define F_CH2_SADDR_EN V_CH2_SADDR_EN(1U) 19199 19200 #define S_CH2_SADDR_HIGH 0 19201 #define M_CH2_SADDR_HIGH 0xffffU 19202 #define V_CH2_SADDR_HIGH(x) ((x) << S_CH2_SADDR_HIGH) 19203 #define G_CH2_SADDR_HIGH(x) (((x) >> S_CH2_SADDR_HIGH) & M_CH2_SADDR_HIGH) 19204 19205 #define A_NCSI_CH3_SADDR_LOW 0x1a028 19206 #define A_NCSI_CH3_SADDR_HIGH 0x1a02c 19207 19208 #define S_CH3_SADDR_EN 31 19209 #define V_CH3_SADDR_EN(x) ((x) << S_CH3_SADDR_EN) 19210 #define F_CH3_SADDR_EN V_CH3_SADDR_EN(1U) 19211 19212 #define S_CH3_SADDR_HIGH 0 19213 #define M_CH3_SADDR_HIGH 0xffffU 19214 #define V_CH3_SADDR_HIGH(x) ((x) << S_CH3_SADDR_HIGH) 19215 #define G_CH3_SADDR_HIGH(x) (((x) >> S_CH3_SADDR_HIGH) & M_CH3_SADDR_HIGH) 19216 19217 #define A_NCSI_WORK_REQHDR_0 0x1a030 19218 #define A_NCSI_WORK_REQHDR_1 0x1a034 19219 #define A_NCSI_WORK_REQHDR_2 0x1a038 19220 #define A_NCSI_WORK_REQHDR_3 0x1a03c 19221 #define A_NCSI_MPS_HDR_LO 0x1a040 19222 #define A_NCSI_MPS_HDR_HI 0x1a044 19223 #define A_NCSI_CTL 0x1a048 19224 19225 #define S_STRIP_OVLAN 3 19226 #define V_STRIP_OVLAN(x) ((x) << S_STRIP_OVLAN) 19227 #define F_STRIP_OVLAN V_STRIP_OVLAN(1U) 19228 19229 #define S_BMC_DROP_NON_BC 2 19230 #define V_BMC_DROP_NON_BC(x) ((x) << S_BMC_DROP_NON_BC) 19231 #define F_BMC_DROP_NON_BC V_BMC_DROP_NON_BC(1U) 19232 19233 #define S_BMC_RX_FWD_ALL 1 19234 #define V_BMC_RX_FWD_ALL(x) ((x) << S_BMC_RX_FWD_ALL) 19235 #define F_BMC_RX_FWD_ALL V_BMC_RX_FWD_ALL(1U) 19236 19237 #define S_FWD_BMC 0 19238 #define V_FWD_BMC(x) ((x) << S_FWD_BMC) 19239 #define F_FWD_BMC V_FWD_BMC(1U) 19240 19241 #define A_NCSI_NCSI_ETYPE 0x1a04c 19242 19243 #define S_NCSI_ETHERTYPE 0 19244 #define M_NCSI_ETHERTYPE 0xffffU 19245 #define V_NCSI_ETHERTYPE(x) ((x) << S_NCSI_ETHERTYPE) 19246 #define G_NCSI_ETHERTYPE(x) (((x) >> S_NCSI_ETHERTYPE) & M_NCSI_ETHERTYPE) 19247 19248 #define A_NCSI_RX_FIFO_CNT 0x1a050 19249 19250 #define S_NCSI_RXFIFO_CNT 0 19251 #define M_NCSI_RXFIFO_CNT 0x7ffU 19252 #define V_NCSI_RXFIFO_CNT(x) ((x) << S_NCSI_RXFIFO_CNT) 19253 #define G_NCSI_RXFIFO_CNT(x) (((x) >> S_NCSI_RXFIFO_CNT) & M_NCSI_RXFIFO_CNT) 19254 19255 #define A_NCSI_RX_ERR_CNT 0x1a054 19256 #define A_NCSI_RX_OF_CNT 0x1a058 19257 #define A_NCSI_RX_MS_CNT 0x1a05c 19258 #define A_NCSI_RX_IE_CNT 0x1a060 19259 #define A_NCSI_MPS_DEMUX_CNT 0x1a064 19260 19261 #define S_MPS2CIM_CNT 16 19262 #define M_MPS2CIM_CNT 0x1ffU 19263 #define V_MPS2CIM_CNT(x) ((x) << S_MPS2CIM_CNT) 19264 #define G_MPS2CIM_CNT(x) (((x) >> S_MPS2CIM_CNT) & M_MPS2CIM_CNT) 19265 19266 #define S_MPS2BMC_CNT 0 19267 #define M_MPS2BMC_CNT 0x1ffU 19268 #define V_MPS2BMC_CNT(x) ((x) << S_MPS2BMC_CNT) 19269 #define G_MPS2BMC_CNT(x) (((x) >> S_MPS2BMC_CNT) & M_MPS2BMC_CNT) 19270 19271 #define A_NCSI_CIM_DEMUX_CNT 0x1a068 19272 19273 #define S_CIM2MPS_CNT 16 19274 #define M_CIM2MPS_CNT 0x1ffU 19275 #define V_CIM2MPS_CNT(x) ((x) << S_CIM2MPS_CNT) 19276 #define G_CIM2MPS_CNT(x) (((x) >> S_CIM2MPS_CNT) & M_CIM2MPS_CNT) 19277 19278 #define S_CIM2BMC_CNT 0 19279 #define M_CIM2BMC_CNT 0x1ffU 19280 #define V_CIM2BMC_CNT(x) ((x) << S_CIM2BMC_CNT) 19281 #define G_CIM2BMC_CNT(x) (((x) >> S_CIM2BMC_CNT) & M_CIM2BMC_CNT) 19282 19283 #define A_NCSI_TX_FIFO_CNT 0x1a06c 19284 19285 #define S_TX_FIFO_CNT 0 19286 #define M_TX_FIFO_CNT 0x3ffU 19287 #define V_TX_FIFO_CNT(x) ((x) << S_TX_FIFO_CNT) 19288 #define G_TX_FIFO_CNT(x) (((x) >> S_TX_FIFO_CNT) & M_TX_FIFO_CNT) 19289 19290 #define A_NCSI_SE_CNT_CTL 0x1a0b0 19291 19292 #define S_SE_CNT_CLR 0 19293 #define M_SE_CNT_CLR 0xfU 19294 #define V_SE_CNT_CLR(x) ((x) << S_SE_CNT_CLR) 19295 #define G_SE_CNT_CLR(x) (((x) >> S_SE_CNT_CLR) & M_SE_CNT_CLR) 19296 19297 #define A_NCSI_SE_CNT_MPS 0x1a0b4 19298 19299 #define S_NC2MPS_SOP_CNT 24 19300 #define M_NC2MPS_SOP_CNT 0xffU 19301 #define V_NC2MPS_SOP_CNT(x) ((x) << S_NC2MPS_SOP_CNT) 19302 #define G_NC2MPS_SOP_CNT(x) (((x) >> S_NC2MPS_SOP_CNT) & M_NC2MPS_SOP_CNT) 19303 19304 #define S_NC2MPS_EOP_CNT 16 19305 #define M_NC2MPS_EOP_CNT 0x3fU 19306 #define V_NC2MPS_EOP_CNT(x) ((x) << S_NC2MPS_EOP_CNT) 19307 #define G_NC2MPS_EOP_CNT(x) (((x) >> S_NC2MPS_EOP_CNT) & M_NC2MPS_EOP_CNT) 19308 19309 #define S_MPS2NC_SOP_CNT 8 19310 #define M_MPS2NC_SOP_CNT 0xffU 19311 #define V_MPS2NC_SOP_CNT(x) ((x) << S_MPS2NC_SOP_CNT) 19312 #define G_MPS2NC_SOP_CNT(x) (((x) >> S_MPS2NC_SOP_CNT) & M_MPS2NC_SOP_CNT) 19313 19314 #define S_MPS2NC_EOP_CNT 0 19315 #define M_MPS2NC_EOP_CNT 0xffU 19316 #define V_MPS2NC_EOP_CNT(x) ((x) << S_MPS2NC_EOP_CNT) 19317 #define G_MPS2NC_EOP_CNT(x) (((x) >> S_MPS2NC_EOP_CNT) & M_MPS2NC_EOP_CNT) 19318 19319 #define A_NCSI_SE_CNT_CIM 0x1a0b8 19320 19321 #define S_NC2CIM_SOP_CNT 24 19322 #define M_NC2CIM_SOP_CNT 0xffU 19323 #define V_NC2CIM_SOP_CNT(x) ((x) << S_NC2CIM_SOP_CNT) 19324 #define G_NC2CIM_SOP_CNT(x) (((x) >> S_NC2CIM_SOP_CNT) & M_NC2CIM_SOP_CNT) 19325 19326 #define S_NC2CIM_EOP_CNT 16 19327 #define M_NC2CIM_EOP_CNT 0x3fU 19328 #define V_NC2CIM_EOP_CNT(x) ((x) << S_NC2CIM_EOP_CNT) 19329 #define G_NC2CIM_EOP_CNT(x) (((x) >> S_NC2CIM_EOP_CNT) & M_NC2CIM_EOP_CNT) 19330 19331 #define S_CIM2NC_SOP_CNT 8 19332 #define M_CIM2NC_SOP_CNT 0xffU 19333 #define V_CIM2NC_SOP_CNT(x) ((x) << S_CIM2NC_SOP_CNT) 19334 #define G_CIM2NC_SOP_CNT(x) (((x) >> S_CIM2NC_SOP_CNT) & M_CIM2NC_SOP_CNT) 19335 19336 #define S_CIM2NC_EOP_CNT 0 19337 #define M_CIM2NC_EOP_CNT 0xffU 19338 #define V_CIM2NC_EOP_CNT(x) ((x) << S_CIM2NC_EOP_CNT) 19339 #define G_CIM2NC_EOP_CNT(x) (((x) >> S_CIM2NC_EOP_CNT) & M_CIM2NC_EOP_CNT) 19340 19341 #define A_NCSI_BUS_DEBUG 0x1a0bc 19342 19343 #define S_SOP_CNT_ERR 12 19344 #define M_SOP_CNT_ERR 0xfU 19345 #define V_SOP_CNT_ERR(x) ((x) << S_SOP_CNT_ERR) 19346 #define G_SOP_CNT_ERR(x) (((x) >> S_SOP_CNT_ERR) & M_SOP_CNT_ERR) 19347 19348 #define S_BUS_STATE_MPS_OUT 6 19349 #define M_BUS_STATE_MPS_OUT 0x3U 19350 #define V_BUS_STATE_MPS_OUT(x) ((x) << S_BUS_STATE_MPS_OUT) 19351 #define G_BUS_STATE_MPS_OUT(x) \ 19352 (((x) >> S_BUS_STATE_MPS_OUT) & M_BUS_STATE_MPS_OUT) 19353 19354 #define S_BUS_STATE_MPS_IN 4 19355 #define M_BUS_STATE_MPS_IN 0x3U 19356 #define V_BUS_STATE_MPS_IN(x) ((x) << S_BUS_STATE_MPS_IN) 19357 #define G_BUS_STATE_MPS_IN(x) (((x) >> S_BUS_STATE_MPS_IN) & M_BUS_STATE_MPS_IN) 19358 19359 #define S_BUS_STATE_CIM_OUT 2 19360 #define M_BUS_STATE_CIM_OUT 0x3U 19361 #define V_BUS_STATE_CIM_OUT(x) ((x) << S_BUS_STATE_CIM_OUT) 19362 #define G_BUS_STATE_CIM_OUT(x) \ 19363 (((x) >> S_BUS_STATE_CIM_OUT) & M_BUS_STATE_CIM_OUT) 19364 19365 #define S_BUS_STATE_CIM_IN 0 19366 #define M_BUS_STATE_CIM_IN 0x3U 19367 #define V_BUS_STATE_CIM_IN(x) ((x) << S_BUS_STATE_CIM_IN) 19368 #define G_BUS_STATE_CIM_IN(x) (((x) >> S_BUS_STATE_CIM_IN) & M_BUS_STATE_CIM_IN) 19369 19370 #define A_NCSI_LA_RDPTR 0x1a0c0 19371 #define A_NCSI_LA_RDDATA 0x1a0c4 19372 #define A_NCSI_LA_WRPTR 0x1a0c8 19373 #define A_NCSI_LA_RESERVED 0x1a0cc 19374 #define A_NCSI_LA_CTL 0x1a0d0 19375 #define A_NCSI_INT_ENABLE 0x1a0d4 19376 19377 #define S_CIM_DM_PRTY_ERR 8 19378 #define V_CIM_DM_PRTY_ERR(x) ((x) << S_CIM_DM_PRTY_ERR) 19379 #define F_CIM_DM_PRTY_ERR V_CIM_DM_PRTY_ERR(1U) 19380 19381 #define S_MPS_DM_PRTY_ERR 7 19382 #define V_MPS_DM_PRTY_ERR(x) ((x) << S_MPS_DM_PRTY_ERR) 19383 #define F_MPS_DM_PRTY_ERR V_MPS_DM_PRTY_ERR(1U) 19384 19385 #define S_TOKEN 6 19386 #define V_TOKEN(x) ((x) << S_TOKEN) 19387 #define F_TOKEN V_TOKEN(1U) 19388 19389 #define S_ARB_DONE 5 19390 #define V_ARB_DONE(x) ((x) << S_ARB_DONE) 19391 #define F_ARB_DONE V_ARB_DONE(1U) 19392 19393 #define S_ARB_STARTED 4 19394 #define V_ARB_STARTED(x) ((x) << S_ARB_STARTED) 19395 #define F_ARB_STARTED V_ARB_STARTED(1U) 19396 19397 #define S_WOL 3 19398 #define V_WOL(x) ((x) << S_WOL) 19399 #define F_WOL V_WOL(1U) 19400 19401 #define S_MACINT 2 19402 #define V_MACINT(x) ((x) << S_MACINT) 19403 #define F_MACINT V_MACINT(1U) 19404 19405 #define S_TXFIFO_PRTY_ERR 1 19406 #define V_TXFIFO_PRTY_ERR(x) ((x) << S_TXFIFO_PRTY_ERR) 19407 #define F_TXFIFO_PRTY_ERR V_TXFIFO_PRTY_ERR(1U) 19408 19409 #define S_RXFIFO_PRTY_ERR 0 19410 #define V_RXFIFO_PRTY_ERR(x) ((x) << S_RXFIFO_PRTY_ERR) 19411 #define F_RXFIFO_PRTY_ERR V_RXFIFO_PRTY_ERR(1U) 19412 19413 #define A_NCSI_INT_CAUSE 0x1a0d8 19414 #define A_NCSI_STATUS 0x1a0dc 19415 19416 #define S_MASTER 1 19417 #define V_MASTER(x) ((x) << S_MASTER) 19418 #define F_MASTER V_MASTER(1U) 19419 19420 #define S_ARB_STATUS 0 19421 #define V_ARB_STATUS(x) ((x) << S_ARB_STATUS) 19422 #define F_ARB_STATUS V_ARB_STATUS(1U) 19423 19424 #define A_NCSI_PAUSE_CTRL 0x1a0e0 19425 19426 #define S_FORCEPAUSE 0 19427 #define V_FORCEPAUSE(x) ((x) << S_FORCEPAUSE) 19428 #define F_FORCEPAUSE V_FORCEPAUSE(1U) 19429 19430 #define A_NCSI_PAUSE_TIMEOUT 0x1a0e4 19431 #define A_NCSI_PAUSE_WM 0x1a0ec 19432 19433 #define S_PAUSEHWM 16 19434 #define M_PAUSEHWM 0x7ffU 19435 #define V_PAUSEHWM(x) ((x) << S_PAUSEHWM) 19436 #define G_PAUSEHWM(x) (((x) >> S_PAUSEHWM) & M_PAUSEHWM) 19437 19438 #define S_PAUSELWM 0 19439 #define M_PAUSELWM 0x7ffU 19440 #define V_PAUSELWM(x) ((x) << S_PAUSELWM) 19441 #define G_PAUSELWM(x) (((x) >> S_PAUSELWM) & M_PAUSELWM) 19442 19443 #define A_NCSI_DEBUG 0x1a0f0 19444 19445 #define S_DEBUGSEL 0 19446 #define M_DEBUGSEL 0x3fU 19447 #define V_DEBUGSEL(x) ((x) << S_DEBUGSEL) 19448 #define G_DEBUGSEL(x) (((x) >> S_DEBUGSEL) & M_DEBUGSEL) 19449 19450 #define A_NCSI_PERR_INJECT 0x1a0f4 19451 19452 #define S_MCSIMELSEL 1 19453 #define V_MCSIMELSEL(x) ((x) << S_MCSIMELSEL) 19454 #define F_MCSIMELSEL V_MCSIMELSEL(1U) 19455 19456 #define A_NCSI_MACB_NETWORK_CTRL 0x1a100 19457 19458 #define S_TXSNDZEROPAUSE 12 19459 #define V_TXSNDZEROPAUSE(x) ((x) << S_TXSNDZEROPAUSE) 19460 #define F_TXSNDZEROPAUSE V_TXSNDZEROPAUSE(1U) 19461 19462 #define S_TXSNDPAUSE 11 19463 #define V_TXSNDPAUSE(x) ((x) << S_TXSNDPAUSE) 19464 #define F_TXSNDPAUSE V_TXSNDPAUSE(1U) 19465 19466 #define S_TXSTOP 10 19467 #define V_TXSTOP(x) ((x) << S_TXSTOP) 19468 #define F_TXSTOP V_TXSTOP(1U) 19469 19470 #define S_TXSTART 9 19471 #define V_TXSTART(x) ((x) << S_TXSTART) 19472 #define F_TXSTART V_TXSTART(1U) 19473 19474 #define S_BACKPRESS 8 19475 #define V_BACKPRESS(x) ((x) << S_BACKPRESS) 19476 #define F_BACKPRESS V_BACKPRESS(1U) 19477 19478 #define S_STATWREN 7 19479 #define V_STATWREN(x) ((x) << S_STATWREN) 19480 #define F_STATWREN V_STATWREN(1U) 19481 19482 #define S_INCRSTAT 6 19483 #define V_INCRSTAT(x) ((x) << S_INCRSTAT) 19484 #define F_INCRSTAT V_INCRSTAT(1U) 19485 19486 #define S_CLEARSTAT 5 19487 #define V_CLEARSTAT(x) ((x) << S_CLEARSTAT) 19488 #define F_CLEARSTAT V_CLEARSTAT(1U) 19489 19490 #define S_ENMGMTPORT 4 19491 #define V_ENMGMTPORT(x) ((x) << S_ENMGMTPORT) 19492 #define F_ENMGMTPORT V_ENMGMTPORT(1U) 19493 19494 #define S_NCSITXEN 3 19495 #define V_NCSITXEN(x) ((x) << S_NCSITXEN) 19496 #define F_NCSITXEN V_NCSITXEN(1U) 19497 19498 #define S_NCSIRXEN 2 19499 #define V_NCSIRXEN(x) ((x) << S_NCSIRXEN) 19500 #define F_NCSIRXEN V_NCSIRXEN(1U) 19501 19502 #define S_LOOPLOCAL 1 19503 #define V_LOOPLOCAL(x) ((x) << S_LOOPLOCAL) 19504 #define F_LOOPLOCAL V_LOOPLOCAL(1U) 19505 19506 #define S_LOOPPHY 0 19507 #define V_LOOPPHY(x) ((x) << S_LOOPPHY) 19508 #define F_LOOPPHY V_LOOPPHY(1U) 19509 19510 #define A_NCSI_MACB_NETWORK_CFG 0x1a104 19511 19512 #define S_PCLKDIV128 22 19513 #define V_PCLKDIV128(x) ((x) << S_PCLKDIV128) 19514 #define F_PCLKDIV128 V_PCLKDIV128(1U) 19515 19516 #define S_COPYPAUSE 21 19517 #define V_COPYPAUSE(x) ((x) << S_COPYPAUSE) 19518 #define F_COPYPAUSE V_COPYPAUSE(1U) 19519 19520 #define S_NONSTDPREOK 20 19521 #define V_NONSTDPREOK(x) ((x) << S_NONSTDPREOK) 19522 #define F_NONSTDPREOK V_NONSTDPREOK(1U) 19523 19524 #define S_NOFCS 19 19525 #define V_NOFCS(x) ((x) << S_NOFCS) 19526 #define F_NOFCS V_NOFCS(1U) 19527 19528 #define S_RXENHALFDUP 18 19529 #define V_RXENHALFDUP(x) ((x) << S_RXENHALFDUP) 19530 #define F_RXENHALFDUP V_RXENHALFDUP(1U) 19531 19532 #define S_NOCOPYFCS 17 19533 #define V_NOCOPYFCS(x) ((x) << S_NOCOPYFCS) 19534 #define F_NOCOPYFCS V_NOCOPYFCS(1U) 19535 19536 #define S_LENCHKEN 16 19537 #define V_LENCHKEN(x) ((x) << S_LENCHKEN) 19538 #define F_LENCHKEN V_LENCHKEN(1U) 19539 19540 #define S_RXBUFOFFSET 14 19541 #define M_RXBUFOFFSET 0x3U 19542 #define V_RXBUFOFFSET(x) ((x) << S_RXBUFOFFSET) 19543 #define G_RXBUFOFFSET(x) (((x) >> S_RXBUFOFFSET) & M_RXBUFOFFSET) 19544 19545 #define S_PAUSEEN 13 19546 #define V_PAUSEEN(x) ((x) << S_PAUSEEN) 19547 #define F_PAUSEEN V_PAUSEEN(1U) 19548 19549 #define S_RETRYTEST 12 19550 #define V_RETRYTEST(x) ((x) << S_RETRYTEST) 19551 #define F_RETRYTEST V_RETRYTEST(1U) 19552 19553 #define S_PCLKDIV 10 19554 #define M_PCLKDIV 0x3U 19555 #define V_PCLKDIV(x) ((x) << S_PCLKDIV) 19556 #define G_PCLKDIV(x) (((x) >> S_PCLKDIV) & M_PCLKDIV) 19557 19558 #define S_EXTCLASS 9 19559 #define V_EXTCLASS(x) ((x) << S_EXTCLASS) 19560 #define F_EXTCLASS V_EXTCLASS(1U) 19561 19562 #define S_EN1536FRAME 8 19563 #define V_EN1536FRAME(x) ((x) << S_EN1536FRAME) 19564 #define F_EN1536FRAME V_EN1536FRAME(1U) 19565 19566 #define S_UCASTHASHEN 7 19567 #define V_UCASTHASHEN(x) ((x) << S_UCASTHASHEN) 19568 #define F_UCASTHASHEN V_UCASTHASHEN(1U) 19569 19570 #define S_MCASTHASHEN 6 19571 #define V_MCASTHASHEN(x) ((x) << S_MCASTHASHEN) 19572 #define F_MCASTHASHEN V_MCASTHASHEN(1U) 19573 19574 #define S_RXBCASTDIS 5 19575 #define V_RXBCASTDIS(x) ((x) << S_RXBCASTDIS) 19576 #define F_RXBCASTDIS V_RXBCASTDIS(1U) 19577 19578 #define S_NCSICOPYALLFRAMES 4 19579 #define V_NCSICOPYALLFRAMES(x) ((x) << S_NCSICOPYALLFRAMES) 19580 #define F_NCSICOPYALLFRAMES V_NCSICOPYALLFRAMES(1U) 19581 19582 #define S_JUMBOEN 3 19583 #define V_JUMBOEN(x) ((x) << S_JUMBOEN) 19584 #define F_JUMBOEN V_JUMBOEN(1U) 19585 19586 #define S_SEREN 2 19587 #define V_SEREN(x) ((x) << S_SEREN) 19588 #define F_SEREN V_SEREN(1U) 19589 19590 #define S_FULLDUPLEX 1 19591 #define V_FULLDUPLEX(x) ((x) << S_FULLDUPLEX) 19592 #define F_FULLDUPLEX V_FULLDUPLEX(1U) 19593 19594 #define S_SPEED 0 19595 #define V_SPEED(x) ((x) << S_SPEED) 19596 #define F_SPEED V_SPEED(1U) 19597 19598 #define A_NCSI_MACB_NETWORK_STATUS 0x1a108 19599 19600 #define S_PHYMGMTSTATUS 2 19601 #define V_PHYMGMTSTATUS(x) ((x) << S_PHYMGMTSTATUS) 19602 #define F_PHYMGMTSTATUS V_PHYMGMTSTATUS(1U) 19603 19604 #define S_MDISTATUS 1 19605 #define V_MDISTATUS(x) ((x) << S_MDISTATUS) 19606 #define F_MDISTATUS V_MDISTATUS(1U) 19607 19608 #define S_LINKSTATUS 0 19609 #define V_LINKSTATUS(x) ((x) << S_LINKSTATUS) 19610 #define F_LINKSTATUS V_LINKSTATUS(1U) 19611 19612 #define A_NCSI_MACB_TX_STATUS 0x1a114 19613 19614 #define S_UNDERRUNERR 6 19615 #define V_UNDERRUNERR(x) ((x) << S_UNDERRUNERR) 19616 #define F_UNDERRUNERR V_UNDERRUNERR(1U) 19617 19618 #define S_TXCOMPLETE 5 19619 #define V_TXCOMPLETE(x) ((x) << S_TXCOMPLETE) 19620 #define F_TXCOMPLETE V_TXCOMPLETE(1U) 19621 19622 #define S_BUFFEREXHAUSTED 4 19623 #define V_BUFFEREXHAUSTED(x) ((x) << S_BUFFEREXHAUSTED) 19624 #define F_BUFFEREXHAUSTED V_BUFFEREXHAUSTED(1U) 19625 19626 #define S_TXPROGRESS 3 19627 #define V_TXPROGRESS(x) ((x) << S_TXPROGRESS) 19628 #define F_TXPROGRESS V_TXPROGRESS(1U) 19629 19630 #define S_RETRYLIMIT 2 19631 #define V_RETRYLIMIT(x) ((x) << S_RETRYLIMIT) 19632 #define F_RETRYLIMIT V_RETRYLIMIT(1U) 19633 19634 #define S_COLEVENT 1 19635 #define V_COLEVENT(x) ((x) << S_COLEVENT) 19636 #define F_COLEVENT V_COLEVENT(1U) 19637 19638 #define S_USEDBITREAD 0 19639 #define V_USEDBITREAD(x) ((x) << S_USEDBITREAD) 19640 #define F_USEDBITREAD V_USEDBITREAD(1U) 19641 19642 #define A_NCSI_MACB_RX_BUF_QPTR 0x1a118 19643 19644 #define S_RXBUFQPTR 2 19645 #define M_RXBUFQPTR 0x3fffffffU 19646 #define V_RXBUFQPTR(x) ((x) << S_RXBUFQPTR) 19647 #define G_RXBUFQPTR(x) (((x) >> S_RXBUFQPTR) & M_RXBUFQPTR) 19648 19649 #define A_NCSI_MACB_TX_BUF_QPTR 0x1a11c 19650 19651 #define S_TXBUFQPTR 2 19652 #define M_TXBUFQPTR 0x3fffffffU 19653 #define V_TXBUFQPTR(x) ((x) << S_TXBUFQPTR) 19654 #define G_TXBUFQPTR(x) (((x) >> S_TXBUFQPTR) & M_TXBUFQPTR) 19655 19656 #define A_NCSI_MACB_RX_STATUS 0x1a120 19657 19658 #define S_RXOVERRUNERR 2 19659 #define V_RXOVERRUNERR(x) ((x) << S_RXOVERRUNERR) 19660 #define F_RXOVERRUNERR V_RXOVERRUNERR(1U) 19661 19662 #define S_MACB_FRAMERCVD 1 19663 #define V_MACB_FRAMERCVD(x) ((x) << S_MACB_FRAMERCVD) 19664 #define F_MACB_FRAMERCVD V_MACB_FRAMERCVD(1U) 19665 19666 #define S_NORXBUF 0 19667 #define V_NORXBUF(x) ((x) << S_NORXBUF) 19668 #define F_NORXBUF V_NORXBUF(1U) 19669 19670 #define A_NCSI_MACB_INT_STATUS 0x1a124 19671 19672 #define S_PAUSETIMEZERO 13 19673 #define V_PAUSETIMEZERO(x) ((x) << S_PAUSETIMEZERO) 19674 #define F_PAUSETIMEZERO V_PAUSETIMEZERO(1U) 19675 19676 #define S_PAUSERCVD 12 19677 #define V_PAUSERCVD(x) ((x) << S_PAUSERCVD) 19678 #define F_PAUSERCVD V_PAUSERCVD(1U) 19679 19680 #define S_HRESPNOTOK 11 19681 #define V_HRESPNOTOK(x) ((x) << S_HRESPNOTOK) 19682 #define F_HRESPNOTOK V_HRESPNOTOK(1U) 19683 19684 #define S_RXOVERRUN 10 19685 #define V_RXOVERRUN(x) ((x) << S_RXOVERRUN) 19686 #define F_RXOVERRUN V_RXOVERRUN(1U) 19687 19688 #define S_LINKCHANGE 9 19689 #define V_LINKCHANGE(x) ((x) << S_LINKCHANGE) 19690 #define F_LINKCHANGE V_LINKCHANGE(1U) 19691 19692 #define S_INT_TXCOMPLETE 7 19693 #define V_INT_TXCOMPLETE(x) ((x) << S_INT_TXCOMPLETE) 19694 #define F_INT_TXCOMPLETE V_INT_TXCOMPLETE(1U) 19695 19696 #define S_TXBUFERR 6 19697 #define V_TXBUFERR(x) ((x) << S_TXBUFERR) 19698 #define F_TXBUFERR V_TXBUFERR(1U) 19699 19700 #define S_RETRYLIMITERR 5 19701 #define V_RETRYLIMITERR(x) ((x) << S_RETRYLIMITERR) 19702 #define F_RETRYLIMITERR V_RETRYLIMITERR(1U) 19703 19704 #define S_TXBUFUNDERRUN 4 19705 #define V_TXBUFUNDERRUN(x) ((x) << S_TXBUFUNDERRUN) 19706 #define F_TXBUFUNDERRUN V_TXBUFUNDERRUN(1U) 19707 19708 #define S_TXUSEDBITREAD 3 19709 #define V_TXUSEDBITREAD(x) ((x) << S_TXUSEDBITREAD) 19710 #define F_TXUSEDBITREAD V_TXUSEDBITREAD(1U) 19711 19712 #define S_RXUSEDBITREAD 2 19713 #define V_RXUSEDBITREAD(x) ((x) << S_RXUSEDBITREAD) 19714 #define F_RXUSEDBITREAD V_RXUSEDBITREAD(1U) 19715 19716 #define S_RXCOMPLETE 1 19717 #define V_RXCOMPLETE(x) ((x) << S_RXCOMPLETE) 19718 #define F_RXCOMPLETE V_RXCOMPLETE(1U) 19719 19720 #define S_MGMTFRAMESENT 0 19721 #define V_MGMTFRAMESENT(x) ((x) << S_MGMTFRAMESENT) 19722 #define F_MGMTFRAMESENT V_MGMTFRAMESENT(1U) 19723 19724 #define A_NCSI_MACB_INT_EN 0x1a128 19725 #define A_NCSI_MACB_INT_DIS 0x1a12c 19726 #define A_NCSI_MACB_INT_MASK 0x1a130 19727 #define A_NCSI_MACB_PAUSE_TIME 0x1a138 19728 19729 #define S_PAUSETIME 0 19730 #define M_PAUSETIME 0xffffU 19731 #define V_PAUSETIME(x) ((x) << S_PAUSETIME) 19732 #define G_PAUSETIME(x) (((x) >> S_PAUSETIME) & M_PAUSETIME) 19733 19734 #define A_NCSI_MACB_PAUSE_FRAMES_RCVD 0x1a13c 19735 19736 #define S_PAUSEFRRCVD 0 19737 #define M_PAUSEFRRCVD 0xffffU 19738 #define V_PAUSEFRRCVD(x) ((x) << S_PAUSEFRRCVD) 19739 #define G_PAUSEFRRCVD(x) (((x) >> S_PAUSEFRRCVD) & M_PAUSEFRRCVD) 19740 19741 #define A_NCSI_MACB_TX_FRAMES_OK 0x1a140 19742 19743 #define S_TXFRAMESOK 0 19744 #define M_TXFRAMESOK 0xffffffU 19745 #define V_TXFRAMESOK(x) ((x) << S_TXFRAMESOK) 19746 #define G_TXFRAMESOK(x) (((x) >> S_TXFRAMESOK) & M_TXFRAMESOK) 19747 19748 #define A_NCSI_MACB_SINGLE_COL_FRAMES 0x1a144 19749 19750 #define S_SINGLECOLTXFRAMES 0 19751 #define M_SINGLECOLTXFRAMES 0xffffU 19752 #define V_SINGLECOLTXFRAMES(x) ((x) << S_SINGLECOLTXFRAMES) 19753 #define G_SINGLECOLTXFRAMES(x) \ 19754 (((x) >> S_SINGLECOLTXFRAMES) & M_SINGLECOLTXFRAMES) 19755 19756 #define A_NCSI_MACB_MUL_COL_FRAMES 0x1a148 19757 19758 #define S_MULCOLTXFRAMES 0 19759 #define M_MULCOLTXFRAMES 0xffffU 19760 #define V_MULCOLTXFRAMES(x) ((x) << S_MULCOLTXFRAMES) 19761 #define G_MULCOLTXFRAMES(x) (((x) >> S_MULCOLTXFRAMES) & M_MULCOLTXFRAMES) 19762 19763 #define A_NCSI_MACB_RX_FRAMES_OK 0x1a14c 19764 19765 #define S_RXFRAMESOK 0 19766 #define M_RXFRAMESOK 0xffffffU 19767 #define V_RXFRAMESOK(x) ((x) << S_RXFRAMESOK) 19768 #define G_RXFRAMESOK(x) (((x) >> S_RXFRAMESOK) & M_RXFRAMESOK) 19769 19770 #define A_NCSI_MACB_FCS_ERR 0x1a150 19771 19772 #define S_RXFCSERR 0 19773 #define M_RXFCSERR 0xffU 19774 #define V_RXFCSERR(x) ((x) << S_RXFCSERR) 19775 #define G_RXFCSERR(x) (((x) >> S_RXFCSERR) & M_RXFCSERR) 19776 19777 #define A_NCSI_MACB_ALIGN_ERR 0x1a154 19778 19779 #define S_RXALIGNERR 0 19780 #define M_RXALIGNERR 0xffU 19781 #define V_RXALIGNERR(x) ((x) << S_RXALIGNERR) 19782 #define G_RXALIGNERR(x) (((x) >> S_RXALIGNERR) & M_RXALIGNERR) 19783 19784 #define A_NCSI_MACB_DEF_TX_FRAMES 0x1a158 19785 19786 #define S_TXDEFERREDFRAMES 0 19787 #define M_TXDEFERREDFRAMES 0xffffU 19788 #define V_TXDEFERREDFRAMES(x) ((x) << S_TXDEFERREDFRAMES) 19789 #define G_TXDEFERREDFRAMES(x) (((x) >> S_TXDEFERREDFRAMES) & M_TXDEFERREDFRAMES) 19790 19791 #define A_NCSI_MACB_LATE_COL 0x1a15c 19792 19793 #define S_LATECOLLISIONS 0 19794 #define M_LATECOLLISIONS 0xffffU 19795 #define V_LATECOLLISIONS(x) ((x) << S_LATECOLLISIONS) 19796 #define G_LATECOLLISIONS(x) (((x) >> S_LATECOLLISIONS) & M_LATECOLLISIONS) 19797 19798 #define A_NCSI_MACB_EXCESSIVE_COL 0x1a160 19799 19800 #define S_EXCESSIVECOLLISIONS 0 19801 #define M_EXCESSIVECOLLISIONS 0xffU 19802 #define V_EXCESSIVECOLLISIONS(x) ((x) << S_EXCESSIVECOLLISIONS) 19803 #define G_EXCESSIVECOLLISIONS(x) \ 19804 (((x) >> S_EXCESSIVECOLLISIONS) & M_EXCESSIVECOLLISIONS) 19805 19806 #define A_NCSI_MACB_TX_UNDERRUN_ERR 0x1a164 19807 19808 #define S_TXUNDERRUNERR 0 19809 #define M_TXUNDERRUNERR 0xffU 19810 #define V_TXUNDERRUNERR(x) ((x) << S_TXUNDERRUNERR) 19811 #define G_TXUNDERRUNERR(x) (((x) >> S_TXUNDERRUNERR) & M_TXUNDERRUNERR) 19812 19813 #define A_NCSI_MACB_CARRIER_SENSE_ERR 0x1a168 19814 19815 #define S_CARRIERSENSEERRS 0 19816 #define M_CARRIERSENSEERRS 0xffU 19817 #define V_CARRIERSENSEERRS(x) ((x) << S_CARRIERSENSEERRS) 19818 #define G_CARRIERSENSEERRS(x) (((x) >> S_CARRIERSENSEERRS) & M_CARRIERSENSEERRS) 19819 19820 #define A_NCSI_MACB_RX_RESOURCE_ERR 0x1a16c 19821 19822 #define S_RXRESOURCEERR 0 19823 #define M_RXRESOURCEERR 0xffffU 19824 #define V_RXRESOURCEERR(x) ((x) << S_RXRESOURCEERR) 19825 #define G_RXRESOURCEERR(x) (((x) >> S_RXRESOURCEERR) & M_RXRESOURCEERR) 19826 19827 #define A_NCSI_MACB_RX_OVERRUN_ERR 0x1a170 19828 19829 #define S_RXOVERRUNERRCNT 0 19830 #define M_RXOVERRUNERRCNT 0xffU 19831 #define V_RXOVERRUNERRCNT(x) ((x) << S_RXOVERRUNERRCNT) 19832 #define G_RXOVERRUNERRCNT(x) (((x) >> S_RXOVERRUNERRCNT) & M_RXOVERRUNERRCNT) 19833 19834 #define A_NCSI_MACB_RX_SYMBOL_ERR 0x1a174 19835 19836 #define S_RXSYMBOLERR 0 19837 #define M_RXSYMBOLERR 0xffU 19838 #define V_RXSYMBOLERR(x) ((x) << S_RXSYMBOLERR) 19839 #define G_RXSYMBOLERR(x) (((x) >> S_RXSYMBOLERR) & M_RXSYMBOLERR) 19840 19841 #define A_NCSI_MACB_RX_OVERSIZE_FRAME 0x1a178 19842 19843 #define S_RXOVERSIZEERR 0 19844 #define M_RXOVERSIZEERR 0xffU 19845 #define V_RXOVERSIZEERR(x) ((x) << S_RXOVERSIZEERR) 19846 #define G_RXOVERSIZEERR(x) (((x) >> S_RXOVERSIZEERR) & M_RXOVERSIZEERR) 19847 19848 #define A_NCSI_MACB_RX_JABBER_ERR 0x1a17c 19849 19850 #define S_RXJABBERERR 0 19851 #define M_RXJABBERERR 0xffU 19852 #define V_RXJABBERERR(x) ((x) << S_RXJABBERERR) 19853 #define G_RXJABBERERR(x) (((x) >> S_RXJABBERERR) & M_RXJABBERERR) 19854 19855 #define A_NCSI_MACB_RX_UNDERSIZE_FRAME 0x1a180 19856 19857 #define S_RXUNDERSIZEFR 0 19858 #define M_RXUNDERSIZEFR 0xffU 19859 #define V_RXUNDERSIZEFR(x) ((x) << S_RXUNDERSIZEFR) 19860 #define G_RXUNDERSIZEFR(x) (((x) >> S_RXUNDERSIZEFR) & M_RXUNDERSIZEFR) 19861 19862 #define A_NCSI_MACB_SQE_TEST_ERR 0x1a184 19863 19864 #define S_SQETESTERR 0 19865 #define M_SQETESTERR 0xffU 19866 #define V_SQETESTERR(x) ((x) << S_SQETESTERR) 19867 #define G_SQETESTERR(x) (((x) >> S_SQETESTERR) & M_SQETESTERR) 19868 19869 #define A_NCSI_MACB_LENGTH_ERR 0x1a188 19870 19871 #define S_LENGTHERR 0 19872 #define M_LENGTHERR 0xffU 19873 #define V_LENGTHERR(x) ((x) << S_LENGTHERR) 19874 #define G_LENGTHERR(x) (((x) >> S_LENGTHERR) & M_LENGTHERR) 19875 19876 #define A_NCSI_MACB_TX_PAUSE_FRAMES 0x1a18c 19877 19878 #define S_TXPAUSEFRAMES 0 19879 #define M_TXPAUSEFRAMES 0xffffU 19880 #define V_TXPAUSEFRAMES(x) ((x) << S_TXPAUSEFRAMES) 19881 #define G_TXPAUSEFRAMES(x) (((x) >> S_TXPAUSEFRAMES) & M_TXPAUSEFRAMES) 19882 19883 #define A_NCSI_MACB_HASH_LOW 0x1a190 19884 #define A_NCSI_MACB_HASH_HIGH 0x1a194 19885 #define A_NCSI_MACB_SPECIFIC_1_LOW 0x1a198 19886 #define A_NCSI_MACB_SPECIFIC_1_HIGH 0x1a19c 19887 19888 #define S_MATCHHIGH 0 19889 #define M_MATCHHIGH 0xffffU 19890 #define V_MATCHHIGH(x) ((x) << S_MATCHHIGH) 19891 #define G_MATCHHIGH(x) (((x) >> S_MATCHHIGH) & M_MATCHHIGH) 19892 19893 #define A_NCSI_MACB_SPECIFIC_2_LOW 0x1a1a0 19894 #define A_NCSI_MACB_SPECIFIC_2_HIGH 0x1a1a4 19895 #define A_NCSI_MACB_SPECIFIC_3_LOW 0x1a1a8 19896 #define A_NCSI_MACB_SPECIFIC_3_HIGH 0x1a1ac 19897 #define A_NCSI_MACB_SPECIFIC_4_LOW 0x1a1b0 19898 #define A_NCSI_MACB_SPECIFIC_4_HIGH 0x1a1b4 19899 #define A_NCSI_MACB_TYPE_ID 0x1a1b8 19900 19901 #define S_TYPEID 0 19902 #define M_TYPEID 0xffffU 19903 #define V_TYPEID(x) ((x) << S_TYPEID) 19904 #define G_TYPEID(x) (((x) >> S_TYPEID) & M_TYPEID) 19905 19906 #define A_NCSI_MACB_TX_PAUSE_QUANTUM 0x1a1bc 19907 19908 #define S_TXPAUSEQUANTUM 0 19909 #define M_TXPAUSEQUANTUM 0xffffU 19910 #define V_TXPAUSEQUANTUM(x) ((x) << S_TXPAUSEQUANTUM) 19911 #define G_TXPAUSEQUANTUM(x) (((x) >> S_TXPAUSEQUANTUM) & M_TXPAUSEQUANTUM) 19912 19913 #define A_NCSI_MACB_USER_IO 0x1a1c0 19914 19915 #define S_USERPROGINPUT 16 19916 #define M_USERPROGINPUT 0xffffU 19917 #define V_USERPROGINPUT(x) ((x) << S_USERPROGINPUT) 19918 #define G_USERPROGINPUT(x) (((x) >> S_USERPROGINPUT) & M_USERPROGINPUT) 19919 19920 #define S_USERPROGOUTPUT 0 19921 #define M_USERPROGOUTPUT 0xffffU 19922 #define V_USERPROGOUTPUT(x) ((x) << S_USERPROGOUTPUT) 19923 #define G_USERPROGOUTPUT(x) (((x) >> S_USERPROGOUTPUT) & M_USERPROGOUTPUT) 19924 19925 #define A_NCSI_MACB_WOL_CFG 0x1a1c4 19926 19927 #define S_MCHASHEN 19 19928 #define V_MCHASHEN(x) ((x) << S_MCHASHEN) 19929 #define F_MCHASHEN V_MCHASHEN(1U) 19930 19931 #define S_SPECIFIC1EN 18 19932 #define V_SPECIFIC1EN(x) ((x) << S_SPECIFIC1EN) 19933 #define F_SPECIFIC1EN V_SPECIFIC1EN(1U) 19934 19935 #define S_ARPEN 17 19936 #define V_ARPEN(x) ((x) << S_ARPEN) 19937 #define F_ARPEN V_ARPEN(1U) 19938 19939 #define S_MAGICPKTEN 16 19940 #define V_MAGICPKTEN(x) ((x) << S_MAGICPKTEN) 19941 #define F_MAGICPKTEN V_MAGICPKTEN(1U) 19942 19943 #define S_ARPIPADDR 0 19944 #define M_ARPIPADDR 0xffffU 19945 #define V_ARPIPADDR(x) ((x) << S_ARPIPADDR) 19946 #define G_ARPIPADDR(x) (((x) >> S_ARPIPADDR) & M_ARPIPADDR) 19947 19948 #define A_NCSI_MACB_REV_STATUS 0x1a1fc 19949 19950 #define S_PARTREF 16 19951 #define M_PARTREF 0xffffU 19952 #define V_PARTREF(x) ((x) << S_PARTREF) 19953 #define G_PARTREF(x) (((x) >> S_PARTREF) & M_PARTREF) 19954 19955 #define S_DESREV 0 19956 #define M_DESREV 0xffffU 19957 #define V_DESREV(x) ((x) << S_DESREV) 19958 #define G_DESREV(x) (((x) >> S_DESREV) & M_DESREV) 19959 19960 /* registers for module XGMAC */ 19961 #define XGMAC_BASE_ADDR 0x0 19962 19963 #define A_XGMAC_PORT_CFG 0x1000 19964 19965 #define S_XGMII_CLK_SEL 29 19966 #define M_XGMII_CLK_SEL 0x7U 19967 #define V_XGMII_CLK_SEL(x) ((x) << S_XGMII_CLK_SEL) 19968 #define G_XGMII_CLK_SEL(x) (((x) >> S_XGMII_CLK_SEL) & M_XGMII_CLK_SEL) 19969 19970 #define S_SINKTX 27 19971 #define V_SINKTX(x) ((x) << S_SINKTX) 19972 #define F_SINKTX V_SINKTX(1U) 19973 19974 #define S_SINKTXONLINKDOWN 26 19975 #define V_SINKTXONLINKDOWN(x) ((x) << S_SINKTXONLINKDOWN) 19976 #define F_SINKTXONLINKDOWN V_SINKTXONLINKDOWN(1U) 19977 19978 #define S_XG2G_SPEED_MODE 25 19979 #define V_XG2G_SPEED_MODE(x) ((x) << S_XG2G_SPEED_MODE) 19980 #define F_XG2G_SPEED_MODE V_XG2G_SPEED_MODE(1U) 19981 19982 #define S_LOOPNOFWD 24 19983 #define V_LOOPNOFWD(x) ((x) << S_LOOPNOFWD) 19984 #define F_LOOPNOFWD V_LOOPNOFWD(1U) 19985 19986 #define S_XGM_TX_PAUSE_SIZE 23 19987 #define V_XGM_TX_PAUSE_SIZE(x) ((x) << S_XGM_TX_PAUSE_SIZE) 19988 #define F_XGM_TX_PAUSE_SIZE V_XGM_TX_PAUSE_SIZE(1U) 19989 19990 #define S_XGM_TX_PAUSE_FRAME 22 19991 #define V_XGM_TX_PAUSE_FRAME(x) ((x) << S_XGM_TX_PAUSE_FRAME) 19992 #define F_XGM_TX_PAUSE_FRAME V_XGM_TX_PAUSE_FRAME(1U) 19993 19994 #define S_XGM_TX_DISABLE_PRE 21 19995 #define V_XGM_TX_DISABLE_PRE(x) ((x) << S_XGM_TX_DISABLE_PRE) 19996 #define F_XGM_TX_DISABLE_PRE V_XGM_TX_DISABLE_PRE(1U) 19997 19998 #define S_XGM_TX_DISABLE_CRC 20 19999 #define V_XGM_TX_DISABLE_CRC(x) ((x) << S_XGM_TX_DISABLE_CRC) 20000 #define F_XGM_TX_DISABLE_CRC V_XGM_TX_DISABLE_CRC(1U) 20001 20002 #define S_SMUX_RX_LOOP 19 20003 #define V_SMUX_RX_LOOP(x) ((x) << S_SMUX_RX_LOOP) 20004 #define F_SMUX_RX_LOOP V_SMUX_RX_LOOP(1U) 20005 20006 #define S_RX_LANE_SWAP 18 20007 #define V_RX_LANE_SWAP(x) ((x) << S_RX_LANE_SWAP) 20008 #define F_RX_LANE_SWAP V_RX_LANE_SWAP(1U) 20009 20010 #define S_TX_LANE_SWAP 17 20011 #define V_TX_LANE_SWAP(x) ((x) << S_TX_LANE_SWAP) 20012 #define F_TX_LANE_SWAP V_TX_LANE_SWAP(1U) 20013 20014 #define S_SIGNAL_DET 14 20015 #define V_SIGNAL_DET(x) ((x) << S_SIGNAL_DET) 20016 #define F_SIGNAL_DET V_SIGNAL_DET(1U) 20017 20018 #define S_PMUX_RX_LOOP 13 20019 #define V_PMUX_RX_LOOP(x) ((x) << S_PMUX_RX_LOOP) 20020 #define F_PMUX_RX_LOOP V_PMUX_RX_LOOP(1U) 20021 20022 #define S_PMUX_TX_LOOP 12 20023 #define V_PMUX_TX_LOOP(x) ((x) << S_PMUX_TX_LOOP) 20024 #define F_PMUX_TX_LOOP V_PMUX_TX_LOOP(1U) 20025 20026 #define S_XGM_RX_SEL 10 20027 #define M_XGM_RX_SEL 0x3U 20028 #define V_XGM_RX_SEL(x) ((x) << S_XGM_RX_SEL) 20029 #define G_XGM_RX_SEL(x) (((x) >> S_XGM_RX_SEL) & M_XGM_RX_SEL) 20030 20031 #define S_PCS_TX_SEL 8 20032 #define M_PCS_TX_SEL 0x3U 20033 #define V_PCS_TX_SEL(x) ((x) << S_PCS_TX_SEL) 20034 #define G_PCS_TX_SEL(x) (((x) >> S_PCS_TX_SEL) & M_PCS_TX_SEL) 20035 20036 #define S_XAUI20_REM_PRE 5 20037 #define V_XAUI20_REM_PRE(x) ((x) << S_XAUI20_REM_PRE) 20038 #define F_XAUI20_REM_PRE V_XAUI20_REM_PRE(1U) 20039 20040 #define S_XAUI20_XGMII_SEL 4 20041 #define V_XAUI20_XGMII_SEL(x) ((x) << S_XAUI20_XGMII_SEL) 20042 #define F_XAUI20_XGMII_SEL V_XAUI20_XGMII_SEL(1U) 20043 20044 #define S_PORT_SEL 0 20045 #define V_PORT_SEL(x) ((x) << S_PORT_SEL) 20046 #define F_PORT_SEL V_PORT_SEL(1U) 20047 20048 #define A_XGMAC_PORT_RESET_CTRL 0x1004 20049 20050 #define S_AUXEXT_RESET 10 20051 #define V_AUXEXT_RESET(x) ((x) << S_AUXEXT_RESET) 20052 #define F_AUXEXT_RESET V_AUXEXT_RESET(1U) 20053 20054 #define S_TXFIFO_RESET 9 20055 #define V_TXFIFO_RESET(x) ((x) << S_TXFIFO_RESET) 20056 #define F_TXFIFO_RESET V_TXFIFO_RESET(1U) 20057 20058 #define S_RXFIFO_RESET 8 20059 #define V_RXFIFO_RESET(x) ((x) << S_RXFIFO_RESET) 20060 #define F_RXFIFO_RESET V_RXFIFO_RESET(1U) 20061 20062 #define S_BEAN_RESET 7 20063 #define V_BEAN_RESET(x) ((x) << S_BEAN_RESET) 20064 #define F_BEAN_RESET V_BEAN_RESET(1U) 20065 20066 #define S_XAUI_RESET 6 20067 #define V_XAUI_RESET(x) ((x) << S_XAUI_RESET) 20068 #define F_XAUI_RESET V_XAUI_RESET(1U) 20069 20070 #define S_AE_RESET 5 20071 #define V_AE_RESET(x) ((x) << S_AE_RESET) 20072 #define F_AE_RESET V_AE_RESET(1U) 20073 20074 #define S_XGM_RESET 4 20075 #define V_XGM_RESET(x) ((x) << S_XGM_RESET) 20076 #define F_XGM_RESET V_XGM_RESET(1U) 20077 20078 #define S_XG2G_RESET 3 20079 #define V_XG2G_RESET(x) ((x) << S_XG2G_RESET) 20080 #define F_XG2G_RESET V_XG2G_RESET(1U) 20081 20082 #define S_WOL_RESET 2 20083 #define V_WOL_RESET(x) ((x) << S_WOL_RESET) 20084 #define F_WOL_RESET V_WOL_RESET(1U) 20085 20086 #define S_XFI_PCS_RESET 1 20087 #define V_XFI_PCS_RESET(x) ((x) << S_XFI_PCS_RESET) 20088 #define F_XFI_PCS_RESET V_XFI_PCS_RESET(1U) 20089 20090 #define S_HSS_RESET 0 20091 #define V_HSS_RESET(x) ((x) << S_HSS_RESET) 20092 #define F_HSS_RESET V_HSS_RESET(1U) 20093 20094 #define A_XGMAC_PORT_LED_CFG 0x1008 20095 20096 #define S_LED1_CFG 5 20097 #define M_LED1_CFG 0x7U 20098 #define V_LED1_CFG(x) ((x) << S_LED1_CFG) 20099 #define G_LED1_CFG(x) (((x) >> S_LED1_CFG) & M_LED1_CFG) 20100 20101 #define S_LED1_POLARITY_INV 4 20102 #define V_LED1_POLARITY_INV(x) ((x) << S_LED1_POLARITY_INV) 20103 #define F_LED1_POLARITY_INV V_LED1_POLARITY_INV(1U) 20104 20105 #define S_LED0_CFG 1 20106 #define M_LED0_CFG 0x7U 20107 #define V_LED0_CFG(x) ((x) << S_LED0_CFG) 20108 #define G_LED0_CFG(x) (((x) >> S_LED0_CFG) & M_LED0_CFG) 20109 20110 #define S_LED0_POLARITY_INV 0 20111 #define V_LED0_POLARITY_INV(x) ((x) << S_LED0_POLARITY_INV) 20112 #define F_LED0_POLARITY_INV V_LED0_POLARITY_INV(1U) 20113 20114 #define A_XGMAC_PORT_LED_COUNTHI 0x100c 20115 20116 #define S_LED_COUNT_HI 0 20117 #define M_LED_COUNT_HI 0x1ffffffU 20118 #define V_LED_COUNT_HI(x) ((x) << S_LED_COUNT_HI) 20119 #define G_LED_COUNT_HI(x) (((x) >> S_LED_COUNT_HI) & M_LED_COUNT_HI) 20120 20121 #define A_XGMAC_PORT_LED_COUNTLO 0x1010 20122 20123 #define S_LED_COUNT_LO 0 20124 #define M_LED_COUNT_LO 0x1ffffffU 20125 #define V_LED_COUNT_LO(x) ((x) << S_LED_COUNT_LO) 20126 #define G_LED_COUNT_LO(x) (((x) >> S_LED_COUNT_LO) & M_LED_COUNT_LO) 20127 20128 #define A_XGMAC_PORT_DEBUG_CFG 0x1014 20129 20130 #define S_TESTCLK_SEL 0 20131 #define M_TESTCLK_SEL 0xfU 20132 #define V_TESTCLK_SEL(x) ((x) << S_TESTCLK_SEL) 20133 #define G_TESTCLK_SEL(x) (((x) >> S_TESTCLK_SEL) & M_TESTCLK_SEL) 20134 20135 #define A_XGMAC_PORT_CFG2 0x1018 20136 20137 #define S_RX_POLARITY_INV 28 20138 #define M_RX_POLARITY_INV 0xfU 20139 #define V_RX_POLARITY_INV(x) ((x) << S_RX_POLARITY_INV) 20140 #define G_RX_POLARITY_INV(x) (((x) >> S_RX_POLARITY_INV) & M_RX_POLARITY_INV) 20141 20142 #define S_TX_POLARITY_INV 24 20143 #define M_TX_POLARITY_INV 0xfU 20144 #define V_TX_POLARITY_INV(x) ((x) << S_TX_POLARITY_INV) 20145 #define G_TX_POLARITY_INV(x) (((x) >> S_TX_POLARITY_INV) & M_TX_POLARITY_INV) 20146 20147 #define S_INSTANCENUM 22 20148 #define M_INSTANCENUM 0x3U 20149 #define V_INSTANCENUM(x) ((x) << S_INSTANCENUM) 20150 #define G_INSTANCENUM(x) (((x) >> S_INSTANCENUM) & M_INSTANCENUM) 20151 20152 #define S_STOPONPERR 21 20153 #define V_STOPONPERR(x) ((x) << S_STOPONPERR) 20154 #define F_STOPONPERR V_STOPONPERR(1U) 20155 20156 #define S_MACTXEN 20 20157 #define V_MACTXEN(x) ((x) << S_MACTXEN) 20158 #define F_MACTXEN V_MACTXEN(1U) 20159 20160 #define S_MACRXEN 19 20161 #define V_MACRXEN(x) ((x) << S_MACRXEN) 20162 #define F_MACRXEN V_MACRXEN(1U) 20163 20164 #define S_PATEN 18 20165 #define V_PATEN(x) ((x) << S_PATEN) 20166 #define F_PATEN V_PATEN(1U) 20167 20168 #define S_MAGICEN 17 20169 #define V_MAGICEN(x) ((x) << S_MAGICEN) 20170 #define F_MAGICEN V_MAGICEN(1U) 20171 20172 #define S_TX_IPG 4 20173 #define M_TX_IPG 0x1fffU 20174 #define V_TX_IPG(x) ((x) << S_TX_IPG) 20175 #define G_TX_IPG(x) (((x) >> S_TX_IPG) & M_TX_IPG) 20176 20177 #define S_AEC_PMA_TX_READY 1 20178 #define V_AEC_PMA_TX_READY(x) ((x) << S_AEC_PMA_TX_READY) 20179 #define F_AEC_PMA_TX_READY V_AEC_PMA_TX_READY(1U) 20180 20181 #define S_AEC_PMA_RX_READY 0 20182 #define V_AEC_PMA_RX_READY(x) ((x) << S_AEC_PMA_RX_READY) 20183 #define F_AEC_PMA_RX_READY V_AEC_PMA_RX_READY(1U) 20184 20185 #define A_XGMAC_PORT_PKT_COUNT 0x101c 20186 20187 #define S_TX_SOP_COUNT 24 20188 #define M_TX_SOP_COUNT 0xffU 20189 #define V_TX_SOP_COUNT(x) ((x) << S_TX_SOP_COUNT) 20190 #define G_TX_SOP_COUNT(x) (((x) >> S_TX_SOP_COUNT) & M_TX_SOP_COUNT) 20191 20192 #define S_TX_EOP_COUNT 16 20193 #define M_TX_EOP_COUNT 0xffU 20194 #define V_TX_EOP_COUNT(x) ((x) << S_TX_EOP_COUNT) 20195 #define G_TX_EOP_COUNT(x) (((x) >> S_TX_EOP_COUNT) & M_TX_EOP_COUNT) 20196 20197 #define S_RX_SOP_COUNT 8 20198 #define M_RX_SOP_COUNT 0xffU 20199 #define V_RX_SOP_COUNT(x) ((x) << S_RX_SOP_COUNT) 20200 #define G_RX_SOP_COUNT(x) (((x) >> S_RX_SOP_COUNT) & M_RX_SOP_COUNT) 20201 20202 #define S_RX_EOP_COUNT 0 20203 #define M_RX_EOP_COUNT 0xffU 20204 #define V_RX_EOP_COUNT(x) ((x) << S_RX_EOP_COUNT) 20205 #define G_RX_EOP_COUNT(x) (((x) >> S_RX_EOP_COUNT) & M_RX_EOP_COUNT) 20206 20207 #define A_XGMAC_PORT_PERR_INJECT 0x1020 20208 20209 #define S_XGMMEMSEL 1 20210 #define V_XGMMEMSEL(x) ((x) << S_XGMMEMSEL) 20211 #define F_XGMMEMSEL V_XGMMEMSEL(1U) 20212 20213 #define A_XGMAC_PORT_MAGIC_MACID_LO 0x1024 20214 #define A_XGMAC_PORT_MAGIC_MACID_HI 0x1028 20215 20216 #define S_MAC_WOL_DA 0 20217 #define M_MAC_WOL_DA 0xffffU 20218 #define V_MAC_WOL_DA(x) ((x) << S_MAC_WOL_DA) 20219 #define G_MAC_WOL_DA(x) (((x) >> S_MAC_WOL_DA) & M_MAC_WOL_DA) 20220 20221 #define A_XGMAC_PORT_BUILD_REVISION 0x102c 20222 #define A_XGMAC_PORT_XGMII_SE_COUNT 0x1030 20223 20224 #define S_TXSOP 24 20225 #define M_TXSOP 0xffU 20226 #define V_TXSOP(x) ((x) << S_TXSOP) 20227 #define G_TXSOP(x) (((x) >> S_TXSOP) & M_TXSOP) 20228 20229 #define S_TXEOP 16 20230 #define M_TXEOP 0xffU 20231 #define V_TXEOP(x) ((x) << S_TXEOP) 20232 #define G_TXEOP(x) (((x) >> S_TXEOP) & M_TXEOP) 20233 20234 #define S_RXSOP 8 20235 #define M_RXSOP 0xffU 20236 #define V_RXSOP(x) ((x) << S_RXSOP) 20237 #define G_RXSOP(x) (((x) >> S_RXSOP) & M_RXSOP) 20238 20239 #define A_XGMAC_PORT_LINK_STATUS 0x1034 20240 20241 #define S_REMFLT 3 20242 #define V_REMFLT(x) ((x) << S_REMFLT) 20243 #define F_REMFLT V_REMFLT(1U) 20244 20245 #define S_LOCFLT 2 20246 #define V_LOCFLT(x) ((x) << S_LOCFLT) 20247 #define F_LOCFLT V_LOCFLT(1U) 20248 20249 #define S_LINKUP 1 20250 #define V_LINKUP(x) ((x) << S_LINKUP) 20251 #define F_LINKUP V_LINKUP(1U) 20252 20253 #define S_LINKDN 0 20254 #define V_LINKDN(x) ((x) << S_LINKDN) 20255 #define F_LINKDN V_LINKDN(1U) 20256 20257 #define A_XGMAC_PORT_CHECKIN 0x1038 20258 20259 #define S_PREAMBLE 1 20260 #define V_PREAMBLE(x) ((x) << S_PREAMBLE) 20261 #define F_PREAMBLE V_PREAMBLE(1U) 20262 20263 #define S_CHECKIN 0 20264 #define V_CHECKIN(x) ((x) << S_CHECKIN) 20265 #define F_CHECKIN V_CHECKIN(1U) 20266 20267 #define A_XGMAC_PORT_FAULT_TEST 0x103c 20268 20269 #define S_FLTTYPE 1 20270 #define V_FLTTYPE(x) ((x) << S_FLTTYPE) 20271 #define F_FLTTYPE V_FLTTYPE(1U) 20272 20273 #define S_FLTCTRL 0 20274 #define V_FLTCTRL(x) ((x) << S_FLTCTRL) 20275 #define F_FLTCTRL V_FLTCTRL(1U) 20276 20277 #define A_XGMAC_PORT_SPARE 0x1040 20278 #define A_XGMAC_PORT_HSS_SIGDET_STATUS 0x1044 20279 20280 #define S_SIGNALDETECT 0 20281 #define M_SIGNALDETECT 0xfU 20282 #define V_SIGNALDETECT(x) ((x) << S_SIGNALDETECT) 20283 #define G_SIGNALDETECT(x) (((x) >> S_SIGNALDETECT) & M_SIGNALDETECT) 20284 20285 #define A_XGMAC_PORT_EXT_LOS_STATUS 0x1048 20286 #define A_XGMAC_PORT_EXT_LOS_CTRL 0x104c 20287 20288 #define S_CTRL 0 20289 #define M_CTRL 0xfU 20290 #define V_CTRL(x) ((x) << S_CTRL) 20291 #define G_CTRL(x) (((x) >> S_CTRL) & M_CTRL) 20292 20293 #define A_XGMAC_PORT_FPGA_PAUSE_CTL 0x1050 20294 20295 #define S_CTL 31 20296 #define V_CTL(x) ((x) << S_CTL) 20297 #define F_CTL V_CTL(1U) 20298 20299 #define S_HWM 13 20300 #define M_HWM 0x1fffU 20301 #define V_HWM(x) ((x) << S_HWM) 20302 #define G_HWM(x) (((x) >> S_HWM) & M_HWM) 20303 20304 #define S_LWM 0 20305 #define M_LWM 0x1fffU 20306 #define V_LWM(x) ((x) << S_LWM) 20307 #define G_LWM(x) (((x) >> S_LWM) & M_LWM) 20308 20309 #define A_XGMAC_PORT_FPGA_ERRPKT_CNT 0x1054 20310 #define A_XGMAC_PORT_LA_TX_0 0x1058 20311 #define A_XGMAC_PORT_LA_RX_0 0x105c 20312 #define A_XGMAC_PORT_FPGA_LA_CTL 0x1060 20313 20314 #define S_RXRST 5 20315 #define V_RXRST(x) ((x) << S_RXRST) 20316 #define F_RXRST V_RXRST(1U) 20317 20318 #define S_TXRST 4 20319 #define V_TXRST(x) ((x) << S_TXRST) 20320 #define F_TXRST V_TXRST(1U) 20321 20322 #define S_XGMII 3 20323 #define V_XGMII(x) ((x) << S_XGMII) 20324 #define F_XGMII V_XGMII(1U) 20325 20326 #define S_LAPAUSE 2 20327 #define V_LAPAUSE(x) ((x) << S_LAPAUSE) 20328 #define F_LAPAUSE V_LAPAUSE(1U) 20329 20330 #define S_STOPERR 1 20331 #define V_STOPERR(x) ((x) << S_STOPERR) 20332 #define F_STOPERR V_STOPERR(1U) 20333 20334 #define S_LASTOP 0 20335 #define V_LASTOP(x) ((x) << S_LASTOP) 20336 #define F_LASTOP V_LASTOP(1U) 20337 20338 #define A_XGMAC_PORT_EPIO_DATA0 0x10c0 20339 #define A_XGMAC_PORT_EPIO_DATA1 0x10c4 20340 #define A_XGMAC_PORT_EPIO_DATA2 0x10c8 20341 #define A_XGMAC_PORT_EPIO_DATA3 0x10cc 20342 #define A_XGMAC_PORT_EPIO_OP 0x10d0 20343 20344 #define S_EPIOWR 8 20345 #define V_EPIOWR(x) ((x) << S_EPIOWR) 20346 #define F_EPIOWR V_EPIOWR(1U) 20347 20348 #define S_ADDRESS 0 20349 #define M_ADDRESS 0xffU 20350 #define V_ADDRESS(x) ((x) << S_ADDRESS) 20351 #define G_ADDRESS(x) (((x) >> S_ADDRESS) & M_ADDRESS) 20352 20353 #define A_XGMAC_PORT_WOL_STATUS 0x10d4 20354 20355 #define S_MAGICDETECTED 31 20356 #define V_MAGICDETECTED(x) ((x) << S_MAGICDETECTED) 20357 #define F_MAGICDETECTED V_MAGICDETECTED(1U) 20358 20359 #define S_PATDETECTED 30 20360 #define V_PATDETECTED(x) ((x) << S_PATDETECTED) 20361 #define F_PATDETECTED V_PATDETECTED(1U) 20362 20363 #define S_CLEARMAGIC 4 20364 #define V_CLEARMAGIC(x) ((x) << S_CLEARMAGIC) 20365 #define F_CLEARMAGIC V_CLEARMAGIC(1U) 20366 20367 #define S_CLEARMATCH 3 20368 #define V_CLEARMATCH(x) ((x) << S_CLEARMATCH) 20369 #define F_CLEARMATCH V_CLEARMATCH(1U) 20370 20371 #define S_MATCHEDFILTER 0 20372 #define M_MATCHEDFILTER 0x7U 20373 #define V_MATCHEDFILTER(x) ((x) << S_MATCHEDFILTER) 20374 #define G_MATCHEDFILTER(x) (((x) >> S_MATCHEDFILTER) & M_MATCHEDFILTER) 20375 20376 #define A_XGMAC_PORT_INT_EN 0x10d8 20377 20378 #define S_EXT_LOS 28 20379 #define V_EXT_LOS(x) ((x) << S_EXT_LOS) 20380 #define F_EXT_LOS V_EXT_LOS(1U) 20381 20382 #define S_INCMPTBL_LINK 27 20383 #define V_INCMPTBL_LINK(x) ((x) << S_INCMPTBL_LINK) 20384 #define F_INCMPTBL_LINK V_INCMPTBL_LINK(1U) 20385 20386 #define S_PATDETWAKE 26 20387 #define V_PATDETWAKE(x) ((x) << S_PATDETWAKE) 20388 #define F_PATDETWAKE V_PATDETWAKE(1U) 20389 20390 #define S_MAGICWAKE 25 20391 #define V_MAGICWAKE(x) ((x) << S_MAGICWAKE) 20392 #define F_MAGICWAKE V_MAGICWAKE(1U) 20393 20394 #define S_SIGDETCHG 24 20395 #define V_SIGDETCHG(x) ((x) << S_SIGDETCHG) 20396 #define F_SIGDETCHG V_SIGDETCHG(1U) 20397 20398 #define S_PCSR_FEC_CORR 23 20399 #define V_PCSR_FEC_CORR(x) ((x) << S_PCSR_FEC_CORR) 20400 #define F_PCSR_FEC_CORR V_PCSR_FEC_CORR(1U) 20401 20402 #define S_AE_TRAIN_LOCAL 22 20403 #define V_AE_TRAIN_LOCAL(x) ((x) << S_AE_TRAIN_LOCAL) 20404 #define F_AE_TRAIN_LOCAL V_AE_TRAIN_LOCAL(1U) 20405 20406 #define S_HSSPLL_LOCK 21 20407 #define V_HSSPLL_LOCK(x) ((x) << S_HSSPLL_LOCK) 20408 #define F_HSSPLL_LOCK V_HSSPLL_LOCK(1U) 20409 20410 #define S_HSSPRT_READY 20 20411 #define V_HSSPRT_READY(x) ((x) << S_HSSPRT_READY) 20412 #define F_HSSPRT_READY V_HSSPRT_READY(1U) 20413 20414 #define S_AUTONEG_DONE 19 20415 #define V_AUTONEG_DONE(x) ((x) << S_AUTONEG_DONE) 20416 #define F_AUTONEG_DONE V_AUTONEG_DONE(1U) 20417 20418 #define S_PCSR_HI_BER 18 20419 #define V_PCSR_HI_BER(x) ((x) << S_PCSR_HI_BER) 20420 #define F_PCSR_HI_BER V_PCSR_HI_BER(1U) 20421 20422 #define S_PCSR_FEC_ERROR 17 20423 #define V_PCSR_FEC_ERROR(x) ((x) << S_PCSR_FEC_ERROR) 20424 #define F_PCSR_FEC_ERROR V_PCSR_FEC_ERROR(1U) 20425 20426 #define S_PCSR_LINK_FAIL 16 20427 #define V_PCSR_LINK_FAIL(x) ((x) << S_PCSR_LINK_FAIL) 20428 #define F_PCSR_LINK_FAIL V_PCSR_LINK_FAIL(1U) 20429 20430 #define S_XAUI_DEC_ERROR 15 20431 #define V_XAUI_DEC_ERROR(x) ((x) << S_XAUI_DEC_ERROR) 20432 #define F_XAUI_DEC_ERROR V_XAUI_DEC_ERROR(1U) 20433 20434 #define S_XAUI_LINK_FAIL 14 20435 #define V_XAUI_LINK_FAIL(x) ((x) << S_XAUI_LINK_FAIL) 20436 #define F_XAUI_LINK_FAIL V_XAUI_LINK_FAIL(1U) 20437 20438 #define S_PCS_CTC_ERROR 13 20439 #define V_PCS_CTC_ERROR(x) ((x) << S_PCS_CTC_ERROR) 20440 #define F_PCS_CTC_ERROR V_PCS_CTC_ERROR(1U) 20441 20442 #define S_PCS_LINK_GOOD 12 20443 #define V_PCS_LINK_GOOD(x) ((x) << S_PCS_LINK_GOOD) 20444 #define F_PCS_LINK_GOOD V_PCS_LINK_GOOD(1U) 20445 20446 #define S_PCS_LINK_FAIL 11 20447 #define V_PCS_LINK_FAIL(x) ((x) << S_PCS_LINK_FAIL) 20448 #define F_PCS_LINK_FAIL V_PCS_LINK_FAIL(1U) 20449 20450 #define S_RXFIFOOVERFLOW 10 20451 #define V_RXFIFOOVERFLOW(x) ((x) << S_RXFIFOOVERFLOW) 20452 #define F_RXFIFOOVERFLOW V_RXFIFOOVERFLOW(1U) 20453 20454 #define S_HSSPRBSERR 9 20455 #define V_HSSPRBSERR(x) ((x) << S_HSSPRBSERR) 20456 #define F_HSSPRBSERR V_HSSPRBSERR(1U) 20457 20458 #define S_HSSEYEQUAL 8 20459 #define V_HSSEYEQUAL(x) ((x) << S_HSSEYEQUAL) 20460 #define F_HSSEYEQUAL V_HSSEYEQUAL(1U) 20461 20462 #define S_REMOTEFAULT 7 20463 #define V_REMOTEFAULT(x) ((x) << S_REMOTEFAULT) 20464 #define F_REMOTEFAULT V_REMOTEFAULT(1U) 20465 20466 #define S_LOCALFAULT 6 20467 #define V_LOCALFAULT(x) ((x) << S_LOCALFAULT) 20468 #define F_LOCALFAULT V_LOCALFAULT(1U) 20469 20470 #define S_MAC_LINK_DOWN 5 20471 #define V_MAC_LINK_DOWN(x) ((x) << S_MAC_LINK_DOWN) 20472 #define F_MAC_LINK_DOWN V_MAC_LINK_DOWN(1U) 20473 20474 #define S_MAC_LINK_UP 4 20475 #define V_MAC_LINK_UP(x) ((x) << S_MAC_LINK_UP) 20476 #define F_MAC_LINK_UP V_MAC_LINK_UP(1U) 20477 20478 #define S_BEAN_INT 3 20479 #define V_BEAN_INT(x) ((x) << S_BEAN_INT) 20480 #define F_BEAN_INT V_BEAN_INT(1U) 20481 20482 #define S_XGM_INT 2 20483 #define V_XGM_INT(x) ((x) << S_XGM_INT) 20484 #define F_XGM_INT V_XGM_INT(1U) 20485 20486 #define A_XGMAC_PORT_INT_CAUSE 0x10dc 20487 #define A_XGMAC_PORT_HSS_CFG0 0x10e0 20488 20489 #define S_TXDTS 31 20490 #define V_TXDTS(x) ((x) << S_TXDTS) 20491 #define F_TXDTS V_TXDTS(1U) 20492 20493 #define S_TXCTS 30 20494 #define V_TXCTS(x) ((x) << S_TXCTS) 20495 #define F_TXCTS V_TXCTS(1U) 20496 20497 #define S_TXBTS 29 20498 #define V_TXBTS(x) ((x) << S_TXBTS) 20499 #define F_TXBTS V_TXBTS(1U) 20500 20501 #define S_TXATS 28 20502 #define V_TXATS(x) ((x) << S_TXATS) 20503 #define F_TXATS V_TXATS(1U) 20504 20505 #define S_TXDOBS 27 20506 #define V_TXDOBS(x) ((x) << S_TXDOBS) 20507 #define F_TXDOBS V_TXDOBS(1U) 20508 20509 #define S_TXCOBS 26 20510 #define V_TXCOBS(x) ((x) << S_TXCOBS) 20511 #define F_TXCOBS V_TXCOBS(1U) 20512 20513 #define S_TXBOBS 25 20514 #define V_TXBOBS(x) ((x) << S_TXBOBS) 20515 #define F_TXBOBS V_TXBOBS(1U) 20516 20517 #define S_TXAOBS 24 20518 #define V_TXAOBS(x) ((x) << S_TXAOBS) 20519 #define F_TXAOBS V_TXAOBS(1U) 20520 20521 #define S_HSSREFCLKSEL 20 20522 #define V_HSSREFCLKSEL(x) ((x) << S_HSSREFCLKSEL) 20523 #define F_HSSREFCLKSEL V_HSSREFCLKSEL(1U) 20524 20525 #define S_HSSAVDHI 17 20526 #define V_HSSAVDHI(x) ((x) << S_HSSAVDHI) 20527 #define F_HSSAVDHI V_HSSAVDHI(1U) 20528 20529 #define S_HSSRXTS 16 20530 #define V_HSSRXTS(x) ((x) << S_HSSRXTS) 20531 #define F_HSSRXTS V_HSSRXTS(1U) 20532 20533 #define S_HSSTXACMODE 15 20534 #define V_HSSTXACMODE(x) ((x) << S_HSSTXACMODE) 20535 #define F_HSSTXACMODE V_HSSTXACMODE(1U) 20536 20537 #define S_HSSRXACMODE 14 20538 #define V_HSSRXACMODE(x) ((x) << S_HSSRXACMODE) 20539 #define F_HSSRXACMODE V_HSSRXACMODE(1U) 20540 20541 #define S_HSSRESYNC 13 20542 #define V_HSSRESYNC(x) ((x) << S_HSSRESYNC) 20543 #define F_HSSRESYNC V_HSSRESYNC(1U) 20544 20545 #define S_HSSRECCAL 12 20546 #define V_HSSRECCAL(x) ((x) << S_HSSRECCAL) 20547 #define F_HSSRECCAL V_HSSRECCAL(1U) 20548 20549 #define S_HSSPDWNPLL 11 20550 #define V_HSSPDWNPLL(x) ((x) << S_HSSPDWNPLL) 20551 #define F_HSSPDWNPLL V_HSSPDWNPLL(1U) 20552 20553 #define S_HSSDIVSEL 9 20554 #define M_HSSDIVSEL 0x3U 20555 #define V_HSSDIVSEL(x) ((x) << S_HSSDIVSEL) 20556 #define G_HSSDIVSEL(x) (((x) >> S_HSSDIVSEL) & M_HSSDIVSEL) 20557 20558 #define S_HSSREFDIV 8 20559 #define V_HSSREFDIV(x) ((x) << S_HSSREFDIV) 20560 #define F_HSSREFDIV V_HSSREFDIV(1U) 20561 20562 #define S_HSSPLLBYP 7 20563 #define V_HSSPLLBYP(x) ((x) << S_HSSPLLBYP) 20564 #define F_HSSPLLBYP V_HSSPLLBYP(1U) 20565 20566 #define S_HSSLOFREQPLL 6 20567 #define V_HSSLOFREQPLL(x) ((x) << S_HSSLOFREQPLL) 20568 #define F_HSSLOFREQPLL V_HSSLOFREQPLL(1U) 20569 20570 #define S_HSSLOFREQ2PLL 5 20571 #define V_HSSLOFREQ2PLL(x) ((x) << S_HSSLOFREQ2PLL) 20572 #define F_HSSLOFREQ2PLL V_HSSLOFREQ2PLL(1U) 20573 20574 #define S_HSSEXTC16SEL 4 20575 #define V_HSSEXTC16SEL(x) ((x) << S_HSSEXTC16SEL) 20576 #define F_HSSEXTC16SEL V_HSSEXTC16SEL(1U) 20577 20578 #define S_HSSRSTCONFIG 1 20579 #define M_HSSRSTCONFIG 0x7U 20580 #define V_HSSRSTCONFIG(x) ((x) << S_HSSRSTCONFIG) 20581 #define G_HSSRSTCONFIG(x) (((x) >> S_HSSRSTCONFIG) & M_HSSRSTCONFIG) 20582 20583 #define S_HSSPRBSEN 0 20584 #define V_HSSPRBSEN(x) ((x) << S_HSSPRBSEN) 20585 #define F_HSSPRBSEN V_HSSPRBSEN(1U) 20586 20587 #define A_XGMAC_PORT_HSS_CFG1 0x10e4 20588 20589 #define S_RXDPRBSRST 28 20590 #define V_RXDPRBSRST(x) ((x) << S_RXDPRBSRST) 20591 #define F_RXDPRBSRST V_RXDPRBSRST(1U) 20592 20593 #define S_RXDPRBSEN 27 20594 #define V_RXDPRBSEN(x) ((x) << S_RXDPRBSEN) 20595 #define F_RXDPRBSEN V_RXDPRBSEN(1U) 20596 20597 #define S_RXDPRBSFRCERR 26 20598 #define V_RXDPRBSFRCERR(x) ((x) << S_RXDPRBSFRCERR) 20599 #define F_RXDPRBSFRCERR V_RXDPRBSFRCERR(1U) 20600 20601 #define S_TXDPRBSRST 25 20602 #define V_TXDPRBSRST(x) ((x) << S_TXDPRBSRST) 20603 #define F_TXDPRBSRST V_TXDPRBSRST(1U) 20604 20605 #define S_TXDPRBSEN 24 20606 #define V_TXDPRBSEN(x) ((x) << S_TXDPRBSEN) 20607 #define F_TXDPRBSEN V_TXDPRBSEN(1U) 20608 20609 #define S_RXCPRBSRST 20 20610 #define V_RXCPRBSRST(x) ((x) << S_RXCPRBSRST) 20611 #define F_RXCPRBSRST V_RXCPRBSRST(1U) 20612 20613 #define S_RXCPRBSEN 19 20614 #define V_RXCPRBSEN(x) ((x) << S_RXCPRBSEN) 20615 #define F_RXCPRBSEN V_RXCPRBSEN(1U) 20616 20617 #define S_RXCPRBSFRCERR 18 20618 #define V_RXCPRBSFRCERR(x) ((x) << S_RXCPRBSFRCERR) 20619 #define F_RXCPRBSFRCERR V_RXCPRBSFRCERR(1U) 20620 20621 #define S_TXCPRBSRST 17 20622 #define V_TXCPRBSRST(x) ((x) << S_TXCPRBSRST) 20623 #define F_TXCPRBSRST V_TXCPRBSRST(1U) 20624 20625 #define S_TXCPRBSEN 16 20626 #define V_TXCPRBSEN(x) ((x) << S_TXCPRBSEN) 20627 #define F_TXCPRBSEN V_TXCPRBSEN(1U) 20628 20629 #define S_RXBPRBSRST 12 20630 #define V_RXBPRBSRST(x) ((x) << S_RXBPRBSRST) 20631 #define F_RXBPRBSRST V_RXBPRBSRST(1U) 20632 20633 #define S_RXBPRBSEN 11 20634 #define V_RXBPRBSEN(x) ((x) << S_RXBPRBSEN) 20635 #define F_RXBPRBSEN V_RXBPRBSEN(1U) 20636 20637 #define S_RXBPRBSFRCERR 10 20638 #define V_RXBPRBSFRCERR(x) ((x) << S_RXBPRBSFRCERR) 20639 #define F_RXBPRBSFRCERR V_RXBPRBSFRCERR(1U) 20640 20641 #define S_TXBPRBSRST 9 20642 #define V_TXBPRBSRST(x) ((x) << S_TXBPRBSRST) 20643 #define F_TXBPRBSRST V_TXBPRBSRST(1U) 20644 20645 #define S_TXBPRBSEN 8 20646 #define V_TXBPRBSEN(x) ((x) << S_TXBPRBSEN) 20647 #define F_TXBPRBSEN V_TXBPRBSEN(1U) 20648 20649 #define S_RXAPRBSRST 4 20650 #define V_RXAPRBSRST(x) ((x) << S_RXAPRBSRST) 20651 #define F_RXAPRBSRST V_RXAPRBSRST(1U) 20652 20653 #define S_RXAPRBSEN 3 20654 #define V_RXAPRBSEN(x) ((x) << S_RXAPRBSEN) 20655 #define F_RXAPRBSEN V_RXAPRBSEN(1U) 20656 20657 #define S_RXAPRBSFRCERR 2 20658 #define V_RXAPRBSFRCERR(x) ((x) << S_RXAPRBSFRCERR) 20659 #define F_RXAPRBSFRCERR V_RXAPRBSFRCERR(1U) 20660 20661 #define S_TXAPRBSRST 1 20662 #define V_TXAPRBSRST(x) ((x) << S_TXAPRBSRST) 20663 #define F_TXAPRBSRST V_TXAPRBSRST(1U) 20664 20665 #define S_TXAPRBSEN 0 20666 #define V_TXAPRBSEN(x) ((x) << S_TXAPRBSEN) 20667 #define F_TXAPRBSEN V_TXAPRBSEN(1U) 20668 20669 #define A_XGMAC_PORT_HSS_CFG2 0x10e8 20670 20671 #define S_RXDDATASYNC 23 20672 #define V_RXDDATASYNC(x) ((x) << S_RXDDATASYNC) 20673 #define F_RXDDATASYNC V_RXDDATASYNC(1U) 20674 20675 #define S_RXCDATASYNC 22 20676 #define V_RXCDATASYNC(x) ((x) << S_RXCDATASYNC) 20677 #define F_RXCDATASYNC V_RXCDATASYNC(1U) 20678 20679 #define S_RXBDATASYNC 21 20680 #define V_RXBDATASYNC(x) ((x) << S_RXBDATASYNC) 20681 #define F_RXBDATASYNC V_RXBDATASYNC(1U) 20682 20683 #define S_RXADATASYNC 20 20684 #define V_RXADATASYNC(x) ((x) << S_RXADATASYNC) 20685 #define F_RXADATASYNC V_RXADATASYNC(1U) 20686 20687 #define S_RXDEARLYIN 19 20688 #define V_RXDEARLYIN(x) ((x) << S_RXDEARLYIN) 20689 #define F_RXDEARLYIN V_RXDEARLYIN(1U) 20690 20691 #define S_RXDLATEIN 18 20692 #define V_RXDLATEIN(x) ((x) << S_RXDLATEIN) 20693 #define F_RXDLATEIN V_RXDLATEIN(1U) 20694 20695 #define S_RXDPHSLOCK 17 20696 #define V_RXDPHSLOCK(x) ((x) << S_RXDPHSLOCK) 20697 #define F_RXDPHSLOCK V_RXDPHSLOCK(1U) 20698 20699 #define S_RXDPHSDNIN 16 20700 #define V_RXDPHSDNIN(x) ((x) << S_RXDPHSDNIN) 20701 #define F_RXDPHSDNIN V_RXDPHSDNIN(1U) 20702 20703 #define S_RXDPHSUPIN 15 20704 #define V_RXDPHSUPIN(x) ((x) << S_RXDPHSUPIN) 20705 #define F_RXDPHSUPIN V_RXDPHSUPIN(1U) 20706 20707 #define S_RXCEARLYIN 14 20708 #define V_RXCEARLYIN(x) ((x) << S_RXCEARLYIN) 20709 #define F_RXCEARLYIN V_RXCEARLYIN(1U) 20710 20711 #define S_RXCLATEIN 13 20712 #define V_RXCLATEIN(x) ((x) << S_RXCLATEIN) 20713 #define F_RXCLATEIN V_RXCLATEIN(1U) 20714 20715 #define S_RXCPHSLOCK 12 20716 #define V_RXCPHSLOCK(x) ((x) << S_RXCPHSLOCK) 20717 #define F_RXCPHSLOCK V_RXCPHSLOCK(1U) 20718 20719 #define S_RXCPHSDNIN 11 20720 #define V_RXCPHSDNIN(x) ((x) << S_RXCPHSDNIN) 20721 #define F_RXCPHSDNIN V_RXCPHSDNIN(1U) 20722 20723 #define S_RXCPHSUPIN 10 20724 #define V_RXCPHSUPIN(x) ((x) << S_RXCPHSUPIN) 20725 #define F_RXCPHSUPIN V_RXCPHSUPIN(1U) 20726 20727 #define S_RXBEARLYIN 9 20728 #define V_RXBEARLYIN(x) ((x) << S_RXBEARLYIN) 20729 #define F_RXBEARLYIN V_RXBEARLYIN(1U) 20730 20731 #define S_RXBLATEIN 8 20732 #define V_RXBLATEIN(x) ((x) << S_RXBLATEIN) 20733 #define F_RXBLATEIN V_RXBLATEIN(1U) 20734 20735 #define S_RXBPHSLOCK 7 20736 #define V_RXBPHSLOCK(x) ((x) << S_RXBPHSLOCK) 20737 #define F_RXBPHSLOCK V_RXBPHSLOCK(1U) 20738 20739 #define S_RXBPHSDNIN 6 20740 #define V_RXBPHSDNIN(x) ((x) << S_RXBPHSDNIN) 20741 #define F_RXBPHSDNIN V_RXBPHSDNIN(1U) 20742 20743 #define S_RXBPHSUPIN 5 20744 #define V_RXBPHSUPIN(x) ((x) << S_RXBPHSUPIN) 20745 #define F_RXBPHSUPIN V_RXBPHSUPIN(1U) 20746 20747 #define S_RXAEARLYIN 4 20748 #define V_RXAEARLYIN(x) ((x) << S_RXAEARLYIN) 20749 #define F_RXAEARLYIN V_RXAEARLYIN(1U) 20750 20751 #define S_RXALATEIN 3 20752 #define V_RXALATEIN(x) ((x) << S_RXALATEIN) 20753 #define F_RXALATEIN V_RXALATEIN(1U) 20754 20755 #define S_RXAPHSLOCK 2 20756 #define V_RXAPHSLOCK(x) ((x) << S_RXAPHSLOCK) 20757 #define F_RXAPHSLOCK V_RXAPHSLOCK(1U) 20758 20759 #define S_RXAPHSDNIN 1 20760 #define V_RXAPHSDNIN(x) ((x) << S_RXAPHSDNIN) 20761 #define F_RXAPHSDNIN V_RXAPHSDNIN(1U) 20762 20763 #define S_RXAPHSUPIN 0 20764 #define V_RXAPHSUPIN(x) ((x) << S_RXAPHSUPIN) 20765 #define F_RXAPHSUPIN V_RXAPHSUPIN(1U) 20766 20767 #define A_XGMAC_PORT_HSS_STATUS 0x10ec 20768 20769 #define S_RXDPRBSSYNC 15 20770 #define V_RXDPRBSSYNC(x) ((x) << S_RXDPRBSSYNC) 20771 #define F_RXDPRBSSYNC V_RXDPRBSSYNC(1U) 20772 20773 #define S_RXCPRBSSYNC 14 20774 #define V_RXCPRBSSYNC(x) ((x) << S_RXCPRBSSYNC) 20775 #define F_RXCPRBSSYNC V_RXCPRBSSYNC(1U) 20776 20777 #define S_RXBPRBSSYNC 13 20778 #define V_RXBPRBSSYNC(x) ((x) << S_RXBPRBSSYNC) 20779 #define F_RXBPRBSSYNC V_RXBPRBSSYNC(1U) 20780 20781 #define S_RXAPRBSSYNC 12 20782 #define V_RXAPRBSSYNC(x) ((x) << S_RXAPRBSSYNC) 20783 #define F_RXAPRBSSYNC V_RXAPRBSSYNC(1U) 20784 20785 #define S_RXDPRBSERR 11 20786 #define V_RXDPRBSERR(x) ((x) << S_RXDPRBSERR) 20787 #define F_RXDPRBSERR V_RXDPRBSERR(1U) 20788 20789 #define S_RXCPRBSERR 10 20790 #define V_RXCPRBSERR(x) ((x) << S_RXCPRBSERR) 20791 #define F_RXCPRBSERR V_RXCPRBSERR(1U) 20792 20793 #define S_RXBPRBSERR 9 20794 #define V_RXBPRBSERR(x) ((x) << S_RXBPRBSERR) 20795 #define F_RXBPRBSERR V_RXBPRBSERR(1U) 20796 20797 #define S_RXAPRBSERR 8 20798 #define V_RXAPRBSERR(x) ((x) << S_RXAPRBSERR) 20799 #define F_RXAPRBSERR V_RXAPRBSERR(1U) 20800 20801 #define S_RXDSIGDET 7 20802 #define V_RXDSIGDET(x) ((x) << S_RXDSIGDET) 20803 #define F_RXDSIGDET V_RXDSIGDET(1U) 20804 20805 #define S_RXCSIGDET 6 20806 #define V_RXCSIGDET(x) ((x) << S_RXCSIGDET) 20807 #define F_RXCSIGDET V_RXCSIGDET(1U) 20808 20809 #define S_RXBSIGDET 5 20810 #define V_RXBSIGDET(x) ((x) << S_RXBSIGDET) 20811 #define F_RXBSIGDET V_RXBSIGDET(1U) 20812 20813 #define S_RXASIGDET 4 20814 #define V_RXASIGDET(x) ((x) << S_RXASIGDET) 20815 #define F_RXASIGDET V_RXASIGDET(1U) 20816 20817 #define S_HSSPLLLOCK 1 20818 #define V_HSSPLLLOCK(x) ((x) << S_HSSPLLLOCK) 20819 #define F_HSSPLLLOCK V_HSSPLLLOCK(1U) 20820 20821 #define S_HSSPRTREADY 0 20822 #define V_HSSPRTREADY(x) ((x) << S_HSSPRTREADY) 20823 #define F_HSSPRTREADY V_HSSPRTREADY(1U) 20824 20825 #define A_XGMAC_PORT_XGM_TX_CTRL 0x1200 20826 20827 #define S_SENDPAUSE 2 20828 #define V_SENDPAUSE(x) ((x) << S_SENDPAUSE) 20829 #define F_SENDPAUSE V_SENDPAUSE(1U) 20830 20831 #define S_SENDZEROPAUSE 1 20832 #define V_SENDZEROPAUSE(x) ((x) << S_SENDZEROPAUSE) 20833 #define F_SENDZEROPAUSE V_SENDZEROPAUSE(1U) 20834 20835 #define S_XGM_TXEN 0 20836 #define V_XGM_TXEN(x) ((x) << S_XGM_TXEN) 20837 #define F_XGM_TXEN V_XGM_TXEN(1U) 20838 20839 #define A_XGMAC_PORT_XGM_TX_CFG 0x1204 20840 20841 #define S_CRCCAL 8 20842 #define M_CRCCAL 0x3U 20843 #define V_CRCCAL(x) ((x) << S_CRCCAL) 20844 #define G_CRCCAL(x) (((x) >> S_CRCCAL) & M_CRCCAL) 20845 20846 #define S_DISDEFIDLECNT 7 20847 #define V_DISDEFIDLECNT(x) ((x) << S_DISDEFIDLECNT) 20848 #define F_DISDEFIDLECNT V_DISDEFIDLECNT(1U) 20849 20850 #define S_DECAVGTXIPG 6 20851 #define V_DECAVGTXIPG(x) ((x) << S_DECAVGTXIPG) 20852 #define F_DECAVGTXIPG V_DECAVGTXIPG(1U) 20853 20854 #define S_UNIDIRTXEN 5 20855 #define V_UNIDIRTXEN(x) ((x) << S_UNIDIRTXEN) 20856 #define F_UNIDIRTXEN V_UNIDIRTXEN(1U) 20857 20858 #define S_CFGCLKSPEED 2 20859 #define M_CFGCLKSPEED 0x7U 20860 #define V_CFGCLKSPEED(x) ((x) << S_CFGCLKSPEED) 20861 #define G_CFGCLKSPEED(x) (((x) >> S_CFGCLKSPEED) & M_CFGCLKSPEED) 20862 20863 #define S_STRETCHMODE 1 20864 #define V_STRETCHMODE(x) ((x) << S_STRETCHMODE) 20865 #define F_STRETCHMODE V_STRETCHMODE(1U) 20866 20867 #define S_TXPAUSEEN 0 20868 #define V_TXPAUSEEN(x) ((x) << S_TXPAUSEEN) 20869 #define F_TXPAUSEEN V_TXPAUSEEN(1U) 20870 20871 #define A_XGMAC_PORT_XGM_TX_PAUSE_QUANTA 0x1208 20872 20873 #define S_TXPAUSEQUANTA 0 20874 #define M_TXPAUSEQUANTA 0xffffU 20875 #define V_TXPAUSEQUANTA(x) ((x) << S_TXPAUSEQUANTA) 20876 #define G_TXPAUSEQUANTA(x) (((x) >> S_TXPAUSEQUANTA) & M_TXPAUSEQUANTA) 20877 20878 #define A_XGMAC_PORT_XGM_RX_CTRL 0x120c 20879 #define A_XGMAC_PORT_XGM_RX_CFG 0x1210 20880 20881 #define S_RXCRCCAL 16 20882 #define M_RXCRCCAL 0x3U 20883 #define V_RXCRCCAL(x) ((x) << S_RXCRCCAL) 20884 #define G_RXCRCCAL(x) (((x) >> S_RXCRCCAL) & M_RXCRCCAL) 20885 20886 #define S_STATLOCALFAULT 15 20887 #define V_STATLOCALFAULT(x) ((x) << S_STATLOCALFAULT) 20888 #define F_STATLOCALFAULT V_STATLOCALFAULT(1U) 20889 20890 #define S_STATREMOTEFAULT 14 20891 #define V_STATREMOTEFAULT(x) ((x) << S_STATREMOTEFAULT) 20892 #define F_STATREMOTEFAULT V_STATREMOTEFAULT(1U) 20893 20894 #define S_LENERRFRAMEDIS 13 20895 #define V_LENERRFRAMEDIS(x) ((x) << S_LENERRFRAMEDIS) 20896 #define F_LENERRFRAMEDIS V_LENERRFRAMEDIS(1U) 20897 20898 #define S_CON802_3PREAMBLE 12 20899 #define V_CON802_3PREAMBLE(x) ((x) << S_CON802_3PREAMBLE) 20900 #define F_CON802_3PREAMBLE V_CON802_3PREAMBLE(1U) 20901 20902 #define S_ENNON802_3PREAMBLE 11 20903 #define V_ENNON802_3PREAMBLE(x) ((x) << S_ENNON802_3PREAMBLE) 20904 #define F_ENNON802_3PREAMBLE V_ENNON802_3PREAMBLE(1U) 20905 20906 #define S_COPYPREAMBLE 10 20907 #define V_COPYPREAMBLE(x) ((x) << S_COPYPREAMBLE) 20908 #define F_COPYPREAMBLE V_COPYPREAMBLE(1U) 20909 20910 #define S_DISPAUSEFRAMES 9 20911 #define V_DISPAUSEFRAMES(x) ((x) << S_DISPAUSEFRAMES) 20912 #define F_DISPAUSEFRAMES V_DISPAUSEFRAMES(1U) 20913 20914 #define S_EN1536BFRAMES 8 20915 #define V_EN1536BFRAMES(x) ((x) << S_EN1536BFRAMES) 20916 #define F_EN1536BFRAMES V_EN1536BFRAMES(1U) 20917 20918 #define S_ENJUMBO 7 20919 #define V_ENJUMBO(x) ((x) << S_ENJUMBO) 20920 #define F_ENJUMBO V_ENJUMBO(1U) 20921 20922 #define S_RMFCS 6 20923 #define V_RMFCS(x) ((x) << S_RMFCS) 20924 #define F_RMFCS V_RMFCS(1U) 20925 20926 #define S_DISNONVLAN 5 20927 #define V_DISNONVLAN(x) ((x) << S_DISNONVLAN) 20928 #define F_DISNONVLAN V_DISNONVLAN(1U) 20929 20930 #define S_ENEXTMATCH 4 20931 #define V_ENEXTMATCH(x) ((x) << S_ENEXTMATCH) 20932 #define F_ENEXTMATCH V_ENEXTMATCH(1U) 20933 20934 #define S_ENHASHUCAST 3 20935 #define V_ENHASHUCAST(x) ((x) << S_ENHASHUCAST) 20936 #define F_ENHASHUCAST V_ENHASHUCAST(1U) 20937 20938 #define S_ENHASHMCAST 2 20939 #define V_ENHASHMCAST(x) ((x) << S_ENHASHMCAST) 20940 #define F_ENHASHMCAST V_ENHASHMCAST(1U) 20941 20942 #define S_DISBCAST 1 20943 #define V_DISBCAST(x) ((x) << S_DISBCAST) 20944 #define F_DISBCAST V_DISBCAST(1U) 20945 20946 #define S_COPYALLFRAMES 0 20947 #define V_COPYALLFRAMES(x) ((x) << S_COPYALLFRAMES) 20948 #define F_COPYALLFRAMES V_COPYALLFRAMES(1U) 20949 20950 #define A_XGMAC_PORT_XGM_RX_HASH_LOW 0x1214 20951 #define A_XGMAC_PORT_XGM_RX_HASH_HIGH 0x1218 20952 #define A_XGMAC_PORT_XGM_RX_EXACT_MATCH_LOW_1 0x121c 20953 #define A_XGMAC_PORT_XGM_RX_EXACT_MATCH_HIGH_1 0x1220 20954 20955 #define S_ADDRESS_HIGH 0 20956 #define M_ADDRESS_HIGH 0xffffU 20957 #define V_ADDRESS_HIGH(x) ((x) << S_ADDRESS_HIGH) 20958 #define G_ADDRESS_HIGH(x) (((x) >> S_ADDRESS_HIGH) & M_ADDRESS_HIGH) 20959 20960 #define A_XGMAC_PORT_XGM_RX_EXACT_MATCH_LOW_2 0x1224 20961 #define A_XGMAC_PORT_XGM_RX_EXACT_MATCH_HIGH_2 0x1228 20962 #define A_XGMAC_PORT_XGM_RX_EXACT_MATCH_LOW_3 0x122c 20963 #define A_XGMAC_PORT_XGM_RX_EXACT_MATCH_HIGH_3 0x1230 20964 #define A_XGMAC_PORT_XGM_RX_EXACT_MATCH_LOW_4 0x1234 20965 #define A_XGMAC_PORT_XGM_RX_EXACT_MATCH_HIGH_4 0x1238 20966 #define A_XGMAC_PORT_XGM_RX_EXACT_MATCH_LOW_5 0x123c 20967 #define A_XGMAC_PORT_XGM_RX_EXACT_MATCH_HIGH_5 0x1240 20968 #define A_XGMAC_PORT_XGM_RX_EXACT_MATCH_LOW_6 0x1244 20969 #define A_XGMAC_PORT_XGM_RX_EXACT_MATCH_HIGH_6 0x1248 20970 #define A_XGMAC_PORT_XGM_RX_EXACT_MATCH_LOW_7 0x124c 20971 #define A_XGMAC_PORT_XGM_RX_EXACT_MATCH_HIGH_7 0x1250 20972 #define A_XGMAC_PORT_XGM_RX_EXACT_MATCH_LOW_8 0x1254 20973 #define A_XGMAC_PORT_XGM_RX_EXACT_MATCH_HIGH_8 0x1258 20974 #define A_XGMAC_PORT_XGM_RX_TYPE_MATCH_1 0x125c 20975 20976 #define S_ENTYPEMATCH 31 20977 #define V_ENTYPEMATCH(x) ((x) << S_ENTYPEMATCH) 20978 #define F_ENTYPEMATCH V_ENTYPEMATCH(1U) 20979 20980 #define S_TYPE 0 20981 #define M_TYPE 0xffffU 20982 #define V_TYPE(x) ((x) << S_TYPE) 20983 #define G_TYPE(x) (((x) >> S_TYPE) & M_TYPE) 20984 20985 #define A_XGMAC_PORT_XGM_RX_TYPE_MATCH_2 0x1260 20986 #define A_XGMAC_PORT_XGM_RX_TYPE_MATCH_3 0x1264 20987 #define A_XGMAC_PORT_XGM_RX_TYPE_MATCH_4 0x1268 20988 #define A_XGMAC_PORT_XGM_INT_STATUS 0x126c 20989 20990 #define S_XGMIIEXTINT 10 20991 #define V_XGMIIEXTINT(x) ((x) << S_XGMIIEXTINT) 20992 #define F_XGMIIEXTINT V_XGMIIEXTINT(1U) 20993 20994 #define S_LINKFAULTCHANGE 9 20995 #define V_LINKFAULTCHANGE(x) ((x) << S_LINKFAULTCHANGE) 20996 #define F_LINKFAULTCHANGE V_LINKFAULTCHANGE(1U) 20997 20998 #define S_PHYFRAMECOMPLETE 8 20999 #define V_PHYFRAMECOMPLETE(x) ((x) << S_PHYFRAMECOMPLETE) 21000 #define F_PHYFRAMECOMPLETE V_PHYFRAMECOMPLETE(1U) 21001 21002 #define S_PAUSEFRAMETXMT 7 21003 #define V_PAUSEFRAMETXMT(x) ((x) << S_PAUSEFRAMETXMT) 21004 #define F_PAUSEFRAMETXMT V_PAUSEFRAMETXMT(1U) 21005 21006 #define S_PAUSECNTRTIMEOUT 6 21007 #define V_PAUSECNTRTIMEOUT(x) ((x) << S_PAUSECNTRTIMEOUT) 21008 #define F_PAUSECNTRTIMEOUT V_PAUSECNTRTIMEOUT(1U) 21009 21010 #define S_NON0PAUSERCVD 5 21011 #define V_NON0PAUSERCVD(x) ((x) << S_NON0PAUSERCVD) 21012 #define F_NON0PAUSERCVD V_NON0PAUSERCVD(1U) 21013 21014 #define S_STATOFLOW 4 21015 #define V_STATOFLOW(x) ((x) << S_STATOFLOW) 21016 #define F_STATOFLOW V_STATOFLOW(1U) 21017 21018 #define S_TXERRFIFO 3 21019 #define V_TXERRFIFO(x) ((x) << S_TXERRFIFO) 21020 #define F_TXERRFIFO V_TXERRFIFO(1U) 21021 21022 #define S_TXUFLOW 2 21023 #define V_TXUFLOW(x) ((x) << S_TXUFLOW) 21024 #define F_TXUFLOW V_TXUFLOW(1U) 21025 21026 #define S_FRAMETXMT 1 21027 #define V_FRAMETXMT(x) ((x) << S_FRAMETXMT) 21028 #define F_FRAMETXMT V_FRAMETXMT(1U) 21029 21030 #define S_FRAMERCVD 0 21031 #define V_FRAMERCVD(x) ((x) << S_FRAMERCVD) 21032 #define F_FRAMERCVD V_FRAMERCVD(1U) 21033 21034 #define A_XGMAC_PORT_XGM_INT_MASK 0x1270 21035 #define A_XGMAC_PORT_XGM_INT_EN 0x1274 21036 #define A_XGMAC_PORT_XGM_INT_DISABLE 0x1278 21037 #define A_XGMAC_PORT_XGM_TX_PAUSE_TIMER 0x127c 21038 21039 #define S_CURPAUSETIMER 0 21040 #define M_CURPAUSETIMER 0xffffU 21041 #define V_CURPAUSETIMER(x) ((x) << S_CURPAUSETIMER) 21042 #define G_CURPAUSETIMER(x) (((x) >> S_CURPAUSETIMER) & M_CURPAUSETIMER) 21043 21044 #define A_XGMAC_PORT_XGM_STAT_CTRL 0x1280 21045 21046 #define S_READSNPSHOT 4 21047 #define V_READSNPSHOT(x) ((x) << S_READSNPSHOT) 21048 #define F_READSNPSHOT V_READSNPSHOT(1U) 21049 21050 #define S_TAKESNPSHOT 3 21051 #define V_TAKESNPSHOT(x) ((x) << S_TAKESNPSHOT) 21052 #define F_TAKESNPSHOT V_TAKESNPSHOT(1U) 21053 21054 #define S_CLRSTATS 2 21055 #define V_CLRSTATS(x) ((x) << S_CLRSTATS) 21056 #define F_CLRSTATS V_CLRSTATS(1U) 21057 21058 #define S_INCRSTATS 1 21059 #define V_INCRSTATS(x) ((x) << S_INCRSTATS) 21060 #define F_INCRSTATS V_INCRSTATS(1U) 21061 21062 #define S_ENTESTMODEWR 0 21063 #define V_ENTESTMODEWR(x) ((x) << S_ENTESTMODEWR) 21064 #define F_ENTESTMODEWR V_ENTESTMODEWR(1U) 21065 21066 #define A_XGMAC_PORT_XGM_MDIO_CTRL 0x1284 21067 21068 #define S_FRAMETYPE 30 21069 #define M_FRAMETYPE 0x3U 21070 #define V_FRAMETYPE(x) ((x) << S_FRAMETYPE) 21071 #define G_FRAMETYPE(x) (((x) >> S_FRAMETYPE) & M_FRAMETYPE) 21072 21073 #define S_OPERATION 28 21074 #define M_OPERATION 0x3U 21075 #define V_OPERATION(x) ((x) << S_OPERATION) 21076 #define G_OPERATION(x) (((x) >> S_OPERATION) & M_OPERATION) 21077 21078 #define S_PORTADDR 23 21079 #define M_PORTADDR 0x1fU 21080 #define V_PORTADDR(x) ((x) << S_PORTADDR) 21081 #define G_PORTADDR(x) (((x) >> S_PORTADDR) & M_PORTADDR) 21082 21083 #define S_DEVADDR 18 21084 #define M_DEVADDR 0x1fU 21085 #define V_DEVADDR(x) ((x) << S_DEVADDR) 21086 #define G_DEVADDR(x) (((x) >> S_DEVADDR) & M_DEVADDR) 21087 21088 #define S_RESRV 16 21089 #define M_RESRV 0x3U 21090 #define V_RESRV(x) ((x) << S_RESRV) 21091 #define G_RESRV(x) (((x) >> S_RESRV) & M_RESRV) 21092 21093 #define S_DATA 0 21094 #define M_DATA_ 0xffffU 21095 #define V_DATA(x) ((x) << S_DATA) 21096 #define G_DATA(x) (((x) >> S_DATA) & M_DATA_) 21097 21098 #define A_XGMAC_PORT_XGM_MODULE_ID 0x12fc 21099 21100 #define S_MODULEID 16 21101 #define M_MODULEID 0xffffU 21102 #define V_MODULEID(x) ((x) << S_MODULEID) 21103 #define G_MODULEID(x) (((x) >> S_MODULEID) & M_MODULEID) 21104 21105 #define S_MODULEREV 0 21106 #define M_MODULEREV 0xffffU 21107 #define V_MODULEREV(x) ((x) << S_MODULEREV) 21108 #define G_MODULEREV(x) (((x) >> S_MODULEREV) & M_MODULEREV) 21109 21110 #define A_XGMAC_PORT_XGM_STAT_TX_BYTE_LOW 0x1300 21111 #define A_XGMAC_PORT_XGM_STAT_TX_BYTE_HIGH 0x1304 21112 21113 #define S_TXBYTES_HIGH 0 21114 #define M_TXBYTES_HIGH 0x1fffU 21115 #define V_TXBYTES_HIGH(x) ((x) << S_TXBYTES_HIGH) 21116 #define G_TXBYTES_HIGH(x) (((x) >> S_TXBYTES_HIGH) & M_TXBYTES_HIGH) 21117 21118 #define A_XGMAC_PORT_XGM_STAT_TX_FRAME_LOW 0x1308 21119 #define A_XGMAC_PORT_XGM_STAT_TX_FRAME_HIGH 0x130c 21120 21121 #define S_TXFRAMES_HIGH 0 21122 #define M_TXFRAMES_HIGH 0xfU 21123 #define V_TXFRAMES_HIGH(x) ((x) << S_TXFRAMES_HIGH) 21124 #define G_TXFRAMES_HIGH(x) (((x) >> S_TXFRAMES_HIGH) & M_TXFRAMES_HIGH) 21125 21126 #define A_XGMAC_PORT_XGM_STAT_TX_BCAST 0x1310 21127 #define A_XGMAC_PORT_XGM_STAT_TX_MCAST 0x1314 21128 #define A_XGMAC_PORT_XGM_STAT_TX_PAUSE 0x1318 21129 #define A_XGMAC_PORT_XGM_STAT_TX_64B_FRAMES 0x131c 21130 #define A_XGMAC_PORT_XGM_STAT_TX_65_127B_FRAMES 0x1320 21131 #define A_XGMAC_PORT_XGM_STAT_TX_128_255B_FRAMES 0x1324 21132 #define A_XGMAC_PORT_XGM_STAT_TX_256_511B_FRAMES 0x1328 21133 #define A_XGMAC_PORT_XGM_STAT_TX_512_1023B_FRAMES 0x132c 21134 #define A_XGMAC_PORT_XGM_STAT_TX_1024_1518B_FRAMES 0x1330 21135 #define A_XGMAC_PORT_XGM_STAT_TX_1519_MAXB_FRAMES 0x1334 21136 #define A_XGMAC_PORT_XGM_STAT_TX_ERR_FRAMES 0x1338 21137 #define A_XGMAC_PORT_XGM_STAT_RX_BYTES_LOW 0x133c 21138 #define A_XGMAC_PORT_XGM_STAT_RX_BYTES_HIGH 0x1340 21139 21140 #define S_RXBYTES_HIGH 0 21141 #define M_RXBYTES_HIGH 0x1fffU 21142 #define V_RXBYTES_HIGH(x) ((x) << S_RXBYTES_HIGH) 21143 #define G_RXBYTES_HIGH(x) (((x) >> S_RXBYTES_HIGH) & M_RXBYTES_HIGH) 21144 21145 #define A_XGMAC_PORT_XGM_STAT_RX_FRAMES_LOW 0x1344 21146 #define A_XGMAC_PORT_XGM_STAT_RX_FRAMES_HIGH 0x1348 21147 21148 #define S_RXFRAMES_HIGH 0 21149 #define M_RXFRAMES_HIGH 0xfU 21150 #define V_RXFRAMES_HIGH(x) ((x) << S_RXFRAMES_HIGH) 21151 #define G_RXFRAMES_HIGH(x) (((x) >> S_RXFRAMES_HIGH) & M_RXFRAMES_HIGH) 21152 21153 #define A_XGMAC_PORT_XGM_STAT_RX_BCAST_FRAMES 0x134c 21154 #define A_XGMAC_PORT_XGM_STAT_RX_MCAST_FRAMES 0x1350 21155 #define A_XGMAC_PORT_XGM_STAT_RX_PAUSE_FRAMES 0x1354 21156 21157 #define S_RXPAUSEFRAMES 0 21158 #define M_RXPAUSEFRAMES 0xffffU 21159 #define V_RXPAUSEFRAMES(x) ((x) << S_RXPAUSEFRAMES) 21160 #define G_RXPAUSEFRAMES(x) (((x) >> S_RXPAUSEFRAMES) & M_RXPAUSEFRAMES) 21161 21162 #define A_XGMAC_PORT_XGM_STAT_RX_64B_FRAMES 0x1358 21163 #define A_XGMAC_PORT_XGM_STAT_RX_65_127B_FRAMES 0x135c 21164 #define A_XGMAC_PORT_XGM_STAT_RX_128_255B_FRAMES 0x1360 21165 #define A_XGMAC_PORT_XGM_STAT_RX_256_511B_FRAMES 0x1364 21166 #define A_XGMAC_PORT_XGM_STAT_RX_512_1023B_FRAMES 0x1368 21167 #define A_XGMAC_PORT_XGM_STAT_RX_1024_1518B_FRAMES 0x136c 21168 #define A_XGMAC_PORT_XGM_STAT_RX_1519_MAXB_FRAMES 0x1370 21169 #define A_XGMAC_PORT_XGM_STAT_RX_SHORT_FRAMES 0x1374 21170 21171 #define S_RXSHORTFRAMES 0 21172 #define M_RXSHORTFRAMES 0xffffU 21173 #define V_RXSHORTFRAMES(x) ((x) << S_RXSHORTFRAMES) 21174 #define G_RXSHORTFRAMES(x) (((x) >> S_RXSHORTFRAMES) & M_RXSHORTFRAMES) 21175 21176 #define A_XGMAC_PORT_XGM_STAT_RX_OVERSIZE_FRAMES 0x1378 21177 21178 #define S_RXOVERSIZEFRAMES 0 21179 #define M_RXOVERSIZEFRAMES 0xffffU 21180 #define V_RXOVERSIZEFRAMES(x) ((x) << S_RXOVERSIZEFRAMES) 21181 #define G_RXOVERSIZEFRAMES(x) (((x) >> S_RXOVERSIZEFRAMES) & M_RXOVERSIZEFRAMES) 21182 21183 #define A_XGMAC_PORT_XGM_STAT_RX_JABBER_FRAMES 0x137c 21184 21185 #define S_RXJABBERFRAMES 0 21186 #define M_RXJABBERFRAMES 0xffffU 21187 #define V_RXJABBERFRAMES(x) ((x) << S_RXJABBERFRAMES) 21188 #define G_RXJABBERFRAMES(x) (((x) >> S_RXJABBERFRAMES) & M_RXJABBERFRAMES) 21189 21190 #define A_XGMAC_PORT_XGM_STAT_RX_CRC_ERR_FRAMES 0x1380 21191 21192 #define S_RXCRCERRFRAMES 0 21193 #define M_RXCRCERRFRAMES 0xffffU 21194 #define V_RXCRCERRFRAMES(x) ((x) << S_RXCRCERRFRAMES) 21195 #define G_RXCRCERRFRAMES(x) (((x) >> S_RXCRCERRFRAMES) & M_RXCRCERRFRAMES) 21196 21197 #define A_XGMAC_PORT_XGM_STAT_RX_LENGTH_ERR_FRAMES 0x1384 21198 21199 #define S_RXLENGTHERRFRAMES 0 21200 #define M_RXLENGTHERRFRAMES 0xffffU 21201 #define V_RXLENGTHERRFRAMES(x) ((x) << S_RXLENGTHERRFRAMES) 21202 #define G_RXLENGTHERRFRAMES(x) \ 21203 (((x) >> S_RXLENGTHERRFRAMES) & M_RXLENGTHERRFRAMES) 21204 21205 #define A_XGMAC_PORT_XGM_STAT_RX_SYM_CODE_ERR_FRAMES 0x1388 21206 21207 #define S_RXSYMCODEERRFRAMES 0 21208 #define M_RXSYMCODEERRFRAMES 0xffffU 21209 #define V_RXSYMCODEERRFRAMES(x) ((x) << S_RXSYMCODEERRFRAMES) 21210 #define G_RXSYMCODEERRFRAMES(x) \ 21211 (((x) >> S_RXSYMCODEERRFRAMES) & M_RXSYMCODEERRFRAMES) 21212 21213 #define A_XGMAC_PORT_XAUI_CTRL 0x1400 21214 21215 #define S_POLARITY_INV_RX 8 21216 #define M_POLARITY_INV_RX 0xfU 21217 #define V_POLARITY_INV_RX(x) ((x) << S_POLARITY_INV_RX) 21218 #define G_POLARITY_INV_RX(x) (((x) >> S_POLARITY_INV_RX) & M_POLARITY_INV_RX) 21219 21220 #define S_POLARITY_INV_TX 4 21221 #define M_POLARITY_INV_TX 0xfU 21222 #define V_POLARITY_INV_TX(x) ((x) << S_POLARITY_INV_TX) 21223 #define G_POLARITY_INV_TX(x) (((x) >> S_POLARITY_INV_TX) & M_POLARITY_INV_TX) 21224 21225 #define S_TEST_SEL 2 21226 #define M_TEST_SEL 0x3U 21227 #define V_TEST_SEL(x) ((x) << S_TEST_SEL) 21228 #define G_TEST_SEL(x) (((x) >> S_TEST_SEL) & M_TEST_SEL) 21229 21230 #define S_TEST_EN 0 21231 #define V_TEST_EN(x) ((x) << S_TEST_EN) 21232 #define F_TEST_EN V_TEST_EN(1U) 21233 21234 #define A_XGMAC_PORT_XAUI_STATUS 0x1404 21235 21236 #define S_DECODE_ERROR 12 21237 #define M_DECODE_ERROR 0xffU 21238 #define V_DECODE_ERROR(x) ((x) << S_DECODE_ERROR) 21239 #define G_DECODE_ERROR(x) (((x) >> S_DECODE_ERROR) & M_DECODE_ERROR) 21240 21241 #define S_LANE3_CTC_STATUS 11 21242 #define V_LANE3_CTC_STATUS(x) ((x) << S_LANE3_CTC_STATUS) 21243 #define F_LANE3_CTC_STATUS V_LANE3_CTC_STATUS(1U) 21244 21245 #define S_LANE2_CTC_STATUS 10 21246 #define V_LANE2_CTC_STATUS(x) ((x) << S_LANE2_CTC_STATUS) 21247 #define F_LANE2_CTC_STATUS V_LANE2_CTC_STATUS(1U) 21248 21249 #define S_LANE1_CTC_STATUS 9 21250 #define V_LANE1_CTC_STATUS(x) ((x) << S_LANE1_CTC_STATUS) 21251 #define F_LANE1_CTC_STATUS V_LANE1_CTC_STATUS(1U) 21252 21253 #define S_LANE0_CTC_STATUS 8 21254 #define V_LANE0_CTC_STATUS(x) ((x) << S_LANE0_CTC_STATUS) 21255 #define F_LANE0_CTC_STATUS V_LANE0_CTC_STATUS(1U) 21256 21257 #define S_ALIGN_STATUS 4 21258 #define V_ALIGN_STATUS(x) ((x) << S_ALIGN_STATUS) 21259 #define F_ALIGN_STATUS V_ALIGN_STATUS(1U) 21260 21261 #define S_LANE3_SYNC_STATUS 3 21262 #define V_LANE3_SYNC_STATUS(x) ((x) << S_LANE3_SYNC_STATUS) 21263 #define F_LANE3_SYNC_STATUS V_LANE3_SYNC_STATUS(1U) 21264 21265 #define S_LANE2_SYNC_STATUS 2 21266 #define V_LANE2_SYNC_STATUS(x) ((x) << S_LANE2_SYNC_STATUS) 21267 #define F_LANE2_SYNC_STATUS V_LANE2_SYNC_STATUS(1U) 21268 21269 #define S_LANE1_SYNC_STATUS 1 21270 #define V_LANE1_SYNC_STATUS(x) ((x) << S_LANE1_SYNC_STATUS) 21271 #define F_LANE1_SYNC_STATUS V_LANE1_SYNC_STATUS(1U) 21272 21273 #define S_LANE0_SYNC_STATUS 0 21274 #define V_LANE0_SYNC_STATUS(x) ((x) << S_LANE0_SYNC_STATUS) 21275 #define F_LANE0_SYNC_STATUS V_LANE0_SYNC_STATUS(1U) 21276 21277 #define A_XGMAC_PORT_PCSR_CTRL 0x1500 21278 21279 #define S_RX_CLK_SPEED 7 21280 #define V_RX_CLK_SPEED(x) ((x) << S_RX_CLK_SPEED) 21281 #define F_RX_CLK_SPEED V_RX_CLK_SPEED(1U) 21282 21283 #define S_SCRBYPASS 6 21284 #define V_SCRBYPASS(x) ((x) << S_SCRBYPASS) 21285 #define F_SCRBYPASS V_SCRBYPASS(1U) 21286 21287 #define S_FECERRINDEN 5 21288 #define V_FECERRINDEN(x) ((x) << S_FECERRINDEN) 21289 #define F_FECERRINDEN V_FECERRINDEN(1U) 21290 21291 #define S_FECEN 4 21292 #define V_FECEN(x) ((x) << S_FECEN) 21293 #define F_FECEN V_FECEN(1U) 21294 21295 #define S_TESTSEL 2 21296 #define M_TESTSEL 0x3U 21297 #define V_TESTSEL(x) ((x) << S_TESTSEL) 21298 #define G_TESTSEL(x) (((x) >> S_TESTSEL) & M_TESTSEL) 21299 21300 #define S_SCRLOOPEN 1 21301 #define V_SCRLOOPEN(x) ((x) << S_SCRLOOPEN) 21302 #define F_SCRLOOPEN V_SCRLOOPEN(1U) 21303 21304 #define S_XGMIILOOPEN 0 21305 #define V_XGMIILOOPEN(x) ((x) << S_XGMIILOOPEN) 21306 #define F_XGMIILOOPEN V_XGMIILOOPEN(1U) 21307 21308 #define A_XGMAC_PORT_PCSR_TXTEST_CTRL 0x1510 21309 21310 #define S_TX_PRBS9_EN 4 21311 #define V_TX_PRBS9_EN(x) ((x) << S_TX_PRBS9_EN) 21312 #define F_TX_PRBS9_EN V_TX_PRBS9_EN(1U) 21313 21314 #define S_TX_PRBS31_EN 3 21315 #define V_TX_PRBS31_EN(x) ((x) << S_TX_PRBS31_EN) 21316 #define F_TX_PRBS31_EN V_TX_PRBS31_EN(1U) 21317 21318 #define S_TX_TST_DAT_SEL 2 21319 #define V_TX_TST_DAT_SEL(x) ((x) << S_TX_TST_DAT_SEL) 21320 #define F_TX_TST_DAT_SEL V_TX_TST_DAT_SEL(1U) 21321 21322 #define S_TX_TST_SEL 1 21323 #define V_TX_TST_SEL(x) ((x) << S_TX_TST_SEL) 21324 #define F_TX_TST_SEL V_TX_TST_SEL(1U) 21325 21326 #define S_TX_TST_EN 0 21327 #define V_TX_TST_EN(x) ((x) << S_TX_TST_EN) 21328 #define F_TX_TST_EN V_TX_TST_EN(1U) 21329 21330 #define A_XGMAC_PORT_PCSR_TXTEST_SEEDA_LOWER 0x1514 21331 #define A_XGMAC_PORT_PCSR_TXTEST_SEEDA_UPPER 0x1518 21332 21333 #define S_SEEDA_UPPER 0 21334 #define M_SEEDA_UPPER 0x3ffffffU 21335 #define V_SEEDA_UPPER(x) ((x) << S_SEEDA_UPPER) 21336 #define G_SEEDA_UPPER(x) (((x) >> S_SEEDA_UPPER) & M_SEEDA_UPPER) 21337 21338 #define A_XGMAC_PORT_PCSR_TXTEST_SEEDB_LOWER 0x152c 21339 #define A_XGMAC_PORT_PCSR_TXTEST_SEEDB_UPPER 0x1530 21340 21341 #define S_SEEDB_UPPER 0 21342 #define M_SEEDB_UPPER 0x3ffffffU 21343 #define V_SEEDB_UPPER(x) ((x) << S_SEEDB_UPPER) 21344 #define G_SEEDB_UPPER(x) (((x) >> S_SEEDB_UPPER) & M_SEEDB_UPPER) 21345 21346 #define A_XGMAC_PORT_PCSR_RXTEST_CTRL 0x153c 21347 21348 #define S_TPTER_CNT_RST 7 21349 #define V_TPTER_CNT_RST(x) ((x) << S_TPTER_CNT_RST) 21350 #define F_TPTER_CNT_RST V_TPTER_CNT_RST(1U) 21351 21352 #define S_TEST_CNT_125US 6 21353 #define V_TEST_CNT_125US(x) ((x) << S_TEST_CNT_125US) 21354 #define F_TEST_CNT_125US V_TEST_CNT_125US(1U) 21355 21356 #define S_TEST_CNT_PRE 5 21357 #define V_TEST_CNT_PRE(x) ((x) << S_TEST_CNT_PRE) 21358 #define F_TEST_CNT_PRE V_TEST_CNT_PRE(1U) 21359 21360 #define S_BER_CNT_RST 4 21361 #define V_BER_CNT_RST(x) ((x) << S_BER_CNT_RST) 21362 #define F_BER_CNT_RST V_BER_CNT_RST(1U) 21363 21364 #define S_ERR_BLK_CNT_RST 3 21365 #define V_ERR_BLK_CNT_RST(x) ((x) << S_ERR_BLK_CNT_RST) 21366 #define F_ERR_BLK_CNT_RST V_ERR_BLK_CNT_RST(1U) 21367 21368 #define S_RX_PRBS31_EN 2 21369 #define V_RX_PRBS31_EN(x) ((x) << S_RX_PRBS31_EN) 21370 #define F_RX_PRBS31_EN V_RX_PRBS31_EN(1U) 21371 21372 #define S_RX_TST_DAT_SEL 1 21373 #define V_RX_TST_DAT_SEL(x) ((x) << S_RX_TST_DAT_SEL) 21374 #define F_RX_TST_DAT_SEL V_RX_TST_DAT_SEL(1U) 21375 21376 #define S_RX_TST_EN 0 21377 #define V_RX_TST_EN(x) ((x) << S_RX_TST_EN) 21378 #define F_RX_TST_EN V_RX_TST_EN(1U) 21379 21380 #define A_XGMAC_PORT_PCSR_STATUS 0x1550 21381 21382 #define S_ERR_BLK_CNT 16 21383 #define M_ERR_BLK_CNT 0xffU 21384 #define V_ERR_BLK_CNT(x) ((x) << S_ERR_BLK_CNT) 21385 #define G_ERR_BLK_CNT(x) (((x) >> S_ERR_BLK_CNT) & M_ERR_BLK_CNT) 21386 21387 #define S_BER_COUNT 8 21388 #define M_BER_COUNT 0x3fU 21389 #define V_BER_COUNT(x) ((x) << S_BER_COUNT) 21390 #define G_BER_COUNT(x) (((x) >> S_BER_COUNT) & M_BER_COUNT) 21391 21392 #define S_HI_BER 2 21393 #define V_HI_BER(x) ((x) << S_HI_BER) 21394 #define F_HI_BER V_HI_BER(1U) 21395 21396 #define S_RX_FAULT 1 21397 #define V_RX_FAULT(x) ((x) << S_RX_FAULT) 21398 #define F_RX_FAULT V_RX_FAULT(1U) 21399 21400 #define S_TX_FAULT 0 21401 #define V_TX_FAULT(x) ((x) << S_TX_FAULT) 21402 #define F_TX_FAULT V_TX_FAULT(1U) 21403 21404 #define A_XGMAC_PORT_PCSR_TEST_STATUS 0x1554 21405 21406 #define S_TPT_ERR_CNT 0 21407 #define M_TPT_ERR_CNT 0xffffU 21408 #define V_TPT_ERR_CNT(x) ((x) << S_TPT_ERR_CNT) 21409 #define G_TPT_ERR_CNT(x) (((x) >> S_TPT_ERR_CNT) & M_TPT_ERR_CNT) 21410 21411 #define A_XGMAC_PORT_AN_CONTROL 0x1600 21412 21413 #define S_SOFT_RESET 15 21414 #define V_SOFT_RESET(x) ((x) << S_SOFT_RESET) 21415 #define F_SOFT_RESET V_SOFT_RESET(1U) 21416 21417 #define S_AN_ENABLE 12 21418 #define V_AN_ENABLE(x) ((x) << S_AN_ENABLE) 21419 #define F_AN_ENABLE V_AN_ENABLE(1U) 21420 21421 #define S_RESTART_AN 9 21422 #define V_RESTART_AN(x) ((x) << S_RESTART_AN) 21423 #define F_RESTART_AN V_RESTART_AN(1U) 21424 21425 #define A_XGMAC_PORT_AN_STATUS 0x1604 21426 21427 #define S_NONCER_MATCH 31 21428 #define V_NONCER_MATCH(x) ((x) << S_NONCER_MATCH) 21429 #define F_NONCER_MATCH V_NONCER_MATCH(1U) 21430 21431 #define S_PARALLEL_DET_FAULT 9 21432 #define V_PARALLEL_DET_FAULT(x) ((x) << S_PARALLEL_DET_FAULT) 21433 #define F_PARALLEL_DET_FAULT V_PARALLEL_DET_FAULT(1U) 21434 21435 #define S_PAGE_RECEIVED 6 21436 #define V_PAGE_RECEIVED(x) ((x) << S_PAGE_RECEIVED) 21437 #define F_PAGE_RECEIVED V_PAGE_RECEIVED(1U) 21438 21439 #define S_AN_COMPLETE 5 21440 #define V_AN_COMPLETE(x) ((x) << S_AN_COMPLETE) 21441 #define F_AN_COMPLETE V_AN_COMPLETE(1U) 21442 21443 #define S_STAT_REMFAULT 4 21444 #define V_STAT_REMFAULT(x) ((x) << S_STAT_REMFAULT) 21445 #define F_STAT_REMFAULT V_STAT_REMFAULT(1U) 21446 21447 #define S_AN_ABILITY 3 21448 #define V_AN_ABILITY(x) ((x) << S_AN_ABILITY) 21449 #define F_AN_ABILITY V_AN_ABILITY(1U) 21450 21451 #define S_LINK_STATUS 2 21452 #define V_LINK_STATUS(x) ((x) << S_LINK_STATUS) 21453 #define F_LINK_STATUS V_LINK_STATUS(1U) 21454 21455 #define S_PARTNER_AN_ABILITY 0 21456 #define V_PARTNER_AN_ABILITY(x) ((x) << S_PARTNER_AN_ABILITY) 21457 #define F_PARTNER_AN_ABILITY V_PARTNER_AN_ABILITY(1U) 21458 21459 #define A_XGMAC_PORT_AN_ADVERTISEMENT 0x1608 21460 21461 #define S_FEC_ENABLE 31 21462 #define V_FEC_ENABLE(x) ((x) << S_FEC_ENABLE) 21463 #define F_FEC_ENABLE V_FEC_ENABLE(1U) 21464 21465 #define S_FEC_ABILITY 30 21466 #define V_FEC_ABILITY(x) ((x) << S_FEC_ABILITY) 21467 #define F_FEC_ABILITY V_FEC_ABILITY(1U) 21468 21469 #define S_10GBASE_KR_CAPABLE 23 21470 #define V_10GBASE_KR_CAPABLE(x) ((x) << S_10GBASE_KR_CAPABLE) 21471 #define F_10GBASE_KR_CAPABLE V_10GBASE_KR_CAPABLE(1U) 21472 21473 #define S_10GBASE_KX4_CAPABLE 22 21474 #define V_10GBASE_KX4_CAPABLE(x) ((x) << S_10GBASE_KX4_CAPABLE) 21475 #define F_10GBASE_KX4_CAPABLE V_10GBASE_KX4_CAPABLE(1U) 21476 21477 #define S_1000BASE_KX_CAPABLE 21 21478 #define V_1000BASE_KX_CAPABLE(x) ((x) << S_1000BASE_KX_CAPABLE) 21479 #define F_1000BASE_KX_CAPABLE V_1000BASE_KX_CAPABLE(1U) 21480 21481 #define S_TRANSMITTED_NONCE 16 21482 #define M_TRANSMITTED_NONCE 0x1fU 21483 #define V_TRANSMITTED_NONCE(x) ((x) << S_TRANSMITTED_NONCE) 21484 #define G_TRANSMITTED_NONCE(x) \ 21485 (((x) >> S_TRANSMITTED_NONCE) & M_TRANSMITTED_NONCE) 21486 21487 #define S_NP 15 21488 #define V_NP(x) ((x) << S_NP) 21489 #define F_NP V_NP(1U) 21490 21491 #define S_ACK 14 21492 #define V_ACK(x) ((x) << S_ACK) 21493 #define F_ACK V_ACK(1U) 21494 21495 #define S_REMOTE_FAULT 13 21496 #define V_REMOTE_FAULT(x) ((x) << S_REMOTE_FAULT) 21497 #define F_REMOTE_FAULT V_REMOTE_FAULT(1U) 21498 21499 #define S_ASM_DIR 11 21500 #define V_ASM_DIR(x) ((x) << S_ASM_DIR) 21501 #define F_ASM_DIR V_ASM_DIR(1U) 21502 21503 #define S_PAUSE 10 21504 #define V_PAUSE(x) ((x) << S_PAUSE) 21505 #define F_PAUSE V_PAUSE(1U) 21506 21507 #define S_ECHOED_NONCE 5 21508 #define M_ECHOED_NONCE 0x1fU 21509 #define V_ECHOED_NONCE(x) ((x) << S_ECHOED_NONCE) 21510 #define G_ECHOED_NONCE(x) (((x) >> S_ECHOED_NONCE) & M_ECHOED_NONCE) 21511 21512 #define A_XGMAC_PORT_AN_LINK_PARTNER_ABILITY 0x160c 21513 21514 #define S_SELECTOR_FIELD 0 21515 #define M_SELECTOR_FIELD 0x1fU 21516 #define V_SELECTOR_FIELD(x) ((x) << S_SELECTOR_FIELD) 21517 #define G_SELECTOR_FIELD(x) (((x) >> S_SELECTOR_FIELD) & M_SELECTOR_FIELD) 21518 21519 #define A_XGMAC_PORT_AN_NP_LOWER_TRANSMIT 0x1610 21520 21521 #define S_NP_INFO 16 21522 #define M_NP_INFO 0xffffU 21523 #define V_NP_INFO(x) ((x) << S_NP_INFO) 21524 #define G_NP_INFO(x) (((x) >> S_NP_INFO) & M_NP_INFO) 21525 21526 #define S_NP_INDICATION 15 21527 #define V_NP_INDICATION(x) ((x) << S_NP_INDICATION) 21528 #define F_NP_INDICATION V_NP_INDICATION(1U) 21529 21530 #define S_MESSAGE_PAGE 13 21531 #define V_MESSAGE_PAGE(x) ((x) << S_MESSAGE_PAGE) 21532 #define F_MESSAGE_PAGE V_MESSAGE_PAGE(1U) 21533 21534 #define S_ACK_2 12 21535 #define V_ACK_2(x) ((x) << S_ACK_2) 21536 #define F_ACK_2 V_ACK_2(1U) 21537 21538 #define S_TOGGLE 11 21539 #define V_TOGGLE(x) ((x) << S_TOGGLE) 21540 #define F_TOGGLE V_TOGGLE(1U) 21541 21542 #define A_XGMAC_PORT_AN_NP_UPPER_TRANSMIT 0x1614 21543 21544 #define S_NP_INFO_HI 0 21545 #define M_NP_INFO_HI 0xffffU 21546 #define V_NP_INFO_HI(x) ((x) << S_NP_INFO_HI) 21547 #define G_NP_INFO_HI(x) (((x) >> S_NP_INFO_HI) & M_NP_INFO_HI) 21548 21549 #define A_XGMAC_PORT_AN_LP_NP_LOWER 0x1618 21550 #define A_XGMAC_PORT_AN_LP_NP_UPPER 0x161c 21551 #define A_XGMAC_PORT_AN_BACKPLANE_ETHERNET_STATUS 0x1624 21552 21553 #define S_TX_PAUSE_OKAY 6 21554 #define V_TX_PAUSE_OKAY(x) ((x) << S_TX_PAUSE_OKAY) 21555 #define F_TX_PAUSE_OKAY V_TX_PAUSE_OKAY(1U) 21556 21557 #define S_RX_PAUSE_OKAY 5 21558 #define V_RX_PAUSE_OKAY(x) ((x) << S_RX_PAUSE_OKAY) 21559 #define F_RX_PAUSE_OKAY V_RX_PAUSE_OKAY(1U) 21560 21561 #define S_10GBASE_KR_FEC_NEG 4 21562 #define V_10GBASE_KR_FEC_NEG(x) ((x) << S_10GBASE_KR_FEC_NEG) 21563 #define F_10GBASE_KR_FEC_NEG V_10GBASE_KR_FEC_NEG(1U) 21564 21565 #define S_10GBASE_KR_NEG 3 21566 #define V_10GBASE_KR_NEG(x) ((x) << S_10GBASE_KR_NEG) 21567 #define F_10GBASE_KR_NEG V_10GBASE_KR_NEG(1U) 21568 21569 #define S_10GBASE_KX4_NEG 2 21570 #define V_10GBASE_KX4_NEG(x) ((x) << S_10GBASE_KX4_NEG) 21571 #define F_10GBASE_KX4_NEG V_10GBASE_KX4_NEG(1U) 21572 21573 #define S_1000BASE_KX_NEG 1 21574 #define V_1000BASE_KX_NEG(x) ((x) << S_1000BASE_KX_NEG) 21575 #define F_1000BASE_KX_NEG V_1000BASE_KX_NEG(1U) 21576 21577 #define S_BP_AN_ABILITY 0 21578 #define V_BP_AN_ABILITY(x) ((x) << S_BP_AN_ABILITY) 21579 #define F_BP_AN_ABILITY V_BP_AN_ABILITY(1U) 21580 21581 #define A_XGMAC_PORT_AN_TX_NONCE_CONTROL 0x1628 21582 21583 #define S_BYPASS_LFSR 15 21584 #define V_BYPASS_LFSR(x) ((x) << S_BYPASS_LFSR) 21585 #define F_BYPASS_LFSR V_BYPASS_LFSR(1U) 21586 21587 #define S_LFSR_INIT 0 21588 #define M_LFSR_INIT 0x7fffU 21589 #define V_LFSR_INIT(x) ((x) << S_LFSR_INIT) 21590 #define G_LFSR_INIT(x) (((x) >> S_LFSR_INIT) & M_LFSR_INIT) 21591 21592 #define A_XGMAC_PORT_AN_INTERRUPT_STATUS 0x162c 21593 21594 #define S_NP_FROM_LP 3 21595 #define V_NP_FROM_LP(x) ((x) << S_NP_FROM_LP) 21596 #define F_NP_FROM_LP V_NP_FROM_LP(1U) 21597 21598 #define S_PARALLELDETFAULTINT 2 21599 #define V_PARALLELDETFAULTINT(x) ((x) << S_PARALLELDETFAULTINT) 21600 #define F_PARALLELDETFAULTINT V_PARALLELDETFAULTINT(1U) 21601 21602 #define S_BP_FROM_LP 1 21603 #define V_BP_FROM_LP(x) ((x) << S_BP_FROM_LP) 21604 #define F_BP_FROM_LP V_BP_FROM_LP(1U) 21605 21606 #define S_PCS_AN_COMPLETE 0 21607 #define V_PCS_AN_COMPLETE(x) ((x) << S_PCS_AN_COMPLETE) 21608 #define F_PCS_AN_COMPLETE V_PCS_AN_COMPLETE(1U) 21609 21610 #define A_XGMAC_PORT_AN_GENERIC_TIMER_TIMEOUT 0x1630 21611 21612 #define S_GENERIC_TIMEOUT 0 21613 #define M_GENERIC_TIMEOUT 0x7fffffU 21614 #define V_GENERIC_TIMEOUT(x) ((x) << S_GENERIC_TIMEOUT) 21615 #define G_GENERIC_TIMEOUT(x) (((x) >> S_GENERIC_TIMEOUT) & M_GENERIC_TIMEOUT) 21616 21617 #define A_XGMAC_PORT_AN_BREAK_LINK_TIMEOUT 0x1634 21618 21619 #define S_BREAK_LINK_TIMEOUT 0 21620 #define M_BREAK_LINK_TIMEOUT 0xffffffU 21621 #define V_BREAK_LINK_TIMEOUT(x) ((x) << S_BREAK_LINK_TIMEOUT) 21622 #define G_BREAK_LINK_TIMEOUT(x) \ 21623 (((x) >> S_BREAK_LINK_TIMEOUT) & M_BREAK_LINK_TIMEOUT) 21624 21625 #define A_XGMAC_PORT_AN_MODULE_ID 0x163c 21626 21627 #define S_MODULE_ID 16 21628 #define M_MODULE_ID 0xffffU 21629 #define V_MODULE_ID(x) ((x) << S_MODULE_ID) 21630 #define G_MODULE_ID(x) (((x) >> S_MODULE_ID) & M_MODULE_ID) 21631 21632 #define S_MODULE_REVISION 0 21633 #define M_MODULE_REVISION 0xffffU 21634 #define V_MODULE_REVISION(x) ((x) << S_MODULE_REVISION) 21635 #define G_MODULE_REVISION(x) (((x) >> S_MODULE_REVISION) & M_MODULE_REVISION) 21636 21637 #define A_XGMAC_PORT_AE_RX_COEF_REQ 0x1700 21638 21639 #define S_RXREQ_CPRE 13 21640 #define V_RXREQ_CPRE(x) ((x) << S_RXREQ_CPRE) 21641 #define F_RXREQ_CPRE V_RXREQ_CPRE(1U) 21642 21643 #define S_RXREQ_CINIT 12 21644 #define V_RXREQ_CINIT(x) ((x) << S_RXREQ_CINIT) 21645 #define F_RXREQ_CINIT V_RXREQ_CINIT(1U) 21646 21647 #define S_RXREQ_C0 4 21648 #define M_RXREQ_C0 0x3U 21649 #define V_RXREQ_C0(x) ((x) << S_RXREQ_C0) 21650 #define G_RXREQ_C0(x) (((x) >> S_RXREQ_C0) & M_RXREQ_C0) 21651 21652 #define S_RXREQ_C1 2 21653 #define M_RXREQ_C1 0x3U 21654 #define V_RXREQ_C1(x) ((x) << S_RXREQ_C1) 21655 #define G_RXREQ_C1(x) (((x) >> S_RXREQ_C1) & M_RXREQ_C1) 21656 21657 #define S_RXREQ_C2 0 21658 #define M_RXREQ_C2 0x3U 21659 #define V_RXREQ_C2(x) ((x) << S_RXREQ_C2) 21660 #define G_RXREQ_C2(x) (((x) >> S_RXREQ_C2) & M_RXREQ_C2) 21661 21662 #define A_XGMAC_PORT_AE_RX_COEF_STAT 0x1704 21663 21664 #define S_RXSTAT_RDY 15 21665 #define V_RXSTAT_RDY(x) ((x) << S_RXSTAT_RDY) 21666 #define F_RXSTAT_RDY V_RXSTAT_RDY(1U) 21667 21668 #define S_RXSTAT_C0 4 21669 #define M_RXSTAT_C0 0x3U 21670 #define V_RXSTAT_C0(x) ((x) << S_RXSTAT_C0) 21671 #define G_RXSTAT_C0(x) (((x) >> S_RXSTAT_C0) & M_RXSTAT_C0) 21672 21673 #define S_RXSTAT_C1 2 21674 #define M_RXSTAT_C1 0x3U 21675 #define V_RXSTAT_C1(x) ((x) << S_RXSTAT_C1) 21676 #define G_RXSTAT_C1(x) (((x) >> S_RXSTAT_C1) & M_RXSTAT_C1) 21677 21678 #define S_RXSTAT_C2 0 21679 #define M_RXSTAT_C2 0x3U 21680 #define V_RXSTAT_C2(x) ((x) << S_RXSTAT_C2) 21681 #define G_RXSTAT_C2(x) (((x) >> S_RXSTAT_C2) & M_RXSTAT_C2) 21682 21683 #define A_XGMAC_PORT_AE_TX_COEF_REQ 0x1708 21684 21685 #define S_TXREQ_CPRE 13 21686 #define V_TXREQ_CPRE(x) ((x) << S_TXREQ_CPRE) 21687 #define F_TXREQ_CPRE V_TXREQ_CPRE(1U) 21688 21689 #define S_TXREQ_CINIT 12 21690 #define V_TXREQ_CINIT(x) ((x) << S_TXREQ_CINIT) 21691 #define F_TXREQ_CINIT V_TXREQ_CINIT(1U) 21692 21693 #define S_TXREQ_C0 4 21694 #define M_TXREQ_C0 0x3U 21695 #define V_TXREQ_C0(x) ((x) << S_TXREQ_C0) 21696 #define G_TXREQ_C0(x) (((x) >> S_TXREQ_C0) & M_TXREQ_C0) 21697 21698 #define S_TXREQ_C1 2 21699 #define M_TXREQ_C1 0x3U 21700 #define V_TXREQ_C1(x) ((x) << S_TXREQ_C1) 21701 #define G_TXREQ_C1(x) (((x) >> S_TXREQ_C1) & M_TXREQ_C1) 21702 21703 #define S_TXREQ_C2 0 21704 #define M_TXREQ_C2 0x3U 21705 #define V_TXREQ_C2(x) ((x) << S_TXREQ_C2) 21706 #define G_TXREQ_C2(x) (((x) >> S_TXREQ_C2) & M_TXREQ_C2) 21707 21708 #define A_XGMAC_PORT_AE_TX_COEF_STAT 0x170c 21709 21710 #define S_TXSTAT_RDY 15 21711 #define V_TXSTAT_RDY(x) ((x) << S_TXSTAT_RDY) 21712 #define F_TXSTAT_RDY V_TXSTAT_RDY(1U) 21713 21714 #define S_TXSTAT_C0 4 21715 #define M_TXSTAT_C0 0x3U 21716 #define V_TXSTAT_C0(x) ((x) << S_TXSTAT_C0) 21717 #define G_TXSTAT_C0(x) (((x) >> S_TXSTAT_C0) & M_TXSTAT_C0) 21718 21719 #define S_TXSTAT_C1 2 21720 #define M_TXSTAT_C1 0x3U 21721 #define V_TXSTAT_C1(x) ((x) << S_TXSTAT_C1) 21722 #define G_TXSTAT_C1(x) (((x) >> S_TXSTAT_C1) & M_TXSTAT_C1) 21723 21724 #define S_TXSTAT_C2 0 21725 #define M_TXSTAT_C2 0x3U 21726 #define V_TXSTAT_C2(x) ((x) << S_TXSTAT_C2) 21727 #define G_TXSTAT_C2(x) (((x) >> S_TXSTAT_C2) & M_TXSTAT_C2) 21728 21729 #define A_XGMAC_PORT_AE_REG_MODE 0x1710 21730 21731 #define S_MAN_DEC 4 21732 #define M_MAN_DEC 0x3U 21733 #define V_MAN_DEC(x) ((x) << S_MAN_DEC) 21734 #define G_MAN_DEC(x) (((x) >> S_MAN_DEC) & M_MAN_DEC) 21735 21736 #define S_MANUAL_RDY 3 21737 #define V_MANUAL_RDY(x) ((x) << S_MANUAL_RDY) 21738 #define F_MANUAL_RDY V_MANUAL_RDY(1U) 21739 21740 #define S_MWT_DISABLE 2 21741 #define V_MWT_DISABLE(x) ((x) << S_MWT_DISABLE) 21742 #define F_MWT_DISABLE V_MWT_DISABLE(1U) 21743 21744 #define S_MDIO_OVR 1 21745 #define V_MDIO_OVR(x) ((x) << S_MDIO_OVR) 21746 #define F_MDIO_OVR V_MDIO_OVR(1U) 21747 21748 #define S_STICKY_MODE 0 21749 #define V_STICKY_MODE(x) ((x) << S_STICKY_MODE) 21750 #define F_STICKY_MODE V_STICKY_MODE(1U) 21751 21752 #define A_XGMAC_PORT_AE_PRBS_CTL 0x1714 21753 21754 #define S_PRBS_CHK_ERRCNT 8 21755 #define M_PRBS_CHK_ERRCNT 0xffU 21756 #define V_PRBS_CHK_ERRCNT(x) ((x) << S_PRBS_CHK_ERRCNT) 21757 #define G_PRBS_CHK_ERRCNT(x) (((x) >> S_PRBS_CHK_ERRCNT) & M_PRBS_CHK_ERRCNT) 21758 21759 #define S_PRBS_SYNCCNT 5 21760 #define M_PRBS_SYNCCNT 0x7U 21761 #define V_PRBS_SYNCCNT(x) ((x) << S_PRBS_SYNCCNT) 21762 #define G_PRBS_SYNCCNT(x) (((x) >> S_PRBS_SYNCCNT) & M_PRBS_SYNCCNT) 21763 21764 #define S_PRBS_CHK_SYNC 4 21765 #define V_PRBS_CHK_SYNC(x) ((x) << S_PRBS_CHK_SYNC) 21766 #define F_PRBS_CHK_SYNC V_PRBS_CHK_SYNC(1U) 21767 21768 #define S_PRBS_CHK_RST 3 21769 #define V_PRBS_CHK_RST(x) ((x) << S_PRBS_CHK_RST) 21770 #define F_PRBS_CHK_RST V_PRBS_CHK_RST(1U) 21771 21772 #define S_PRBS_CHK_OFF 2 21773 #define V_PRBS_CHK_OFF(x) ((x) << S_PRBS_CHK_OFF) 21774 #define F_PRBS_CHK_OFF V_PRBS_CHK_OFF(1U) 21775 21776 #define S_PRBS_GEN_FRCERR 1 21777 #define V_PRBS_GEN_FRCERR(x) ((x) << S_PRBS_GEN_FRCERR) 21778 #define F_PRBS_GEN_FRCERR V_PRBS_GEN_FRCERR(1U) 21779 21780 #define S_PRBS_GEN_OFF 0 21781 #define V_PRBS_GEN_OFF(x) ((x) << S_PRBS_GEN_OFF) 21782 #define F_PRBS_GEN_OFF V_PRBS_GEN_OFF(1U) 21783 21784 #define A_XGMAC_PORT_AE_FSM_CTL 0x1718 21785 21786 #define S_FSM_TR_LCL 14 21787 #define V_FSM_TR_LCL(x) ((x) << S_FSM_TR_LCL) 21788 #define F_FSM_TR_LCL V_FSM_TR_LCL(1U) 21789 21790 #define S_FSM_GDMRK 11 21791 #define M_FSM_GDMRK 0x7U 21792 #define V_FSM_GDMRK(x) ((x) << S_FSM_GDMRK) 21793 #define G_FSM_GDMRK(x) (((x) >> S_FSM_GDMRK) & M_FSM_GDMRK) 21794 21795 #define S_FSM_BADMRK 8 21796 #define M_FSM_BADMRK 0x7U 21797 #define V_FSM_BADMRK(x) ((x) << S_FSM_BADMRK) 21798 #define G_FSM_BADMRK(x) (((x) >> S_FSM_BADMRK) & M_FSM_BADMRK) 21799 21800 #define S_FSM_TR_FAIL 7 21801 #define V_FSM_TR_FAIL(x) ((x) << S_FSM_TR_FAIL) 21802 #define F_FSM_TR_FAIL V_FSM_TR_FAIL(1U) 21803 21804 #define S_FSM_TR_ACT 6 21805 #define V_FSM_TR_ACT(x) ((x) << S_FSM_TR_ACT) 21806 #define F_FSM_TR_ACT V_FSM_TR_ACT(1U) 21807 21808 #define S_FSM_FRM_LCK 5 21809 #define V_FSM_FRM_LCK(x) ((x) << S_FSM_FRM_LCK) 21810 #define F_FSM_FRM_LCK V_FSM_FRM_LCK(1U) 21811 21812 #define S_FSM_TR_COMP 4 21813 #define V_FSM_TR_COMP(x) ((x) << S_FSM_TR_COMP) 21814 #define F_FSM_TR_COMP V_FSM_TR_COMP(1U) 21815 21816 #define S_MC_RX_RDY 3 21817 #define V_MC_RX_RDY(x) ((x) << S_MC_RX_RDY) 21818 #define F_MC_RX_RDY V_MC_RX_RDY(1U) 21819 21820 #define S_FSM_CU_DIS 2 21821 #define V_FSM_CU_DIS(x) ((x) << S_FSM_CU_DIS) 21822 #define F_FSM_CU_DIS V_FSM_CU_DIS(1U) 21823 21824 #define S_FSM_TR_RST 1 21825 #define V_FSM_TR_RST(x) ((x) << S_FSM_TR_RST) 21826 #define F_FSM_TR_RST V_FSM_TR_RST(1U) 21827 21828 #define S_FSM_TR_EN 0 21829 #define V_FSM_TR_EN(x) ((x) << S_FSM_TR_EN) 21830 #define F_FSM_TR_EN V_FSM_TR_EN(1U) 21831 21832 #define A_XGMAC_PORT_AE_FSM_STATE 0x171c 21833 21834 #define S_CC2FSM_STATE 13 21835 #define M_CC2FSM_STATE 0x7U 21836 #define V_CC2FSM_STATE(x) ((x) << S_CC2FSM_STATE) 21837 #define G_CC2FSM_STATE(x) (((x) >> S_CC2FSM_STATE) & M_CC2FSM_STATE) 21838 21839 #define S_CC1FSM_STATE 10 21840 #define M_CC1FSM_STATE 0x7U 21841 #define V_CC1FSM_STATE(x) ((x) << S_CC1FSM_STATE) 21842 #define G_CC1FSM_STATE(x) (((x) >> S_CC1FSM_STATE) & M_CC1FSM_STATE) 21843 21844 #define S_CC0FSM_STATE 7 21845 #define M_CC0FSM_STATE 0x7U 21846 #define V_CC0FSM_STATE(x) ((x) << S_CC0FSM_STATE) 21847 #define G_CC0FSM_STATE(x) (((x) >> S_CC0FSM_STATE) & M_CC0FSM_STATE) 21848 21849 #define S_FLFSM_STATE 4 21850 #define M_FLFSM_STATE 0x7U 21851 #define V_FLFSM_STATE(x) ((x) << S_FLFSM_STATE) 21852 #define G_FLFSM_STATE(x) (((x) >> S_FLFSM_STATE) & M_FLFSM_STATE) 21853 21854 #define S_TFSM_STATE 0 21855 #define M_TFSM_STATE 0x7U 21856 #define V_TFSM_STATE(x) ((x) << S_TFSM_STATE) 21857 #define G_TFSM_STATE(x) (((x) >> S_TFSM_STATE) & M_TFSM_STATE) 21858 21859 #define A_XGMAC_PORT_AE_TX_DIS 0x1780 21860 21861 #define S_PMD_TX_DIS 0 21862 #define V_PMD_TX_DIS(x) ((x) << S_PMD_TX_DIS) 21863 #define F_PMD_TX_DIS V_PMD_TX_DIS(1U) 21864 21865 #define A_XGMAC_PORT_AE_KR_CTRL 0x1784 21866 21867 #define S_TRAINING_ENABLE 1 21868 #define V_TRAINING_ENABLE(x) ((x) << S_TRAINING_ENABLE) 21869 #define F_TRAINING_ENABLE V_TRAINING_ENABLE(1U) 21870 21871 #define S_RESTART_TRAINING 0 21872 #define V_RESTART_TRAINING(x) ((x) << S_RESTART_TRAINING) 21873 #define F_RESTART_TRAINING V_RESTART_TRAINING(1U) 21874 21875 #define A_XGMAC_PORT_AE_RX_SIGDET 0x1788 21876 21877 #define S_PMD_SIGDET 0 21878 #define V_PMD_SIGDET(x) ((x) << S_PMD_SIGDET) 21879 #define F_PMD_SIGDET V_PMD_SIGDET(1U) 21880 21881 #define A_XGMAC_PORT_AE_KR_STATUS 0x178c 21882 21883 #define S_TRAINING_FAILURE 3 21884 #define V_TRAINING_FAILURE(x) ((x) << S_TRAINING_FAILURE) 21885 #define F_TRAINING_FAILURE V_TRAINING_FAILURE(1U) 21886 21887 #define S_TRAINING 2 21888 #define V_TRAINING(x) ((x) << S_TRAINING) 21889 #define F_TRAINING V_TRAINING(1U) 21890 21891 #define S_FRAME_LOCK 1 21892 #define V_FRAME_LOCK(x) ((x) << S_FRAME_LOCK) 21893 #define F_FRAME_LOCK V_FRAME_LOCK(1U) 21894 21895 #define S_RX_TRAINED 0 21896 #define V_RX_TRAINED(x) ((x) << S_RX_TRAINED) 21897 #define F_RX_TRAINED V_RX_TRAINED(1U) 21898 21899 #define A_XGMAC_PORT_HSS_TXA_MODE_CFG 0x1800 21900 21901 #define S_BWSEL 2 21902 #define M_BWSEL 0x3U 21903 #define V_BWSEL(x) ((x) << S_BWSEL) 21904 #define G_BWSEL(x) (((x) >> S_BWSEL) & M_BWSEL) 21905 21906 #define S_RTSEL 0 21907 #define M_RTSEL 0x3U 21908 #define V_RTSEL(x) ((x) << S_RTSEL) 21909 #define G_RTSEL(x) (((x) >> S_RTSEL) & M_RTSEL) 21910 21911 #define A_XGMAC_PORT_HSS_TXA_TEST_CTRL 0x1804 21912 21913 #define S_TWDP 5 21914 #define V_TWDP(x) ((x) << S_TWDP) 21915 #define F_TWDP V_TWDP(1U) 21916 21917 #define S_TPGRST 4 21918 #define V_TPGRST(x) ((x) << S_TPGRST) 21919 #define F_TPGRST V_TPGRST(1U) 21920 21921 #define S_TPGEN 3 21922 #define V_TPGEN(x) ((x) << S_TPGEN) 21923 #define F_TPGEN V_TPGEN(1U) 21924 21925 #define S_TPSEL 0 21926 #define M_TPSEL 0x7U 21927 #define V_TPSEL(x) ((x) << S_TPSEL) 21928 #define G_TPSEL(x) (((x) >> S_TPSEL) & M_TPSEL) 21929 21930 #define A_XGMAC_PORT_HSS_TXA_COEFF_CTRL 0x1808 21931 21932 #define S_AEINVPOL 6 21933 #define V_AEINVPOL(x) ((x) << S_AEINVPOL) 21934 #define F_AEINVPOL V_AEINVPOL(1U) 21935 21936 #define S_AESOURCE 5 21937 #define V_AESOURCE(x) ((x) << S_AESOURCE) 21938 #define F_AESOURCE V_AESOURCE(1U) 21939 21940 #define S_EQMODE 4 21941 #define V_EQMODE(x) ((x) << S_EQMODE) 21942 #define F_EQMODE V_EQMODE(1U) 21943 21944 #define S_OCOEF 3 21945 #define V_OCOEF(x) ((x) << S_OCOEF) 21946 #define F_OCOEF V_OCOEF(1U) 21947 21948 #define S_COEFRST 2 21949 #define V_COEFRST(x) ((x) << S_COEFRST) 21950 #define F_COEFRST V_COEFRST(1U) 21951 21952 #define S_SPEN 1 21953 #define V_SPEN(x) ((x) << S_SPEN) 21954 #define F_SPEN V_SPEN(1U) 21955 21956 #define S_ALOAD 0 21957 #define V_ALOAD(x) ((x) << S_ALOAD) 21958 #define F_ALOAD V_ALOAD(1U) 21959 21960 #define A_XGMAC_PORT_HSS_TXA_DRIVER_MODE 0x180c 21961 21962 #define S_DRVOFFT 5 21963 #define V_DRVOFFT(x) ((x) << S_DRVOFFT) 21964 #define F_DRVOFFT V_DRVOFFT(1U) 21965 21966 #define S_SLEW 2 21967 #define M_SLEW 0x7U 21968 #define V_SLEW(x) ((x) << S_SLEW) 21969 #define G_SLEW(x) (((x) >> S_SLEW) & M_SLEW) 21970 21971 #define S_FFE 0 21972 #define M_FFE 0x3U 21973 #define V_FFE(x) ((x) << S_FFE) 21974 #define G_FFE(x) (((x) >> S_FFE) & M_FFE) 21975 21976 #define A_XGMAC_PORT_HSS_TXA_DRIVER_OVR_CTRL 0x1810 21977 21978 #define S_VLINC 7 21979 #define V_VLINC(x) ((x) << S_VLINC) 21980 #define F_VLINC V_VLINC(1U) 21981 21982 #define S_VLDEC 6 21983 #define V_VLDEC(x) ((x) << S_VLDEC) 21984 #define F_VLDEC V_VLDEC(1U) 21985 21986 #define S_LOPWR 5 21987 #define V_LOPWR(x) ((x) << S_LOPWR) 21988 #define F_LOPWR V_LOPWR(1U) 21989 21990 #define S_TDMEN 4 21991 #define V_TDMEN(x) ((x) << S_TDMEN) 21992 #define F_TDMEN V_TDMEN(1U) 21993 21994 #define S_DCCEN 3 21995 #define V_DCCEN(x) ((x) << S_DCCEN) 21996 #define F_DCCEN V_DCCEN(1U) 21997 21998 #define S_VHSEL 2 21999 #define V_VHSEL(x) ((x) << S_VHSEL) 22000 #define F_VHSEL V_VHSEL(1U) 22001 22002 #define S_IDAC 0 22003 #define M_IDAC 0x3U 22004 #define V_IDAC(x) ((x) << S_IDAC) 22005 #define G_IDAC(x) (((x) >> S_IDAC) & M_IDAC) 22006 22007 #define A_XGMAC_PORT_HSS_TXA_TDM_BIASGEN_STANDBY_TIMER 0x1814 22008 22009 #define S_STBY 0 22010 #define M_STBY 0xffffU 22011 #define V_STBY(x) ((x) << S_STBY) 22012 #define G_STBY(x) (((x) >> S_STBY) & M_STBY) 22013 22014 #define A_XGMAC_PORT_HSS_TXA_TDM_BIASGEN_PWRON_TIMER 0x1818 22015 22016 #define S_PON 0 22017 #define M_PON 0xffffU 22018 #define V_PON(x) ((x) << S_PON) 22019 #define G_PON(x) (((x) >> S_PON) & M_PON) 22020 22021 #define A_XGMAC_PORT_HSS_TXA_TAP0_COEFF 0x1820 22022 22023 #define S_NXTT0 0 22024 #define M_NXTT0 0xfU 22025 #define V_NXTT0(x) ((x) << S_NXTT0) 22026 #define G_NXTT0(x) (((x) >> S_NXTT0) & M_NXTT0) 22027 22028 #define A_XGMAC_PORT_HSS_TXA_TAP1_COEFF 0x1824 22029 22030 #define S_NXTT1 0 22031 #define M_NXTT1 0x3fU 22032 #define V_NXTT1(x) ((x) << S_NXTT1) 22033 #define G_NXTT1(x) (((x) >> S_NXTT1) & M_NXTT1) 22034 22035 #define A_XGMAC_PORT_HSS_TXA_TAP2_COEFF 0x1828 22036 22037 #define S_NXTT2 0 22038 #define M_NXTT2 0x1fU 22039 #define V_NXTT2(x) ((x) << S_NXTT2) 22040 #define G_NXTT2(x) (((x) >> S_NXTT2) & M_NXTT2) 22041 22042 #define A_XGMAC_PORT_HSS_TXA_PWR 0x1830 22043 22044 #define S_TXPWR 0 22045 #define M_TXPWR 0x7fU 22046 #define V_TXPWR(x) ((x) << S_TXPWR) 22047 #define G_TXPWR(x) (((x) >> S_TXPWR) & M_TXPWR) 22048 22049 #define A_XGMAC_PORT_HSS_TXA_POLARITY 0x1834 22050 22051 #define S_TXPOL 4 22052 #define M_TXPOL 0x7U 22053 #define V_TXPOL(x) ((x) << S_TXPOL) 22054 #define G_TXPOL(x) (((x) >> S_TXPOL) & M_TXPOL) 22055 22056 #define S_NTXPOL 0 22057 #define M_NTXPOL 0x7U 22058 #define V_NTXPOL(x) ((x) << S_NTXPOL) 22059 #define G_NTXPOL(x) (((x) >> S_NTXPOL) & M_NTXPOL) 22060 22061 #define A_XGMAC_PORT_HSS_TXA_8023AP_AE_CMD 0x1838 22062 22063 #define S_CXPRESET 13 22064 #define V_CXPRESET(x) ((x) << S_CXPRESET) 22065 #define F_CXPRESET V_CXPRESET(1U) 22066 22067 #define S_CXINIT 12 22068 #define V_CXINIT(x) ((x) << S_CXINIT) 22069 #define F_CXINIT V_CXINIT(1U) 22070 22071 #define S_C2UPDT 4 22072 #define M_C2UPDT 0x3U 22073 #define V_C2UPDT(x) ((x) << S_C2UPDT) 22074 #define G_C2UPDT(x) (((x) >> S_C2UPDT) & M_C2UPDT) 22075 22076 #define S_C1UPDT 2 22077 #define M_C1UPDT 0x3U 22078 #define V_C1UPDT(x) ((x) << S_C1UPDT) 22079 #define G_C1UPDT(x) (((x) >> S_C1UPDT) & M_C1UPDT) 22080 22081 #define S_C0UPDT 0 22082 #define M_C0UPDT 0x3U 22083 #define V_C0UPDT(x) ((x) << S_C0UPDT) 22084 #define G_C0UPDT(x) (((x) >> S_C0UPDT) & M_C0UPDT) 22085 22086 #define A_XGMAC_PORT_HSS_TXA_8023AP_AE_STATUS 0x183c 22087 22088 #define S_C2STAT 4 22089 #define M_C2STAT 0x3U 22090 #define V_C2STAT(x) ((x) << S_C2STAT) 22091 #define G_C2STAT(x) (((x) >> S_C2STAT) & M_C2STAT) 22092 22093 #define S_C1STAT 2 22094 #define M_C1STAT 0x3U 22095 #define V_C1STAT(x) ((x) << S_C1STAT) 22096 #define G_C1STAT(x) (((x) >> S_C1STAT) & M_C1STAT) 22097 22098 #define S_C0STAT 0 22099 #define M_C0STAT 0x3U 22100 #define V_C0STAT(x) ((x) << S_C0STAT) 22101 #define G_C0STAT(x) (((x) >> S_C0STAT) & M_C0STAT) 22102 22103 #define A_XGMAC_PORT_HSS_TXA_TAP0_IDAC_OVR 0x1840 22104 22105 #define S_NIDAC0 0 22106 #define M_NIDAC0 0x1fU 22107 #define V_NIDAC0(x) ((x) << S_NIDAC0) 22108 #define G_NIDAC0(x) (((x) >> S_NIDAC0) & M_NIDAC0) 22109 22110 #define A_XGMAC_PORT_HSS_TXA_TAP1_IDAC_OVR 0x1844 22111 22112 #define S_NIDAC1 0 22113 #define M_NIDAC1 0x7fU 22114 #define V_NIDAC1(x) ((x) << S_NIDAC1) 22115 #define G_NIDAC1(x) (((x) >> S_NIDAC1) & M_NIDAC1) 22116 22117 #define A_XGMAC_PORT_HSS_TXA_TAP2_IDAC_OVR 0x1848 22118 22119 #define S_NIDAC2 0 22120 #define M_NIDAC2 0x3fU 22121 #define V_NIDAC2(x) ((x) << S_NIDAC2) 22122 #define G_NIDAC2(x) (((x) >> S_NIDAC2) & M_NIDAC2) 22123 22124 #define A_XGMAC_PORT_HSS_TXA_PWR_DAC_OVR 0x1850 22125 22126 #define S_OPEN 7 22127 #define V_OPEN(x) ((x) << S_OPEN) 22128 #define F_OPEN V_OPEN(1U) 22129 22130 #define S_OPVAL 0 22131 #define M_OPVAL 0x1fU 22132 #define V_OPVAL(x) ((x) << S_OPVAL) 22133 #define G_OPVAL(x) (((x) >> S_OPVAL) & M_OPVAL) 22134 22135 #define A_XGMAC_PORT_HSS_TXA_PWR_DAC 0x1854 22136 22137 #define S_PDAC 0 22138 #define M_PDAC 0x1fU 22139 #define V_PDAC(x) ((x) << S_PDAC) 22140 #define G_PDAC(x) (((x) >> S_PDAC) & M_PDAC) 22141 22142 #define A_XGMAC_PORT_HSS_TXA_TAP0_IDAC_APP 0x1860 22143 22144 #define S_AIDAC0 0 22145 #define M_AIDAC0 0x1fU 22146 #define V_AIDAC0(x) ((x) << S_AIDAC0) 22147 #define G_AIDAC0(x) (((x) >> S_AIDAC0) & M_AIDAC0) 22148 22149 #define A_XGMAC_PORT_HSS_TXA_TAP1_IDAC_APP 0x1864 22150 22151 #define S_AIDAC1 0 22152 #define M_AIDAC1 0x1fU 22153 #define V_AIDAC1(x) ((x) << S_AIDAC1) 22154 #define G_AIDAC1(x) (((x) >> S_AIDAC1) & M_AIDAC1) 22155 22156 #define A_XGMAC_PORT_HSS_TXA_TAP2_IDAC_APP 0x1868 22157 22158 #define S_TXA_AIDAC2 0 22159 #define M_TXA_AIDAC2 0x1fU 22160 #define V_TXA_AIDAC2(x) ((x) << S_TXA_AIDAC2) 22161 #define G_TXA_AIDAC2(x) (((x) >> S_TXA_AIDAC2) & M_TXA_AIDAC2) 22162 22163 #define A_XGMAC_PORT_HSS_TXA_SEG_DIS_APP 0x1870 22164 22165 #define S_CURSD 0 22166 #define M_CURSD 0x7fU 22167 #define V_CURSD(x) ((x) << S_CURSD) 22168 #define G_CURSD(x) (((x) >> S_CURSD) & M_CURSD) 22169 22170 #define A_XGMAC_PORT_HSS_TXA_EXT_ADDR_DATA 0x1878 22171 22172 #define S_XDATA 0 22173 #define M_XDATA 0xffffU 22174 #define V_XDATA(x) ((x) << S_XDATA) 22175 #define G_XDATA(x) (((x) >> S_XDATA) & M_XDATA) 22176 22177 #define A_XGMAC_PORT_HSS_TXA_EXT_ADDR 0x187c 22178 22179 #define S_EXTADDR 1 22180 #define M_EXTADDR 0x1fU 22181 #define V_EXTADDR(x) ((x) << S_EXTADDR) 22182 #define G_EXTADDR(x) (((x) >> S_EXTADDR) & M_EXTADDR) 22183 22184 #define S_XWR 0 22185 #define V_XWR(x) ((x) << S_XWR) 22186 #define F_XWR V_XWR(1U) 22187 22188 #define A_XGMAC_PORT_HSS_TXB_MODE_CFG 0x1880 22189 #define A_XGMAC_PORT_HSS_TXB_TEST_CTRL 0x1884 22190 #define A_XGMAC_PORT_HSS_TXB_COEFF_CTRL 0x1888 22191 #define A_XGMAC_PORT_HSS_TXB_DRIVER_MODE 0x188c 22192 #define A_XGMAC_PORT_HSS_TXB_DRIVER_OVR_CTRL 0x1890 22193 #define A_XGMAC_PORT_HSS_TXB_TDM_BIASGEN_STANDBY_TIMER 0x1894 22194 #define A_XGMAC_PORT_HSS_TXB_TDM_BIASGEN_PWRON_TIMER 0x1898 22195 #define A_XGMAC_PORT_HSS_TXB_TAP0_COEFF 0x18a0 22196 #define A_XGMAC_PORT_HSS_TXB_TAP1_COEFF 0x18a4 22197 #define A_XGMAC_PORT_HSS_TXB_TAP2_COEFF 0x18a8 22198 #define A_XGMAC_PORT_HSS_TXB_PWR 0x18b0 22199 #define A_XGMAC_PORT_HSS_TXB_POLARITY 0x18b4 22200 #define A_XGMAC_PORT_HSS_TXB_8023AP_AE_CMD 0x18b8 22201 #define A_XGMAC_PORT_HSS_TXB_8023AP_AE_STATUS 0x18bc 22202 #define A_XGMAC_PORT_HSS_TXB_TAP0_IDAC_OVR 0x18c0 22203 #define A_XGMAC_PORT_HSS_TXB_TAP1_IDAC_OVR 0x18c4 22204 #define A_XGMAC_PORT_HSS_TXB_TAP2_IDAC_OVR 0x18c8 22205 #define A_XGMAC_PORT_HSS_TXB_PWR_DAC_OVR 0x18d0 22206 #define A_XGMAC_PORT_HSS_TXB_PWR_DAC 0x18d4 22207 #define A_XGMAC_PORT_HSS_TXB_TAP0_IDAC_APP 0x18e0 22208 #define A_XGMAC_PORT_HSS_TXB_TAP1_IDAC_APP 0x18e4 22209 #define A_XGMAC_PORT_HSS_TXB_TAP2_IDAC_APP 0x18e8 22210 22211 #define S_AIDAC2 0 22212 #define M_AIDAC2 0x3fU 22213 #define V_AIDAC2(x) ((x) << S_AIDAC2) 22214 #define G_AIDAC2(x) (((x) >> S_AIDAC2) & M_AIDAC2) 22215 22216 #define A_XGMAC_PORT_HSS_TXB_SEG_DIS_APP 0x18f0 22217 #define A_XGMAC_PORT_HSS_TXB_EXT_ADDR_DATA 0x18f8 22218 #define A_XGMAC_PORT_HSS_TXB_EXT_ADDR 0x18fc 22219 22220 #define S_XADDR 2 22221 #define M_XADDR 0xfU 22222 #define V_XADDR(x) ((x) << S_XADDR) 22223 #define G_XADDR(x) (((x) >> S_XADDR) & M_XADDR) 22224 22225 #define A_XGMAC_PORT_HSS_RXA_CFG_MODE 0x1900 22226 22227 #define S_BW810 8 22228 #define V_BW810(x) ((x) << S_BW810) 22229 #define F_BW810 V_BW810(1U) 22230 22231 #define S_AUXCLK 7 22232 #define V_AUXCLK(x) ((x) << S_AUXCLK) 22233 #define F_AUXCLK V_AUXCLK(1U) 22234 22235 #define S_DMSEL 4 22236 #define M_DMSEL 0x7U 22237 #define V_DMSEL(x) ((x) << S_DMSEL) 22238 #define G_DMSEL(x) (((x) >> S_DMSEL) & M_DMSEL) 22239 22240 #define A_XGMAC_PORT_HSS_RXA_TEST_CTRL 0x1904 22241 22242 #define S_RCLKEN 15 22243 #define V_RCLKEN(x) ((x) << S_RCLKEN) 22244 #define F_RCLKEN V_RCLKEN(1U) 22245 22246 #define S_RRATE 13 22247 #define M_RRATE 0x3U 22248 #define V_RRATE(x) ((x) << S_RRATE) 22249 #define G_RRATE(x) (((x) >> S_RRATE) & M_RRATE) 22250 22251 #define S_LBFRCERROR 10 22252 #define V_LBFRCERROR(x) ((x) << S_LBFRCERROR) 22253 #define F_LBFRCERROR V_LBFRCERROR(1U) 22254 22255 #define S_LBERROR 9 22256 #define V_LBERROR(x) ((x) << S_LBERROR) 22257 #define F_LBERROR V_LBERROR(1U) 22258 22259 #define S_LBSYNC 8 22260 #define V_LBSYNC(x) ((x) << S_LBSYNC) 22261 #define F_LBSYNC V_LBSYNC(1U) 22262 22263 #define S_FDWRAPCLK 7 22264 #define V_FDWRAPCLK(x) ((x) << S_FDWRAPCLK) 22265 #define F_FDWRAPCLK V_FDWRAPCLK(1U) 22266 22267 #define S_FDWRAP 6 22268 #define V_FDWRAP(x) ((x) << S_FDWRAP) 22269 #define F_FDWRAP V_FDWRAP(1U) 22270 22271 #define S_PRST 4 22272 #define V_PRST(x) ((x) << S_PRST) 22273 #define F_PRST V_PRST(1U) 22274 22275 #define S_PCHKEN 3 22276 #define V_PCHKEN(x) ((x) << S_PCHKEN) 22277 #define F_PCHKEN V_PCHKEN(1U) 22278 22279 #define S_PRBSSEL 0 22280 #define M_PRBSSEL 0x7U 22281 #define V_PRBSSEL(x) ((x) << S_PRBSSEL) 22282 #define G_PRBSSEL(x) (((x) >> S_PRBSSEL) & M_PRBSSEL) 22283 22284 #define A_XGMAC_PORT_HSS_RXA_PH_ROTATOR_CTRL 0x1908 22285 22286 #define S_FTHROT 12 22287 #define M_FTHROT 0xfU 22288 #define V_FTHROT(x) ((x) << S_FTHROT) 22289 #define G_FTHROT(x) (((x) >> S_FTHROT) & M_FTHROT) 22290 22291 #define S_RTHROT 11 22292 #define V_RTHROT(x) ((x) << S_RTHROT) 22293 #define F_RTHROT V_RTHROT(1U) 22294 22295 #define S_FILTCTL 7 22296 #define M_FILTCTL 0xfU 22297 #define V_FILTCTL(x) ((x) << S_FILTCTL) 22298 #define G_FILTCTL(x) (((x) >> S_FILTCTL) & M_FILTCTL) 22299 22300 #define S_RSRVO 5 22301 #define M_RSRVO 0x3U 22302 #define V_RSRVO(x) ((x) << S_RSRVO) 22303 #define G_RSRVO(x) (((x) >> S_RSRVO) & M_RSRVO) 22304 22305 #define S_EXTEL 4 22306 #define V_EXTEL(x) ((x) << S_EXTEL) 22307 #define F_EXTEL V_EXTEL(1U) 22308 22309 #define S_RSTONSTUCK 3 22310 #define V_RSTONSTUCK(x) ((x) << S_RSTONSTUCK) 22311 #define F_RSTONSTUCK V_RSTONSTUCK(1U) 22312 22313 #define S_FREEZEFW 2 22314 #define V_FREEZEFW(x) ((x) << S_FREEZEFW) 22315 #define F_FREEZEFW V_FREEZEFW(1U) 22316 22317 #define S_RESETFW 1 22318 #define V_RESETFW(x) ((x) << S_RESETFW) 22319 #define F_RESETFW V_RESETFW(1U) 22320 22321 #define S_SSCENABLE 0 22322 #define V_SSCENABLE(x) ((x) << S_SSCENABLE) 22323 #define F_SSCENABLE V_SSCENABLE(1U) 22324 22325 #define A_XGMAC_PORT_HSS_RXA_PH_ROTATOR_OFFSET_CTRL 0x190c 22326 22327 #define S_RSNP 11 22328 #define V_RSNP(x) ((x) << S_RSNP) 22329 #define F_RSNP V_RSNP(1U) 22330 22331 #define S_TSOEN 10 22332 #define V_TSOEN(x) ((x) << S_TSOEN) 22333 #define F_TSOEN V_TSOEN(1U) 22334 22335 #define S_OFFEN 9 22336 #define V_OFFEN(x) ((x) << S_OFFEN) 22337 #define F_OFFEN V_OFFEN(1U) 22338 22339 #define S_TMSCAL 7 22340 #define M_TMSCAL 0x3U 22341 #define V_TMSCAL(x) ((x) << S_TMSCAL) 22342 #define G_TMSCAL(x) (((x) >> S_TMSCAL) & M_TMSCAL) 22343 22344 #define S_APADJ 6 22345 #define V_APADJ(x) ((x) << S_APADJ) 22346 #define F_APADJ V_APADJ(1U) 22347 22348 #define S_RSEL 5 22349 #define V_RSEL(x) ((x) << S_RSEL) 22350 #define F_RSEL V_RSEL(1U) 22351 22352 #define S_PHOFFS 0 22353 #define M_PHOFFS 0x1fU 22354 #define V_PHOFFS(x) ((x) << S_PHOFFS) 22355 #define G_PHOFFS(x) (((x) >> S_PHOFFS) & M_PHOFFS) 22356 22357 #define A_XGMAC_PORT_HSS_RXA_PH_ROTATOR_POSITION1 0x1910 22358 22359 #define S_ROT0A 8 22360 #define M_ROT0A 0x3fU 22361 #define V_ROT0A(x) ((x) << S_ROT0A) 22362 #define G_ROT0A(x) (((x) >> S_ROT0A) & M_ROT0A) 22363 22364 #define S_RTSEL_SNAPSHOT 0 22365 #define M_RTSEL_SNAPSHOT 0x3fU 22366 #define V_RTSEL_SNAPSHOT(x) ((x) << S_RTSEL_SNAPSHOT) 22367 #define G_RTSEL_SNAPSHOT(x) (((x) >> S_RTSEL_SNAPSHOT) & M_RTSEL_SNAPSHOT) 22368 22369 #define A_XGMAC_PORT_HSS_RXA_PH_ROTATOR_POSITION2 0x1914 22370 22371 #define S_ROT90 0 22372 #define M_ROT90 0x3fU 22373 #define V_ROT90(x) ((x) << S_ROT90) 22374 #define G_ROT90(x) (((x) >> S_ROT90) & M_ROT90) 22375 22376 #define A_XGMAC_PORT_HSS_RXA_PH_ROTATOR_STATIC_PH_OFFSET 0x1918 22377 22378 #define S_RCALER 15 22379 #define V_RCALER(x) ((x) << S_RCALER) 22380 #define F_RCALER V_RCALER(1U) 22381 22382 #define S_RAOOFF 10 22383 #define M_RAOOFF 0x1fU 22384 #define V_RAOOFF(x) ((x) << S_RAOOFF) 22385 #define G_RAOOFF(x) (((x) >> S_RAOOFF) & M_RAOOFF) 22386 22387 #define S_RAEOFF 5 22388 #define M_RAEOFF 0x1fU 22389 #define V_RAEOFF(x) ((x) << S_RAEOFF) 22390 #define G_RAEOFF(x) (((x) >> S_RAEOFF) & M_RAEOFF) 22391 22392 #define S_RDOFF 0 22393 #define M_RDOFF 0x1fU 22394 #define V_RDOFF(x) ((x) << S_RDOFF) 22395 #define G_RDOFF(x) (((x) >> S_RDOFF) & M_RDOFF) 22396 22397 #define A_XGMAC_PORT_HSS_RXA_SIGDET_CTRL 0x191c 22398 22399 #define S_SIGNSD 13 22400 #define M_SIGNSD 0x3U 22401 #define V_SIGNSD(x) ((x) << S_SIGNSD) 22402 #define G_SIGNSD(x) (((x) >> S_SIGNSD) & M_SIGNSD) 22403 22404 #define S_DACSD 8 22405 #define M_DACSD 0x1fU 22406 #define V_DACSD(x) ((x) << S_DACSD) 22407 #define G_DACSD(x) (((x) >> S_DACSD) & M_DACSD) 22408 22409 #define S_SDPDN 6 22410 #define V_SDPDN(x) ((x) << S_SDPDN) 22411 #define F_SDPDN V_SDPDN(1U) 22412 22413 #define S_SIGDET 5 22414 #define V_SIGDET(x) ((x) << S_SIGDET) 22415 #define F_SIGDET V_SIGDET(1U) 22416 22417 #define S_SDLVL 0 22418 #define M_SDLVL 0x1fU 22419 #define V_SDLVL(x) ((x) << S_SDLVL) 22420 #define G_SDLVL(x) (((x) >> S_SDLVL) & M_SDLVL) 22421 22422 #define A_XGMAC_PORT_HSS_RXA_DFE_CTRL 0x1920 22423 22424 #define S_REQCMP 15 22425 #define V_REQCMP(x) ((x) << S_REQCMP) 22426 #define F_REQCMP V_REQCMP(1U) 22427 22428 #define S_DFEREQ 14 22429 #define V_DFEREQ(x) ((x) << S_DFEREQ) 22430 #define F_DFEREQ V_DFEREQ(1U) 22431 22432 #define S_SPCEN 13 22433 #define V_SPCEN(x) ((x) << S_SPCEN) 22434 #define F_SPCEN V_SPCEN(1U) 22435 22436 #define S_GATEEN 12 22437 #define V_GATEEN(x) ((x) << S_GATEEN) 22438 #define F_GATEEN V_GATEEN(1U) 22439 22440 #define S_SPIFMT 9 22441 #define M_SPIFMT 0x7U 22442 #define V_SPIFMT(x) ((x) << S_SPIFMT) 22443 #define G_SPIFMT(x) (((x) >> S_SPIFMT) & M_SPIFMT) 22444 22445 #define S_DFEPWR 6 22446 #define M_DFEPWR 0x7U 22447 #define V_DFEPWR(x) ((x) << S_DFEPWR) 22448 #define G_DFEPWR(x) (((x) >> S_DFEPWR) & M_DFEPWR) 22449 22450 #define S_STNDBY 5 22451 #define V_STNDBY(x) ((x) << S_STNDBY) 22452 #define F_STNDBY V_STNDBY(1U) 22453 22454 #define S_FRCH 4 22455 #define V_FRCH(x) ((x) << S_FRCH) 22456 #define F_FRCH V_FRCH(1U) 22457 22458 #define S_NONRND 3 22459 #define V_NONRND(x) ((x) << S_NONRND) 22460 #define F_NONRND V_NONRND(1U) 22461 22462 #define S_NONRNF 2 22463 #define V_NONRNF(x) ((x) << S_NONRNF) 22464 #define F_NONRNF V_NONRNF(1U) 22465 22466 #define S_FSTLCK 1 22467 #define V_FSTLCK(x) ((x) << S_FSTLCK) 22468 #define F_FSTLCK V_FSTLCK(1U) 22469 22470 #define S_DFERST 0 22471 #define V_DFERST(x) ((x) << S_DFERST) 22472 #define F_DFERST V_DFERST(1U) 22473 22474 #define A_XGMAC_PORT_HSS_RXA_DFE_DATA_EDGE_SAMPLE 0x1924 22475 22476 #define S_ESAMP 8 22477 #define M_ESAMP 0xffU 22478 #define V_ESAMP(x) ((x) << S_ESAMP) 22479 #define G_ESAMP(x) (((x) >> S_ESAMP) & M_ESAMP) 22480 22481 #define S_DSAMP 0 22482 #define M_DSAMP 0xffU 22483 #define V_DSAMP(x) ((x) << S_DSAMP) 22484 #define G_DSAMP(x) (((x) >> S_DSAMP) & M_DSAMP) 22485 22486 #define A_XGMAC_PORT_HSS_RXA_DFE_AMP_SAMPLE 0x1928 22487 22488 #define S_SMODE 8 22489 #define M_SMODE 0xfU 22490 #define V_SMODE(x) ((x) << S_SMODE) 22491 #define G_SMODE(x) (((x) >> S_SMODE) & M_SMODE) 22492 22493 #define S_ADCORR 7 22494 #define V_ADCORR(x) ((x) << S_ADCORR) 22495 #define F_ADCORR V_ADCORR(1U) 22496 22497 #define S_TRAINEN 6 22498 #define V_TRAINEN(x) ((x) << S_TRAINEN) 22499 #define F_TRAINEN V_TRAINEN(1U) 22500 22501 #define S_ASAMPQ 3 22502 #define M_ASAMPQ 0x7U 22503 #define V_ASAMPQ(x) ((x) << S_ASAMPQ) 22504 #define G_ASAMPQ(x) (((x) >> S_ASAMPQ) & M_ASAMPQ) 22505 22506 #define S_ASAMP 0 22507 #define M_ASAMP 0x7U 22508 #define V_ASAMP(x) ((x) << S_ASAMP) 22509 #define G_ASAMP(x) (((x) >> S_ASAMP) & M_ASAMP) 22510 22511 #define A_XGMAC_PORT_HSS_RXA_VGA_CTRL1 0x192c 22512 22513 #define S_POLE 12 22514 #define M_POLE 0x3U 22515 #define V_POLE(x) ((x) << S_POLE) 22516 #define G_POLE(x) (((x) >> S_POLE) & M_POLE) 22517 22518 #define S_PEAK 8 22519 #define M_PEAK 0x7U 22520 #define V_PEAK(x) ((x) << S_PEAK) 22521 #define G_PEAK(x) (((x) >> S_PEAK) & M_PEAK) 22522 22523 #define S_VOFFSN 6 22524 #define M_VOFFSN 0x3U 22525 #define V_VOFFSN(x) ((x) << S_VOFFSN) 22526 #define G_VOFFSN(x) (((x) >> S_VOFFSN) & M_VOFFSN) 22527 22528 #define S_VOFFA 0 22529 #define M_VOFFA 0x3fU 22530 #define V_VOFFA(x) ((x) << S_VOFFA) 22531 #define G_VOFFA(x) (((x) >> S_VOFFA) & M_VOFFA) 22532 22533 #define A_XGMAC_PORT_HSS_RXA_VGA_CTRL2 0x1930 22534 22535 #define S_SHORTV 10 22536 #define V_SHORTV(x) ((x) << S_SHORTV) 22537 #define F_SHORTV V_SHORTV(1U) 22538 22539 #define S_VGAIN 0 22540 #define M_VGAIN 0xfU 22541 #define V_VGAIN(x) ((x) << S_VGAIN) 22542 #define G_VGAIN(x) (((x) >> S_VGAIN) & M_VGAIN) 22543 22544 #define A_XGMAC_PORT_HSS_RXA_VGA_CTRL3 0x1934 22545 22546 #define S_HBND1 10 22547 #define V_HBND1(x) ((x) << S_HBND1) 22548 #define F_HBND1 V_HBND1(1U) 22549 22550 #define S_HBND0 9 22551 #define V_HBND0(x) ((x) << S_HBND0) 22552 #define F_HBND0 V_HBND0(1U) 22553 22554 #define S_VLCKD 8 22555 #define V_VLCKD(x) ((x) << S_VLCKD) 22556 #define F_VLCKD V_VLCKD(1U) 22557 22558 #define S_VLCKDF 7 22559 #define V_VLCKDF(x) ((x) << S_VLCKDF) 22560 #define F_VLCKDF V_VLCKDF(1U) 22561 22562 #define S_AMAXT 0 22563 #define M_AMAXT 0x7fU 22564 #define V_AMAXT(x) ((x) << S_AMAXT) 22565 #define G_AMAXT(x) (((x) >> S_AMAXT) & M_AMAXT) 22566 22567 #define A_XGMAC_PORT_HSS_RXA_DFE_D00_D01_OFFSET 0x1938 22568 22569 #define S_D01SN 13 22570 #define M_D01SN 0x3U 22571 #define V_D01SN(x) ((x) << S_D01SN) 22572 #define G_D01SN(x) (((x) >> S_D01SN) & M_D01SN) 22573 22574 #define S_D01AMP 8 22575 #define M_D01AMP 0x1fU 22576 #define V_D01AMP(x) ((x) << S_D01AMP) 22577 #define G_D01AMP(x) (((x) >> S_D01AMP) & M_D01AMP) 22578 22579 #define S_D00SN 5 22580 #define M_D00SN 0x3U 22581 #define V_D00SN(x) ((x) << S_D00SN) 22582 #define G_D00SN(x) (((x) >> S_D00SN) & M_D00SN) 22583 22584 #define S_D00AMP 0 22585 #define M_D00AMP 0x1fU 22586 #define V_D00AMP(x) ((x) << S_D00AMP) 22587 #define G_D00AMP(x) (((x) >> S_D00AMP) & M_D00AMP) 22588 22589 #define A_XGMAC_PORT_HSS_RXA_DFE_D10_D11_OFFSET 0x193c 22590 22591 #define S_D11SN 13 22592 #define M_D11SN 0x3U 22593 #define V_D11SN(x) ((x) << S_D11SN) 22594 #define G_D11SN(x) (((x) >> S_D11SN) & M_D11SN) 22595 22596 #define S_D11AMP 8 22597 #define M_D11AMP 0x1fU 22598 #define V_D11AMP(x) ((x) << S_D11AMP) 22599 #define G_D11AMP(x) (((x) >> S_D11AMP) & M_D11AMP) 22600 22601 #define S_D10SN 5 22602 #define M_D10SN 0x3U 22603 #define V_D10SN(x) ((x) << S_D10SN) 22604 #define G_D10SN(x) (((x) >> S_D10SN) & M_D10SN) 22605 22606 #define S_D10AMP 0 22607 #define M_D10AMP 0x1fU 22608 #define V_D10AMP(x) ((x) << S_D10AMP) 22609 #define G_D10AMP(x) (((x) >> S_D10AMP) & M_D10AMP) 22610 22611 #define A_XGMAC_PORT_HSS_RXA_DFE_E0_E1_OFFSET 0x1940 22612 22613 #define S_E1SN 13 22614 #define M_E1SN 0x3U 22615 #define V_E1SN(x) ((x) << S_E1SN) 22616 #define G_E1SN(x) (((x) >> S_E1SN) & M_E1SN) 22617 22618 #define S_E1AMP 8 22619 #define M_E1AMP 0x1fU 22620 #define V_E1AMP(x) ((x) << S_E1AMP) 22621 #define G_E1AMP(x) (((x) >> S_E1AMP) & M_E1AMP) 22622 22623 #define S_E0SN 5 22624 #define M_E0SN 0x3U 22625 #define V_E0SN(x) ((x) << S_E0SN) 22626 #define G_E0SN(x) (((x) >> S_E0SN) & M_E0SN) 22627 22628 #define S_E0AMP 0 22629 #define M_E0AMP 0x1fU 22630 #define V_E0AMP(x) ((x) << S_E0AMP) 22631 #define G_E0AMP(x) (((x) >> S_E0AMP) & M_E0AMP) 22632 22633 #define A_XGMAC_PORT_HSS_RXA_DACA_OFFSET 0x1944 22634 22635 #define S_AOFFO 8 22636 #define M_AOFFO 0x3fU 22637 #define V_AOFFO(x) ((x) << S_AOFFO) 22638 #define G_AOFFO(x) (((x) >> S_AOFFO) & M_AOFFO) 22639 22640 #define S_AOFFE 0 22641 #define M_AOFFE 0x3fU 22642 #define V_AOFFE(x) ((x) << S_AOFFE) 22643 #define G_AOFFE(x) (((x) >> S_AOFFE) & M_AOFFE) 22644 22645 #define A_XGMAC_PORT_HSS_RXA_DACAP_DAC_AN_OFFSET 0x1948 22646 22647 #define S_DACAN 8 22648 #define M_DACAN 0xffU 22649 #define V_DACAN(x) ((x) << S_DACAN) 22650 #define G_DACAN(x) (((x) >> S_DACAN) & M_DACAN) 22651 22652 #define S_DACAP 0 22653 #define M_DACAP 0xffU 22654 #define V_DACAP(x) ((x) << S_DACAP) 22655 #define G_DACAP(x) (((x) >> S_DACAP) & M_DACAP) 22656 22657 #define A_XGMAC_PORT_HSS_RXA_DACA_MIN 0x194c 22658 22659 #define S_DACAZ 8 22660 #define M_DACAZ 0xffU 22661 #define V_DACAZ(x) ((x) << S_DACAZ) 22662 #define G_DACAZ(x) (((x) >> S_DACAZ) & M_DACAZ) 22663 22664 #define S_DACAM 0 22665 #define M_DACAM 0xffU 22666 #define V_DACAM(x) ((x) << S_DACAM) 22667 #define G_DACAM(x) (((x) >> S_DACAM) & M_DACAM) 22668 22669 #define A_XGMAC_PORT_HSS_RXA_ADAC_CTRL 0x1950 22670 22671 #define S_ADSN 7 22672 #define M_ADSN 0x3U 22673 #define V_ADSN(x) ((x) << S_ADSN) 22674 #define G_ADSN(x) (((x) >> S_ADSN) & M_ADSN) 22675 22676 #define S_ADMAG 0 22677 #define M_ADMAG 0x7fU 22678 #define V_ADMAG(x) ((x) << S_ADMAG) 22679 #define G_ADMAG(x) (((x) >> S_ADMAG) & M_ADMAG) 22680 22681 #define A_XGMAC_PORT_HSS_RXA_DIGITAL_EYE_CTRL 0x1954 22682 22683 #define S_BLKAZ 15 22684 #define V_BLKAZ(x) ((x) << S_BLKAZ) 22685 #define F_BLKAZ V_BLKAZ(1U) 22686 22687 #define S_WIDTH 10 22688 #define M_WIDTH 0x1fU 22689 #define V_WIDTH(x) ((x) << S_WIDTH) 22690 #define G_WIDTH(x) (((x) >> S_WIDTH) & M_WIDTH) 22691 22692 #define S_MINWIDTH 5 22693 #define M_MINWIDTH 0x1fU 22694 #define V_MINWIDTH(x) ((x) << S_MINWIDTH) 22695 #define G_MINWIDTH(x) (((x) >> S_MINWIDTH) & M_MINWIDTH) 22696 22697 #define S_MINAMP 0 22698 #define M_MINAMP 0x1fU 22699 #define V_MINAMP(x) ((x) << S_MINAMP) 22700 #define G_MINAMP(x) (((x) >> S_MINAMP) & M_MINAMP) 22701 22702 #define A_XGMAC_PORT_HSS_RXA_DIGITAL_EYE_METRICS 0x1958 22703 22704 #define S_EMBRDY 10 22705 #define V_EMBRDY(x) ((x) << S_EMBRDY) 22706 #define F_EMBRDY V_EMBRDY(1U) 22707 22708 #define S_EMBUMP 7 22709 #define V_EMBUMP(x) ((x) << S_EMBUMP) 22710 #define F_EMBUMP V_EMBUMP(1U) 22711 22712 #define S_EMMD 5 22713 #define M_EMMD 0x3U 22714 #define V_EMMD(x) ((x) << S_EMMD) 22715 #define G_EMMD(x) (((x) >> S_EMMD) & M_EMMD) 22716 22717 #define S_EMPAT 1 22718 #define V_EMPAT(x) ((x) << S_EMPAT) 22719 #define F_EMPAT V_EMPAT(1U) 22720 22721 #define S_EMEN 0 22722 #define V_EMEN(x) ((x) << S_EMEN) 22723 #define F_EMEN V_EMEN(1U) 22724 22725 #define A_XGMAC_PORT_HSS_RXA_DFE_H1 0x195c 22726 22727 #define S_H1OSN 14 22728 #define M_H1OSN 0x3U 22729 #define V_H1OSN(x) ((x) << S_H1OSN) 22730 #define G_H1OSN(x) (((x) >> S_H1OSN) & M_H1OSN) 22731 22732 #define S_H1OMAG 8 22733 #define M_H1OMAG 0x3fU 22734 #define V_H1OMAG(x) ((x) << S_H1OMAG) 22735 #define G_H1OMAG(x) (((x) >> S_H1OMAG) & M_H1OMAG) 22736 22737 #define S_H1ESN 6 22738 #define M_H1ESN 0x3U 22739 #define V_H1ESN(x) ((x) << S_H1ESN) 22740 #define G_H1ESN(x) (((x) >> S_H1ESN) & M_H1ESN) 22741 22742 #define S_H1EMAG 0 22743 #define M_H1EMAG 0x3fU 22744 #define V_H1EMAG(x) ((x) << S_H1EMAG) 22745 #define G_H1EMAG(x) (((x) >> S_H1EMAG) & M_H1EMAG) 22746 22747 #define A_XGMAC_PORT_HSS_RXA_DFE_H2 0x1960 22748 22749 #define S_H2OSN 13 22750 #define M_H2OSN 0x3U 22751 #define V_H2OSN(x) ((x) << S_H2OSN) 22752 #define G_H2OSN(x) (((x) >> S_H2OSN) & M_H2OSN) 22753 22754 #define S_H2OMAG 8 22755 #define M_H2OMAG 0x1fU 22756 #define V_H2OMAG(x) ((x) << S_H2OMAG) 22757 #define G_H2OMAG(x) (((x) >> S_H2OMAG) & M_H2OMAG) 22758 22759 #define S_H2ESN 5 22760 #define M_H2ESN 0x3U 22761 #define V_H2ESN(x) ((x) << S_H2ESN) 22762 #define G_H2ESN(x) (((x) >> S_H2ESN) & M_H2ESN) 22763 22764 #define S_H2EMAG 0 22765 #define M_H2EMAG 0x1fU 22766 #define V_H2EMAG(x) ((x) << S_H2EMAG) 22767 #define G_H2EMAG(x) (((x) >> S_H2EMAG) & M_H2EMAG) 22768 22769 #define A_XGMAC_PORT_HSS_RXA_DFE_H3 0x1964 22770 22771 #define S_H3OSN 12 22772 #define M_H3OSN 0x3U 22773 #define V_H3OSN(x) ((x) << S_H3OSN) 22774 #define G_H3OSN(x) (((x) >> S_H3OSN) & M_H3OSN) 22775 22776 #define S_H3OMAG 8 22777 #define M_H3OMAG 0xfU 22778 #define V_H3OMAG(x) ((x) << S_H3OMAG) 22779 #define G_H3OMAG(x) (((x) >> S_H3OMAG) & M_H3OMAG) 22780 22781 #define S_H3ESN 4 22782 #define M_H3ESN 0x3U 22783 #define V_H3ESN(x) ((x) << S_H3ESN) 22784 #define G_H3ESN(x) (((x) >> S_H3ESN) & M_H3ESN) 22785 22786 #define S_H3EMAG 0 22787 #define M_H3EMAG 0xfU 22788 #define V_H3EMAG(x) ((x) << S_H3EMAG) 22789 #define G_H3EMAG(x) (((x) >> S_H3EMAG) & M_H3EMAG) 22790 22791 #define A_XGMAC_PORT_HSS_RXA_DFE_H4 0x1968 22792 22793 #define S_H4OSN 12 22794 #define M_H4OSN 0x3U 22795 #define V_H4OSN(x) ((x) << S_H4OSN) 22796 #define G_H4OSN(x) (((x) >> S_H4OSN) & M_H4OSN) 22797 22798 #define S_H4OMAG 8 22799 #define M_H4OMAG 0xfU 22800 #define V_H4OMAG(x) ((x) << S_H4OMAG) 22801 #define G_H4OMAG(x) (((x) >> S_H4OMAG) & M_H4OMAG) 22802 22803 #define S_H4ESN 4 22804 #define M_H4ESN 0x3U 22805 #define V_H4ESN(x) ((x) << S_H4ESN) 22806 #define G_H4ESN(x) (((x) >> S_H4ESN) & M_H4ESN) 22807 22808 #define S_H4EMAG 0 22809 #define M_H4EMAG 0xfU 22810 #define V_H4EMAG(x) ((x) << S_H4EMAG) 22811 #define G_H4EMAG(x) (((x) >> S_H4EMAG) & M_H4EMAG) 22812 22813 #define A_XGMAC_PORT_HSS_RXA_DFE_H5 0x196c 22814 22815 #define S_H5OSN 12 22816 #define M_H5OSN 0x3U 22817 #define V_H5OSN(x) ((x) << S_H5OSN) 22818 #define G_H5OSN(x) (((x) >> S_H5OSN) & M_H5OSN) 22819 22820 #define S_H5OMAG 8 22821 #define M_H5OMAG 0xfU 22822 #define V_H5OMAG(x) ((x) << S_H5OMAG) 22823 #define G_H5OMAG(x) (((x) >> S_H5OMAG) & M_H5OMAG) 22824 22825 #define S_H5ESN 4 22826 #define M_H5ESN 0x3U 22827 #define V_H5ESN(x) ((x) << S_H5ESN) 22828 #define G_H5ESN(x) (((x) >> S_H5ESN) & M_H5ESN) 22829 22830 #define S_H5EMAG 0 22831 #define M_H5EMAG 0xfU 22832 #define V_H5EMAG(x) ((x) << S_H5EMAG) 22833 #define G_H5EMAG(x) (((x) >> S_H5EMAG) & M_H5EMAG) 22834 22835 #define A_XGMAC_PORT_HSS_RXA_DAC_DPC 0x1970 22836 22837 #define S_DPCCVG 13 22838 #define V_DPCCVG(x) ((x) << S_DPCCVG) 22839 #define F_DPCCVG V_DPCCVG(1U) 22840 22841 #define S_DACCVG 12 22842 #define V_DACCVG(x) ((x) << S_DACCVG) 22843 #define F_DACCVG V_DACCVG(1U) 22844 22845 #define S_DPCTGT 9 22846 #define M_DPCTGT 0x7U 22847 #define V_DPCTGT(x) ((x) << S_DPCTGT) 22848 #define G_DPCTGT(x) (((x) >> S_DPCTGT) & M_DPCTGT) 22849 22850 #define S_BLKH1T 8 22851 #define V_BLKH1T(x) ((x) << S_BLKH1T) 22852 #define F_BLKH1T V_BLKH1T(1U) 22853 22854 #define S_BLKOAE 7 22855 #define V_BLKOAE(x) ((x) << S_BLKOAE) 22856 #define F_BLKOAE V_BLKOAE(1U) 22857 22858 #define S_H1TGT 4 22859 #define M_H1TGT 0x7U 22860 #define V_H1TGT(x) ((x) << S_H1TGT) 22861 #define G_H1TGT(x) (((x) >> S_H1TGT) & M_H1TGT) 22862 22863 #define S_OAE 0 22864 #define M_OAE 0xfU 22865 #define V_OAE(x) ((x) << S_OAE) 22866 #define G_OAE(x) (((x) >> S_OAE) & M_OAE) 22867 22868 #define A_XGMAC_PORT_HSS_RXA_DDC 0x1974 22869 22870 #define S_OLS 11 22871 #define M_OLS 0x1fU 22872 #define V_OLS(x) ((x) << S_OLS) 22873 #define G_OLS(x) (((x) >> S_OLS) & M_OLS) 22874 22875 #define S_OES 6 22876 #define M_OES 0x1fU 22877 #define V_OES(x) ((x) << S_OES) 22878 #define G_OES(x) (((x) >> S_OES) & M_OES) 22879 22880 #define S_BLKODEC 5 22881 #define V_BLKODEC(x) ((x) << S_BLKODEC) 22882 #define F_BLKODEC V_BLKODEC(1U) 22883 22884 #define S_ODEC 0 22885 #define M_ODEC 0x1fU 22886 #define V_ODEC(x) ((x) << S_ODEC) 22887 #define G_ODEC(x) (((x) >> S_ODEC) & M_ODEC) 22888 22889 #define A_XGMAC_PORT_HSS_RXA_INTERNAL_STATUS 0x1978 22890 22891 #define S_BER6 15 22892 #define V_BER6(x) ((x) << S_BER6) 22893 #define F_BER6 V_BER6(1U) 22894 22895 #define S_BER6VAL 14 22896 #define V_BER6VAL(x) ((x) << S_BER6VAL) 22897 #define F_BER6VAL V_BER6VAL(1U) 22898 22899 #define S_BER3VAL 13 22900 #define V_BER3VAL(x) ((x) << S_BER3VAL) 22901 #define F_BER3VAL V_BER3VAL(1U) 22902 22903 #define S_DPCCMP 9 22904 #define V_DPCCMP(x) ((x) << S_DPCCMP) 22905 #define F_DPCCMP V_DPCCMP(1U) 22906 22907 #define S_DACCMP 8 22908 #define V_DACCMP(x) ((x) << S_DACCMP) 22909 #define F_DACCMP V_DACCMP(1U) 22910 22911 #define S_DDCCMP 7 22912 #define V_DDCCMP(x) ((x) << S_DDCCMP) 22913 #define F_DDCCMP V_DDCCMP(1U) 22914 22915 #define S_AERRFLG 6 22916 #define V_AERRFLG(x) ((x) << S_AERRFLG) 22917 #define F_AERRFLG V_AERRFLG(1U) 22918 22919 #define S_WERRFLG 5 22920 #define V_WERRFLG(x) ((x) << S_WERRFLG) 22921 #define F_WERRFLG V_WERRFLG(1U) 22922 22923 #define S_TRCMP 4 22924 #define V_TRCMP(x) ((x) << S_TRCMP) 22925 #define F_TRCMP V_TRCMP(1U) 22926 22927 #define S_VLCKF 3 22928 #define V_VLCKF(x) ((x) << S_VLCKF) 22929 #define F_VLCKF V_VLCKF(1U) 22930 22931 #define S_ROCADJ 2 22932 #define V_ROCADJ(x) ((x) << S_ROCADJ) 22933 #define F_ROCADJ V_ROCADJ(1U) 22934 22935 #define S_ROCCMP 1 22936 #define V_ROCCMP(x) ((x) << S_ROCCMP) 22937 #define F_ROCCMP V_ROCCMP(1U) 22938 22939 #define S_OCCMP 0 22940 #define V_OCCMP(x) ((x) << S_OCCMP) 22941 #define F_OCCMP V_OCCMP(1U) 22942 22943 #define A_XGMAC_PORT_HSS_RXA_DFE_FUNC_CTRL 0x197c 22944 22945 #define S_FDPC 15 22946 #define V_FDPC(x) ((x) << S_FDPC) 22947 #define F_FDPC V_FDPC(1U) 22948 22949 #define S_FDAC 14 22950 #define V_FDAC(x) ((x) << S_FDAC) 22951 #define F_FDAC V_FDAC(1U) 22952 22953 #define S_FDDC 13 22954 #define V_FDDC(x) ((x) << S_FDDC) 22955 #define F_FDDC V_FDDC(1U) 22956 22957 #define S_FNRND 12 22958 #define V_FNRND(x) ((x) << S_FNRND) 22959 #define F_FNRND V_FNRND(1U) 22960 22961 #define S_FVGAIN 11 22962 #define V_FVGAIN(x) ((x) << S_FVGAIN) 22963 #define F_FVGAIN V_FVGAIN(1U) 22964 22965 #define S_FVOFF 10 22966 #define V_FVOFF(x) ((x) << S_FVOFF) 22967 #define F_FVOFF V_FVOFF(1U) 22968 22969 #define S_FSDET 9 22970 #define V_FSDET(x) ((x) << S_FSDET) 22971 #define F_FSDET V_FSDET(1U) 22972 22973 #define S_FBER6 8 22974 #define V_FBER6(x) ((x) << S_FBER6) 22975 #define F_FBER6 V_FBER6(1U) 22976 22977 #define S_FROTO 7 22978 #define V_FROTO(x) ((x) << S_FROTO) 22979 #define F_FROTO V_FROTO(1U) 22980 22981 #define S_FH4H5 6 22982 #define V_FH4H5(x) ((x) << S_FH4H5) 22983 #define F_FH4H5 V_FH4H5(1U) 22984 22985 #define S_FH2H3 5 22986 #define V_FH2H3(x) ((x) << S_FH2H3) 22987 #define F_FH2H3 V_FH2H3(1U) 22988 22989 #define S_FH1 4 22990 #define V_FH1(x) ((x) << S_FH1) 22991 #define F_FH1 V_FH1(1U) 22992 22993 #define S_FH1SN 3 22994 #define V_FH1SN(x) ((x) << S_FH1SN) 22995 #define F_FH1SN V_FH1SN(1U) 22996 22997 #define S_FNRDF 2 22998 #define V_FNRDF(x) ((x) << S_FNRDF) 22999 #define F_FNRDF V_FNRDF(1U) 23000 23001 #define S_FADAC 0 23002 #define V_FADAC(x) ((x) << S_FADAC) 23003 #define F_FADAC V_FADAC(1U) 23004 23005 #define A_XGMAC_PORT_HSS_RXB_CFG_MODE 0x1980 23006 #define A_XGMAC_PORT_HSS_RXB_TEST_CTRL 0x1984 23007 #define A_XGMAC_PORT_HSS_RXB_PH_ROTATOR_CTRL 0x1988 23008 #define A_XGMAC_PORT_HSS_RXB_PH_ROTATOR_OFFSET_CTRL 0x198c 23009 #define A_XGMAC_PORT_HSS_RXB_PH_ROTATOR_POSITION1 0x1990 23010 #define A_XGMAC_PORT_HSS_RXB_PH_ROTATOR_POSITION2 0x1994 23011 #define A_XGMAC_PORT_HSS_RXB_PH_ROTATOR_STATIC_PH_OFFSET 0x1998 23012 #define A_XGMAC_PORT_HSS_RXB_SIGDET_CTRL 0x199c 23013 #define A_XGMAC_PORT_HSS_RXB_DFE_CTRL 0x19a0 23014 #define A_XGMAC_PORT_HSS_RXB_DFE_DATA_EDGE_SAMPLE 0x19a4 23015 #define A_XGMAC_PORT_HSS_RXB_DFE_AMP_SAMPLE 0x19a8 23016 #define A_XGMAC_PORT_HSS_RXB_VGA_CTRL1 0x19ac 23017 #define A_XGMAC_PORT_HSS_RXB_VGA_CTRL2 0x19b0 23018 #define A_XGMAC_PORT_HSS_RXB_VGA_CTRL3 0x19b4 23019 #define A_XGMAC_PORT_HSS_RXB_DFE_D00_D01_OFFSET 0x19b8 23020 #define A_XGMAC_PORT_HSS_RXB_DFE_D10_D11_OFFSET 0x19bc 23021 #define A_XGMAC_PORT_HSS_RXB_DFE_E0_E1_OFFSET 0x19c0 23022 #define A_XGMAC_PORT_HSS_RXB_DACA_OFFSET 0x19c4 23023 #define A_XGMAC_PORT_HSS_RXB_DACAP_DAC_AN_OFFSET 0x19c8 23024 #define A_XGMAC_PORT_HSS_RXB_DACA_MIN 0x19cc 23025 #define A_XGMAC_PORT_HSS_RXB_ADAC_CTRL 0x19d0 23026 #define A_XGMAC_PORT_HSS_RXB_DIGITAL_EYE_CTRL 0x19d4 23027 #define A_XGMAC_PORT_HSS_RXB_DIGITAL_EYE_METRICS 0x19d8 23028 #define A_XGMAC_PORT_HSS_RXB_DFE_H1 0x19dc 23029 #define A_XGMAC_PORT_HSS_RXB_DFE_H2 0x19e0 23030 #define A_XGMAC_PORT_HSS_RXB_DFE_H3 0x19e4 23031 #define A_XGMAC_PORT_HSS_RXB_DFE_H4 0x19e8 23032 #define A_XGMAC_PORT_HSS_RXB_DFE_H5 0x19ec 23033 #define A_XGMAC_PORT_HSS_RXB_DAC_DPC 0x19f0 23034 #define A_XGMAC_PORT_HSS_RXB_DDC 0x19f4 23035 #define A_XGMAC_PORT_HSS_RXB_INTERNAL_STATUS 0x19f8 23036 #define A_XGMAC_PORT_HSS_RXB_DFE_FUNC_CTRL 0x19fc 23037 #define A_XGMAC_PORT_HSS_TXC_MODE_CFG 0x1a00 23038 #define A_XGMAC_PORT_HSS_TXC_TEST_CTRL 0x1a04 23039 #define A_XGMAC_PORT_HSS_TXC_COEFF_CTRL 0x1a08 23040 #define A_XGMAC_PORT_HSS_TXC_DRIVER_MODE 0x1a0c 23041 #define A_XGMAC_PORT_HSS_TXC_DRIVER_OVR_CTRL 0x1a10 23042 #define A_XGMAC_PORT_HSS_TXC_TDM_BIASGEN_STANDBY_TIMER 0x1a14 23043 #define A_XGMAC_PORT_HSS_TXC_TDM_BIASGEN_PWRON_TIMER 0x1a18 23044 #define A_XGMAC_PORT_HSS_TXC_TAP0_COEFF 0x1a20 23045 #define A_XGMAC_PORT_HSS_TXC_TAP1_COEFF 0x1a24 23046 #define A_XGMAC_PORT_HSS_TXC_TAP2_COEFF 0x1a28 23047 #define A_XGMAC_PORT_HSS_TXC_PWR 0x1a30 23048 #define A_XGMAC_PORT_HSS_TXC_POLARITY 0x1a34 23049 #define A_XGMAC_PORT_HSS_TXC_8023AP_AE_CMD 0x1a38 23050 #define A_XGMAC_PORT_HSS_TXC_8023AP_AE_STATUS 0x1a3c 23051 #define A_XGMAC_PORT_HSS_TXC_TAP0_IDAC_OVR 0x1a40 23052 #define A_XGMAC_PORT_HSS_TXC_TAP1_IDAC_OVR 0x1a44 23053 #define A_XGMAC_PORT_HSS_TXC_TAP2_IDAC_OVR 0x1a48 23054 #define A_XGMAC_PORT_HSS_TXC_PWR_DAC_OVR 0x1a50 23055 #define A_XGMAC_PORT_HSS_TXC_PWR_DAC 0x1a54 23056 #define A_XGMAC_PORT_HSS_TXC_TAP0_IDAC_APP 0x1a60 23057 #define A_XGMAC_PORT_HSS_TXC_TAP1_IDAC_APP 0x1a64 23058 #define A_XGMAC_PORT_HSS_TXC_TAP2_IDAC_APP 0x1a68 23059 #define A_XGMAC_PORT_HSS_TXC_SEG_DIS_APP 0x1a70 23060 #define A_XGMAC_PORT_HSS_TXC_EXT_ADDR_DATA 0x1a78 23061 #define A_XGMAC_PORT_HSS_TXC_EXT_ADDR 0x1a7c 23062 #define A_XGMAC_PORT_HSS_TXD_MODE_CFG 0x1a80 23063 #define A_XGMAC_PORT_HSS_TXD_TEST_CTRL 0x1a84 23064 #define A_XGMAC_PORT_HSS_TXD_COEFF_CTRL 0x1a88 23065 #define A_XGMAC_PORT_HSS_TXD_DRIVER_MODE 0x1a8c 23066 #define A_XGMAC_PORT_HSS_TXD_DRIVER_OVR_CTRL 0x1a90 23067 #define A_XGMAC_PORT_HSS_TXD_TDM_BIASGEN_STANDBY_TIMER 0x1a94 23068 #define A_XGMAC_PORT_HSS_TXD_TDM_BIASGEN_PWRON_TIMER 0x1a98 23069 #define A_XGMAC_PORT_HSS_TXD_TAP0_COEFF 0x1aa0 23070 #define A_XGMAC_PORT_HSS_TXD_TAP1_COEFF 0x1aa4 23071 #define A_XGMAC_PORT_HSS_TXD_TAP2_COEFF 0x1aa8 23072 #define A_XGMAC_PORT_HSS_TXD_PWR 0x1ab0 23073 #define A_XGMAC_PORT_HSS_TXD_POLARITY 0x1ab4 23074 #define A_XGMAC_PORT_HSS_TXD_8023AP_AE_CMD 0x1ab8 23075 #define A_XGMAC_PORT_HSS_TXD_8023AP_AE_STATUS 0x1abc 23076 #define A_XGMAC_PORT_HSS_TXD_TAP0_IDAC_OVR 0x1ac0 23077 #define A_XGMAC_PORT_HSS_TXD_TAP1_IDAC_OVR 0x1ac4 23078 #define A_XGMAC_PORT_HSS_TXD_TAP2_IDAC_OVR 0x1ac8 23079 #define A_XGMAC_PORT_HSS_TXD_PWR_DAC_OVR 0x1ad0 23080 #define A_XGMAC_PORT_HSS_TXD_PWR_DAC 0x1ad4 23081 #define A_XGMAC_PORT_HSS_TXD_TAP0_IDAC_APP 0x1ae0 23082 #define A_XGMAC_PORT_HSS_TXD_TAP1_IDAC_APP 0x1ae4 23083 #define A_XGMAC_PORT_HSS_TXD_TAP2_IDAC_APP 0x1ae8 23084 #define A_XGMAC_PORT_HSS_TXD_SEG_DIS_APP 0x1af0 23085 #define A_XGMAC_PORT_HSS_TXD_EXT_ADDR_DATA 0x1af8 23086 #define A_XGMAC_PORT_HSS_TXD_EXT_ADDR 0x1afc 23087 #define A_XGMAC_PORT_HSS_RXC_CFG_MODE 0x1b00 23088 #define A_XGMAC_PORT_HSS_RXC_TEST_CTRL 0x1b04 23089 #define A_XGMAC_PORT_HSS_RXC_PH_ROTATOR_CTRL 0x1b08 23090 #define A_XGMAC_PORT_HSS_RXC_PH_ROTATOR_OFFSET_CTRL 0x1b0c 23091 #define A_XGMAC_PORT_HSS_RXC_PH_ROTATOR_POSITION1 0x1b10 23092 #define A_XGMAC_PORT_HSS_RXC_PH_ROTATOR_POSITION2 0x1b14 23093 #define A_XGMAC_PORT_HSS_RXC_PH_ROTATOR_STATIC_PH_OFFSET 0x1b18 23094 #define A_XGMAC_PORT_HSS_RXC_SIGDET_CTRL 0x1b1c 23095 #define A_XGMAC_PORT_HSS_RXC_DFE_CTRL 0x1b20 23096 #define A_XGMAC_PORT_HSS_RXC_DFE_DATA_EDGE_SAMPLE 0x1b24 23097 #define A_XGMAC_PORT_HSS_RXC_DFE_AMP_SAMPLE 0x1b28 23098 #define A_XGMAC_PORT_HSS_RXC_VGA_CTRL1 0x1b2c 23099 #define A_XGMAC_PORT_HSS_RXC_VGA_CTRL2 0x1b30 23100 #define A_XGMAC_PORT_HSS_RXC_VGA_CTRL3 0x1b34 23101 #define A_XGMAC_PORT_HSS_RXC_DFE_D00_D01_OFFSET 0x1b38 23102 #define A_XGMAC_PORT_HSS_RXC_DFE_D10_D11_OFFSET 0x1b3c 23103 #define A_XGMAC_PORT_HSS_RXC_DFE_E0_E1_OFFSET 0x1b40 23104 #define A_XGMAC_PORT_HSS_RXC_DACA_OFFSET 0x1b44 23105 #define A_XGMAC_PORT_HSS_RXC_DACAP_DAC_AN_OFFSET 0x1b48 23106 #define A_XGMAC_PORT_HSS_RXC_DACA_MIN 0x1b4c 23107 #define A_XGMAC_PORT_HSS_RXC_ADAC_CTRL 0x1b50 23108 #define A_XGMAC_PORT_HSS_RXC_DIGITAL_EYE_CTRL 0x1b54 23109 #define A_XGMAC_PORT_HSS_RXC_DIGITAL_EYE_METRICS 0x1b58 23110 #define A_XGMAC_PORT_HSS_RXC_DFE_H1 0x1b5c 23111 #define A_XGMAC_PORT_HSS_RXC_DFE_H2 0x1b60 23112 #define A_XGMAC_PORT_HSS_RXC_DFE_H3 0x1b64 23113 #define A_XGMAC_PORT_HSS_RXC_DFE_H4 0x1b68 23114 #define A_XGMAC_PORT_HSS_RXC_DFE_H5 0x1b6c 23115 #define A_XGMAC_PORT_HSS_RXC_DAC_DPC 0x1b70 23116 #define A_XGMAC_PORT_HSS_RXC_DDC 0x1b74 23117 #define A_XGMAC_PORT_HSS_RXC_INTERNAL_STATUS 0x1b78 23118 #define A_XGMAC_PORT_HSS_RXC_DFE_FUNC_CTRL 0x1b7c 23119 #define A_XGMAC_PORT_HSS_RXD_CFG_MODE 0x1b80 23120 #define A_XGMAC_PORT_HSS_RXD_TEST_CTRL 0x1b84 23121 #define A_XGMAC_PORT_HSS_RXD_PH_ROTATOR_CTRL 0x1b88 23122 #define A_XGMAC_PORT_HSS_RXD_PH_ROTATOR_OFFSET_CTRL 0x1b8c 23123 #define A_XGMAC_PORT_HSS_RXD_PH_ROTATOR_POSITION1 0x1b90 23124 #define A_XGMAC_PORT_HSS_RXD_PH_ROTATOR_POSITION2 0x1b94 23125 #define A_XGMAC_PORT_HSS_RXD_PH_ROTATOR_STATIC_PH_OFFSET 0x1b98 23126 #define A_XGMAC_PORT_HSS_RXD_SIGDET_CTRL 0x1b9c 23127 #define A_XGMAC_PORT_HSS_RXD_DFE_CTRL 0x1ba0 23128 #define A_XGMAC_PORT_HSS_RXD_DFE_DATA_EDGE_SAMPLE 0x1ba4 23129 #define A_XGMAC_PORT_HSS_RXD_DFE_AMP_SAMPLE 0x1ba8 23130 #define A_XGMAC_PORT_HSS_RXD_VGA_CTRL1 0x1bac 23131 #define A_XGMAC_PORT_HSS_RXD_VGA_CTRL2 0x1bb0 23132 #define A_XGMAC_PORT_HSS_RXD_VGA_CTRL3 0x1bb4 23133 #define A_XGMAC_PORT_HSS_RXD_DFE_D00_D01_OFFSET 0x1bb8 23134 #define A_XGMAC_PORT_HSS_RXD_DFE_D10_D11_OFFSET 0x1bbc 23135 #define A_XGMAC_PORT_HSS_RXD_DFE_E0_E1_OFFSET 0x1bc0 23136 #define A_XGMAC_PORT_HSS_RXD_DACA_OFFSET 0x1bc4 23137 #define A_XGMAC_PORT_HSS_RXD_DACAP_DAC_AN_OFFSET 0x1bc8 23138 #define A_XGMAC_PORT_HSS_RXD_DACA_MIN 0x1bcc 23139 #define A_XGMAC_PORT_HSS_RXD_ADAC_CTRL 0x1bd0 23140 #define A_XGMAC_PORT_HSS_RXD_DIGITAL_EYE_CTRL 0x1bd4 23141 #define A_XGMAC_PORT_HSS_RXD_DIGITAL_EYE_METRICS 0x1bd8 23142 #define A_XGMAC_PORT_HSS_RXD_DFE_H1 0x1bdc 23143 #define A_XGMAC_PORT_HSS_RXD_DFE_H2 0x1be0 23144 #define A_XGMAC_PORT_HSS_RXD_DFE_H3 0x1be4 23145 #define A_XGMAC_PORT_HSS_RXD_DFE_H4 0x1be8 23146 #define A_XGMAC_PORT_HSS_RXD_DFE_H5 0x1bec 23147 #define A_XGMAC_PORT_HSS_RXD_DAC_DPC 0x1bf0 23148 #define A_XGMAC_PORT_HSS_RXD_DDC 0x1bf4 23149 #define A_XGMAC_PORT_HSS_RXD_INTERNAL_STATUS 0x1bf8 23150 #define A_XGMAC_PORT_HSS_RXD_DFE_FUNC_CTRL 0x1bfc 23151 #define A_XGMAC_PORT_HSS_VCO_COARSE_CALIBRATION_0 0x1c00 23152 23153 #define S_BSELO 0 23154 #define M_BSELO 0xfU 23155 #define V_BSELO(x) ((x) << S_BSELO) 23156 #define G_BSELO(x) (((x) >> S_BSELO) & M_BSELO) 23157 23158 #define A_XGMAC_PORT_HSS_VCO_COARSE_CALIBRATION_1 0x1c04 23159 23160 #define S_LDET 4 23161 #define V_LDET(x) ((x) << S_LDET) 23162 #define F_LDET V_LDET(1U) 23163 23164 #define S_CCERR 3 23165 #define V_CCERR(x) ((x) << S_CCERR) 23166 #define F_CCERR V_CCERR(1U) 23167 23168 #define S_CCCMP 2 23169 #define V_CCCMP(x) ((x) << S_CCCMP) 23170 #define F_CCCMP V_CCCMP(1U) 23171 23172 #define A_XGMAC_PORT_HSS_VCO_COARSE_CALIBRATION_2 0x1c08 23173 23174 #define S_BSELI 0 23175 #define M_BSELI 0xfU 23176 #define V_BSELI(x) ((x) << S_BSELI) 23177 #define G_BSELI(x) (((x) >> S_BSELI) & M_BSELI) 23178 23179 #define A_XGMAC_PORT_HSS_VCO_COARSE_CALIBRATION_3 0x1c0c 23180 23181 #define S_VISEL 4 23182 #define V_VISEL(x) ((x) << S_VISEL) 23183 #define F_VISEL V_VISEL(1U) 23184 23185 #define S_FMIN 3 23186 #define V_FMIN(x) ((x) << S_FMIN) 23187 #define F_FMIN V_FMIN(1U) 23188 23189 #define S_FMAX 2 23190 #define V_FMAX(x) ((x) << S_FMAX) 23191 #define F_FMAX V_FMAX(1U) 23192 23193 #define S_CVHOLD 1 23194 #define V_CVHOLD(x) ((x) << S_CVHOLD) 23195 #define F_CVHOLD V_CVHOLD(1U) 23196 23197 #define S_TCDIS 0 23198 #define V_TCDIS(x) ((x) << S_TCDIS) 23199 #define F_TCDIS V_TCDIS(1U) 23200 23201 #define A_XGMAC_PORT_HSS_VCO_COARSE_CALIBRATION_4 0x1c10 23202 23203 #define S_CMETH 2 23204 #define V_CMETH(x) ((x) << S_CMETH) 23205 #define F_CMETH V_CMETH(1U) 23206 23207 #define S_RECAL 1 23208 #define V_RECAL(x) ((x) << S_RECAL) 23209 #define F_RECAL V_RECAL(1U) 23210 23211 #define S_CCLD 0 23212 #define V_CCLD(x) ((x) << S_CCLD) 23213 #define F_CCLD V_CCLD(1U) 23214 23215 #define A_XGMAC_PORT_HSS_ANALOG_TEST_MUX 0x1c14 23216 23217 #define S_ATST 0 23218 #define M_ATST 0x1fU 23219 #define V_ATST(x) ((x) << S_ATST) 23220 #define G_ATST(x) (((x) >> S_ATST) & M_ATST) 23221 23222 #define A_XGMAC_PORT_HSS_PORT_EN_0 0x1c18 23223 23224 #define S_RXDEN 7 23225 #define V_RXDEN(x) ((x) << S_RXDEN) 23226 #define F_RXDEN V_RXDEN(1U) 23227 23228 #define S_RXCEN 6 23229 #define V_RXCEN(x) ((x) << S_RXCEN) 23230 #define F_RXCEN V_RXCEN(1U) 23231 23232 #define S_TXDEN 5 23233 #define V_TXDEN(x) ((x) << S_TXDEN) 23234 #define F_TXDEN V_TXDEN(1U) 23235 23236 #define S_TXCEN 4 23237 #define V_TXCEN(x) ((x) << S_TXCEN) 23238 #define F_TXCEN V_TXCEN(1U) 23239 23240 #define S_RXBEN 3 23241 #define V_RXBEN(x) ((x) << S_RXBEN) 23242 #define F_RXBEN V_RXBEN(1U) 23243 23244 #define S_RXAEN 2 23245 #define V_RXAEN(x) ((x) << S_RXAEN) 23246 #define F_RXAEN V_RXAEN(1U) 23247 23248 #define S_TXBEN 1 23249 #define V_TXBEN(x) ((x) << S_TXBEN) 23250 #define F_TXBEN V_TXBEN(1U) 23251 23252 #define S_TXAEN 0 23253 #define V_TXAEN(x) ((x) << S_TXAEN) 23254 #define F_TXAEN V_TXAEN(1U) 23255 23256 #define A_XGMAC_PORT_HSS_PORT_RESET_0 0x1c20 23257 23258 #define S_RXDRST 7 23259 #define V_RXDRST(x) ((x) << S_RXDRST) 23260 #define F_RXDRST V_RXDRST(1U) 23261 23262 #define S_RXCRST 6 23263 #define V_RXCRST(x) ((x) << S_RXCRST) 23264 #define F_RXCRST V_RXCRST(1U) 23265 23266 #define S_TXDRST 5 23267 #define V_TXDRST(x) ((x) << S_TXDRST) 23268 #define F_TXDRST V_TXDRST(1U) 23269 23270 #define S_TXCRST 4 23271 #define V_TXCRST(x) ((x) << S_TXCRST) 23272 #define F_TXCRST V_TXCRST(1U) 23273 23274 #define S_RXBRST 3 23275 #define V_RXBRST(x) ((x) << S_RXBRST) 23276 #define F_RXBRST V_RXBRST(1U) 23277 23278 #define S_RXARST 2 23279 #define V_RXARST(x) ((x) << S_RXARST) 23280 #define F_RXARST V_RXARST(1U) 23281 23282 #define S_TXBRST 1 23283 #define V_TXBRST(x) ((x) << S_TXBRST) 23284 #define F_TXBRST V_TXBRST(1U) 23285 23286 #define S_TXARST 0 23287 #define V_TXARST(x) ((x) << S_TXARST) 23288 #define F_TXARST V_TXARST(1U) 23289 23290 #define A_XGMAC_PORT_HSS_CHARGE_PUMP_CTRL 0x1c28 23291 23292 #define S_ENCPIS 2 23293 #define V_ENCPIS(x) ((x) << S_ENCPIS) 23294 #define F_ENCPIS V_ENCPIS(1U) 23295 23296 #define S_CPISEL 0 23297 #define M_CPISEL 0x3U 23298 #define V_CPISEL(x) ((x) << S_CPISEL) 23299 #define G_CPISEL(x) (((x) >> S_CPISEL) & M_CPISEL) 23300 23301 #define A_XGMAC_PORT_HSS_BAND_GAP_CTRL 0x1c2c 23302 23303 #define S_BGCTL 0 23304 #define M_BGCTL 0x1fU 23305 #define V_BGCTL(x) ((x) << S_BGCTL) 23306 #define G_BGCTL(x) (((x) >> S_BGCTL) & M_BGCTL) 23307 23308 #define A_XGMAC_PORT_HSS_LOFREQ_OVR 0x1c30 23309 23310 #define S_LFREQ2 3 23311 #define V_LFREQ2(x) ((x) << S_LFREQ2) 23312 #define F_LFREQ2 V_LFREQ2(1U) 23313 23314 #define S_LFREQ1 2 23315 #define V_LFREQ1(x) ((x) << S_LFREQ1) 23316 #define F_LFREQ1 V_LFREQ1(1U) 23317 23318 #define S_LFREQO 1 23319 #define V_LFREQO(x) ((x) << S_LFREQO) 23320 #define F_LFREQO V_LFREQO(1U) 23321 23322 #define S_LFSEL 0 23323 #define V_LFSEL(x) ((x) << S_LFSEL) 23324 #define F_LFSEL V_LFSEL(1U) 23325 23326 #define A_XGMAC_PORT_HSS_VOLTAGE_BOOST_CTRL 0x1c38 23327 23328 #define S_PFVAL 2 23329 #define V_PFVAL(x) ((x) << S_PFVAL) 23330 #define F_PFVAL V_PFVAL(1U) 23331 23332 #define S_PFEN 1 23333 #define V_PFEN(x) ((x) << S_PFEN) 23334 #define F_PFEN V_PFEN(1U) 23335 23336 #define S_VBADJ 0 23337 #define V_VBADJ(x) ((x) << S_VBADJ) 23338 #define F_VBADJ V_VBADJ(1U) 23339 23340 #define A_XGMAC_PORT_HSS_TX_MODE_CFG 0x1c80 23341 #define A_XGMAC_PORT_HSS_TXTEST_CTRL 0x1c84 23342 #define A_XGMAC_PORT_HSS_TX_COEFF_CTRL 0x1c88 23343 #define A_XGMAC_PORT_HSS_TX_DRIVER_MODE 0x1c8c 23344 #define A_XGMAC_PORT_HSS_TX_DRIVER_OVR_CTRL 0x1c90 23345 #define A_XGMAC_PORT_HSS_TX_TDM_BIASGEN_STANDBY_TIMER 0x1c94 23346 #define A_XGMAC_PORT_HSS_TX_TDM_BIASGEN_PWRON_TIMER 0x1c98 23347 #define A_XGMAC_PORT_HSS_TX_TAP0_COEFF 0x1ca0 23348 #define A_XGMAC_PORT_HSS_TX_TAP1_COEFF 0x1ca4 23349 #define A_XGMAC_PORT_HSS_TX_TAP2_COEFF 0x1ca8 23350 #define A_XGMAC_PORT_HSS_TX_PWR 0x1cb0 23351 #define A_XGMAC_PORT_HSS_TX_POLARITY 0x1cb4 23352 #define A_XGMAC_PORT_HSS_TX_8023AP_AE_CMD 0x1cb8 23353 #define A_XGMAC_PORT_HSS_TX_8023AP_AE_STATUS 0x1cbc 23354 #define A_XGMAC_PORT_HSS_TX_TAP0_IDAC_OVR 0x1cc0 23355 #define A_XGMAC_PORT_HSS_TX_TAP1_IDAC_OVR 0x1cc4 23356 #define A_XGMAC_PORT_HSS_TX_TAP2_IDAC_OVR 0x1cc8 23357 #define A_XGMAC_PORT_HSS_TX_PWR_DAC_OVR 0x1cd0 23358 #define A_XGMAC_PORT_HSS_TX_PWR_DAC 0x1cd4 23359 #define A_XGMAC_PORT_HSS_TX_TAP0_IDAC_APP 0x1ce0 23360 #define A_XGMAC_PORT_HSS_TX_TAP1_IDAC_APP 0x1ce4 23361 #define A_XGMAC_PORT_HSS_TX_TAP2_IDAC_APP 0x1ce8 23362 #define A_XGMAC_PORT_HSS_TX_SEG_DIS_APP 0x1cf0 23363 #define A_XGMAC_PORT_HSS_TX_EXT_ADDR_DATA 0x1cf8 23364 #define A_XGMAC_PORT_HSS_TX_EXT_ADDR 0x1cfc 23365 #define A_XGMAC_PORT_HSS_RX_CFG_MODE 0x1d00 23366 #define A_XGMAC_PORT_HSS_RXTEST_CTRL 0x1d04 23367 #define A_XGMAC_PORT_HSS_RX_PH_ROTATOR_CTRL 0x1d08 23368 #define A_XGMAC_PORT_HSS_RX_PH_ROTATOR_OFFSET_CTRL 0x1d0c 23369 #define A_XGMAC_PORT_HSS_RX_PH_ROTATOR_POSITION1 0x1d10 23370 #define A_XGMAC_PORT_HSS_RX_PH_ROTATOR_POSITION2 0x1d14 23371 #define A_XGMAC_PORT_HSS_RX_PH_ROTATOR_STATIC_PH_OFFSET 0x1d18 23372 #define A_XGMAC_PORT_HSS_RX_SIGDET_CTRL 0x1d1c 23373 #define A_XGMAC_PORT_HSS_RX_DFE_CTRL 0x1d20 23374 #define A_XGMAC_PORT_HSS_RX_DFE_DATA_EDGE_SAMPLE 0x1d24 23375 #define A_XGMAC_PORT_HSS_RX_DFE_AMP_SAMPLE 0x1d28 23376 #define A_XGMAC_PORT_HSS_RX_VGA_CTRL1 0x1d2c 23377 #define A_XGMAC_PORT_HSS_RX_VGA_CTRL2 0x1d30 23378 #define A_XGMAC_PORT_HSS_RX_VGA_CTRL3 0x1d34 23379 #define A_XGMAC_PORT_HSS_RX_DFE_D00_D01_OFFSET 0x1d38 23380 #define A_XGMAC_PORT_HSS_RX_DFE_D10_D11_OFFSET 0x1d3c 23381 #define A_XGMAC_PORT_HSS_RX_DFE_E0_E1_OFFSET 0x1d40 23382 #define A_XGMAC_PORT_HSS_RX_DACA_OFFSET 0x1d44 23383 #define A_XGMAC_PORT_HSS_RX_DACAP_DAC_AN_OFFSET 0x1d48 23384 #define A_XGMAC_PORT_HSS_RX_DACA_MIN 0x1d4c 23385 #define A_XGMAC_PORT_HSS_RX_ADAC_CTRL 0x1d50 23386 #define A_XGMAC_PORT_HSS_RX_DIGITAL_EYE_CTRL 0x1d54 23387 #define A_XGMAC_PORT_HSS_RX_DIGITAL_EYE_METRICS 0x1d58 23388 #define A_XGMAC_PORT_HSS_RX_DFE_H1 0x1d5c 23389 #define A_XGMAC_PORT_HSS_RX_DFE_H2 0x1d60 23390 #define A_XGMAC_PORT_HSS_RX_DFE_H3 0x1d64 23391 #define A_XGMAC_PORT_HSS_RX_DFE_H4 0x1d68 23392 #define A_XGMAC_PORT_HSS_RX_DFE_H5 0x1d6c 23393 #define A_XGMAC_PORT_HSS_RX_DAC_DPC 0x1d70 23394 #define A_XGMAC_PORT_HSS_RX_DDC 0x1d74 23395 #define A_XGMAC_PORT_HSS_RX_INTERNAL_STATUS 0x1d78 23396 #define A_XGMAC_PORT_HSS_RX_DFE_FUNC_CTRL 0x1d7c 23397 #define A_XGMAC_PORT_HSS_TXRX_CFG_MODE 0x1e00 23398 #define A_XGMAC_PORT_HSS_TXRXTEST_CTRL 0x1e04 23399 23400 /* registers for module UP */ 23401 #define UP_BASE_ADDR 0x0 23402 23403 #define A_UP_IBQ_CONFIG 0x0 23404 23405 #define S_IBQGEN2 2 23406 #define M_IBQGEN2 0x3fffffffU 23407 #define V_IBQGEN2(x) ((x) << S_IBQGEN2) 23408 #define G_IBQGEN2(x) (((x) >> S_IBQGEN2) & M_IBQGEN2) 23409 23410 #define S_IBQBUSY 1 23411 #define V_IBQBUSY(x) ((x) << S_IBQBUSY) 23412 #define F_IBQBUSY V_IBQBUSY(1U) 23413 23414 #define S_IBQEN 0 23415 #define V_IBQEN(x) ((x) << S_IBQEN) 23416 #define F_IBQEN V_IBQEN(1U) 23417 23418 #define A_UP_OBQ_CONFIG 0x4 23419 23420 #define S_OBQGEN2 2 23421 #define M_OBQGEN2 0x3fffffffU 23422 #define V_OBQGEN2(x) ((x) << S_OBQGEN2) 23423 #define G_OBQGEN2(x) (((x) >> S_OBQGEN2) & M_OBQGEN2) 23424 23425 #define S_OBQBUSY 1 23426 #define V_OBQBUSY(x) ((x) << S_OBQBUSY) 23427 #define F_OBQBUSY V_OBQBUSY(1U) 23428 23429 #define S_OBQEN 0 23430 #define V_OBQEN(x) ((x) << S_OBQEN) 23431 #define F_OBQEN V_OBQEN(1U) 23432 23433 #define A_UP_IBQ_GEN 0x8 23434 23435 #define S_IBQGEN0 22 23436 #define M_IBQGEN0 0x3ffU 23437 #define V_IBQGEN0(x) ((x) << S_IBQGEN0) 23438 #define G_IBQGEN0(x) (((x) >> S_IBQGEN0) & M_IBQGEN0) 23439 23440 #define S_IBQTSCHCHNLRDY 18 23441 #define M_IBQTSCHCHNLRDY 0xfU 23442 #define V_IBQTSCHCHNLRDY(x) ((x) << S_IBQTSCHCHNLRDY) 23443 #define G_IBQTSCHCHNLRDY(x) (((x) >> S_IBQTSCHCHNLRDY) & M_IBQTSCHCHNLRDY) 23444 23445 #define S_IBQMBVFSTATUS 17 23446 #define V_IBQMBVFSTATUS(x) ((x) << S_IBQMBVFSTATUS) 23447 #define F_IBQMBVFSTATUS V_IBQMBVFSTATUS(1U) 23448 23449 #define S_IBQMBSTATUS 16 23450 #define V_IBQMBSTATUS(x) ((x) << S_IBQMBSTATUS) 23451 #define F_IBQMBSTATUS V_IBQMBSTATUS(1U) 23452 23453 #define S_IBQGEN1 6 23454 #define M_IBQGEN1 0x3ffU 23455 #define V_IBQGEN1(x) ((x) << S_IBQGEN1) 23456 #define G_IBQGEN1(x) (((x) >> S_IBQGEN1) & M_IBQGEN1) 23457 23458 #define S_IBQEMPTY 0 23459 #define M_IBQEMPTY 0x3fU 23460 #define V_IBQEMPTY(x) ((x) << S_IBQEMPTY) 23461 #define G_IBQEMPTY(x) (((x) >> S_IBQEMPTY) & M_IBQEMPTY) 23462 23463 #define A_UP_OBQ_GEN 0xc 23464 23465 #define S_OBQGEN 6 23466 #define M_OBQGEN 0x3ffffffU 23467 #define V_OBQGEN(x) ((x) << S_OBQGEN) 23468 #define G_OBQGEN(x) (((x) >> S_OBQGEN) & M_OBQGEN) 23469 23470 #define S_OBQFULL 0 23471 #define M_OBQFULL 0x3fU 23472 #define V_OBQFULL(x) ((x) << S_OBQFULL) 23473 #define G_OBQFULL(x) (((x) >> S_OBQFULL) & M_OBQFULL) 23474 23475 #define A_UP_IBQ_0_RDADDR 0x10 23476 23477 #define S_QUEID 13 23478 #define M_QUEID 0x7ffffU 23479 #define V_QUEID(x) ((x) << S_QUEID) 23480 #define G_QUEID(x) (((x) >> S_QUEID) & M_QUEID) 23481 23482 #define S_IBQRDADDR 0 23483 #define M_IBQRDADDR 0x1fffU 23484 #define V_IBQRDADDR(x) ((x) << S_IBQRDADDR) 23485 #define G_IBQRDADDR(x) (((x) >> S_IBQRDADDR) & M_IBQRDADDR) 23486 23487 #define A_UP_IBQ_0_WRADDR 0x14 23488 23489 #define S_IBQWRADDR 0 23490 #define M_IBQWRADDR 0x1fffU 23491 #define V_IBQWRADDR(x) ((x) << S_IBQWRADDR) 23492 #define G_IBQWRADDR(x) (((x) >> S_IBQWRADDR) & M_IBQWRADDR) 23493 23494 #define A_UP_IBQ_0_STATUS 0x18 23495 23496 #define S_QUEERRFRAME 31 23497 #define V_QUEERRFRAME(x) ((x) << S_QUEERRFRAME) 23498 #define F_QUEERRFRAME V_QUEERRFRAME(1U) 23499 23500 #define S_QUEREMFLITS 0 23501 #define M_QUEREMFLITS 0x7ffU 23502 #define V_QUEREMFLITS(x) ((x) << S_QUEREMFLITS) 23503 #define G_QUEREMFLITS(x) (((x) >> S_QUEREMFLITS) & M_QUEREMFLITS) 23504 23505 #define A_UP_IBQ_0_PKTCNT 0x1c 23506 23507 #define S_QUEEOPCNT 16 23508 #define M_QUEEOPCNT 0xfffU 23509 #define V_QUEEOPCNT(x) ((x) << S_QUEEOPCNT) 23510 #define G_QUEEOPCNT(x) (((x) >> S_QUEEOPCNT) & M_QUEEOPCNT) 23511 23512 #define S_QUESOPCNT 0 23513 #define M_QUESOPCNT 0xfffU 23514 #define V_QUESOPCNT(x) ((x) << S_QUESOPCNT) 23515 #define G_QUESOPCNT(x) (((x) >> S_QUESOPCNT) & M_QUESOPCNT) 23516 23517 #define A_UP_IBQ_1_RDADDR 0x20 23518 #define A_UP_IBQ_1_WRADDR 0x24 23519 #define A_UP_IBQ_1_STATUS 0x28 23520 #define A_UP_IBQ_1_PKTCNT 0x2c 23521 #define A_UP_IBQ_2_RDADDR 0x30 23522 #define A_UP_IBQ_2_WRADDR 0x34 23523 #define A_UP_IBQ_2_STATUS 0x38 23524 #define A_UP_IBQ_2_PKTCNT 0x3c 23525 #define A_UP_IBQ_3_RDADDR 0x40 23526 #define A_UP_IBQ_3_WRADDR 0x44 23527 #define A_UP_IBQ_3_STATUS 0x48 23528 #define A_UP_IBQ_3_PKTCNT 0x4c 23529 #define A_UP_IBQ_4_RDADDR 0x50 23530 #define A_UP_IBQ_4_WRADDR 0x54 23531 #define A_UP_IBQ_4_STATUS 0x58 23532 #define A_UP_IBQ_4_PKTCNT 0x5c 23533 #define A_UP_IBQ_5_RDADDR 0x60 23534 #define A_UP_IBQ_5_WRADDR 0x64 23535 #define A_UP_IBQ_5_STATUS 0x68 23536 #define A_UP_IBQ_5_PKTCNT 0x6c 23537 #define A_UP_OBQ_0_RDADDR 0x70 23538 23539 #define S_OBQID 15 23540 #define M_OBQID 0x1ffffU 23541 #define V_OBQID(x) ((x) << S_OBQID) 23542 #define G_OBQID(x) (((x) >> S_OBQID) & M_OBQID) 23543 23544 #define S_QUERDADDR 0 23545 #define M_QUERDADDR 0x7fffU 23546 #define V_QUERDADDR(x) ((x) << S_QUERDADDR) 23547 #define G_QUERDADDR(x) (((x) >> S_QUERDADDR) & M_QUERDADDR) 23548 23549 #define A_UP_OBQ_0_WRADDR 0x74 23550 23551 #define S_QUEWRADDR 0 23552 #define M_QUEWRADDR 0x7fffU 23553 #define V_QUEWRADDR(x) ((x) << S_QUEWRADDR) 23554 #define G_QUEWRADDR(x) (((x) >> S_QUEWRADDR) & M_QUEWRADDR) 23555 23556 #define A_UP_OBQ_0_STATUS 0x78 23557 #define A_UP_OBQ_0_PKTCNT 0x7c 23558 #define A_UP_OBQ_1_RDADDR 0x80 23559 #define A_UP_OBQ_1_WRADDR 0x84 23560 #define A_UP_OBQ_1_STATUS 0x88 23561 #define A_UP_OBQ_1_PKTCNT 0x8c 23562 #define A_UP_OBQ_2_RDADDR 0x90 23563 #define A_UP_OBQ_2_WRADDR 0x94 23564 #define A_UP_OBQ_2_STATUS 0x98 23565 #define A_UP_OBQ_2_PKTCNT 0x9c 23566 #define A_UP_OBQ_3_RDADDR 0xa0 23567 #define A_UP_OBQ_3_WRADDR 0xa4 23568 #define A_UP_OBQ_3_STATUS 0xa8 23569 #define A_UP_OBQ_3_PKTCNT 0xac 23570 #define A_UP_OBQ_4_RDADDR 0xb0 23571 #define A_UP_OBQ_4_WRADDR 0xb4 23572 #define A_UP_OBQ_4_STATUS 0xb8 23573 #define A_UP_OBQ_4_PKTCNT 0xbc 23574 #define A_UP_OBQ_5_RDADDR 0xc0 23575 #define A_UP_OBQ_5_WRADDR 0xc4 23576 #define A_UP_OBQ_5_STATUS 0xc8 23577 #define A_UP_OBQ_5_PKTCNT 0xcc 23578 #define A_UP_IBQ_0_CONFIG 0xd0 23579 23580 #define S_QUESIZE 26 23581 #define M_QUESIZE 0x3fU 23582 #define V_QUESIZE(x) ((x) << S_QUESIZE) 23583 #define G_QUESIZE(x) (((x) >> S_QUESIZE) & M_QUESIZE) 23584 23585 #define S_QUEBASE 8 23586 #define M_QUEBASE 0x3fU 23587 #define V_QUEBASE(x) ((x) << S_QUEBASE) 23588 #define G_QUEBASE(x) (((x) >> S_QUEBASE) & M_QUEBASE) 23589 23590 #define S_QUEDBG8BEN 7 23591 #define V_QUEDBG8BEN(x) ((x) << S_QUEDBG8BEN) 23592 #define F_QUEDBG8BEN V_QUEDBG8BEN(1U) 23593 23594 #define S_QUEBAREADDR 0 23595 #define V_QUEBAREADDR(x) ((x) << S_QUEBAREADDR) 23596 #define F_QUEBAREADDR V_QUEBAREADDR(1U) 23597 23598 #define A_UP_IBQ_0_REALADDR 0xd4 23599 23600 #define S_QUERDADDRWRAP 31 23601 #define V_QUERDADDRWRAP(x) ((x) << S_QUERDADDRWRAP) 23602 #define F_QUERDADDRWRAP V_QUERDADDRWRAP(1U) 23603 23604 #define S_QUEWRADDRWRAP 30 23605 #define V_QUEWRADDRWRAP(x) ((x) << S_QUEWRADDRWRAP) 23606 #define F_QUEWRADDRWRAP V_QUEWRADDRWRAP(1U) 23607 23608 #define S_QUEMEMADDR 3 23609 #define M_QUEMEMADDR 0x7ffU 23610 #define V_QUEMEMADDR(x) ((x) << S_QUEMEMADDR) 23611 #define G_QUEMEMADDR(x) (((x) >> S_QUEMEMADDR) & M_QUEMEMADDR) 23612 23613 #define A_UP_IBQ_1_CONFIG 0xd8 23614 #define A_UP_IBQ_1_REALADDR 0xdc 23615 #define A_UP_IBQ_2_CONFIG 0xe0 23616 #define A_UP_IBQ_2_REALADDR 0xe4 23617 #define A_UP_IBQ_3_CONFIG 0xe8 23618 #define A_UP_IBQ_3_REALADDR 0xec 23619 #define A_UP_IBQ_4_CONFIG 0xf0 23620 #define A_UP_IBQ_4_REALADDR 0xf4 23621 #define A_UP_IBQ_5_CONFIG 0xf8 23622 #define A_UP_IBQ_5_REALADDR 0xfc 23623 #define A_UP_OBQ_0_CONFIG 0x100 23624 #define A_UP_OBQ_0_REALADDR 0x104 23625 #define A_UP_OBQ_1_CONFIG 0x108 23626 #define A_UP_OBQ_1_REALADDR 0x10c 23627 #define A_UP_OBQ_2_CONFIG 0x110 23628 #define A_UP_OBQ_2_REALADDR 0x114 23629 #define A_UP_OBQ_3_CONFIG 0x118 23630 #define A_UP_OBQ_3_REALADDR 0x11c 23631 #define A_UP_OBQ_4_CONFIG 0x120 23632 #define A_UP_OBQ_4_REALADDR 0x124 23633 #define A_UP_OBQ_5_CONFIG 0x128 23634 #define A_UP_OBQ_5_REALADDR 0x12c 23635 #define A_UP_MAILBOX_STATUS 0x130 23636 23637 #define S_MBGEN0 20 23638 #define M_MBGEN0 0xfffU 23639 #define V_MBGEN0(x) ((x) << S_MBGEN0) 23640 #define G_MBGEN0(x) (((x) >> S_MBGEN0) & M_MBGEN0) 23641 23642 #define S_GENTIMERTRIGGER 16 23643 #define M_GENTIMERTRIGGER 0xfU 23644 #define V_GENTIMERTRIGGER(x) ((x) << S_GENTIMERTRIGGER) 23645 #define G_GENTIMERTRIGGER(x) (((x) >> S_GENTIMERTRIGGER) & M_GENTIMERTRIGGER) 23646 23647 #define S_MBGEN1 8 23648 #define M_MBGEN1 0xffU 23649 #define V_MBGEN1(x) ((x) << S_MBGEN1) 23650 #define G_MBGEN1(x) (((x) >> S_MBGEN1) & M_MBGEN1) 23651 23652 #define S_MBPFINT 0 23653 #define M_MBPFINT 0xffU 23654 #define V_MBPFINT(x) ((x) << S_MBPFINT) 23655 #define G_MBPFINT(x) (((x) >> S_MBPFINT) & M_MBPFINT) 23656 23657 #define A_UP_UP_DBG_LA_CFG 0x140 23658 23659 #define S_UPDBGLACAPTBUB 31 23660 #define V_UPDBGLACAPTBUB(x) ((x) << S_UPDBGLACAPTBUB) 23661 #define F_UPDBGLACAPTBUB V_UPDBGLACAPTBUB(1U) 23662 23663 #define S_UPDBGLACAPTPCONLY 30 23664 #define V_UPDBGLACAPTPCONLY(x) ((x) << S_UPDBGLACAPTPCONLY) 23665 #define F_UPDBGLACAPTPCONLY V_UPDBGLACAPTPCONLY(1U) 23666 23667 #define S_UPDBGLAMASKSTOP 29 23668 #define V_UPDBGLAMASKSTOP(x) ((x) << S_UPDBGLAMASKSTOP) 23669 #define F_UPDBGLAMASKSTOP V_UPDBGLAMASKSTOP(1U) 23670 23671 #define S_UPDBGLAMASKTRIG 28 23672 #define V_UPDBGLAMASKTRIG(x) ((x) << S_UPDBGLAMASKTRIG) 23673 #define F_UPDBGLAMASKTRIG V_UPDBGLAMASKTRIG(1U) 23674 23675 #define S_UPDBGLAWRPTR 16 23676 #define M_UPDBGLAWRPTR 0xfffU 23677 #define V_UPDBGLAWRPTR(x) ((x) << S_UPDBGLAWRPTR) 23678 #define G_UPDBGLAWRPTR(x) (((x) >> S_UPDBGLAWRPTR) & M_UPDBGLAWRPTR) 23679 23680 #define S_UPDBGLARDPTR 2 23681 #define M_UPDBGLARDPTR 0xfffU 23682 #define V_UPDBGLARDPTR(x) ((x) << S_UPDBGLARDPTR) 23683 #define G_UPDBGLARDPTR(x) (((x) >> S_UPDBGLARDPTR) & M_UPDBGLARDPTR) 23684 23685 #define S_UPDBGLARDEN 1 23686 #define V_UPDBGLARDEN(x) ((x) << S_UPDBGLARDEN) 23687 #define F_UPDBGLARDEN V_UPDBGLARDEN(1U) 23688 23689 #define S_UPDBGLAEN 0 23690 #define V_UPDBGLAEN(x) ((x) << S_UPDBGLAEN) 23691 #define F_UPDBGLAEN V_UPDBGLAEN(1U) 23692 23693 #define A_UP_UP_DBG_LA_DATA 0x144 23694 #define A_UP_PIO_MST_CONFIG 0x148 23695 23696 #define S_FLSRC 24 23697 #define M_FLSRC 0x7U 23698 #define V_FLSRC(x) ((x) << S_FLSRC) 23699 #define G_FLSRC(x) (((x) >> S_FLSRC) & M_FLSRC) 23700 23701 #define S_SEPROT 23 23702 #define V_SEPROT(x) ((x) << S_SEPROT) 23703 #define F_SEPROT V_SEPROT(1U) 23704 23705 #define S_SESRC 20 23706 #define M_SESRC 0x7U 23707 #define V_SESRC(x) ((x) << S_SESRC) 23708 #define G_SESRC(x) (((x) >> S_SESRC) & M_SESRC) 23709 23710 #define S_UPRGN 19 23711 #define V_UPRGN(x) ((x) << S_UPRGN) 23712 #define F_UPRGN V_UPRGN(1U) 23713 23714 #define S_UPPF 16 23715 #define M_UPPF 0x7U 23716 #define V_UPPF(x) ((x) << S_UPPF) 23717 #define G_UPPF(x) (((x) >> S_UPPF) & M_UPPF) 23718 23719 #define S_UPRID 0 23720 #define M_UPRID 0xffffU 23721 #define V_UPRID(x) ((x) << S_UPRID) 23722 #define G_UPRID(x) (((x) >> S_UPRID) & M_UPRID) 23723 23724 #define A_UP_UP_SELF_CONTROL 0x14c 23725 23726 #define S_UPSELFRESET 0 23727 #define V_UPSELFRESET(x) ((x) << S_UPSELFRESET) 23728 #define F_UPSELFRESET V_UPSELFRESET(1U) 23729 23730 #define A_UP_MAILBOX_PF0_CTL 0x180 23731 #define A_UP_MAILBOX_PF1_CTL 0x190 23732 #define A_UP_MAILBOX_PF2_CTL 0x1a0 23733 #define A_UP_MAILBOX_PF3_CTL 0x1b0 23734 #define A_UP_MAILBOX_PF4_CTL 0x1c0 23735 #define A_UP_MAILBOX_PF5_CTL 0x1d0 23736 #define A_UP_MAILBOX_PF6_CTL 0x1e0 23737 #define A_UP_MAILBOX_PF7_CTL 0x1f0 23738 #define A_UP_TSCH_CHNLN_CLASS_RDY 0x200 23739 #define A_UP_TSCH_CHNLN_CLASS_WATCH_RDY 0x204 23740 23741 #define S_TSCHWRRLIMIT 16 23742 #define M_TSCHWRRLIMIT 0xffffU 23743 #define V_TSCHWRRLIMIT(x) ((x) << S_TSCHWRRLIMIT) 23744 #define G_TSCHWRRLIMIT(x) (((x) >> S_TSCHWRRLIMIT) & M_TSCHWRRLIMIT) 23745 23746 #define S_TSCHCHNLCWRDY 0 23747 #define M_TSCHCHNLCWRDY 0xffffU 23748 #define V_TSCHCHNLCWRDY(x) ((x) << S_TSCHCHNLCWRDY) 23749 #define G_TSCHCHNLCWRDY(x) (((x) >> S_TSCHCHNLCWRDY) & M_TSCHCHNLCWRDY) 23750 23751 #define A_UP_TSCH_CHNLN_CLASS_WATCH_LIST 0x208 23752 23753 #define S_TSCHWRRRELOAD 16 23754 #define M_TSCHWRRRELOAD 0xffffU 23755 #define V_TSCHWRRRELOAD(x) ((x) << S_TSCHWRRRELOAD) 23756 #define G_TSCHWRRRELOAD(x) (((x) >> S_TSCHWRRRELOAD) & M_TSCHWRRRELOAD) 23757 23758 #define S_TSCHCHNLCWATCH 0 23759 #define M_TSCHCHNLCWATCH 0xffffU 23760 #define V_TSCHCHNLCWATCH(x) ((x) << S_TSCHCHNLCWATCH) 23761 #define G_TSCHCHNLCWATCH(x) (((x) >> S_TSCHCHNLCWATCH) & M_TSCHCHNLCWATCH) 23762 23763 #define A_UP_TSCH_CHNLN_CLASS_TAKE 0x20c 23764 23765 #define S_TSCHCHNLCNUM 24 23766 #define M_TSCHCHNLCNUM 0x1fU 23767 #define V_TSCHCHNLCNUM(x) ((x) << S_TSCHCHNLCNUM) 23768 #define G_TSCHCHNLCNUM(x) (((x) >> S_TSCHCHNLCNUM) & M_TSCHCHNLCNUM) 23769 23770 #define S_TSCHCHNLCCNT 0 23771 #define M_TSCHCHNLCCNT 0xffffffU 23772 #define V_TSCHCHNLCCNT(x) ((x) << S_TSCHCHNLCCNT) 23773 #define G_TSCHCHNLCCNT(x) (((x) >> S_TSCHCHNLCCNT) & M_TSCHCHNLCCNT) 23774 23775 #define A_UP_UPLADBGPCCHKDATA_0 0x240 23776 #define A_UP_UPLADBGPCCHKMASK_0 0x244 23777 #define A_UP_UPLADBGPCCHKDATA_1 0x250 23778 #define A_UP_UPLADBGPCCHKMASK_1 0x254 23779 #define A_UP_UPLADBGPCCHKDATA_2 0x260 23780 #define A_UP_UPLADBGPCCHKMASK_2 0x264 23781 #define A_UP_UPLADBGPCCHKDATA_3 0x270 23782 #define A_UP_UPLADBGPCCHKMASK_3 0x274 23783 23784 /* registers for module CIM_CTL */ 23785 #define CIM_CTL_BASE_ADDR 0x0 23786 23787 #define A_CIM_CTL_CONFIG 0x0 23788 23789 #define S_AUTOPREFLOC 17 23790 #define M_AUTOPREFLOC 0x1fU 23791 #define V_AUTOPREFLOC(x) ((x) << S_AUTOPREFLOC) 23792 #define G_AUTOPREFLOC(x) (((x) >> S_AUTOPREFLOC) & M_AUTOPREFLOC) 23793 23794 #define S_AUTOPREFEN 16 23795 #define V_AUTOPREFEN(x) ((x) << S_AUTOPREFEN) 23796 #define F_AUTOPREFEN V_AUTOPREFEN(1U) 23797 23798 #define S_DISMATIMEOUT 15 23799 #define V_DISMATIMEOUT(x) ((x) << S_DISMATIMEOUT) 23800 #define F_DISMATIMEOUT V_DISMATIMEOUT(1U) 23801 23802 #define S_PIFMULTICMD 8 23803 #define V_PIFMULTICMD(x) ((x) << S_PIFMULTICMD) 23804 #define F_PIFMULTICMD V_PIFMULTICMD(1U) 23805 23806 #define S_UPSELFRESETTOUT 7 23807 #define V_UPSELFRESETTOUT(x) ((x) << S_UPSELFRESETTOUT) 23808 #define F_UPSELFRESETTOUT V_UPSELFRESETTOUT(1U) 23809 23810 #define S_PLSWAPDISWR 6 23811 #define V_PLSWAPDISWR(x) ((x) << S_PLSWAPDISWR) 23812 #define F_PLSWAPDISWR V_PLSWAPDISWR(1U) 23813 23814 #define S_PLSWAPDISRD 5 23815 #define V_PLSWAPDISRD(x) ((x) << S_PLSWAPDISRD) 23816 #define F_PLSWAPDISRD V_PLSWAPDISRD(1U) 23817 23818 #define S_PREFEN 0 23819 #define V_PREFEN(x) ((x) << S_PREFEN) 23820 #define F_PREFEN V_PREFEN(1U) 23821 23822 #define A_CIM_CTL_PREFADDR 0x4 23823 #define A_CIM_CTL_ALLOCADDR 0x8 23824 #define A_CIM_CTL_INVLDTADDR 0xc 23825 #define A_CIM_CTL_STATIC_PREFADDR0 0x10 23826 #define A_CIM_CTL_STATIC_PREFADDR1 0x14 23827 #define A_CIM_CTL_STATIC_PREFADDR2 0x18 23828 #define A_CIM_CTL_STATIC_PREFADDR3 0x1c 23829 #define A_CIM_CTL_STATIC_PREFADDR4 0x20 23830 #define A_CIM_CTL_STATIC_PREFADDR5 0x24 23831 #define A_CIM_CTL_STATIC_PREFADDR6 0x28 23832 #define A_CIM_CTL_STATIC_PREFADDR7 0x2c 23833 #define A_CIM_CTL_STATIC_PREFADDR8 0x30 23834 #define A_CIM_CTL_STATIC_PREFADDR9 0x34 23835 #define A_CIM_CTL_STATIC_PREFADDR10 0x38 23836 #define A_CIM_CTL_STATIC_PREFADDR11 0x3c 23837 #define A_CIM_CTL_STATIC_PREFADDR12 0x40 23838 #define A_CIM_CTL_STATIC_PREFADDR13 0x44 23839 #define A_CIM_CTL_STATIC_PREFADDR14 0x48 23840 #define A_CIM_CTL_STATIC_PREFADDR15 0x4c 23841 #define A_CIM_CTL_STATIC_ALLOCADDR0 0x50 23842 #define A_CIM_CTL_STATIC_ALLOCADDR1 0x54 23843 #define A_CIM_CTL_STATIC_ALLOCADDR2 0x58 23844 #define A_CIM_CTL_STATIC_ALLOCADDR3 0x5c 23845 #define A_CIM_CTL_STATIC_ALLOCADDR4 0x60 23846 #define A_CIM_CTL_STATIC_ALLOCADDR5 0x64 23847 #define A_CIM_CTL_STATIC_ALLOCADDR6 0x68 23848 #define A_CIM_CTL_STATIC_ALLOCADDR7 0x6c 23849 #define A_CIM_CTL_STATIC_ALLOCADDR8 0x70 23850 #define A_CIM_CTL_STATIC_ALLOCADDR9 0x74 23851 #define A_CIM_CTL_STATIC_ALLOCADDR10 0x78 23852 #define A_CIM_CTL_STATIC_ALLOCADDR11 0x7c 23853 #define A_CIM_CTL_STATIC_ALLOCADDR12 0x80 23854 #define A_CIM_CTL_STATIC_ALLOCADDR13 0x84 23855 #define A_CIM_CTL_STATIC_ALLOCADDR14 0x88 23856 #define A_CIM_CTL_STATIC_ALLOCADDR15 0x8c 23857 #define A_CIM_CTL_FIFO_CNT 0x90 23858 23859 #define S_CTLFIFOCNT 0 23860 #define M_CTLFIFOCNT 0xfU 23861 #define V_CTLFIFOCNT(x) ((x) << S_CTLFIFOCNT) 23862 #define G_CTLFIFOCNT(x) (((x) >> S_CTLFIFOCNT) & M_CTLFIFOCNT) 23863 23864 #define A_CIM_CTL_GLB_TIMER 0x94 23865 #define A_CIM_CTL_TIMER0 0x98 23866 #define A_CIM_CTL_TIMER1 0x9c 23867 #define A_CIM_CTL_GEN0 0xa0 23868 #define A_CIM_CTL_GEN1 0xa4 23869 #define A_CIM_CTL_GEN2 0xa8 23870 #define A_CIM_CTL_GEN3 0xac 23871 #define A_CIM_CTL_GLB_TIMER_TICK 0xb0 23872 #define A_CIM_CTL_GEN_TIMER0_CTL 0xb4 23873 23874 #define S_GENTIMERRUN 7 23875 #define V_GENTIMERRUN(x) ((x) << S_GENTIMERRUN) 23876 #define F_GENTIMERRUN V_GENTIMERRUN(1U) 23877 23878 #define S_GENTIMERTRIG 6 23879 #define V_GENTIMERTRIG(x) ((x) << S_GENTIMERTRIG) 23880 #define F_GENTIMERTRIG V_GENTIMERTRIG(1U) 23881 23882 #define S_GENTIMERACT 4 23883 #define M_GENTIMERACT 0x3U 23884 #define V_GENTIMERACT(x) ((x) << S_GENTIMERACT) 23885 #define G_GENTIMERACT(x) (((x) >> S_GENTIMERACT) & M_GENTIMERACT) 23886 23887 #define S_GENTIMERCFG 2 23888 #define M_GENTIMERCFG 0x3U 23889 #define V_GENTIMERCFG(x) ((x) << S_GENTIMERCFG) 23890 #define G_GENTIMERCFG(x) (((x) >> S_GENTIMERCFG) & M_GENTIMERCFG) 23891 23892 #define S_GENTIMERSTOP 1 23893 #define V_GENTIMERSTOP(x) ((x) << S_GENTIMERSTOP) 23894 #define F_GENTIMERSTOP V_GENTIMERSTOP(1U) 23895 23896 #define S_GENTIMERSTRT 0 23897 #define V_GENTIMERSTRT(x) ((x) << S_GENTIMERSTRT) 23898 #define F_GENTIMERSTRT V_GENTIMERSTRT(1U) 23899 23900 #define A_CIM_CTL_GEN_TIMER0 0xb8 23901 #define A_CIM_CTL_GEN_TIMER1_CTL 0xbc 23902 #define A_CIM_CTL_GEN_TIMER1 0xc0 23903 #define A_CIM_CTL_GEN_TIMER2_CTL 0xc4 23904 #define A_CIM_CTL_GEN_TIMER2 0xc8 23905 #define A_CIM_CTL_GEN_TIMER3_CTL 0xcc 23906 #define A_CIM_CTL_GEN_TIMER3 0xd0 23907 #define A_CIM_CTL_MAILBOX_VF_STATUS 0xe0 23908 #define A_CIM_CTL_MAILBOX_VFN_CTL 0x100 23909 #define A_CIM_CTL_TSCH_CHNLN_CTL 0x900 23910 23911 #define S_TSCHNLEN 31 23912 #define V_TSCHNLEN(x) ((x) << S_TSCHNLEN) 23913 #define F_TSCHNLEN V_TSCHNLEN(1U) 23914 23915 #define S_TSCHNRESET 30 23916 #define V_TSCHNRESET(x) ((x) << S_TSCHNRESET) 23917 #define F_TSCHNRESET V_TSCHNRESET(1U) 23918 23919 #define A_CIM_CTL_TSCH_CHNLN_TICK 0x904 23920 23921 #define S_TSCHNLTICK 0 23922 #define M_TSCHNLTICK 0xffffU 23923 #define V_TSCHNLTICK(x) ((x) << S_TSCHNLTICK) 23924 #define G_TSCHNLTICK(x) (((x) >> S_TSCHNLTICK) & M_TSCHNLTICK) 23925 23926 #define A_CIM_CTL_TSCH_CHNLN_CLASS_ENABLE_A 0x908 23927 23928 #define S_TSC15WRREN 31 23929 #define V_TSC15WRREN(x) ((x) << S_TSC15WRREN) 23930 #define F_TSC15WRREN V_TSC15WRREN(1U) 23931 23932 #define S_TSC15RATEEN 30 23933 #define V_TSC15RATEEN(x) ((x) << S_TSC15RATEEN) 23934 #define F_TSC15RATEEN V_TSC15RATEEN(1U) 23935 23936 #define S_TSC14WRREN 29 23937 #define V_TSC14WRREN(x) ((x) << S_TSC14WRREN) 23938 #define F_TSC14WRREN V_TSC14WRREN(1U) 23939 23940 #define S_TSC14RATEEN 28 23941 #define V_TSC14RATEEN(x) ((x) << S_TSC14RATEEN) 23942 #define F_TSC14RATEEN V_TSC14RATEEN(1U) 23943 23944 #define S_TSC13WRREN 27 23945 #define V_TSC13WRREN(x) ((x) << S_TSC13WRREN) 23946 #define F_TSC13WRREN V_TSC13WRREN(1U) 23947 23948 #define S_TSC13RATEEN 26 23949 #define V_TSC13RATEEN(x) ((x) << S_TSC13RATEEN) 23950 #define F_TSC13RATEEN V_TSC13RATEEN(1U) 23951 23952 #define S_TSC12WRREN 25 23953 #define V_TSC12WRREN(x) ((x) << S_TSC12WRREN) 23954 #define F_TSC12WRREN V_TSC12WRREN(1U) 23955 23956 #define S_TSC12RATEEN 24 23957 #define V_TSC12RATEEN(x) ((x) << S_TSC12RATEEN) 23958 #define F_TSC12RATEEN V_TSC12RATEEN(1U) 23959 23960 #define S_TSC11WRREN 23 23961 #define V_TSC11WRREN(x) ((x) << S_TSC11WRREN) 23962 #define F_TSC11WRREN V_TSC11WRREN(1U) 23963 23964 #define S_TSC11RATEEN 22 23965 #define V_TSC11RATEEN(x) ((x) << S_TSC11RATEEN) 23966 #define F_TSC11RATEEN V_TSC11RATEEN(1U) 23967 23968 #define S_TSC10WRREN 21 23969 #define V_TSC10WRREN(x) ((x) << S_TSC10WRREN) 23970 #define F_TSC10WRREN V_TSC10WRREN(1U) 23971 23972 #define S_TSC10RATEEN 20 23973 #define V_TSC10RATEEN(x) ((x) << S_TSC10RATEEN) 23974 #define F_TSC10RATEEN V_TSC10RATEEN(1U) 23975 23976 #define S_TSC9WRREN 19 23977 #define V_TSC9WRREN(x) ((x) << S_TSC9WRREN) 23978 #define F_TSC9WRREN V_TSC9WRREN(1U) 23979 23980 #define S_TSC9RATEEN 18 23981 #define V_TSC9RATEEN(x) ((x) << S_TSC9RATEEN) 23982 #define F_TSC9RATEEN V_TSC9RATEEN(1U) 23983 23984 #define S_TSC8WRREN 17 23985 #define V_TSC8WRREN(x) ((x) << S_TSC8WRREN) 23986 #define F_TSC8WRREN V_TSC8WRREN(1U) 23987 23988 #define S_TSC8RATEEN 16 23989 #define V_TSC8RATEEN(x) ((x) << S_TSC8RATEEN) 23990 #define F_TSC8RATEEN V_TSC8RATEEN(1U) 23991 23992 #define S_TSC7WRREN 15 23993 #define V_TSC7WRREN(x) ((x) << S_TSC7WRREN) 23994 #define F_TSC7WRREN V_TSC7WRREN(1U) 23995 23996 #define S_TSC7RATEEN 14 23997 #define V_TSC7RATEEN(x) ((x) << S_TSC7RATEEN) 23998 #define F_TSC7RATEEN V_TSC7RATEEN(1U) 23999 24000 #define S_TSC6WRREN 13 24001 #define V_TSC6WRREN(x) ((x) << S_TSC6WRREN) 24002 #define F_TSC6WRREN V_TSC6WRREN(1U) 24003 24004 #define S_TSC6RATEEN 12 24005 #define V_TSC6RATEEN(x) ((x) << S_TSC6RATEEN) 24006 #define F_TSC6RATEEN V_TSC6RATEEN(1U) 24007 24008 #define S_TSC5WRREN 11 24009 #define V_TSC5WRREN(x) ((x) << S_TSC5WRREN) 24010 #define F_TSC5WRREN V_TSC5WRREN(1U) 24011 24012 #define S_TSC5RATEEN 10 24013 #define V_TSC5RATEEN(x) ((x) << S_TSC5RATEEN) 24014 #define F_TSC5RATEEN V_TSC5RATEEN(1U) 24015 24016 #define S_TSC4WRREN 9 24017 #define V_TSC4WRREN(x) ((x) << S_TSC4WRREN) 24018 #define F_TSC4WRREN V_TSC4WRREN(1U) 24019 24020 #define S_TSC4RATEEN 8 24021 #define V_TSC4RATEEN(x) ((x) << S_TSC4RATEEN) 24022 #define F_TSC4RATEEN V_TSC4RATEEN(1U) 24023 24024 #define S_TSC3WRREN 7 24025 #define V_TSC3WRREN(x) ((x) << S_TSC3WRREN) 24026 #define F_TSC3WRREN V_TSC3WRREN(1U) 24027 24028 #define S_TSC3RATEEN 6 24029 #define V_TSC3RATEEN(x) ((x) << S_TSC3RATEEN) 24030 #define F_TSC3RATEEN V_TSC3RATEEN(1U) 24031 24032 #define S_TSC2WRREN 5 24033 #define V_TSC2WRREN(x) ((x) << S_TSC2WRREN) 24034 #define F_TSC2WRREN V_TSC2WRREN(1U) 24035 24036 #define S_TSC2RATEEN 4 24037 #define V_TSC2RATEEN(x) ((x) << S_TSC2RATEEN) 24038 #define F_TSC2RATEEN V_TSC2RATEEN(1U) 24039 24040 #define S_TSC1WRREN 3 24041 #define V_TSC1WRREN(x) ((x) << S_TSC1WRREN) 24042 #define F_TSC1WRREN V_TSC1WRREN(1U) 24043 24044 #define S_TSC1RATEEN 2 24045 #define V_TSC1RATEEN(x) ((x) << S_TSC1RATEEN) 24046 #define F_TSC1RATEEN V_TSC1RATEEN(1U) 24047 24048 #define S_TSC0WRREN 1 24049 #define V_TSC0WRREN(x) ((x) << S_TSC0WRREN) 24050 #define F_TSC0WRREN V_TSC0WRREN(1U) 24051 24052 #define S_TSC0RATEEN 0 24053 #define V_TSC0RATEEN(x) ((x) << S_TSC0RATEEN) 24054 #define F_TSC0RATEEN V_TSC0RATEEN(1U) 24055 24056 #define A_CIM_CTL_TSCH_MIN_MAX_EN 0x90c 24057 24058 #define S_MIN_MAX_EN 0 24059 #define V_MIN_MAX_EN(x) ((x) << S_MIN_MAX_EN) 24060 #define F_MIN_MAX_EN V_MIN_MAX_EN(1U) 24061 24062 #define A_CIM_CTL_TSCH_CHNLN_RATE_LIMITER 0x910 24063 24064 #define S_TSCHNLRATENEG 31 24065 #define V_TSCHNLRATENEG(x) ((x) << S_TSCHNLRATENEG) 24066 #define F_TSCHNLRATENEG V_TSCHNLRATENEG(1U) 24067 24068 #define S_TSCHNLRATEL 0 24069 #define M_TSCHNLRATEL 0x7fffffffU 24070 #define V_TSCHNLRATEL(x) ((x) << S_TSCHNLRATEL) 24071 #define G_TSCHNLRATEL(x) (((x) >> S_TSCHNLRATEL) & M_TSCHNLRATEL) 24072 24073 #define A_CIM_CTL_TSCH_CHNLN_RATE_PROPERTIES 0x914 24074 24075 #define S_TSCHNLRMAX 16 24076 #define M_TSCHNLRMAX 0xffffU 24077 #define V_TSCHNLRMAX(x) ((x) << S_TSCHNLRMAX) 24078 #define G_TSCHNLRMAX(x) (((x) >> S_TSCHNLRMAX) & M_TSCHNLRMAX) 24079 24080 #define S_TSCHNLRINCR 0 24081 #define M_TSCHNLRINCR 0xffffU 24082 #define V_TSCHNLRINCR(x) ((x) << S_TSCHNLRINCR) 24083 #define G_TSCHNLRINCR(x) (((x) >> S_TSCHNLRINCR) & M_TSCHNLRINCR) 24084 24085 #define A_CIM_CTL_TSCH_CHNLN_WRR 0x918 24086 #define A_CIM_CTL_TSCH_CHNLN_WEIGHT 0x91c 24087 24088 #define S_TSCHNLWEIGHT 0 24089 #define M_TSCHNLWEIGHT 0x3fffffU 24090 #define V_TSCHNLWEIGHT(x) ((x) << S_TSCHNLWEIGHT) 24091 #define G_TSCHNLWEIGHT(x) (((x) >> S_TSCHNLWEIGHT) & M_TSCHNLWEIGHT) 24092 24093 #define A_CIM_CTL_TSCH_CHNLN_CLASSM_RATE_PROPERTIES 0x924 24094 24095 #define S_TSCCLRMAX 16 24096 #define M_TSCCLRMAX 0xffffU 24097 #define V_TSCCLRMAX(x) ((x) << S_TSCCLRMAX) 24098 #define G_TSCCLRMAX(x) (((x) >> S_TSCCLRMAX) & M_TSCCLRMAX) 24099 24100 #define S_TSCCLRINCR 0 24101 #define M_TSCCLRINCR 0xffffU 24102 #define V_TSCCLRINCR(x) ((x) << S_TSCCLRINCR) 24103 #define G_TSCCLRINCR(x) (((x) >> S_TSCCLRINCR) & M_TSCCLRINCR) 24104 24105 #define A_CIM_CTL_TSCH_CHNLN_CLASSM_WRR 0x928 24106 24107 #define S_TSCCLWRRNEG 31 24108 #define V_TSCCLWRRNEG(x) ((x) << S_TSCCLWRRNEG) 24109 #define F_TSCCLWRRNEG V_TSCCLWRRNEG(1U) 24110 24111 #define S_TSCCLWRR 0 24112 #define M_TSCCLWRR 0x3ffffffU 24113 #define V_TSCCLWRR(x) ((x) << S_TSCCLWRR) 24114 #define G_TSCCLWRR(x) (((x) >> S_TSCCLWRR) & M_TSCCLWRR) 24115 24116 #define A_CIM_CTL_TSCH_CHNLN_CLASSM_WEIGHT 0x92c 24117 24118 #define S_TSCCLWEIGHT 0 24119 #define M_TSCCLWEIGHT 0xffffU 24120 #define V_TSCCLWEIGHT(x) ((x) << S_TSCCLWEIGHT) 24121 #define G_TSCCLWEIGHT(x) (((x) >> S_TSCCLWEIGHT) & M_TSCCLWEIGHT) 24122 24123 #endif /* _CXGBE_T4_REGS_H */ 24124