1 /* SPDX-License-Identifier: GPL-2.0 2 * 3 * Copyright 2016-2018 HabanaLabs, Ltd. 4 * All Rights Reserved. 5 * 6 */ 7 8 /************************************ 9 ** This is an auto-generated file ** 10 ** DO NOT EDIT BELOW ** 11 ************************************/ 12 13 #ifndef ASIC_REG_MME_MASKS_H_ 14 #define ASIC_REG_MME_MASKS_H_ 15 16 /* 17 ***************************************** 18 * MME (Prototype: MME) 19 ***************************************** 20 */ 21 22 /* MME_ARCH_STATUS */ 23 #define MME_ARCH_STATUS_A_SHIFT 0 24 #define MME_ARCH_STATUS_A_MASK 0x1 25 #define MME_ARCH_STATUS_B_SHIFT 1 26 #define MME_ARCH_STATUS_B_MASK 0x2 27 #define MME_ARCH_STATUS_CIN_SHIFT 2 28 #define MME_ARCH_STATUS_CIN_MASK 0x4 29 #define MME_ARCH_STATUS_COUT_SHIFT 3 30 #define MME_ARCH_STATUS_COUT_MASK 0x8 31 #define MME_ARCH_STATUS_TE_SHIFT 4 32 #define MME_ARCH_STATUS_TE_MASK 0x10 33 #define MME_ARCH_STATUS_LD_SHIFT 5 34 #define MME_ARCH_STATUS_LD_MASK 0x20 35 #define MME_ARCH_STATUS_ST_SHIFT 6 36 #define MME_ARCH_STATUS_ST_MASK 0x40 37 #define MME_ARCH_STATUS_SB_A_EMPTY_SHIFT 7 38 #define MME_ARCH_STATUS_SB_A_EMPTY_MASK 0x80 39 #define MME_ARCH_STATUS_SB_B_EMPTY_SHIFT 8 40 #define MME_ARCH_STATUS_SB_B_EMPTY_MASK 0x100 41 #define MME_ARCH_STATUS_SB_CIN_EMPTY_SHIFT 9 42 #define MME_ARCH_STATUS_SB_CIN_EMPTY_MASK 0x200 43 #define MME_ARCH_STATUS_SB_COUT_EMPTY_SHIFT 10 44 #define MME_ARCH_STATUS_SB_COUT_EMPTY_MASK 0x400 45 #define MME_ARCH_STATUS_SM_IDLE_SHIFT 11 46 #define MME_ARCH_STATUS_SM_IDLE_MASK 0x800 47 #define MME_ARCH_STATUS_WBC_AXI_IDLE_SHIFT 12 48 #define MME_ARCH_STATUS_WBC_AXI_IDLE_MASK 0xF000 49 #define MME_ARCH_STATUS_SBC_AXI_IDLE_SHIFT 16 50 #define MME_ARCH_STATUS_SBC_AXI_IDLE_MASK 0x30000 51 #define MME_ARCH_STATUS_SBB_AXI_IDLE_SHIFT 18 52 #define MME_ARCH_STATUS_SBB_AXI_IDLE_MASK 0xC0000 53 #define MME_ARCH_STATUS_SBA_AXI_IDLE_SHIFT 20 54 #define MME_ARCH_STATUS_SBA_AXI_IDLE_MASK 0x300000 55 #define MME_ARCH_STATUS_FREE_ACCUMS_SHIFT 22 56 #define MME_ARCH_STATUS_FREE_ACCUMS_MASK 0x1C00000 57 58 /* MME_ARCH_A_BASE_ADDR_HIGH */ 59 #define MME_ARCH_A_BASE_ADDR_HIGH_V_SHIFT 0 60 #define MME_ARCH_A_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 61 62 /* MME_ARCH_B_BASE_ADDR_HIGH */ 63 #define MME_ARCH_B_BASE_ADDR_HIGH_V_SHIFT 0 64 #define MME_ARCH_B_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 65 66 /* MME_ARCH_CIN_BASE_ADDR_HIGH */ 67 #define MME_ARCH_CIN_BASE_ADDR_HIGH_V_SHIFT 0 68 #define MME_ARCH_CIN_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 69 70 /* MME_ARCH_COUT_BASE_ADDR_HIGH */ 71 #define MME_ARCH_COUT_BASE_ADDR_HIGH_V_SHIFT 0 72 #define MME_ARCH_COUT_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 73 74 /* MME_ARCH_BIAS_BASE_ADDR_HIGH */ 75 #define MME_ARCH_BIAS_BASE_ADDR_HIGH_V_SHIFT 0 76 #define MME_ARCH_BIAS_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 77 78 /* MME_ARCH_A_BASE_ADDR_LOW */ 79 #define MME_ARCH_A_BASE_ADDR_LOW_V_SHIFT 0 80 #define MME_ARCH_A_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 81 82 /* MME_ARCH_B_BASE_ADDR_LOW */ 83 #define MME_ARCH_B_BASE_ADDR_LOW_V_SHIFT 0 84 #define MME_ARCH_B_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 85 86 /* MME_ARCH_CIN_BASE_ADDR_LOW */ 87 #define MME_ARCH_CIN_BASE_ADDR_LOW_V_SHIFT 0 88 #define MME_ARCH_CIN_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 89 90 /* MME_ARCH_COUT_BASE_ADDR_LOW */ 91 #define MME_ARCH_COUT_BASE_ADDR_LOW_V_SHIFT 0 92 #define MME_ARCH_COUT_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 93 94 /* MME_ARCH_BIAS_BASE_ADDR_LOW */ 95 #define MME_ARCH_BIAS_BASE_ADDR_LOW_V_SHIFT 0 96 #define MME_ARCH_BIAS_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 97 98 /* MME_ARCH_HEADER */ 99 #define MME_ARCH_HEADER_SIGNAL_MASK_SHIFT 0 100 #define MME_ARCH_HEADER_SIGNAL_MASK_MASK 0x1F 101 #define MME_ARCH_HEADER_SIGNAL_EN_SHIFT 5 102 #define MME_ARCH_HEADER_SIGNAL_EN_MASK 0x20 103 #define MME_ARCH_HEADER_TRANS_A_SHIFT 6 104 #define MME_ARCH_HEADER_TRANS_A_MASK 0x40 105 #define MME_ARCH_HEADER_LOWER_A_SHIFT 7 106 #define MME_ARCH_HEADER_LOWER_A_MASK 0x80 107 #define MME_ARCH_HEADER_ACCUM_MASK_SHIFT 8 108 #define MME_ARCH_HEADER_ACCUM_MASK_MASK 0xF00 109 #define MME_ARCH_HEADER_LOAD_BIAS_SHIFT 12 110 #define MME_ARCH_HEADER_LOAD_BIAS_MASK 0x1000 111 #define MME_ARCH_HEADER_LOAD_CIN_SHIFT 13 112 #define MME_ARCH_HEADER_LOAD_CIN_MASK 0x2000 113 #define MME_ARCH_HEADER_STORE_OUT_SHIFT 15 114 #define MME_ARCH_HEADER_STORE_OUT_MASK 0x8000 115 #define MME_ARCH_HEADER_ACC_LD_INC_DISABLE_SHIFT 16 116 #define MME_ARCH_HEADER_ACC_LD_INC_DISABLE_MASK 0x10000 117 #define MME_ARCH_HEADER_ADVANCE_A_SHIFT 17 118 #define MME_ARCH_HEADER_ADVANCE_A_MASK 0x20000 119 #define MME_ARCH_HEADER_ADVANCE_B_SHIFT 18 120 #define MME_ARCH_HEADER_ADVANCE_B_MASK 0x40000 121 #define MME_ARCH_HEADER_ADVANCE_CIN_SHIFT 19 122 #define MME_ARCH_HEADER_ADVANCE_CIN_MASK 0x80000 123 #define MME_ARCH_HEADER_ADVANCE_COUT_SHIFT 20 124 #define MME_ARCH_HEADER_ADVANCE_COUT_MASK 0x100000 125 #define MME_ARCH_HEADER_COMPRESSED_B_SHIFT 21 126 #define MME_ARCH_HEADER_COMPRESSED_B_MASK 0x200000 127 #define MME_ARCH_HEADER_MASK_CONV_END_SHIFT 22 128 #define MME_ARCH_HEADER_MASK_CONV_END_MASK 0x400000 129 #define MME_ARCH_HEADER_ACC_ST_INC_DISABLE_SHIFT 23 130 #define MME_ARCH_HEADER_ACC_ST_INC_DISABLE_MASK 0x800000 131 #define MME_ARCH_HEADER_AB_DATA_TYPE_SHIFT 24 132 #define MME_ARCH_HEADER_AB_DATA_TYPE_MASK 0x3000000 133 #define MME_ARCH_HEADER_CIN_DATA_TYPE_SHIFT 26 134 #define MME_ARCH_HEADER_CIN_DATA_TYPE_MASK 0x1C000000 135 #define MME_ARCH_HEADER_COUT_DATA_TYPE_SHIFT 29 136 #define MME_ARCH_HEADER_COUT_DATA_TYPE_MASK 0xE0000000 137 138 /* MME_ARCH_KERNEL_SIZE_MINUS_1 */ 139 #define MME_ARCH_KERNEL_SIZE_MINUS_1_DIM_0_SHIFT 0 140 #define MME_ARCH_KERNEL_SIZE_MINUS_1_DIM_0_MASK 0xFF 141 #define MME_ARCH_KERNEL_SIZE_MINUS_1_DIM_1_SHIFT 8 142 #define MME_ARCH_KERNEL_SIZE_MINUS_1_DIM_1_MASK 0xFF00 143 #define MME_ARCH_KERNEL_SIZE_MINUS_1_DIM_2_SHIFT 16 144 #define MME_ARCH_KERNEL_SIZE_MINUS_1_DIM_2_MASK 0xFF0000 145 #define MME_ARCH_KERNEL_SIZE_MINUS_1_DIM_3_SHIFT 24 146 #define MME_ARCH_KERNEL_SIZE_MINUS_1_DIM_3_MASK 0xFF000000 147 148 /* MME_ARCH_ASSOCIATED_DIMS */ 149 #define MME_ARCH_ASSOCIATED_DIMS_A_0_SHIFT 0 150 #define MME_ARCH_ASSOCIATED_DIMS_A_0_MASK 0x7 151 #define MME_ARCH_ASSOCIATED_DIMS_B_0_SHIFT 3 152 #define MME_ARCH_ASSOCIATED_DIMS_B_0_MASK 0x38 153 #define MME_ARCH_ASSOCIATED_DIMS_CIN_0_SHIFT 6 154 #define MME_ARCH_ASSOCIATED_DIMS_CIN_0_MASK 0x1C0 155 #define MME_ARCH_ASSOCIATED_DIMS_COUT_0_SHIFT 9 156 #define MME_ARCH_ASSOCIATED_DIMS_COUT_0_MASK 0xE00 157 #define MME_ARCH_ASSOCIATED_DIMS_A_1_SHIFT 16 158 #define MME_ARCH_ASSOCIATED_DIMS_A_1_MASK 0x70000 159 #define MME_ARCH_ASSOCIATED_DIMS_B_1_SHIFT 19 160 #define MME_ARCH_ASSOCIATED_DIMS_B_1_MASK 0x380000 161 #define MME_ARCH_ASSOCIATED_DIMS_CIN_1_SHIFT 22 162 #define MME_ARCH_ASSOCIATED_DIMS_CIN_1_MASK 0x1C00000 163 #define MME_ARCH_ASSOCIATED_DIMS_COUT_1_SHIFT 25 164 #define MME_ARCH_ASSOCIATED_DIMS_COUT_1_MASK 0xE000000 165 166 /* MME_ARCH_COUT_SCALE */ 167 #define MME_ARCH_COUT_SCALE_V_SHIFT 0 168 #define MME_ARCH_COUT_SCALE_V_MASK 0xFFFFFFFF 169 170 /* MME_ARCH_CIN_SCALE */ 171 #define MME_ARCH_CIN_SCALE_V_SHIFT 0 172 #define MME_ARCH_CIN_SCALE_V_MASK 0xFFFFFFFF 173 174 /* MME_ARCH_GEMMLOWP_ZP */ 175 #define MME_ARCH_GEMMLOWP_ZP_ZP_CIN_SHIFT 0 176 #define MME_ARCH_GEMMLOWP_ZP_ZP_CIN_MASK 0x1FF 177 #define MME_ARCH_GEMMLOWP_ZP_ZP_COUT_SHIFT 9 178 #define MME_ARCH_GEMMLOWP_ZP_ZP_COUT_MASK 0x3FE00 179 #define MME_ARCH_GEMMLOWP_ZP_ZP_B_SHIFT 18 180 #define MME_ARCH_GEMMLOWP_ZP_ZP_B_MASK 0x7FC0000 181 #define MME_ARCH_GEMMLOWP_ZP_GEMMLOWP_EU_EN_SHIFT 27 182 #define MME_ARCH_GEMMLOWP_ZP_GEMMLOWP_EU_EN_MASK 0x8000000 183 #define MME_ARCH_GEMMLOWP_ZP_ACCUM_SHIFT 28 184 #define MME_ARCH_GEMMLOWP_ZP_ACCUM_MASK 0x10000000 185 #define MME_ARCH_GEMMLOWP_ZP_ACCUM_BIAS_SHIFT 29 186 #define MME_ARCH_GEMMLOWP_ZP_ACCUM_BIAS_MASK 0x20000000 187 #define MME_ARCH_GEMMLOWP_ZP_RELU_EN_SHIFT 30 188 #define MME_ARCH_GEMMLOWP_ZP_RELU_EN_MASK 0x40000000 189 190 /* MME_ARCH_GEMMLOWP_EXPONENT */ 191 #define MME_ARCH_GEMMLOWP_EXPONENT_EXPONENT_CIN_SHIFT 0 192 #define MME_ARCH_GEMMLOWP_EXPONENT_EXPONENT_CIN_MASK 0x3F 193 #define MME_ARCH_GEMMLOWP_EXPONENT_EXPONENT_COUT_SHIFT 8 194 #define MME_ARCH_GEMMLOWP_EXPONENT_EXPONENT_COUT_MASK 0x3F00 195 #define MME_ARCH_GEMMLOWP_EXPONENT_MUL_CIN_EN_SHIFT 16 196 #define MME_ARCH_GEMMLOWP_EXPONENT_MUL_CIN_EN_MASK 0x10000 197 #define MME_ARCH_GEMMLOWP_EXPONENT_MUL_COUT_EN_SHIFT 17 198 #define MME_ARCH_GEMMLOWP_EXPONENT_MUL_COUT_EN_MASK 0x20000 199 200 /* MME_ARCH_A_ROI_BASE_OFFSET */ 201 #define MME_ARCH_A_ROI_BASE_OFFSET_V_SHIFT 0 202 #define MME_ARCH_A_ROI_BASE_OFFSET_V_MASK 0xFFFFFFFF 203 204 /* MME_ARCH_A_VALID_ELEMENTS */ 205 #define MME_ARCH_A_VALID_ELEMENTS_V_SHIFT 0 206 #define MME_ARCH_A_VALID_ELEMENTS_V_MASK 0xFFFFFFFF 207 208 /* MME_ARCH_A_LOOP_STRIDE */ 209 #define MME_ARCH_A_LOOP_STRIDE_V_SHIFT 0 210 #define MME_ARCH_A_LOOP_STRIDE_V_MASK 0xFFFFFFFF 211 212 /* MME_ARCH_A_ROI_SIZE */ 213 #define MME_ARCH_A_ROI_SIZE_V_SHIFT 0 214 #define MME_ARCH_A_ROI_SIZE_V_MASK 0xFFFFFFFF 215 216 /* MME_ARCH_A_SPATIAL_START_OFFSET */ 217 #define MME_ARCH_A_SPATIAL_START_OFFSET_V_SHIFT 0 218 #define MME_ARCH_A_SPATIAL_START_OFFSET_V_MASK 0xFFFFFFFF 219 220 /* MME_ARCH_A_SPATIAL_STRIDE */ 221 #define MME_ARCH_A_SPATIAL_STRIDE_V_SHIFT 0 222 #define MME_ARCH_A_SPATIAL_STRIDE_V_MASK 0xFFFFFFFF 223 224 /* MME_ARCH_A_SPATIAL_SIZE_MINUS_1 */ 225 #define MME_ARCH_A_SPATIAL_SIZE_MINUS_1_V_SHIFT 0 226 #define MME_ARCH_A_SPATIAL_SIZE_MINUS_1_V_MASK 0xFFFFFFFF 227 228 /* MME_ARCH_B_ROI_BASE_OFFSET */ 229 #define MME_ARCH_B_ROI_BASE_OFFSET_V_SHIFT 0 230 #define MME_ARCH_B_ROI_BASE_OFFSET_V_MASK 0xFFFFFFFF 231 232 /* MME_ARCH_B_VALID_ELEMENTS */ 233 #define MME_ARCH_B_VALID_ELEMENTS_V_SHIFT 0 234 #define MME_ARCH_B_VALID_ELEMENTS_V_MASK 0xFFFFFFFF 235 236 /* MME_ARCH_B_LOOP_STRIDE */ 237 #define MME_ARCH_B_LOOP_STRIDE_V_SHIFT 0 238 #define MME_ARCH_B_LOOP_STRIDE_V_MASK 0xFFFFFFFF 239 240 /* MME_ARCH_B_ROI_SIZE */ 241 #define MME_ARCH_B_ROI_SIZE_V_SHIFT 0 242 #define MME_ARCH_B_ROI_SIZE_V_MASK 0xFFFFFFFF 243 244 /* MME_ARCH_B_SPATIAL_START_OFFSET */ 245 #define MME_ARCH_B_SPATIAL_START_OFFSET_V_SHIFT 0 246 #define MME_ARCH_B_SPATIAL_START_OFFSET_V_MASK 0xFFFFFFFF 247 248 /* MME_ARCH_B_SPATIAL_STRIDE */ 249 #define MME_ARCH_B_SPATIAL_STRIDE_V_SHIFT 0 250 #define MME_ARCH_B_SPATIAL_STRIDE_V_MASK 0xFFFFFFFF 251 252 /* MME_ARCH_B_SPATIAL_SIZE_MINUS_1 */ 253 #define MME_ARCH_B_SPATIAL_SIZE_MINUS_1_V_SHIFT 0 254 #define MME_ARCH_B_SPATIAL_SIZE_MINUS_1_V_MASK 0xFFFFFFFF 255 256 /* MME_ARCH_C_ROI_BASE_OFFSET */ 257 #define MME_ARCH_C_ROI_BASE_OFFSET_V_SHIFT 0 258 #define MME_ARCH_C_ROI_BASE_OFFSET_V_MASK 0xFFFFFFFF 259 260 /* MME_ARCH_C_VALID_ELEMENTS */ 261 #define MME_ARCH_C_VALID_ELEMENTS_V_SHIFT 0 262 #define MME_ARCH_C_VALID_ELEMENTS_V_MASK 0xFFFFFFFF 263 264 /* MME_ARCH_C_LOOP_STRIDE */ 265 #define MME_ARCH_C_LOOP_STRIDE_V_SHIFT 0 266 #define MME_ARCH_C_LOOP_STRIDE_V_MASK 0xFFFFFFFF 267 268 /* MME_ARCH_C_ROI_SIZE */ 269 #define MME_ARCH_C_ROI_SIZE_V_SHIFT 0 270 #define MME_ARCH_C_ROI_SIZE_V_MASK 0xFFFFFFFF 271 272 /* MME_ARCH_C_SPATIAL_START_OFFSET */ 273 #define MME_ARCH_C_SPATIAL_START_OFFSET_V_SHIFT 0 274 #define MME_ARCH_C_SPATIAL_START_OFFSET_V_MASK 0xFFFFFFFF 275 276 /* MME_ARCH_C_SPATIAL_STRIDE */ 277 #define MME_ARCH_C_SPATIAL_STRIDE_V_SHIFT 0 278 #define MME_ARCH_C_SPATIAL_STRIDE_V_MASK 0xFFFFFFFF 279 280 /* MME_ARCH_C_SPATIAL_SIZE_MINUS_1 */ 281 #define MME_ARCH_C_SPATIAL_SIZE_MINUS_1_V_SHIFT 0 282 #define MME_ARCH_C_SPATIAL_SIZE_MINUS_1_V_MASK 0xFFFFFFFF 283 284 /* MME_ARCH_SYNC_OBJECT_MESSAGE */ 285 #define MME_ARCH_SYNC_OBJECT_MESSAGE_SO_WRITE_VALUE_SHIFT 0 286 #define MME_ARCH_SYNC_OBJECT_MESSAGE_SO_WRITE_VALUE_MASK 0xFFFF 287 #define MME_ARCH_SYNC_OBJECT_MESSAGE_SO_ADDRESS_OFFSET_SHIFT 16 288 #define MME_ARCH_SYNC_OBJECT_MESSAGE_SO_ADDRESS_OFFSET_MASK 0x7FFF0000 289 #define MME_ARCH_SYNC_OBJECT_MESSAGE_SO_OPERATION_SHIFT 31 290 #define MME_ARCH_SYNC_OBJECT_MESSAGE_SO_OPERATION_MASK 0x80000000 291 292 /* MME_ARCH_E_PADDING_VALUE_A */ 293 #define MME_ARCH_E_PADDING_VALUE_A_V_SHIFT 0 294 #define MME_ARCH_E_PADDING_VALUE_A_V_MASK 0xFFFF 295 296 /* MME_ARCH_E_NUM_ITERATION_MINUS_1 */ 297 #define MME_ARCH_E_NUM_ITERATION_MINUS_1_V_SHIFT 0 298 #define MME_ARCH_E_NUM_ITERATION_MINUS_1_V_MASK 0xFFFFFFFF 299 300 /* MME_ARCH_E_BUBBLES_PER_SPLIT */ 301 #define MME_ARCH_E_BUBBLES_PER_SPLIT_A_SHIFT 0 302 #define MME_ARCH_E_BUBBLES_PER_SPLIT_A_MASK 0xFF 303 #define MME_ARCH_E_BUBBLES_PER_SPLIT_B_SHIFT 8 304 #define MME_ARCH_E_BUBBLES_PER_SPLIT_B_MASK 0xFF00 305 #define MME_ARCH_E_BUBBLES_PER_SPLIT_CIN_SHIFT 16 306 #define MME_ARCH_E_BUBBLES_PER_SPLIT_CIN_MASK 0xFF0000 307 #define MME_ARCH_E_BUBBLES_PER_SPLIT_ID_SHIFT 24 308 #define MME_ARCH_E_BUBBLES_PER_SPLIT_ID_MASK 0xFF000000 309 310 /* MME_CMD */ 311 #define MME_CMD_EXECUTE_SHIFT 0 312 #define MME_CMD_EXECUTE_MASK 0x1 313 314 /* MME_DUMMY */ 315 #define MME_DUMMY_V_SHIFT 0 316 #define MME_DUMMY_V_MASK 0xFFFFFFFF 317 318 /* MME_RESET */ 319 #define MME_RESET_V_SHIFT 0 320 #define MME_RESET_V_MASK 0x1 321 322 /* MME_STALL */ 323 #define MME_STALL_V_SHIFT 0 324 #define MME_STALL_V_MASK 0xFFFFFFFF 325 326 /* MME_SM_BASE_ADDRESS_LOW */ 327 #define MME_SM_BASE_ADDRESS_LOW_V_SHIFT 0 328 #define MME_SM_BASE_ADDRESS_LOW_V_MASK 0xFFFFFFFF 329 330 /* MME_SM_BASE_ADDRESS_HIGH */ 331 #define MME_SM_BASE_ADDRESS_HIGH_V_SHIFT 0 332 #define MME_SM_BASE_ADDRESS_HIGH_V_MASK 0xFFFFFFFF 333 334 /* MME_DBGMEM_ADD */ 335 #define MME_DBGMEM_ADD_V_SHIFT 0 336 #define MME_DBGMEM_ADD_V_MASK 0xFFFFFFFF 337 338 /* MME_DBGMEM_DATA_WR */ 339 #define MME_DBGMEM_DATA_WR_V_SHIFT 0 340 #define MME_DBGMEM_DATA_WR_V_MASK 0xFFFFFFFF 341 342 /* MME_DBGMEM_DATA_RD */ 343 #define MME_DBGMEM_DATA_RD_V_SHIFT 0 344 #define MME_DBGMEM_DATA_RD_V_MASK 0xFFFFFFFF 345 346 /* MME_DBGMEM_CTRL */ 347 #define MME_DBGMEM_CTRL_WR_NRD_SHIFT 0 348 #define MME_DBGMEM_CTRL_WR_NRD_MASK 0x1 349 350 /* MME_DBGMEM_RC */ 351 #define MME_DBGMEM_RC_VALID_SHIFT 0 352 #define MME_DBGMEM_RC_VALID_MASK 0x1 353 #define MME_DBGMEM_RC_FULL_SHIFT 1 354 #define MME_DBGMEM_RC_FULL_MASK 0x2 355 356 /* MME_LOG_SHADOW */ 357 #define MME_LOG_SHADOW_MASK_0_SHIFT 0 358 #define MME_LOG_SHADOW_MASK_0_MASK 0x7F 359 #define MME_LOG_SHADOW_MASK_1_SHIFT 8 360 #define MME_LOG_SHADOW_MASK_1_MASK 0x7F00 361 #define MME_LOG_SHADOW_MASK_2_SHIFT 16 362 #define MME_LOG_SHADOW_MASK_2_MASK 0x7F0000 363 #define MME_LOG_SHADOW_MASK_3_SHIFT 24 364 #define MME_LOG_SHADOW_MASK_3_MASK 0x7F000000 365 366 /* MME_STORE_MAX_CREDIT */ 367 #define MME_STORE_MAX_CREDIT_V_SHIFT 0 368 #define MME_STORE_MAX_CREDIT_V_MASK 0x3F 369 370 /* MME_AGU */ 371 #define MME_AGU_SBA_MAX_CREDIT_SHIFT 0 372 #define MME_AGU_SBA_MAX_CREDIT_MASK 0x1F 373 #define MME_AGU_SBB_MAX_CREDIT_SHIFT 8 374 #define MME_AGU_SBB_MAX_CREDIT_MASK 0x1F00 375 #define MME_AGU_SBC_MAX_CREDIT_SHIFT 16 376 #define MME_AGU_SBC_MAX_CREDIT_MASK 0x1F0000 377 #define MME_AGU_WBC_MAX_CREDIT_SHIFT 24 378 #define MME_AGU_WBC_MAX_CREDIT_MASK 0x3F000000 379 380 /* MME_SBA */ 381 #define MME_SBA_MAX_SIZE_SHIFT 0 382 #define MME_SBA_MAX_SIZE_MASK 0x3FF 383 #define MME_SBA_EU_MAX_CREDIT_SHIFT 16 384 #define MME_SBA_EU_MAX_CREDIT_MASK 0x1F0000 385 386 /* MME_SBB */ 387 #define MME_SBB_MAX_SIZE_SHIFT 0 388 #define MME_SBB_MAX_SIZE_MASK 0x3FF 389 #define MME_SBB_EU_MAX_CREDIT_SHIFT 16 390 #define MME_SBB_EU_MAX_CREDIT_MASK 0x1F0000 391 392 /* MME_SBC */ 393 #define MME_SBC_MAX_SIZE_SHIFT 0 394 #define MME_SBC_MAX_SIZE_MASK 0x3FF 395 #define MME_SBC_EU_MAX_CREDIT_SHIFT 16 396 #define MME_SBC_EU_MAX_CREDIT_MASK 0x1F0000 397 398 /* MME_WBC */ 399 #define MME_WBC_MAX_OUTSTANDING_SHIFT 0 400 #define MME_WBC_MAX_OUTSTANDING_MASK 0xFFF 401 #define MME_WBC_DISABLE_FAST_END_PE_SHIFT 12 402 #define MME_WBC_DISABLE_FAST_END_PE_MASK 0x1000 403 #define MME_WBC_LD_INSERT_BUBBLE_DIS_SHIFT 13 404 #define MME_WBC_LD_INSERT_BUBBLE_DIS_MASK 0x2000 405 406 /* MME_SBA_CONTROL_DATA */ 407 #define MME_SBA_CONTROL_DATA_ASID_SHIFT 0 408 #define MME_SBA_CONTROL_DATA_ASID_MASK 0x3FF 409 #define MME_SBA_CONTROL_DATA_MMBP_SHIFT 10 410 #define MME_SBA_CONTROL_DATA_MMBP_MASK 0x400 411 412 /* MME_SBB_CONTROL_DATA */ 413 #define MME_SBB_CONTROL_DATA_ASID_SHIFT 0 414 #define MME_SBB_CONTROL_DATA_ASID_MASK 0x3FF 415 #define MME_SBB_CONTROL_DATA_MMBP_SHIFT 10 416 #define MME_SBB_CONTROL_DATA_MMBP_MASK 0x400 417 418 /* MME_SBC_CONTROL_DATA */ 419 #define MME_SBC_CONTROL_DATA_ASID_SHIFT 0 420 #define MME_SBC_CONTROL_DATA_ASID_MASK 0x3FF 421 #define MME_SBC_CONTROL_DATA_MMBP_SHIFT 10 422 #define MME_SBC_CONTROL_DATA_MMBP_MASK 0x400 423 424 /* MME_WBC_CONTROL_DATA */ 425 #define MME_WBC_CONTROL_DATA_ASID_SHIFT 0 426 #define MME_WBC_CONTROL_DATA_ASID_MASK 0x3FF 427 #define MME_WBC_CONTROL_DATA_MMBP_SHIFT 10 428 #define MME_WBC_CONTROL_DATA_MMBP_MASK 0x400 429 430 /* MME_TE */ 431 #define MME_TE_MAX_CREDIT_SHIFT 0 432 #define MME_TE_MAX_CREDIT_MASK 0x1F 433 #define MME_TE_DESC_MAX_CREDIT_SHIFT 8 434 #define MME_TE_DESC_MAX_CREDIT_MASK 0x1F00 435 436 /* MME_TE2DEC */ 437 #define MME_TE2DEC_MAX_CREDIT_SHIFT 0 438 #define MME_TE2DEC_MAX_CREDIT_MASK 0x1F 439 440 /* MME_REI_STATUS */ 441 #define MME_REI_STATUS_V_SHIFT 0 442 #define MME_REI_STATUS_V_MASK 0xFFFFFFFF 443 444 /* MME_REI_MASK */ 445 #define MME_REI_MASK_V_SHIFT 0 446 #define MME_REI_MASK_V_MASK 0xFFFFFFFF 447 448 /* MME_SEI_STATUS */ 449 #define MME_SEI_STATUS_V_SHIFT 0 450 #define MME_SEI_STATUS_V_MASK 0xFFFFFFFF 451 452 /* MME_SEI_MASK */ 453 #define MME_SEI_MASK_V_SHIFT 0 454 #define MME_SEI_MASK_V_MASK 0xFFFFFFFF 455 456 /* MME_SPI_STATUS */ 457 #define MME_SPI_STATUS_V_SHIFT 0 458 #define MME_SPI_STATUS_V_MASK 0xFFFFFFFF 459 460 /* MME_SPI_MASK */ 461 #define MME_SPI_MASK_V_SHIFT 0 462 #define MME_SPI_MASK_V_MASK 0xFFFFFFFF 463 464 /* MME_SHADOW_0_STATUS */ 465 #define MME_SHADOW_0_STATUS_A_SHIFT 0 466 #define MME_SHADOW_0_STATUS_A_MASK 0x1 467 #define MME_SHADOW_0_STATUS_B_SHIFT 1 468 #define MME_SHADOW_0_STATUS_B_MASK 0x2 469 #define MME_SHADOW_0_STATUS_CIN_SHIFT 2 470 #define MME_SHADOW_0_STATUS_CIN_MASK 0x4 471 #define MME_SHADOW_0_STATUS_COUT_SHIFT 3 472 #define MME_SHADOW_0_STATUS_COUT_MASK 0x8 473 #define MME_SHADOW_0_STATUS_TE_SHIFT 4 474 #define MME_SHADOW_0_STATUS_TE_MASK 0x10 475 #define MME_SHADOW_0_STATUS_LD_SHIFT 5 476 #define MME_SHADOW_0_STATUS_LD_MASK 0x20 477 #define MME_SHADOW_0_STATUS_ST_SHIFT 6 478 #define MME_SHADOW_0_STATUS_ST_MASK 0x40 479 480 /* MME_SHADOW_0_A_BASE_ADDR_HIGH */ 481 #define MME_SHADOW_0_A_BASE_ADDR_HIGH_V_SHIFT 0 482 #define MME_SHADOW_0_A_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 483 484 /* MME_SHADOW_0_B_BASE_ADDR_HIGH */ 485 #define MME_SHADOW_0_B_BASE_ADDR_HIGH_V_SHIFT 0 486 #define MME_SHADOW_0_B_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 487 488 /* MME_SHADOW_0_CIN_BASE_ADDR_HIGH */ 489 #define MME_SHADOW_0_CIN_BASE_ADDR_HIGH_V_SHIFT 0 490 #define MME_SHADOW_0_CIN_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 491 492 /* MME_SHADOW_0_COUT_BASE_ADDR_HIGH */ 493 #define MME_SHADOW_0_COUT_BASE_ADDR_HIGH_V_SHIFT 0 494 #define MME_SHADOW_0_COUT_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 495 496 /* MME_SHADOW_0_BIAS_BASE_ADDR_HIGH */ 497 #define MME_SHADOW_0_BIAS_BASE_ADDR_HIGH_V_SHIFT 0 498 #define MME_SHADOW_0_BIAS_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 499 500 /* MME_SHADOW_0_A_BASE_ADDR_LOW */ 501 #define MME_SHADOW_0_A_BASE_ADDR_LOW_V_SHIFT 0 502 #define MME_SHADOW_0_A_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 503 504 /* MME_SHADOW_0_B_BASE_ADDR_LOW */ 505 #define MME_SHADOW_0_B_BASE_ADDR_LOW_V_SHIFT 0 506 #define MME_SHADOW_0_B_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 507 508 /* MME_SHADOW_0_CIN_BASE_ADDR_LOW */ 509 #define MME_SHADOW_0_CIN_BASE_ADDR_LOW_V_SHIFT 0 510 #define MME_SHADOW_0_CIN_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 511 512 /* MME_SHADOW_0_COUT_BASE_ADDR_LOW */ 513 #define MME_SHADOW_0_COUT_BASE_ADDR_LOW_V_SHIFT 0 514 #define MME_SHADOW_0_COUT_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 515 516 /* MME_SHADOW_0_BIAS_BASE_ADDR_LOW */ 517 #define MME_SHADOW_0_BIAS_BASE_ADDR_LOW_V_SHIFT 0 518 #define MME_SHADOW_0_BIAS_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 519 520 /* MME_SHADOW_0_HEADER */ 521 #define MME_SHADOW_0_HEADER_SIGNAL_MASK_SHIFT 0 522 #define MME_SHADOW_0_HEADER_SIGNAL_MASK_MASK 0x1F 523 #define MME_SHADOW_0_HEADER_SIGNAL_EN_SHIFT 5 524 #define MME_SHADOW_0_HEADER_SIGNAL_EN_MASK 0x20 525 #define MME_SHADOW_0_HEADER_TRANS_A_SHIFT 6 526 #define MME_SHADOW_0_HEADER_TRANS_A_MASK 0x40 527 #define MME_SHADOW_0_HEADER_LOWER_A_SHIFT 7 528 #define MME_SHADOW_0_HEADER_LOWER_A_MASK 0x80 529 #define MME_SHADOW_0_HEADER_ACCUM_MASK_SHIFT 8 530 #define MME_SHADOW_0_HEADER_ACCUM_MASK_MASK 0xF00 531 #define MME_SHADOW_0_HEADER_LOAD_BIAS_SHIFT 12 532 #define MME_SHADOW_0_HEADER_LOAD_BIAS_MASK 0x1000 533 #define MME_SHADOW_0_HEADER_LOAD_CIN_SHIFT 13 534 #define MME_SHADOW_0_HEADER_LOAD_CIN_MASK 0x2000 535 #define MME_SHADOW_0_HEADER_STORE_OUT_SHIFT 15 536 #define MME_SHADOW_0_HEADER_STORE_OUT_MASK 0x8000 537 #define MME_SHADOW_0_HEADER_ACC_LD_INC_DISABLE_SHIFT 16 538 #define MME_SHADOW_0_HEADER_ACC_LD_INC_DISABLE_MASK 0x10000 539 #define MME_SHADOW_0_HEADER_ADVANCE_A_SHIFT 17 540 #define MME_SHADOW_0_HEADER_ADVANCE_A_MASK 0x20000 541 #define MME_SHADOW_0_HEADER_ADVANCE_B_SHIFT 18 542 #define MME_SHADOW_0_HEADER_ADVANCE_B_MASK 0x40000 543 #define MME_SHADOW_0_HEADER_ADVANCE_CIN_SHIFT 19 544 #define MME_SHADOW_0_HEADER_ADVANCE_CIN_MASK 0x80000 545 #define MME_SHADOW_0_HEADER_ADVANCE_COUT_SHIFT 20 546 #define MME_SHADOW_0_HEADER_ADVANCE_COUT_MASK 0x100000 547 #define MME_SHADOW_0_HEADER_COMPRESSED_B_SHIFT 21 548 #define MME_SHADOW_0_HEADER_COMPRESSED_B_MASK 0x200000 549 #define MME_SHADOW_0_HEADER_MASK_CONV_END_SHIFT 22 550 #define MME_SHADOW_0_HEADER_MASK_CONV_END_MASK 0x400000 551 #define MME_SHADOW_0_HEADER_ACC_ST_INC_DISABLE_SHIFT 23 552 #define MME_SHADOW_0_HEADER_ACC_ST_INC_DISABLE_MASK 0x800000 553 #define MME_SHADOW_0_HEADER_AB_DATA_TYPE_SHIFT 24 554 #define MME_SHADOW_0_HEADER_AB_DATA_TYPE_MASK 0x3000000 555 #define MME_SHADOW_0_HEADER_CIN_DATA_TYPE_SHIFT 26 556 #define MME_SHADOW_0_HEADER_CIN_DATA_TYPE_MASK 0x1C000000 557 #define MME_SHADOW_0_HEADER_COUT_DATA_TYPE_SHIFT 29 558 #define MME_SHADOW_0_HEADER_COUT_DATA_TYPE_MASK 0xE0000000 559 560 /* MME_SHADOW_0_KERNEL_SIZE_MINUS_1 */ 561 #define MME_SHADOW_0_KERNEL_SIZE_MINUS_1_DIM_0_SHIFT 0 562 #define MME_SHADOW_0_KERNEL_SIZE_MINUS_1_DIM_0_MASK 0xFF 563 #define MME_SHADOW_0_KERNEL_SIZE_MINUS_1_DIM_1_SHIFT 8 564 #define MME_SHADOW_0_KERNEL_SIZE_MINUS_1_DIM_1_MASK 0xFF00 565 #define MME_SHADOW_0_KERNEL_SIZE_MINUS_1_DIM_2_SHIFT 16 566 #define MME_SHADOW_0_KERNEL_SIZE_MINUS_1_DIM_2_MASK 0xFF0000 567 #define MME_SHADOW_0_KERNEL_SIZE_MINUS_1_DIM_3_SHIFT 24 568 #define MME_SHADOW_0_KERNEL_SIZE_MINUS_1_DIM_3_MASK 0xFF000000 569 570 /* MME_SHADOW_0_ASSOCIATED_DIMS */ 571 #define MME_SHADOW_0_ASSOCIATED_DIMS_A_0_SHIFT 0 572 #define MME_SHADOW_0_ASSOCIATED_DIMS_A_0_MASK 0x7 573 #define MME_SHADOW_0_ASSOCIATED_DIMS_B_0_SHIFT 3 574 #define MME_SHADOW_0_ASSOCIATED_DIMS_B_0_MASK 0x38 575 #define MME_SHADOW_0_ASSOCIATED_DIMS_CIN_0_SHIFT 6 576 #define MME_SHADOW_0_ASSOCIATED_DIMS_CIN_0_MASK 0x1C0 577 #define MME_SHADOW_0_ASSOCIATED_DIMS_COUT_0_SHIFT 9 578 #define MME_SHADOW_0_ASSOCIATED_DIMS_COUT_0_MASK 0xE00 579 #define MME_SHADOW_0_ASSOCIATED_DIMS_A_1_SHIFT 16 580 #define MME_SHADOW_0_ASSOCIATED_DIMS_A_1_MASK 0x70000 581 #define MME_SHADOW_0_ASSOCIATED_DIMS_B_1_SHIFT 19 582 #define MME_SHADOW_0_ASSOCIATED_DIMS_B_1_MASK 0x380000 583 #define MME_SHADOW_0_ASSOCIATED_DIMS_CIN_1_SHIFT 22 584 #define MME_SHADOW_0_ASSOCIATED_DIMS_CIN_1_MASK 0x1C00000 585 #define MME_SHADOW_0_ASSOCIATED_DIMS_COUT_1_SHIFT 25 586 #define MME_SHADOW_0_ASSOCIATED_DIMS_COUT_1_MASK 0xE000000 587 588 /* MME_SHADOW_0_COUT_SCALE */ 589 #define MME_SHADOW_0_COUT_SCALE_V_SHIFT 0 590 #define MME_SHADOW_0_COUT_SCALE_V_MASK 0xFFFFFFFF 591 592 /* MME_SHADOW_0_CIN_SCALE */ 593 #define MME_SHADOW_0_CIN_SCALE_V_SHIFT 0 594 #define MME_SHADOW_0_CIN_SCALE_V_MASK 0xFFFFFFFF 595 596 /* MME_SHADOW_0_GEMMLOWP_ZP */ 597 #define MME_SHADOW_0_GEMMLOWP_ZP_ZP_CIN_SHIFT 0 598 #define MME_SHADOW_0_GEMMLOWP_ZP_ZP_CIN_MASK 0x1FF 599 #define MME_SHADOW_0_GEMMLOWP_ZP_ZP_COUT_SHIFT 9 600 #define MME_SHADOW_0_GEMMLOWP_ZP_ZP_COUT_MASK 0x3FE00 601 #define MME_SHADOW_0_GEMMLOWP_ZP_ZP_B_SHIFT 18 602 #define MME_SHADOW_0_GEMMLOWP_ZP_ZP_B_MASK 0x7FC0000 603 #define MME_SHADOW_0_GEMMLOWP_ZP_GEMMLOWP_EU_EN_SHIFT 27 604 #define MME_SHADOW_0_GEMMLOWP_ZP_GEMMLOWP_EU_EN_MASK 0x8000000 605 #define MME_SHADOW_0_GEMMLOWP_ZP_ACCUM_SHIFT 28 606 #define MME_SHADOW_0_GEMMLOWP_ZP_ACCUM_MASK 0x10000000 607 #define MME_SHADOW_0_GEMMLOWP_ZP_ACCUM_BIAS_SHIFT 29 608 #define MME_SHADOW_0_GEMMLOWP_ZP_ACCUM_BIAS_MASK 0x20000000 609 #define MME_SHADOW_0_GEMMLOWP_ZP_RELU_EN_SHIFT 30 610 #define MME_SHADOW_0_GEMMLOWP_ZP_RELU_EN_MASK 0x40000000 611 612 /* MME_SHADOW_0_GEMMLOWP_EXPONENT */ 613 #define MME_SHADOW_0_GEMMLOWP_EXPONENT_EXPONENT_CIN_SHIFT 0 614 #define MME_SHADOW_0_GEMMLOWP_EXPONENT_EXPONENT_CIN_MASK 0x3F 615 #define MME_SHADOW_0_GEMMLOWP_EXPONENT_EXPONENT_COUT_SHIFT 8 616 #define MME_SHADOW_0_GEMMLOWP_EXPONENT_EXPONENT_COUT_MASK 0x3F00 617 #define MME_SHADOW_0_GEMMLOWP_EXPONENT_MUL_CIN_EN_SHIFT 16 618 #define MME_SHADOW_0_GEMMLOWP_EXPONENT_MUL_CIN_EN_MASK 0x10000 619 #define MME_SHADOW_0_GEMMLOWP_EXPONENT_MUL_COUT_EN_SHIFT 17 620 #define MME_SHADOW_0_GEMMLOWP_EXPONENT_MUL_COUT_EN_MASK 0x20000 621 622 /* MME_SHADOW_0_A_ROI_BASE_OFFSET */ 623 #define MME_SHADOW_0_A_ROI_BASE_OFFSET_V_SHIFT 0 624 #define MME_SHADOW_0_A_ROI_BASE_OFFSET_V_MASK 0xFFFFFFFF 625 626 /* MME_SHADOW_0_A_VALID_ELEMENTS */ 627 #define MME_SHADOW_0_A_VALID_ELEMENTS_V_SHIFT 0 628 #define MME_SHADOW_0_A_VALID_ELEMENTS_V_MASK 0xFFFFFFFF 629 630 /* MME_SHADOW_0_A_LOOP_STRIDE */ 631 #define MME_SHADOW_0_A_LOOP_STRIDE_V_SHIFT 0 632 #define MME_SHADOW_0_A_LOOP_STRIDE_V_MASK 0xFFFFFFFF 633 634 /* MME_SHADOW_0_A_ROI_SIZE */ 635 #define MME_SHADOW_0_A_ROI_SIZE_V_SHIFT 0 636 #define MME_SHADOW_0_A_ROI_SIZE_V_MASK 0xFFFFFFFF 637 638 /* MME_SHADOW_0_A_SPATIAL_START_OFFSET */ 639 #define MME_SHADOW_0_A_SPATIAL_START_OFFSET_V_SHIFT 0 640 #define MME_SHADOW_0_A_SPATIAL_START_OFFSET_V_MASK 0xFFFFFFFF 641 642 /* MME_SHADOW_0_A_SPATIAL_STRIDE */ 643 #define MME_SHADOW_0_A_SPATIAL_STRIDE_V_SHIFT 0 644 #define MME_SHADOW_0_A_SPATIAL_STRIDE_V_MASK 0xFFFFFFFF 645 646 /* MME_SHADOW_0_A_SPATIAL_SIZE_MINUS_1 */ 647 #define MME_SHADOW_0_A_SPATIAL_SIZE_MINUS_1_V_SHIFT 0 648 #define MME_SHADOW_0_A_SPATIAL_SIZE_MINUS_1_V_MASK 0xFFFFFFFF 649 650 /* MME_SHADOW_0_B_ROI_BASE_OFFSET */ 651 #define MME_SHADOW_0_B_ROI_BASE_OFFSET_V_SHIFT 0 652 #define MME_SHADOW_0_B_ROI_BASE_OFFSET_V_MASK 0xFFFFFFFF 653 654 /* MME_SHADOW_0_B_VALID_ELEMENTS */ 655 #define MME_SHADOW_0_B_VALID_ELEMENTS_V_SHIFT 0 656 #define MME_SHADOW_0_B_VALID_ELEMENTS_V_MASK 0xFFFFFFFF 657 658 /* MME_SHADOW_0_B_LOOP_STRIDE */ 659 #define MME_SHADOW_0_B_LOOP_STRIDE_V_SHIFT 0 660 #define MME_SHADOW_0_B_LOOP_STRIDE_V_MASK 0xFFFFFFFF 661 662 /* MME_SHADOW_0_B_ROI_SIZE */ 663 #define MME_SHADOW_0_B_ROI_SIZE_V_SHIFT 0 664 #define MME_SHADOW_0_B_ROI_SIZE_V_MASK 0xFFFFFFFF 665 666 /* MME_SHADOW_0_B_SPATIAL_START_OFFSET */ 667 #define MME_SHADOW_0_B_SPATIAL_START_OFFSET_V_SHIFT 0 668 #define MME_SHADOW_0_B_SPATIAL_START_OFFSET_V_MASK 0xFFFFFFFF 669 670 /* MME_SHADOW_0_B_SPATIAL_STRIDE */ 671 #define MME_SHADOW_0_B_SPATIAL_STRIDE_V_SHIFT 0 672 #define MME_SHADOW_0_B_SPATIAL_STRIDE_V_MASK 0xFFFFFFFF 673 674 /* MME_SHADOW_0_B_SPATIAL_SIZE_MINUS_1 */ 675 #define MME_SHADOW_0_B_SPATIAL_SIZE_MINUS_1_V_SHIFT 0 676 #define MME_SHADOW_0_B_SPATIAL_SIZE_MINUS_1_V_MASK 0xFFFFFFFF 677 678 /* MME_SHADOW_0_C_ROI_BASE_OFFSET */ 679 #define MME_SHADOW_0_C_ROI_BASE_OFFSET_V_SHIFT 0 680 #define MME_SHADOW_0_C_ROI_BASE_OFFSET_V_MASK 0xFFFFFFFF 681 682 /* MME_SHADOW_0_C_VALID_ELEMENTS */ 683 #define MME_SHADOW_0_C_VALID_ELEMENTS_V_SHIFT 0 684 #define MME_SHADOW_0_C_VALID_ELEMENTS_V_MASK 0xFFFFFFFF 685 686 /* MME_SHADOW_0_C_LOOP_STRIDE */ 687 #define MME_SHADOW_0_C_LOOP_STRIDE_V_SHIFT 0 688 #define MME_SHADOW_0_C_LOOP_STRIDE_V_MASK 0xFFFFFFFF 689 690 /* MME_SHADOW_0_C_ROI_SIZE */ 691 #define MME_SHADOW_0_C_ROI_SIZE_V_SHIFT 0 692 #define MME_SHADOW_0_C_ROI_SIZE_V_MASK 0xFFFFFFFF 693 694 /* MME_SHADOW_0_C_SPATIAL_START_OFFSET */ 695 #define MME_SHADOW_0_C_SPATIAL_START_OFFSET_V_SHIFT 0 696 #define MME_SHADOW_0_C_SPATIAL_START_OFFSET_V_MASK 0xFFFFFFFF 697 698 /* MME_SHADOW_0_C_SPATIAL_STRIDE */ 699 #define MME_SHADOW_0_C_SPATIAL_STRIDE_V_SHIFT 0 700 #define MME_SHADOW_0_C_SPATIAL_STRIDE_V_MASK 0xFFFFFFFF 701 702 /* MME_SHADOW_0_C_SPATIAL_SIZE_MINUS_1 */ 703 #define MME_SHADOW_0_C_SPATIAL_SIZE_MINUS_1_V_SHIFT 0 704 #define MME_SHADOW_0_C_SPATIAL_SIZE_MINUS_1_V_MASK 0xFFFFFFFF 705 706 /* MME_SHADOW_0_SYNC_OBJECT_MESSAGE */ 707 #define MME_SHADOW_0_SYNC_OBJECT_MESSAGE_SO_WRITE_VALUE_SHIFT 0 708 #define MME_SHADOW_0_SYNC_OBJECT_MESSAGE_SO_WRITE_VALUE_MASK 0xFFFF 709 #define MME_SHADOW_0_SYNC_OBJECT_MESSAGE_SO_ADDRESS_OFFSET_SHIFT 16 710 #define MME_SHADOW_0_SYNC_OBJECT_MESSAGE_SO_ADDRESS_OFFSET_MASK 0x7FFF0000 711 #define MME_SHADOW_0_SYNC_OBJECT_MESSAGE_SO_OPERATION_SHIFT 31 712 #define MME_SHADOW_0_SYNC_OBJECT_MESSAGE_SO_OPERATION_MASK 0x80000000 713 714 /* MME_SHADOW_0_E_PADDING_VALUE_A */ 715 #define MME_SHADOW_0_E_PADDING_VALUE_A_V_SHIFT 0 716 #define MME_SHADOW_0_E_PADDING_VALUE_A_V_MASK 0xFFFF 717 718 /* MME_SHADOW_0_E_NUM_ITERATION_MINUS_1 */ 719 #define MME_SHADOW_0_E_NUM_ITERATION_MINUS_1_V_SHIFT 0 720 #define MME_SHADOW_0_E_NUM_ITERATION_MINUS_1_V_MASK 0xFFFFFFFF 721 722 /* MME_SHADOW_0_E_BUBBLES_PER_SPLIT */ 723 #define MME_SHADOW_0_E_BUBBLES_PER_SPLIT_A_SHIFT 0 724 #define MME_SHADOW_0_E_BUBBLES_PER_SPLIT_A_MASK 0xFF 725 #define MME_SHADOW_0_E_BUBBLES_PER_SPLIT_B_SHIFT 8 726 #define MME_SHADOW_0_E_BUBBLES_PER_SPLIT_B_MASK 0xFF00 727 #define MME_SHADOW_0_E_BUBBLES_PER_SPLIT_CIN_SHIFT 16 728 #define MME_SHADOW_0_E_BUBBLES_PER_SPLIT_CIN_MASK 0xFF0000 729 #define MME_SHADOW_0_E_BUBBLES_PER_SPLIT_ID_SHIFT 24 730 #define MME_SHADOW_0_E_BUBBLES_PER_SPLIT_ID_MASK 0xFF000000 731 732 /* MME_SHADOW_1_STATUS */ 733 #define MME_SHADOW_1_STATUS_A_SHIFT 0 734 #define MME_SHADOW_1_STATUS_A_MASK 0x1 735 #define MME_SHADOW_1_STATUS_B_SHIFT 1 736 #define MME_SHADOW_1_STATUS_B_MASK 0x2 737 #define MME_SHADOW_1_STATUS_CIN_SHIFT 2 738 #define MME_SHADOW_1_STATUS_CIN_MASK 0x4 739 #define MME_SHADOW_1_STATUS_COUT_SHIFT 3 740 #define MME_SHADOW_1_STATUS_COUT_MASK 0x8 741 #define MME_SHADOW_1_STATUS_TE_SHIFT 4 742 #define MME_SHADOW_1_STATUS_TE_MASK 0x10 743 #define MME_SHADOW_1_STATUS_LD_SHIFT 5 744 #define MME_SHADOW_1_STATUS_LD_MASK 0x20 745 #define MME_SHADOW_1_STATUS_ST_SHIFT 6 746 #define MME_SHADOW_1_STATUS_ST_MASK 0x40 747 748 /* MME_SHADOW_1_A_BASE_ADDR_HIGH */ 749 #define MME_SHADOW_1_A_BASE_ADDR_HIGH_V_SHIFT 0 750 #define MME_SHADOW_1_A_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 751 752 /* MME_SHADOW_1_B_BASE_ADDR_HIGH */ 753 #define MME_SHADOW_1_B_BASE_ADDR_HIGH_V_SHIFT 0 754 #define MME_SHADOW_1_B_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 755 756 /* MME_SHADOW_1_CIN_BASE_ADDR_HIGH */ 757 #define MME_SHADOW_1_CIN_BASE_ADDR_HIGH_V_SHIFT 0 758 #define MME_SHADOW_1_CIN_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 759 760 /* MME_SHADOW_1_COUT_BASE_ADDR_HIGH */ 761 #define MME_SHADOW_1_COUT_BASE_ADDR_HIGH_V_SHIFT 0 762 #define MME_SHADOW_1_COUT_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 763 764 /* MME_SHADOW_1_BIAS_BASE_ADDR_HIGH */ 765 #define MME_SHADOW_1_BIAS_BASE_ADDR_HIGH_V_SHIFT 0 766 #define MME_SHADOW_1_BIAS_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 767 768 /* MME_SHADOW_1_A_BASE_ADDR_LOW */ 769 #define MME_SHADOW_1_A_BASE_ADDR_LOW_V_SHIFT 0 770 #define MME_SHADOW_1_A_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 771 772 /* MME_SHADOW_1_B_BASE_ADDR_LOW */ 773 #define MME_SHADOW_1_B_BASE_ADDR_LOW_V_SHIFT 0 774 #define MME_SHADOW_1_B_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 775 776 /* MME_SHADOW_1_CIN_BASE_ADDR_LOW */ 777 #define MME_SHADOW_1_CIN_BASE_ADDR_LOW_V_SHIFT 0 778 #define MME_SHADOW_1_CIN_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 779 780 /* MME_SHADOW_1_COUT_BASE_ADDR_LOW */ 781 #define MME_SHADOW_1_COUT_BASE_ADDR_LOW_V_SHIFT 0 782 #define MME_SHADOW_1_COUT_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 783 784 /* MME_SHADOW_1_BIAS_BASE_ADDR_LOW */ 785 #define MME_SHADOW_1_BIAS_BASE_ADDR_LOW_V_SHIFT 0 786 #define MME_SHADOW_1_BIAS_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 787 788 /* MME_SHADOW_1_HEADER */ 789 #define MME_SHADOW_1_HEADER_SIGNAL_MASK_SHIFT 0 790 #define MME_SHADOW_1_HEADER_SIGNAL_MASK_MASK 0x1F 791 #define MME_SHADOW_1_HEADER_SIGNAL_EN_SHIFT 5 792 #define MME_SHADOW_1_HEADER_SIGNAL_EN_MASK 0x20 793 #define MME_SHADOW_1_HEADER_TRANS_A_SHIFT 6 794 #define MME_SHADOW_1_HEADER_TRANS_A_MASK 0x40 795 #define MME_SHADOW_1_HEADER_LOWER_A_SHIFT 7 796 #define MME_SHADOW_1_HEADER_LOWER_A_MASK 0x80 797 #define MME_SHADOW_1_HEADER_ACCUM_MASK_SHIFT 8 798 #define MME_SHADOW_1_HEADER_ACCUM_MASK_MASK 0xF00 799 #define MME_SHADOW_1_HEADER_LOAD_BIAS_SHIFT 12 800 #define MME_SHADOW_1_HEADER_LOAD_BIAS_MASK 0x1000 801 #define MME_SHADOW_1_HEADER_LOAD_CIN_SHIFT 13 802 #define MME_SHADOW_1_HEADER_LOAD_CIN_MASK 0x2000 803 #define MME_SHADOW_1_HEADER_STORE_OUT_SHIFT 15 804 #define MME_SHADOW_1_HEADER_STORE_OUT_MASK 0x8000 805 #define MME_SHADOW_1_HEADER_ACC_LD_INC_DISABLE_SHIFT 16 806 #define MME_SHADOW_1_HEADER_ACC_LD_INC_DISABLE_MASK 0x10000 807 #define MME_SHADOW_1_HEADER_ADVANCE_A_SHIFT 17 808 #define MME_SHADOW_1_HEADER_ADVANCE_A_MASK 0x20000 809 #define MME_SHADOW_1_HEADER_ADVANCE_B_SHIFT 18 810 #define MME_SHADOW_1_HEADER_ADVANCE_B_MASK 0x40000 811 #define MME_SHADOW_1_HEADER_ADVANCE_CIN_SHIFT 19 812 #define MME_SHADOW_1_HEADER_ADVANCE_CIN_MASK 0x80000 813 #define MME_SHADOW_1_HEADER_ADVANCE_COUT_SHIFT 20 814 #define MME_SHADOW_1_HEADER_ADVANCE_COUT_MASK 0x100000 815 #define MME_SHADOW_1_HEADER_COMPRESSED_B_SHIFT 21 816 #define MME_SHADOW_1_HEADER_COMPRESSED_B_MASK 0x200000 817 #define MME_SHADOW_1_HEADER_MASK_CONV_END_SHIFT 22 818 #define MME_SHADOW_1_HEADER_MASK_CONV_END_MASK 0x400000 819 #define MME_SHADOW_1_HEADER_ACC_ST_INC_DISABLE_SHIFT 23 820 #define MME_SHADOW_1_HEADER_ACC_ST_INC_DISABLE_MASK 0x800000 821 #define MME_SHADOW_1_HEADER_AB_DATA_TYPE_SHIFT 24 822 #define MME_SHADOW_1_HEADER_AB_DATA_TYPE_MASK 0x3000000 823 #define MME_SHADOW_1_HEADER_CIN_DATA_TYPE_SHIFT 26 824 #define MME_SHADOW_1_HEADER_CIN_DATA_TYPE_MASK 0x1C000000 825 #define MME_SHADOW_1_HEADER_COUT_DATA_TYPE_SHIFT 29 826 #define MME_SHADOW_1_HEADER_COUT_DATA_TYPE_MASK 0xE0000000 827 828 /* MME_SHADOW_1_KERNEL_SIZE_MINUS_1 */ 829 #define MME_SHADOW_1_KERNEL_SIZE_MINUS_1_DIM_0_SHIFT 0 830 #define MME_SHADOW_1_KERNEL_SIZE_MINUS_1_DIM_0_MASK 0xFF 831 #define MME_SHADOW_1_KERNEL_SIZE_MINUS_1_DIM_1_SHIFT 8 832 #define MME_SHADOW_1_KERNEL_SIZE_MINUS_1_DIM_1_MASK 0xFF00 833 #define MME_SHADOW_1_KERNEL_SIZE_MINUS_1_DIM_2_SHIFT 16 834 #define MME_SHADOW_1_KERNEL_SIZE_MINUS_1_DIM_2_MASK 0xFF0000 835 #define MME_SHADOW_1_KERNEL_SIZE_MINUS_1_DIM_3_SHIFT 24 836 #define MME_SHADOW_1_KERNEL_SIZE_MINUS_1_DIM_3_MASK 0xFF000000 837 838 /* MME_SHADOW_1_ASSOCIATED_DIMS */ 839 #define MME_SHADOW_1_ASSOCIATED_DIMS_A_0_SHIFT 0 840 #define MME_SHADOW_1_ASSOCIATED_DIMS_A_0_MASK 0x7 841 #define MME_SHADOW_1_ASSOCIATED_DIMS_B_0_SHIFT 3 842 #define MME_SHADOW_1_ASSOCIATED_DIMS_B_0_MASK 0x38 843 #define MME_SHADOW_1_ASSOCIATED_DIMS_CIN_0_SHIFT 6 844 #define MME_SHADOW_1_ASSOCIATED_DIMS_CIN_0_MASK 0x1C0 845 #define MME_SHADOW_1_ASSOCIATED_DIMS_COUT_0_SHIFT 9 846 #define MME_SHADOW_1_ASSOCIATED_DIMS_COUT_0_MASK 0xE00 847 #define MME_SHADOW_1_ASSOCIATED_DIMS_A_1_SHIFT 16 848 #define MME_SHADOW_1_ASSOCIATED_DIMS_A_1_MASK 0x70000 849 #define MME_SHADOW_1_ASSOCIATED_DIMS_B_1_SHIFT 19 850 #define MME_SHADOW_1_ASSOCIATED_DIMS_B_1_MASK 0x380000 851 #define MME_SHADOW_1_ASSOCIATED_DIMS_CIN_1_SHIFT 22 852 #define MME_SHADOW_1_ASSOCIATED_DIMS_CIN_1_MASK 0x1C00000 853 #define MME_SHADOW_1_ASSOCIATED_DIMS_COUT_1_SHIFT 25 854 #define MME_SHADOW_1_ASSOCIATED_DIMS_COUT_1_MASK 0xE000000 855 856 /* MME_SHADOW_1_COUT_SCALE */ 857 #define MME_SHADOW_1_COUT_SCALE_V_SHIFT 0 858 #define MME_SHADOW_1_COUT_SCALE_V_MASK 0xFFFFFFFF 859 860 /* MME_SHADOW_1_CIN_SCALE */ 861 #define MME_SHADOW_1_CIN_SCALE_V_SHIFT 0 862 #define MME_SHADOW_1_CIN_SCALE_V_MASK 0xFFFFFFFF 863 864 /* MME_SHADOW_1_GEMMLOWP_ZP */ 865 #define MME_SHADOW_1_GEMMLOWP_ZP_ZP_CIN_SHIFT 0 866 #define MME_SHADOW_1_GEMMLOWP_ZP_ZP_CIN_MASK 0x1FF 867 #define MME_SHADOW_1_GEMMLOWP_ZP_ZP_COUT_SHIFT 9 868 #define MME_SHADOW_1_GEMMLOWP_ZP_ZP_COUT_MASK 0x3FE00 869 #define MME_SHADOW_1_GEMMLOWP_ZP_ZP_B_SHIFT 18 870 #define MME_SHADOW_1_GEMMLOWP_ZP_ZP_B_MASK 0x7FC0000 871 #define MME_SHADOW_1_GEMMLOWP_ZP_GEMMLOWP_EU_EN_SHIFT 27 872 #define MME_SHADOW_1_GEMMLOWP_ZP_GEMMLOWP_EU_EN_MASK 0x8000000 873 #define MME_SHADOW_1_GEMMLOWP_ZP_ACCUM_SHIFT 28 874 #define MME_SHADOW_1_GEMMLOWP_ZP_ACCUM_MASK 0x10000000 875 #define MME_SHADOW_1_GEMMLOWP_ZP_ACCUM_BIAS_SHIFT 29 876 #define MME_SHADOW_1_GEMMLOWP_ZP_ACCUM_BIAS_MASK 0x20000000 877 #define MME_SHADOW_1_GEMMLOWP_ZP_RELU_EN_SHIFT 30 878 #define MME_SHADOW_1_GEMMLOWP_ZP_RELU_EN_MASK 0x40000000 879 880 /* MME_SHADOW_1_GEMMLOWP_EXPONENT */ 881 #define MME_SHADOW_1_GEMMLOWP_EXPONENT_EXPONENT_CIN_SHIFT 0 882 #define MME_SHADOW_1_GEMMLOWP_EXPONENT_EXPONENT_CIN_MASK 0x3F 883 #define MME_SHADOW_1_GEMMLOWP_EXPONENT_EXPONENT_COUT_SHIFT 8 884 #define MME_SHADOW_1_GEMMLOWP_EXPONENT_EXPONENT_COUT_MASK 0x3F00 885 #define MME_SHADOW_1_GEMMLOWP_EXPONENT_MUL_CIN_EN_SHIFT 16 886 #define MME_SHADOW_1_GEMMLOWP_EXPONENT_MUL_CIN_EN_MASK 0x10000 887 #define MME_SHADOW_1_GEMMLOWP_EXPONENT_MUL_COUT_EN_SHIFT 17 888 #define MME_SHADOW_1_GEMMLOWP_EXPONENT_MUL_COUT_EN_MASK 0x20000 889 890 /* MME_SHADOW_1_A_ROI_BASE_OFFSET */ 891 #define MME_SHADOW_1_A_ROI_BASE_OFFSET_V_SHIFT 0 892 #define MME_SHADOW_1_A_ROI_BASE_OFFSET_V_MASK 0xFFFFFFFF 893 894 /* MME_SHADOW_1_A_VALID_ELEMENTS */ 895 #define MME_SHADOW_1_A_VALID_ELEMENTS_V_SHIFT 0 896 #define MME_SHADOW_1_A_VALID_ELEMENTS_V_MASK 0xFFFFFFFF 897 898 /* MME_SHADOW_1_A_LOOP_STRIDE */ 899 #define MME_SHADOW_1_A_LOOP_STRIDE_V_SHIFT 0 900 #define MME_SHADOW_1_A_LOOP_STRIDE_V_MASK 0xFFFFFFFF 901 902 /* MME_SHADOW_1_A_ROI_SIZE */ 903 #define MME_SHADOW_1_A_ROI_SIZE_V_SHIFT 0 904 #define MME_SHADOW_1_A_ROI_SIZE_V_MASK 0xFFFFFFFF 905 906 /* MME_SHADOW_1_A_SPATIAL_START_OFFSET */ 907 #define MME_SHADOW_1_A_SPATIAL_START_OFFSET_V_SHIFT 0 908 #define MME_SHADOW_1_A_SPATIAL_START_OFFSET_V_MASK 0xFFFFFFFF 909 910 /* MME_SHADOW_1_A_SPATIAL_STRIDE */ 911 #define MME_SHADOW_1_A_SPATIAL_STRIDE_V_SHIFT 0 912 #define MME_SHADOW_1_A_SPATIAL_STRIDE_V_MASK 0xFFFFFFFF 913 914 /* MME_SHADOW_1_A_SPATIAL_SIZE_MINUS_1 */ 915 #define MME_SHADOW_1_A_SPATIAL_SIZE_MINUS_1_V_SHIFT 0 916 #define MME_SHADOW_1_A_SPATIAL_SIZE_MINUS_1_V_MASK 0xFFFFFFFF 917 918 /* MME_SHADOW_1_B_ROI_BASE_OFFSET */ 919 #define MME_SHADOW_1_B_ROI_BASE_OFFSET_V_SHIFT 0 920 #define MME_SHADOW_1_B_ROI_BASE_OFFSET_V_MASK 0xFFFFFFFF 921 922 /* MME_SHADOW_1_B_VALID_ELEMENTS */ 923 #define MME_SHADOW_1_B_VALID_ELEMENTS_V_SHIFT 0 924 #define MME_SHADOW_1_B_VALID_ELEMENTS_V_MASK 0xFFFFFFFF 925 926 /* MME_SHADOW_1_B_LOOP_STRIDE */ 927 #define MME_SHADOW_1_B_LOOP_STRIDE_V_SHIFT 0 928 #define MME_SHADOW_1_B_LOOP_STRIDE_V_MASK 0xFFFFFFFF 929 930 /* MME_SHADOW_1_B_ROI_SIZE */ 931 #define MME_SHADOW_1_B_ROI_SIZE_V_SHIFT 0 932 #define MME_SHADOW_1_B_ROI_SIZE_V_MASK 0xFFFFFFFF 933 934 /* MME_SHADOW_1_B_SPATIAL_START_OFFSET */ 935 #define MME_SHADOW_1_B_SPATIAL_START_OFFSET_V_SHIFT 0 936 #define MME_SHADOW_1_B_SPATIAL_START_OFFSET_V_MASK 0xFFFFFFFF 937 938 /* MME_SHADOW_1_B_SPATIAL_STRIDE */ 939 #define MME_SHADOW_1_B_SPATIAL_STRIDE_V_SHIFT 0 940 #define MME_SHADOW_1_B_SPATIAL_STRIDE_V_MASK 0xFFFFFFFF 941 942 /* MME_SHADOW_1_B_SPATIAL_SIZE_MINUS_1 */ 943 #define MME_SHADOW_1_B_SPATIAL_SIZE_MINUS_1_V_SHIFT 0 944 #define MME_SHADOW_1_B_SPATIAL_SIZE_MINUS_1_V_MASK 0xFFFFFFFF 945 946 /* MME_SHADOW_1_C_ROI_BASE_OFFSET */ 947 #define MME_SHADOW_1_C_ROI_BASE_OFFSET_V_SHIFT 0 948 #define MME_SHADOW_1_C_ROI_BASE_OFFSET_V_MASK 0xFFFFFFFF 949 950 /* MME_SHADOW_1_C_VALID_ELEMENTS */ 951 #define MME_SHADOW_1_C_VALID_ELEMENTS_V_SHIFT 0 952 #define MME_SHADOW_1_C_VALID_ELEMENTS_V_MASK 0xFFFFFFFF 953 954 /* MME_SHADOW_1_C_LOOP_STRIDE */ 955 #define MME_SHADOW_1_C_LOOP_STRIDE_V_SHIFT 0 956 #define MME_SHADOW_1_C_LOOP_STRIDE_V_MASK 0xFFFFFFFF 957 958 /* MME_SHADOW_1_C_ROI_SIZE */ 959 #define MME_SHADOW_1_C_ROI_SIZE_V_SHIFT 0 960 #define MME_SHADOW_1_C_ROI_SIZE_V_MASK 0xFFFFFFFF 961 962 /* MME_SHADOW_1_C_SPATIAL_START_OFFSET */ 963 #define MME_SHADOW_1_C_SPATIAL_START_OFFSET_V_SHIFT 0 964 #define MME_SHADOW_1_C_SPATIAL_START_OFFSET_V_MASK 0xFFFFFFFF 965 966 /* MME_SHADOW_1_C_SPATIAL_STRIDE */ 967 #define MME_SHADOW_1_C_SPATIAL_STRIDE_V_SHIFT 0 968 #define MME_SHADOW_1_C_SPATIAL_STRIDE_V_MASK 0xFFFFFFFF 969 970 /* MME_SHADOW_1_C_SPATIAL_SIZE_MINUS_1 */ 971 #define MME_SHADOW_1_C_SPATIAL_SIZE_MINUS_1_V_SHIFT 0 972 #define MME_SHADOW_1_C_SPATIAL_SIZE_MINUS_1_V_MASK 0xFFFFFFFF 973 974 /* MME_SHADOW_1_SYNC_OBJECT_MESSAGE */ 975 #define MME_SHADOW_1_SYNC_OBJECT_MESSAGE_SO_WRITE_VALUE_SHIFT 0 976 #define MME_SHADOW_1_SYNC_OBJECT_MESSAGE_SO_WRITE_VALUE_MASK 0xFFFF 977 #define MME_SHADOW_1_SYNC_OBJECT_MESSAGE_SO_ADDRESS_OFFSET_SHIFT 16 978 #define MME_SHADOW_1_SYNC_OBJECT_MESSAGE_SO_ADDRESS_OFFSET_MASK 0x7FFF0000 979 #define MME_SHADOW_1_SYNC_OBJECT_MESSAGE_SO_OPERATION_SHIFT 31 980 #define MME_SHADOW_1_SYNC_OBJECT_MESSAGE_SO_OPERATION_MASK 0x80000000 981 982 /* MME_SHADOW_1_E_PADDING_VALUE_A */ 983 #define MME_SHADOW_1_E_PADDING_VALUE_A_V_SHIFT 0 984 #define MME_SHADOW_1_E_PADDING_VALUE_A_V_MASK 0xFFFF 985 986 /* MME_SHADOW_1_E_NUM_ITERATION_MINUS_1 */ 987 #define MME_SHADOW_1_E_NUM_ITERATION_MINUS_1_V_SHIFT 0 988 #define MME_SHADOW_1_E_NUM_ITERATION_MINUS_1_V_MASK 0xFFFFFFFF 989 990 /* MME_SHADOW_1_E_BUBBLES_PER_SPLIT */ 991 #define MME_SHADOW_1_E_BUBBLES_PER_SPLIT_A_SHIFT 0 992 #define MME_SHADOW_1_E_BUBBLES_PER_SPLIT_A_MASK 0xFF 993 #define MME_SHADOW_1_E_BUBBLES_PER_SPLIT_B_SHIFT 8 994 #define MME_SHADOW_1_E_BUBBLES_PER_SPLIT_B_MASK 0xFF00 995 #define MME_SHADOW_1_E_BUBBLES_PER_SPLIT_CIN_SHIFT 16 996 #define MME_SHADOW_1_E_BUBBLES_PER_SPLIT_CIN_MASK 0xFF0000 997 #define MME_SHADOW_1_E_BUBBLES_PER_SPLIT_ID_SHIFT 24 998 #define MME_SHADOW_1_E_BUBBLES_PER_SPLIT_ID_MASK 0xFF000000 999 1000 /* MME_SHADOW_2_STATUS */ 1001 #define MME_SHADOW_2_STATUS_A_SHIFT 0 1002 #define MME_SHADOW_2_STATUS_A_MASK 0x1 1003 #define MME_SHADOW_2_STATUS_B_SHIFT 1 1004 #define MME_SHADOW_2_STATUS_B_MASK 0x2 1005 #define MME_SHADOW_2_STATUS_CIN_SHIFT 2 1006 #define MME_SHADOW_2_STATUS_CIN_MASK 0x4 1007 #define MME_SHADOW_2_STATUS_COUT_SHIFT 3 1008 #define MME_SHADOW_2_STATUS_COUT_MASK 0x8 1009 #define MME_SHADOW_2_STATUS_TE_SHIFT 4 1010 #define MME_SHADOW_2_STATUS_TE_MASK 0x10 1011 #define MME_SHADOW_2_STATUS_LD_SHIFT 5 1012 #define MME_SHADOW_2_STATUS_LD_MASK 0x20 1013 #define MME_SHADOW_2_STATUS_ST_SHIFT 6 1014 #define MME_SHADOW_2_STATUS_ST_MASK 0x40 1015 1016 /* MME_SHADOW_2_A_BASE_ADDR_HIGH */ 1017 #define MME_SHADOW_2_A_BASE_ADDR_HIGH_V_SHIFT 0 1018 #define MME_SHADOW_2_A_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 1019 1020 /* MME_SHADOW_2_B_BASE_ADDR_HIGH */ 1021 #define MME_SHADOW_2_B_BASE_ADDR_HIGH_V_SHIFT 0 1022 #define MME_SHADOW_2_B_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 1023 1024 /* MME_SHADOW_2_CIN_BASE_ADDR_HIGH */ 1025 #define MME_SHADOW_2_CIN_BASE_ADDR_HIGH_V_SHIFT 0 1026 #define MME_SHADOW_2_CIN_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 1027 1028 /* MME_SHADOW_2_COUT_BASE_ADDR_HIGH */ 1029 #define MME_SHADOW_2_COUT_BASE_ADDR_HIGH_V_SHIFT 0 1030 #define MME_SHADOW_2_COUT_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 1031 1032 /* MME_SHADOW_2_BIAS_BASE_ADDR_HIGH */ 1033 #define MME_SHADOW_2_BIAS_BASE_ADDR_HIGH_V_SHIFT 0 1034 #define MME_SHADOW_2_BIAS_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 1035 1036 /* MME_SHADOW_2_A_BASE_ADDR_LOW */ 1037 #define MME_SHADOW_2_A_BASE_ADDR_LOW_V_SHIFT 0 1038 #define MME_SHADOW_2_A_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 1039 1040 /* MME_SHADOW_2_B_BASE_ADDR_LOW */ 1041 #define MME_SHADOW_2_B_BASE_ADDR_LOW_V_SHIFT 0 1042 #define MME_SHADOW_2_B_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 1043 1044 /* MME_SHADOW_2_CIN_BASE_ADDR_LOW */ 1045 #define MME_SHADOW_2_CIN_BASE_ADDR_LOW_V_SHIFT 0 1046 #define MME_SHADOW_2_CIN_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 1047 1048 /* MME_SHADOW_2_COUT_BASE_ADDR_LOW */ 1049 #define MME_SHADOW_2_COUT_BASE_ADDR_LOW_V_SHIFT 0 1050 #define MME_SHADOW_2_COUT_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 1051 1052 /* MME_SHADOW_2_BIAS_BASE_ADDR_LOW */ 1053 #define MME_SHADOW_2_BIAS_BASE_ADDR_LOW_V_SHIFT 0 1054 #define MME_SHADOW_2_BIAS_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 1055 1056 /* MME_SHADOW_2_HEADER */ 1057 #define MME_SHADOW_2_HEADER_SIGNAL_MASK_SHIFT 0 1058 #define MME_SHADOW_2_HEADER_SIGNAL_MASK_MASK 0x1F 1059 #define MME_SHADOW_2_HEADER_SIGNAL_EN_SHIFT 5 1060 #define MME_SHADOW_2_HEADER_SIGNAL_EN_MASK 0x20 1061 #define MME_SHADOW_2_HEADER_TRANS_A_SHIFT 6 1062 #define MME_SHADOW_2_HEADER_TRANS_A_MASK 0x40 1063 #define MME_SHADOW_2_HEADER_LOWER_A_SHIFT 7 1064 #define MME_SHADOW_2_HEADER_LOWER_A_MASK 0x80 1065 #define MME_SHADOW_2_HEADER_ACCUM_MASK_SHIFT 8 1066 #define MME_SHADOW_2_HEADER_ACCUM_MASK_MASK 0xF00 1067 #define MME_SHADOW_2_HEADER_LOAD_BIAS_SHIFT 12 1068 #define MME_SHADOW_2_HEADER_LOAD_BIAS_MASK 0x1000 1069 #define MME_SHADOW_2_HEADER_LOAD_CIN_SHIFT 13 1070 #define MME_SHADOW_2_HEADER_LOAD_CIN_MASK 0x2000 1071 #define MME_SHADOW_2_HEADER_STORE_OUT_SHIFT 15 1072 #define MME_SHADOW_2_HEADER_STORE_OUT_MASK 0x8000 1073 #define MME_SHADOW_2_HEADER_ACC_LD_INC_DISABLE_SHIFT 16 1074 #define MME_SHADOW_2_HEADER_ACC_LD_INC_DISABLE_MASK 0x10000 1075 #define MME_SHADOW_2_HEADER_ADVANCE_A_SHIFT 17 1076 #define MME_SHADOW_2_HEADER_ADVANCE_A_MASK 0x20000 1077 #define MME_SHADOW_2_HEADER_ADVANCE_B_SHIFT 18 1078 #define MME_SHADOW_2_HEADER_ADVANCE_B_MASK 0x40000 1079 #define MME_SHADOW_2_HEADER_ADVANCE_CIN_SHIFT 19 1080 #define MME_SHADOW_2_HEADER_ADVANCE_CIN_MASK 0x80000 1081 #define MME_SHADOW_2_HEADER_ADVANCE_COUT_SHIFT 20 1082 #define MME_SHADOW_2_HEADER_ADVANCE_COUT_MASK 0x100000 1083 #define MME_SHADOW_2_HEADER_COMPRESSED_B_SHIFT 21 1084 #define MME_SHADOW_2_HEADER_COMPRESSED_B_MASK 0x200000 1085 #define MME_SHADOW_2_HEADER_MASK_CONV_END_SHIFT 22 1086 #define MME_SHADOW_2_HEADER_MASK_CONV_END_MASK 0x400000 1087 #define MME_SHADOW_2_HEADER_ACC_ST_INC_DISABLE_SHIFT 23 1088 #define MME_SHADOW_2_HEADER_ACC_ST_INC_DISABLE_MASK 0x800000 1089 #define MME_SHADOW_2_HEADER_AB_DATA_TYPE_SHIFT 24 1090 #define MME_SHADOW_2_HEADER_AB_DATA_TYPE_MASK 0x3000000 1091 #define MME_SHADOW_2_HEADER_CIN_DATA_TYPE_SHIFT 26 1092 #define MME_SHADOW_2_HEADER_CIN_DATA_TYPE_MASK 0x1C000000 1093 #define MME_SHADOW_2_HEADER_COUT_DATA_TYPE_SHIFT 29 1094 #define MME_SHADOW_2_HEADER_COUT_DATA_TYPE_MASK 0xE0000000 1095 1096 /* MME_SHADOW_2_KERNEL_SIZE_MINUS_1 */ 1097 #define MME_SHADOW_2_KERNEL_SIZE_MINUS_1_DIM_0_SHIFT 0 1098 #define MME_SHADOW_2_KERNEL_SIZE_MINUS_1_DIM_0_MASK 0xFF 1099 #define MME_SHADOW_2_KERNEL_SIZE_MINUS_1_DIM_1_SHIFT 8 1100 #define MME_SHADOW_2_KERNEL_SIZE_MINUS_1_DIM_1_MASK 0xFF00 1101 #define MME_SHADOW_2_KERNEL_SIZE_MINUS_1_DIM_2_SHIFT 16 1102 #define MME_SHADOW_2_KERNEL_SIZE_MINUS_1_DIM_2_MASK 0xFF0000 1103 #define MME_SHADOW_2_KERNEL_SIZE_MINUS_1_DIM_3_SHIFT 24 1104 #define MME_SHADOW_2_KERNEL_SIZE_MINUS_1_DIM_3_MASK 0xFF000000 1105 1106 /* MME_SHADOW_2_ASSOCIATED_DIMS */ 1107 #define MME_SHADOW_2_ASSOCIATED_DIMS_A_0_SHIFT 0 1108 #define MME_SHADOW_2_ASSOCIATED_DIMS_A_0_MASK 0x7 1109 #define MME_SHADOW_2_ASSOCIATED_DIMS_B_0_SHIFT 3 1110 #define MME_SHADOW_2_ASSOCIATED_DIMS_B_0_MASK 0x38 1111 #define MME_SHADOW_2_ASSOCIATED_DIMS_CIN_0_SHIFT 6 1112 #define MME_SHADOW_2_ASSOCIATED_DIMS_CIN_0_MASK 0x1C0 1113 #define MME_SHADOW_2_ASSOCIATED_DIMS_COUT_0_SHIFT 9 1114 #define MME_SHADOW_2_ASSOCIATED_DIMS_COUT_0_MASK 0xE00 1115 #define MME_SHADOW_2_ASSOCIATED_DIMS_A_1_SHIFT 16 1116 #define MME_SHADOW_2_ASSOCIATED_DIMS_A_1_MASK 0x70000 1117 #define MME_SHADOW_2_ASSOCIATED_DIMS_B_1_SHIFT 19 1118 #define MME_SHADOW_2_ASSOCIATED_DIMS_B_1_MASK 0x380000 1119 #define MME_SHADOW_2_ASSOCIATED_DIMS_CIN_1_SHIFT 22 1120 #define MME_SHADOW_2_ASSOCIATED_DIMS_CIN_1_MASK 0x1C00000 1121 #define MME_SHADOW_2_ASSOCIATED_DIMS_COUT_1_SHIFT 25 1122 #define MME_SHADOW_2_ASSOCIATED_DIMS_COUT_1_MASK 0xE000000 1123 1124 /* MME_SHADOW_2_COUT_SCALE */ 1125 #define MME_SHADOW_2_COUT_SCALE_V_SHIFT 0 1126 #define MME_SHADOW_2_COUT_SCALE_V_MASK 0xFFFFFFFF 1127 1128 /* MME_SHADOW_2_CIN_SCALE */ 1129 #define MME_SHADOW_2_CIN_SCALE_V_SHIFT 0 1130 #define MME_SHADOW_2_CIN_SCALE_V_MASK 0xFFFFFFFF 1131 1132 /* MME_SHADOW_2_GEMMLOWP_ZP */ 1133 #define MME_SHADOW_2_GEMMLOWP_ZP_ZP_CIN_SHIFT 0 1134 #define MME_SHADOW_2_GEMMLOWP_ZP_ZP_CIN_MASK 0x1FF 1135 #define MME_SHADOW_2_GEMMLOWP_ZP_ZP_COUT_SHIFT 9 1136 #define MME_SHADOW_2_GEMMLOWP_ZP_ZP_COUT_MASK 0x3FE00 1137 #define MME_SHADOW_2_GEMMLOWP_ZP_ZP_B_SHIFT 18 1138 #define MME_SHADOW_2_GEMMLOWP_ZP_ZP_B_MASK 0x7FC0000 1139 #define MME_SHADOW_2_GEMMLOWP_ZP_GEMMLOWP_EU_EN_SHIFT 27 1140 #define MME_SHADOW_2_GEMMLOWP_ZP_GEMMLOWP_EU_EN_MASK 0x8000000 1141 #define MME_SHADOW_2_GEMMLOWP_ZP_ACCUM_SHIFT 28 1142 #define MME_SHADOW_2_GEMMLOWP_ZP_ACCUM_MASK 0x10000000 1143 #define MME_SHADOW_2_GEMMLOWP_ZP_ACCUM_BIAS_SHIFT 29 1144 #define MME_SHADOW_2_GEMMLOWP_ZP_ACCUM_BIAS_MASK 0x20000000 1145 #define MME_SHADOW_2_GEMMLOWP_ZP_RELU_EN_SHIFT 30 1146 #define MME_SHADOW_2_GEMMLOWP_ZP_RELU_EN_MASK 0x40000000 1147 1148 /* MME_SHADOW_2_GEMMLOWP_EXPONENT */ 1149 #define MME_SHADOW_2_GEMMLOWP_EXPONENT_EXPONENT_CIN_SHIFT 0 1150 #define MME_SHADOW_2_GEMMLOWP_EXPONENT_EXPONENT_CIN_MASK 0x3F 1151 #define MME_SHADOW_2_GEMMLOWP_EXPONENT_EXPONENT_COUT_SHIFT 8 1152 #define MME_SHADOW_2_GEMMLOWP_EXPONENT_EXPONENT_COUT_MASK 0x3F00 1153 #define MME_SHADOW_2_GEMMLOWP_EXPONENT_MUL_CIN_EN_SHIFT 16 1154 #define MME_SHADOW_2_GEMMLOWP_EXPONENT_MUL_CIN_EN_MASK 0x10000 1155 #define MME_SHADOW_2_GEMMLOWP_EXPONENT_MUL_COUT_EN_SHIFT 17 1156 #define MME_SHADOW_2_GEMMLOWP_EXPONENT_MUL_COUT_EN_MASK 0x20000 1157 1158 /* MME_SHADOW_2_A_ROI_BASE_OFFSET */ 1159 #define MME_SHADOW_2_A_ROI_BASE_OFFSET_V_SHIFT 0 1160 #define MME_SHADOW_2_A_ROI_BASE_OFFSET_V_MASK 0xFFFFFFFF 1161 1162 /* MME_SHADOW_2_A_VALID_ELEMENTS */ 1163 #define MME_SHADOW_2_A_VALID_ELEMENTS_V_SHIFT 0 1164 #define MME_SHADOW_2_A_VALID_ELEMENTS_V_MASK 0xFFFFFFFF 1165 1166 /* MME_SHADOW_2_A_LOOP_STRIDE */ 1167 #define MME_SHADOW_2_A_LOOP_STRIDE_V_SHIFT 0 1168 #define MME_SHADOW_2_A_LOOP_STRIDE_V_MASK 0xFFFFFFFF 1169 1170 /* MME_SHADOW_2_A_ROI_SIZE */ 1171 #define MME_SHADOW_2_A_ROI_SIZE_V_SHIFT 0 1172 #define MME_SHADOW_2_A_ROI_SIZE_V_MASK 0xFFFFFFFF 1173 1174 /* MME_SHADOW_2_A_SPATIAL_START_OFFSET */ 1175 #define MME_SHADOW_2_A_SPATIAL_START_OFFSET_V_SHIFT 0 1176 #define MME_SHADOW_2_A_SPATIAL_START_OFFSET_V_MASK 0xFFFFFFFF 1177 1178 /* MME_SHADOW_2_A_SPATIAL_STRIDE */ 1179 #define MME_SHADOW_2_A_SPATIAL_STRIDE_V_SHIFT 0 1180 #define MME_SHADOW_2_A_SPATIAL_STRIDE_V_MASK 0xFFFFFFFF 1181 1182 /* MME_SHADOW_2_A_SPATIAL_SIZE_MINUS_1 */ 1183 #define MME_SHADOW_2_A_SPATIAL_SIZE_MINUS_1_V_SHIFT 0 1184 #define MME_SHADOW_2_A_SPATIAL_SIZE_MINUS_1_V_MASK 0xFFFFFFFF 1185 1186 /* MME_SHADOW_2_B_ROI_BASE_OFFSET */ 1187 #define MME_SHADOW_2_B_ROI_BASE_OFFSET_V_SHIFT 0 1188 #define MME_SHADOW_2_B_ROI_BASE_OFFSET_V_MASK 0xFFFFFFFF 1189 1190 /* MME_SHADOW_2_B_VALID_ELEMENTS */ 1191 #define MME_SHADOW_2_B_VALID_ELEMENTS_V_SHIFT 0 1192 #define MME_SHADOW_2_B_VALID_ELEMENTS_V_MASK 0xFFFFFFFF 1193 1194 /* MME_SHADOW_2_B_LOOP_STRIDE */ 1195 #define MME_SHADOW_2_B_LOOP_STRIDE_V_SHIFT 0 1196 #define MME_SHADOW_2_B_LOOP_STRIDE_V_MASK 0xFFFFFFFF 1197 1198 /* MME_SHADOW_2_B_ROI_SIZE */ 1199 #define MME_SHADOW_2_B_ROI_SIZE_V_SHIFT 0 1200 #define MME_SHADOW_2_B_ROI_SIZE_V_MASK 0xFFFFFFFF 1201 1202 /* MME_SHADOW_2_B_SPATIAL_START_OFFSET */ 1203 #define MME_SHADOW_2_B_SPATIAL_START_OFFSET_V_SHIFT 0 1204 #define MME_SHADOW_2_B_SPATIAL_START_OFFSET_V_MASK 0xFFFFFFFF 1205 1206 /* MME_SHADOW_2_B_SPATIAL_STRIDE */ 1207 #define MME_SHADOW_2_B_SPATIAL_STRIDE_V_SHIFT 0 1208 #define MME_SHADOW_2_B_SPATIAL_STRIDE_V_MASK 0xFFFFFFFF 1209 1210 /* MME_SHADOW_2_B_SPATIAL_SIZE_MINUS_1 */ 1211 #define MME_SHADOW_2_B_SPATIAL_SIZE_MINUS_1_V_SHIFT 0 1212 #define MME_SHADOW_2_B_SPATIAL_SIZE_MINUS_1_V_MASK 0xFFFFFFFF 1213 1214 /* MME_SHADOW_2_C_ROI_BASE_OFFSET */ 1215 #define MME_SHADOW_2_C_ROI_BASE_OFFSET_V_SHIFT 0 1216 #define MME_SHADOW_2_C_ROI_BASE_OFFSET_V_MASK 0xFFFFFFFF 1217 1218 /* MME_SHADOW_2_C_VALID_ELEMENTS */ 1219 #define MME_SHADOW_2_C_VALID_ELEMENTS_V_SHIFT 0 1220 #define MME_SHADOW_2_C_VALID_ELEMENTS_V_MASK 0xFFFFFFFF 1221 1222 /* MME_SHADOW_2_C_LOOP_STRIDE */ 1223 #define MME_SHADOW_2_C_LOOP_STRIDE_V_SHIFT 0 1224 #define MME_SHADOW_2_C_LOOP_STRIDE_V_MASK 0xFFFFFFFF 1225 1226 /* MME_SHADOW_2_C_ROI_SIZE */ 1227 #define MME_SHADOW_2_C_ROI_SIZE_V_SHIFT 0 1228 #define MME_SHADOW_2_C_ROI_SIZE_V_MASK 0xFFFFFFFF 1229 1230 /* MME_SHADOW_2_C_SPATIAL_START_OFFSET */ 1231 #define MME_SHADOW_2_C_SPATIAL_START_OFFSET_V_SHIFT 0 1232 #define MME_SHADOW_2_C_SPATIAL_START_OFFSET_V_MASK 0xFFFFFFFF 1233 1234 /* MME_SHADOW_2_C_SPATIAL_STRIDE */ 1235 #define MME_SHADOW_2_C_SPATIAL_STRIDE_V_SHIFT 0 1236 #define MME_SHADOW_2_C_SPATIAL_STRIDE_V_MASK 0xFFFFFFFF 1237 1238 /* MME_SHADOW_2_C_SPATIAL_SIZE_MINUS_1 */ 1239 #define MME_SHADOW_2_C_SPATIAL_SIZE_MINUS_1_V_SHIFT 0 1240 #define MME_SHADOW_2_C_SPATIAL_SIZE_MINUS_1_V_MASK 0xFFFFFFFF 1241 1242 /* MME_SHADOW_2_SYNC_OBJECT_MESSAGE */ 1243 #define MME_SHADOW_2_SYNC_OBJECT_MESSAGE_SO_WRITE_VALUE_SHIFT 0 1244 #define MME_SHADOW_2_SYNC_OBJECT_MESSAGE_SO_WRITE_VALUE_MASK 0xFFFF 1245 #define MME_SHADOW_2_SYNC_OBJECT_MESSAGE_SO_ADDRESS_OFFSET_SHIFT 16 1246 #define MME_SHADOW_2_SYNC_OBJECT_MESSAGE_SO_ADDRESS_OFFSET_MASK 0x7FFF0000 1247 #define MME_SHADOW_2_SYNC_OBJECT_MESSAGE_SO_OPERATION_SHIFT 31 1248 #define MME_SHADOW_2_SYNC_OBJECT_MESSAGE_SO_OPERATION_MASK 0x80000000 1249 1250 /* MME_SHADOW_2_E_PADDING_VALUE_A */ 1251 #define MME_SHADOW_2_E_PADDING_VALUE_A_V_SHIFT 0 1252 #define MME_SHADOW_2_E_PADDING_VALUE_A_V_MASK 0xFFFF 1253 1254 /* MME_SHADOW_2_E_NUM_ITERATION_MINUS_1 */ 1255 #define MME_SHADOW_2_E_NUM_ITERATION_MINUS_1_V_SHIFT 0 1256 #define MME_SHADOW_2_E_NUM_ITERATION_MINUS_1_V_MASK 0xFFFFFFFF 1257 1258 /* MME_SHADOW_2_E_BUBBLES_PER_SPLIT */ 1259 #define MME_SHADOW_2_E_BUBBLES_PER_SPLIT_A_SHIFT 0 1260 #define MME_SHADOW_2_E_BUBBLES_PER_SPLIT_A_MASK 0xFF 1261 #define MME_SHADOW_2_E_BUBBLES_PER_SPLIT_B_SHIFT 8 1262 #define MME_SHADOW_2_E_BUBBLES_PER_SPLIT_B_MASK 0xFF00 1263 #define MME_SHADOW_2_E_BUBBLES_PER_SPLIT_CIN_SHIFT 16 1264 #define MME_SHADOW_2_E_BUBBLES_PER_SPLIT_CIN_MASK 0xFF0000 1265 #define MME_SHADOW_2_E_BUBBLES_PER_SPLIT_ID_SHIFT 24 1266 #define MME_SHADOW_2_E_BUBBLES_PER_SPLIT_ID_MASK 0xFF000000 1267 1268 /* MME_SHADOW_3_STATUS */ 1269 #define MME_SHADOW_3_STATUS_A_SHIFT 0 1270 #define MME_SHADOW_3_STATUS_A_MASK 0x1 1271 #define MME_SHADOW_3_STATUS_B_SHIFT 1 1272 #define MME_SHADOW_3_STATUS_B_MASK 0x2 1273 #define MME_SHADOW_3_STATUS_CIN_SHIFT 2 1274 #define MME_SHADOW_3_STATUS_CIN_MASK 0x4 1275 #define MME_SHADOW_3_STATUS_COUT_SHIFT 3 1276 #define MME_SHADOW_3_STATUS_COUT_MASK 0x8 1277 #define MME_SHADOW_3_STATUS_TE_SHIFT 4 1278 #define MME_SHADOW_3_STATUS_TE_MASK 0x10 1279 #define MME_SHADOW_3_STATUS_LD_SHIFT 5 1280 #define MME_SHADOW_3_STATUS_LD_MASK 0x20 1281 #define MME_SHADOW_3_STATUS_ST_SHIFT 6 1282 #define MME_SHADOW_3_STATUS_ST_MASK 0x40 1283 1284 /* MME_SHADOW_3_A_BASE_ADDR_HIGH */ 1285 #define MME_SHADOW_3_A_BASE_ADDR_HIGH_V_SHIFT 0 1286 #define MME_SHADOW_3_A_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 1287 1288 /* MME_SHADOW_3_B_BASE_ADDR_HIGH */ 1289 #define MME_SHADOW_3_B_BASE_ADDR_HIGH_V_SHIFT 0 1290 #define MME_SHADOW_3_B_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 1291 1292 /* MME_SHADOW_3_CIN_BASE_ADDR_HIGH */ 1293 #define MME_SHADOW_3_CIN_BASE_ADDR_HIGH_V_SHIFT 0 1294 #define MME_SHADOW_3_CIN_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 1295 1296 /* MME_SHADOW_3_COUT_BASE_ADDR_HIGH */ 1297 #define MME_SHADOW_3_COUT_BASE_ADDR_HIGH_V_SHIFT 0 1298 #define MME_SHADOW_3_COUT_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 1299 1300 /* MME_SHADOW_3_BIAS_BASE_ADDR_HIGH */ 1301 #define MME_SHADOW_3_BIAS_BASE_ADDR_HIGH_V_SHIFT 0 1302 #define MME_SHADOW_3_BIAS_BASE_ADDR_HIGH_V_MASK 0xFFFFFFFF 1303 1304 /* MME_SHADOW_3_A_BASE_ADDR_LOW */ 1305 #define MME_SHADOW_3_A_BASE_ADDR_LOW_V_SHIFT 0 1306 #define MME_SHADOW_3_A_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 1307 1308 /* MME_SHADOW_3_B_BASE_ADDR_LOW */ 1309 #define MME_SHADOW_3_B_BASE_ADDR_LOW_V_SHIFT 0 1310 #define MME_SHADOW_3_B_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 1311 1312 /* MME_SHADOW_3_CIN_BASE_ADDR_LOW */ 1313 #define MME_SHADOW_3_CIN_BASE_ADDR_LOW_V_SHIFT 0 1314 #define MME_SHADOW_3_CIN_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 1315 1316 /* MME_SHADOW_3_COUT_BASE_ADDR_LOW */ 1317 #define MME_SHADOW_3_COUT_BASE_ADDR_LOW_V_SHIFT 0 1318 #define MME_SHADOW_3_COUT_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 1319 1320 /* MME_SHADOW_3_BIAS_BASE_ADDR_LOW */ 1321 #define MME_SHADOW_3_BIAS_BASE_ADDR_LOW_V_SHIFT 0 1322 #define MME_SHADOW_3_BIAS_BASE_ADDR_LOW_V_MASK 0xFFFFFFFF 1323 1324 /* MME_SHADOW_3_HEADER */ 1325 #define MME_SHADOW_3_HEADER_SIGNAL_MASK_SHIFT 0 1326 #define MME_SHADOW_3_HEADER_SIGNAL_MASK_MASK 0x1F 1327 #define MME_SHADOW_3_HEADER_SIGNAL_EN_SHIFT 5 1328 #define MME_SHADOW_3_HEADER_SIGNAL_EN_MASK 0x20 1329 #define MME_SHADOW_3_HEADER_TRANS_A_SHIFT 6 1330 #define MME_SHADOW_3_HEADER_TRANS_A_MASK 0x40 1331 #define MME_SHADOW_3_HEADER_LOWER_A_SHIFT 7 1332 #define MME_SHADOW_3_HEADER_LOWER_A_MASK 0x80 1333 #define MME_SHADOW_3_HEADER_ACCUM_MASK_SHIFT 8 1334 #define MME_SHADOW_3_HEADER_ACCUM_MASK_MASK 0xF00 1335 #define MME_SHADOW_3_HEADER_LOAD_BIAS_SHIFT 12 1336 #define MME_SHADOW_3_HEADER_LOAD_BIAS_MASK 0x1000 1337 #define MME_SHADOW_3_HEADER_LOAD_CIN_SHIFT 13 1338 #define MME_SHADOW_3_HEADER_LOAD_CIN_MASK 0x2000 1339 #define MME_SHADOW_3_HEADER_STORE_OUT_SHIFT 15 1340 #define MME_SHADOW_3_HEADER_STORE_OUT_MASK 0x8000 1341 #define MME_SHADOW_3_HEADER_ACC_LD_INC_DISABLE_SHIFT 16 1342 #define MME_SHADOW_3_HEADER_ACC_LD_INC_DISABLE_MASK 0x10000 1343 #define MME_SHADOW_3_HEADER_ADVANCE_A_SHIFT 17 1344 #define MME_SHADOW_3_HEADER_ADVANCE_A_MASK 0x20000 1345 #define MME_SHADOW_3_HEADER_ADVANCE_B_SHIFT 18 1346 #define MME_SHADOW_3_HEADER_ADVANCE_B_MASK 0x40000 1347 #define MME_SHADOW_3_HEADER_ADVANCE_CIN_SHIFT 19 1348 #define MME_SHADOW_3_HEADER_ADVANCE_CIN_MASK 0x80000 1349 #define MME_SHADOW_3_HEADER_ADVANCE_COUT_SHIFT 20 1350 #define MME_SHADOW_3_HEADER_ADVANCE_COUT_MASK 0x100000 1351 #define MME_SHADOW_3_HEADER_COMPRESSED_B_SHIFT 21 1352 #define MME_SHADOW_3_HEADER_COMPRESSED_B_MASK 0x200000 1353 #define MME_SHADOW_3_HEADER_MASK_CONV_END_SHIFT 22 1354 #define MME_SHADOW_3_HEADER_MASK_CONV_END_MASK 0x400000 1355 #define MME_SHADOW_3_HEADER_ACC_ST_INC_DISABLE_SHIFT 23 1356 #define MME_SHADOW_3_HEADER_ACC_ST_INC_DISABLE_MASK 0x800000 1357 #define MME_SHADOW_3_HEADER_AB_DATA_TYPE_SHIFT 24 1358 #define MME_SHADOW_3_HEADER_AB_DATA_TYPE_MASK 0x3000000 1359 #define MME_SHADOW_3_HEADER_CIN_DATA_TYPE_SHIFT 26 1360 #define MME_SHADOW_3_HEADER_CIN_DATA_TYPE_MASK 0x1C000000 1361 #define MME_SHADOW_3_HEADER_COUT_DATA_TYPE_SHIFT 29 1362 #define MME_SHADOW_3_HEADER_COUT_DATA_TYPE_MASK 0xE0000000 1363 1364 /* MME_SHADOW_3_KERNEL_SIZE_MINUS_1 */ 1365 #define MME_SHADOW_3_KERNEL_SIZE_MINUS_1_DIM_0_SHIFT 0 1366 #define MME_SHADOW_3_KERNEL_SIZE_MINUS_1_DIM_0_MASK 0xFF 1367 #define MME_SHADOW_3_KERNEL_SIZE_MINUS_1_DIM_1_SHIFT 8 1368 #define MME_SHADOW_3_KERNEL_SIZE_MINUS_1_DIM_1_MASK 0xFF00 1369 #define MME_SHADOW_3_KERNEL_SIZE_MINUS_1_DIM_2_SHIFT 16 1370 #define MME_SHADOW_3_KERNEL_SIZE_MINUS_1_DIM_2_MASK 0xFF0000 1371 #define MME_SHADOW_3_KERNEL_SIZE_MINUS_1_DIM_3_SHIFT 24 1372 #define MME_SHADOW_3_KERNEL_SIZE_MINUS_1_DIM_3_MASK 0xFF000000 1373 1374 /* MME_SHADOW_3_ASSOCIATED_DIMS */ 1375 #define MME_SHADOW_3_ASSOCIATED_DIMS_A_0_SHIFT 0 1376 #define MME_SHADOW_3_ASSOCIATED_DIMS_A_0_MASK 0x7 1377 #define MME_SHADOW_3_ASSOCIATED_DIMS_B_0_SHIFT 3 1378 #define MME_SHADOW_3_ASSOCIATED_DIMS_B_0_MASK 0x38 1379 #define MME_SHADOW_3_ASSOCIATED_DIMS_CIN_0_SHIFT 6 1380 #define MME_SHADOW_3_ASSOCIATED_DIMS_CIN_0_MASK 0x1C0 1381 #define MME_SHADOW_3_ASSOCIATED_DIMS_COUT_0_SHIFT 9 1382 #define MME_SHADOW_3_ASSOCIATED_DIMS_COUT_0_MASK 0xE00 1383 #define MME_SHADOW_3_ASSOCIATED_DIMS_A_1_SHIFT 16 1384 #define MME_SHADOW_3_ASSOCIATED_DIMS_A_1_MASK 0x70000 1385 #define MME_SHADOW_3_ASSOCIATED_DIMS_B_1_SHIFT 19 1386 #define MME_SHADOW_3_ASSOCIATED_DIMS_B_1_MASK 0x380000 1387 #define MME_SHADOW_3_ASSOCIATED_DIMS_CIN_1_SHIFT 22 1388 #define MME_SHADOW_3_ASSOCIATED_DIMS_CIN_1_MASK 0x1C00000 1389 #define MME_SHADOW_3_ASSOCIATED_DIMS_COUT_1_SHIFT 25 1390 #define MME_SHADOW_3_ASSOCIATED_DIMS_COUT_1_MASK 0xE000000 1391 1392 /* MME_SHADOW_3_COUT_SCALE */ 1393 #define MME_SHADOW_3_COUT_SCALE_V_SHIFT 0 1394 #define MME_SHADOW_3_COUT_SCALE_V_MASK 0xFFFFFFFF 1395 1396 /* MME_SHADOW_3_CIN_SCALE */ 1397 #define MME_SHADOW_3_CIN_SCALE_V_SHIFT 0 1398 #define MME_SHADOW_3_CIN_SCALE_V_MASK 0xFFFFFFFF 1399 1400 /* MME_SHADOW_3_GEMMLOWP_ZP */ 1401 #define MME_SHADOW_3_GEMMLOWP_ZP_ZP_CIN_SHIFT 0 1402 #define MME_SHADOW_3_GEMMLOWP_ZP_ZP_CIN_MASK 0x1FF 1403 #define MME_SHADOW_3_GEMMLOWP_ZP_ZP_COUT_SHIFT 9 1404 #define MME_SHADOW_3_GEMMLOWP_ZP_ZP_COUT_MASK 0x3FE00 1405 #define MME_SHADOW_3_GEMMLOWP_ZP_ZP_B_SHIFT 18 1406 #define MME_SHADOW_3_GEMMLOWP_ZP_ZP_B_MASK 0x7FC0000 1407 #define MME_SHADOW_3_GEMMLOWP_ZP_GEMMLOWP_EU_EN_SHIFT 27 1408 #define MME_SHADOW_3_GEMMLOWP_ZP_GEMMLOWP_EU_EN_MASK 0x8000000 1409 #define MME_SHADOW_3_GEMMLOWP_ZP_ACCUM_SHIFT 28 1410 #define MME_SHADOW_3_GEMMLOWP_ZP_ACCUM_MASK 0x10000000 1411 #define MME_SHADOW_3_GEMMLOWP_ZP_ACCUM_BIAS_SHIFT 29 1412 #define MME_SHADOW_3_GEMMLOWP_ZP_ACCUM_BIAS_MASK 0x20000000 1413 #define MME_SHADOW_3_GEMMLOWP_ZP_RELU_EN_SHIFT 30 1414 #define MME_SHADOW_3_GEMMLOWP_ZP_RELU_EN_MASK 0x40000000 1415 1416 /* MME_SHADOW_3_GEMMLOWP_EXPONENT */ 1417 #define MME_SHADOW_3_GEMMLOWP_EXPONENT_EXPONENT_CIN_SHIFT 0 1418 #define MME_SHADOW_3_GEMMLOWP_EXPONENT_EXPONENT_CIN_MASK 0x3F 1419 #define MME_SHADOW_3_GEMMLOWP_EXPONENT_EXPONENT_COUT_SHIFT 8 1420 #define MME_SHADOW_3_GEMMLOWP_EXPONENT_EXPONENT_COUT_MASK 0x3F00 1421 #define MME_SHADOW_3_GEMMLOWP_EXPONENT_MUL_CIN_EN_SHIFT 16 1422 #define MME_SHADOW_3_GEMMLOWP_EXPONENT_MUL_CIN_EN_MASK 0x10000 1423 #define MME_SHADOW_3_GEMMLOWP_EXPONENT_MUL_COUT_EN_SHIFT 17 1424 #define MME_SHADOW_3_GEMMLOWP_EXPONENT_MUL_COUT_EN_MASK 0x20000 1425 1426 /* MME_SHADOW_3_A_ROI_BASE_OFFSET */ 1427 #define MME_SHADOW_3_A_ROI_BASE_OFFSET_V_SHIFT 0 1428 #define MME_SHADOW_3_A_ROI_BASE_OFFSET_V_MASK 0xFFFFFFFF 1429 1430 /* MME_SHADOW_3_A_VALID_ELEMENTS */ 1431 #define MME_SHADOW_3_A_VALID_ELEMENTS_V_SHIFT 0 1432 #define MME_SHADOW_3_A_VALID_ELEMENTS_V_MASK 0xFFFFFFFF 1433 1434 /* MME_SHADOW_3_A_LOOP_STRIDE */ 1435 #define MME_SHADOW_3_A_LOOP_STRIDE_V_SHIFT 0 1436 #define MME_SHADOW_3_A_LOOP_STRIDE_V_MASK 0xFFFFFFFF 1437 1438 /* MME_SHADOW_3_A_ROI_SIZE */ 1439 #define MME_SHADOW_3_A_ROI_SIZE_V_SHIFT 0 1440 #define MME_SHADOW_3_A_ROI_SIZE_V_MASK 0xFFFFFFFF 1441 1442 /* MME_SHADOW_3_A_SPATIAL_START_OFFSET */ 1443 #define MME_SHADOW_3_A_SPATIAL_START_OFFSET_V_SHIFT 0 1444 #define MME_SHADOW_3_A_SPATIAL_START_OFFSET_V_MASK 0xFFFFFFFF 1445 1446 /* MME_SHADOW_3_A_SPATIAL_STRIDE */ 1447 #define MME_SHADOW_3_A_SPATIAL_STRIDE_V_SHIFT 0 1448 #define MME_SHADOW_3_A_SPATIAL_STRIDE_V_MASK 0xFFFFFFFF 1449 1450 /* MME_SHADOW_3_A_SPATIAL_SIZE_MINUS_1 */ 1451 #define MME_SHADOW_3_A_SPATIAL_SIZE_MINUS_1_V_SHIFT 0 1452 #define MME_SHADOW_3_A_SPATIAL_SIZE_MINUS_1_V_MASK 0xFFFFFFFF 1453 1454 /* MME_SHADOW_3_B_ROI_BASE_OFFSET */ 1455 #define MME_SHADOW_3_B_ROI_BASE_OFFSET_V_SHIFT 0 1456 #define MME_SHADOW_3_B_ROI_BASE_OFFSET_V_MASK 0xFFFFFFFF 1457 1458 /* MME_SHADOW_3_B_VALID_ELEMENTS */ 1459 #define MME_SHADOW_3_B_VALID_ELEMENTS_V_SHIFT 0 1460 #define MME_SHADOW_3_B_VALID_ELEMENTS_V_MASK 0xFFFFFFFF 1461 1462 /* MME_SHADOW_3_B_LOOP_STRIDE */ 1463 #define MME_SHADOW_3_B_LOOP_STRIDE_V_SHIFT 0 1464 #define MME_SHADOW_3_B_LOOP_STRIDE_V_MASK 0xFFFFFFFF 1465 1466 /* MME_SHADOW_3_B_ROI_SIZE */ 1467 #define MME_SHADOW_3_B_ROI_SIZE_V_SHIFT 0 1468 #define MME_SHADOW_3_B_ROI_SIZE_V_MASK 0xFFFFFFFF 1469 1470 /* MME_SHADOW_3_B_SPATIAL_START_OFFSET */ 1471 #define MME_SHADOW_3_B_SPATIAL_START_OFFSET_V_SHIFT 0 1472 #define MME_SHADOW_3_B_SPATIAL_START_OFFSET_V_MASK 0xFFFFFFFF 1473 1474 /* MME_SHADOW_3_B_SPATIAL_STRIDE */ 1475 #define MME_SHADOW_3_B_SPATIAL_STRIDE_V_SHIFT 0 1476 #define MME_SHADOW_3_B_SPATIAL_STRIDE_V_MASK 0xFFFFFFFF 1477 1478 /* MME_SHADOW_3_B_SPATIAL_SIZE_MINUS_1 */ 1479 #define MME_SHADOW_3_B_SPATIAL_SIZE_MINUS_1_V_SHIFT 0 1480 #define MME_SHADOW_3_B_SPATIAL_SIZE_MINUS_1_V_MASK 0xFFFFFFFF 1481 1482 /* MME_SHADOW_3_C_ROI_BASE_OFFSET */ 1483 #define MME_SHADOW_3_C_ROI_BASE_OFFSET_V_SHIFT 0 1484 #define MME_SHADOW_3_C_ROI_BASE_OFFSET_V_MASK 0xFFFFFFFF 1485 1486 /* MME_SHADOW_3_C_VALID_ELEMENTS */ 1487 #define MME_SHADOW_3_C_VALID_ELEMENTS_V_SHIFT 0 1488 #define MME_SHADOW_3_C_VALID_ELEMENTS_V_MASK 0xFFFFFFFF 1489 1490 /* MME_SHADOW_3_C_LOOP_STRIDE */ 1491 #define MME_SHADOW_3_C_LOOP_STRIDE_V_SHIFT 0 1492 #define MME_SHADOW_3_C_LOOP_STRIDE_V_MASK 0xFFFFFFFF 1493 1494 /* MME_SHADOW_3_C_ROI_SIZE */ 1495 #define MME_SHADOW_3_C_ROI_SIZE_V_SHIFT 0 1496 #define MME_SHADOW_3_C_ROI_SIZE_V_MASK 0xFFFFFFFF 1497 1498 /* MME_SHADOW_3_C_SPATIAL_START_OFFSET */ 1499 #define MME_SHADOW_3_C_SPATIAL_START_OFFSET_V_SHIFT 0 1500 #define MME_SHADOW_3_C_SPATIAL_START_OFFSET_V_MASK 0xFFFFFFFF 1501 1502 /* MME_SHADOW_3_C_SPATIAL_STRIDE */ 1503 #define MME_SHADOW_3_C_SPATIAL_STRIDE_V_SHIFT 0 1504 #define MME_SHADOW_3_C_SPATIAL_STRIDE_V_MASK 0xFFFFFFFF 1505 1506 /* MME_SHADOW_3_C_SPATIAL_SIZE_MINUS_1 */ 1507 #define MME_SHADOW_3_C_SPATIAL_SIZE_MINUS_1_V_SHIFT 0 1508 #define MME_SHADOW_3_C_SPATIAL_SIZE_MINUS_1_V_MASK 0xFFFFFFFF 1509 1510 /* MME_SHADOW_3_SYNC_OBJECT_MESSAGE */ 1511 #define MME_SHADOW_3_SYNC_OBJECT_MESSAGE_SO_WRITE_VALUE_SHIFT 0 1512 #define MME_SHADOW_3_SYNC_OBJECT_MESSAGE_SO_WRITE_VALUE_MASK 0xFFFF 1513 #define MME_SHADOW_3_SYNC_OBJECT_MESSAGE_SO_ADDRESS_OFFSET_SHIFT 16 1514 #define MME_SHADOW_3_SYNC_OBJECT_MESSAGE_SO_ADDRESS_OFFSET_MASK 0x7FFF0000 1515 #define MME_SHADOW_3_SYNC_OBJECT_MESSAGE_SO_OPERATION_SHIFT 31 1516 #define MME_SHADOW_3_SYNC_OBJECT_MESSAGE_SO_OPERATION_MASK 0x80000000 1517 1518 /* MME_SHADOW_3_E_PADDING_VALUE_A */ 1519 #define MME_SHADOW_3_E_PADDING_VALUE_A_V_SHIFT 0 1520 #define MME_SHADOW_3_E_PADDING_VALUE_A_V_MASK 0xFFFF 1521 1522 /* MME_SHADOW_3_E_NUM_ITERATION_MINUS_1 */ 1523 #define MME_SHADOW_3_E_NUM_ITERATION_MINUS_1_V_SHIFT 0 1524 #define MME_SHADOW_3_E_NUM_ITERATION_MINUS_1_V_MASK 0xFFFFFFFF 1525 1526 /* MME_SHADOW_3_E_BUBBLES_PER_SPLIT */ 1527 #define MME_SHADOW_3_E_BUBBLES_PER_SPLIT_A_SHIFT 0 1528 #define MME_SHADOW_3_E_BUBBLES_PER_SPLIT_A_MASK 0xFF 1529 #define MME_SHADOW_3_E_BUBBLES_PER_SPLIT_B_SHIFT 8 1530 #define MME_SHADOW_3_E_BUBBLES_PER_SPLIT_B_MASK 0xFF00 1531 #define MME_SHADOW_3_E_BUBBLES_PER_SPLIT_CIN_SHIFT 16 1532 #define MME_SHADOW_3_E_BUBBLES_PER_SPLIT_CIN_MASK 0xFF0000 1533 #define MME_SHADOW_3_E_BUBBLES_PER_SPLIT_ID_SHIFT 24 1534 #define MME_SHADOW_3_E_BUBBLES_PER_SPLIT_ID_MASK 0xFF000000 1535 1536 #endif /* ASIC_REG_MME_MASKS_H_ */ 1537