1 2 /* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. 3 * 4 * Permission to use, copy, modify, and/or distribute this software for any 5 * purpose with or without fee is hereby granted, provided that the above 6 * copyright notice and this permission notice appear in all copies. 7 * 8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 */ 16 17 18 19 20 21 22 23 24 25 26 #ifndef _REO_FLUSH_CACHE_STATUS_H_ 27 #define _REO_FLUSH_CACHE_STATUS_H_ 28 #if !defined(__ASSEMBLER__) 29 #endif 30 31 #include "uniform_reo_status_header.h" 32 #define NUM_OF_DWORDS_REO_FLUSH_CACHE_STATUS 26 33 34 #define NUM_OF_QWORDS_REO_FLUSH_CACHE_STATUS 13 35 36 37 struct reo_flush_cache_status { 38 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 39 struct uniform_reo_status_header status_header; 40 uint32_t error_detected : 1, 41 block_error_details : 2, 42 reserved_2a : 5, 43 cache_controller_flush_status_hit : 1, 44 cache_controller_flush_status_desc_type : 3, 45 cache_controller_flush_status_client_id : 4, 46 cache_controller_flush_status_error : 2, 47 cache_controller_flush_count : 8, 48 flush_queue_1k_desc : 1, 49 reserved_2b : 5; 50 uint32_t reserved_3a : 32; 51 uint32_t reserved_4a : 32; 52 uint32_t reserved_5a : 32; 53 uint32_t reserved_6a : 32; 54 uint32_t reserved_7a : 32; 55 uint32_t reserved_8a : 32; 56 uint32_t reserved_9a : 32; 57 uint32_t reserved_10a : 32; 58 uint32_t reserved_11a : 32; 59 uint32_t reserved_12a : 32; 60 uint32_t reserved_13a : 32; 61 uint32_t reserved_14a : 32; 62 uint32_t reserved_15a : 32; 63 uint32_t reserved_16a : 32; 64 uint32_t reserved_17a : 32; 65 uint32_t reserved_18a : 32; 66 uint32_t reserved_19a : 32; 67 uint32_t reserved_20a : 32; 68 uint32_t reserved_21a : 32; 69 uint32_t reserved_22a : 32; 70 uint32_t reserved_23a : 32; 71 uint32_t reserved_24a : 32; 72 uint32_t reserved_25a : 28, 73 looping_count : 4; 74 #else 75 struct uniform_reo_status_header status_header; 76 uint32_t reserved_2b : 5, 77 flush_queue_1k_desc : 1, 78 cache_controller_flush_count : 8, 79 cache_controller_flush_status_error : 2, 80 cache_controller_flush_status_client_id : 4, 81 cache_controller_flush_status_desc_type : 3, 82 cache_controller_flush_status_hit : 1, 83 reserved_2a : 5, 84 block_error_details : 2, 85 error_detected : 1; 86 uint32_t reserved_3a : 32; 87 uint32_t reserved_4a : 32; 88 uint32_t reserved_5a : 32; 89 uint32_t reserved_6a : 32; 90 uint32_t reserved_7a : 32; 91 uint32_t reserved_8a : 32; 92 uint32_t reserved_9a : 32; 93 uint32_t reserved_10a : 32; 94 uint32_t reserved_11a : 32; 95 uint32_t reserved_12a : 32; 96 uint32_t reserved_13a : 32; 97 uint32_t reserved_14a : 32; 98 uint32_t reserved_15a : 32; 99 uint32_t reserved_16a : 32; 100 uint32_t reserved_17a : 32; 101 uint32_t reserved_18a : 32; 102 uint32_t reserved_19a : 32; 103 uint32_t reserved_20a : 32; 104 uint32_t reserved_21a : 32; 105 uint32_t reserved_22a : 32; 106 uint32_t reserved_23a : 32; 107 uint32_t reserved_24a : 32; 108 uint32_t looping_count : 4, 109 reserved_25a : 28; 110 #endif 111 }; 112 113 114 115 116 117 118 119 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_REO_STATUS_NUMBER_OFFSET 0x0000000000000000 120 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_REO_STATUS_NUMBER_LSB 0 121 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_REO_STATUS_NUMBER_MSB 15 122 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_REO_STATUS_NUMBER_MASK 0x000000000000ffff 123 124 125 126 127 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_CMD_EXECUTION_TIME_OFFSET 0x0000000000000000 128 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_CMD_EXECUTION_TIME_LSB 16 129 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_CMD_EXECUTION_TIME_MSB 25 130 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_CMD_EXECUTION_TIME_MASK 0x0000000003ff0000 131 132 133 134 135 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_OFFSET 0x0000000000000000 136 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_LSB 26 137 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_MSB 27 138 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_MASK 0x000000000c000000 139 140 141 142 143 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_RESERVED_0A_OFFSET 0x0000000000000000 144 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_RESERVED_0A_LSB 28 145 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_RESERVED_0A_MSB 31 146 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_RESERVED_0A_MASK 0x00000000f0000000 147 148 149 150 151 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_TIMESTAMP_OFFSET 0x0000000000000000 152 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_TIMESTAMP_LSB 32 153 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_TIMESTAMP_MSB 63 154 #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_TIMESTAMP_MASK 0xffffffff00000000 155 156 157 158 159 #define REO_FLUSH_CACHE_STATUS_ERROR_DETECTED_OFFSET 0x0000000000000008 160 #define REO_FLUSH_CACHE_STATUS_ERROR_DETECTED_LSB 0 161 #define REO_FLUSH_CACHE_STATUS_ERROR_DETECTED_MSB 0 162 #define REO_FLUSH_CACHE_STATUS_ERROR_DETECTED_MASK 0x0000000000000001 163 164 165 166 167 #define REO_FLUSH_CACHE_STATUS_BLOCK_ERROR_DETAILS_OFFSET 0x0000000000000008 168 #define REO_FLUSH_CACHE_STATUS_BLOCK_ERROR_DETAILS_LSB 1 169 #define REO_FLUSH_CACHE_STATUS_BLOCK_ERROR_DETAILS_MSB 2 170 #define REO_FLUSH_CACHE_STATUS_BLOCK_ERROR_DETAILS_MASK 0x0000000000000006 171 172 173 174 175 #define REO_FLUSH_CACHE_STATUS_RESERVED_2A_OFFSET 0x0000000000000008 176 #define REO_FLUSH_CACHE_STATUS_RESERVED_2A_LSB 3 177 #define REO_FLUSH_CACHE_STATUS_RESERVED_2A_MSB 7 178 #define REO_FLUSH_CACHE_STATUS_RESERVED_2A_MASK 0x00000000000000f8 179 180 181 182 183 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_HIT_OFFSET 0x0000000000000008 184 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_HIT_LSB 8 185 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_HIT_MSB 8 186 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_HIT_MASK 0x0000000000000100 187 188 189 190 191 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_DESC_TYPE_OFFSET 0x0000000000000008 192 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_DESC_TYPE_LSB 9 193 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_DESC_TYPE_MSB 11 194 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_DESC_TYPE_MASK 0x0000000000000e00 195 196 197 198 199 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_CLIENT_ID_OFFSET 0x0000000000000008 200 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_CLIENT_ID_LSB 12 201 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_CLIENT_ID_MSB 15 202 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_CLIENT_ID_MASK 0x000000000000f000 203 204 205 206 207 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_ERROR_OFFSET 0x0000000000000008 208 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_ERROR_LSB 16 209 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_ERROR_MSB 17 210 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_ERROR_MASK 0x0000000000030000 211 212 213 214 215 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_COUNT_OFFSET 0x0000000000000008 216 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_COUNT_LSB 18 217 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_COUNT_MSB 25 218 #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_COUNT_MASK 0x0000000003fc0000 219 220 221 222 223 #define REO_FLUSH_CACHE_STATUS_FLUSH_QUEUE_1K_DESC_OFFSET 0x0000000000000008 224 #define REO_FLUSH_CACHE_STATUS_FLUSH_QUEUE_1K_DESC_LSB 26 225 #define REO_FLUSH_CACHE_STATUS_FLUSH_QUEUE_1K_DESC_MSB 26 226 #define REO_FLUSH_CACHE_STATUS_FLUSH_QUEUE_1K_DESC_MASK 0x0000000004000000 227 228 229 230 231 #define REO_FLUSH_CACHE_STATUS_RESERVED_2B_OFFSET 0x0000000000000008 232 #define REO_FLUSH_CACHE_STATUS_RESERVED_2B_LSB 27 233 #define REO_FLUSH_CACHE_STATUS_RESERVED_2B_MSB 31 234 #define REO_FLUSH_CACHE_STATUS_RESERVED_2B_MASK 0x00000000f8000000 235 236 237 238 239 #define REO_FLUSH_CACHE_STATUS_RESERVED_3A_OFFSET 0x0000000000000008 240 #define REO_FLUSH_CACHE_STATUS_RESERVED_3A_LSB 32 241 #define REO_FLUSH_CACHE_STATUS_RESERVED_3A_MSB 63 242 #define REO_FLUSH_CACHE_STATUS_RESERVED_3A_MASK 0xffffffff00000000 243 244 245 246 247 #define REO_FLUSH_CACHE_STATUS_RESERVED_4A_OFFSET 0x0000000000000010 248 #define REO_FLUSH_CACHE_STATUS_RESERVED_4A_LSB 0 249 #define REO_FLUSH_CACHE_STATUS_RESERVED_4A_MSB 31 250 #define REO_FLUSH_CACHE_STATUS_RESERVED_4A_MASK 0x00000000ffffffff 251 252 253 254 255 #define REO_FLUSH_CACHE_STATUS_RESERVED_5A_OFFSET 0x0000000000000010 256 #define REO_FLUSH_CACHE_STATUS_RESERVED_5A_LSB 32 257 #define REO_FLUSH_CACHE_STATUS_RESERVED_5A_MSB 63 258 #define REO_FLUSH_CACHE_STATUS_RESERVED_5A_MASK 0xffffffff00000000 259 260 261 262 263 #define REO_FLUSH_CACHE_STATUS_RESERVED_6A_OFFSET 0x0000000000000018 264 #define REO_FLUSH_CACHE_STATUS_RESERVED_6A_LSB 0 265 #define REO_FLUSH_CACHE_STATUS_RESERVED_6A_MSB 31 266 #define REO_FLUSH_CACHE_STATUS_RESERVED_6A_MASK 0x00000000ffffffff 267 268 269 270 271 #define REO_FLUSH_CACHE_STATUS_RESERVED_7A_OFFSET 0x0000000000000018 272 #define REO_FLUSH_CACHE_STATUS_RESERVED_7A_LSB 32 273 #define REO_FLUSH_CACHE_STATUS_RESERVED_7A_MSB 63 274 #define REO_FLUSH_CACHE_STATUS_RESERVED_7A_MASK 0xffffffff00000000 275 276 277 278 279 #define REO_FLUSH_CACHE_STATUS_RESERVED_8A_OFFSET 0x0000000000000020 280 #define REO_FLUSH_CACHE_STATUS_RESERVED_8A_LSB 0 281 #define REO_FLUSH_CACHE_STATUS_RESERVED_8A_MSB 31 282 #define REO_FLUSH_CACHE_STATUS_RESERVED_8A_MASK 0x00000000ffffffff 283 284 285 286 287 #define REO_FLUSH_CACHE_STATUS_RESERVED_9A_OFFSET 0x0000000000000020 288 #define REO_FLUSH_CACHE_STATUS_RESERVED_9A_LSB 32 289 #define REO_FLUSH_CACHE_STATUS_RESERVED_9A_MSB 63 290 #define REO_FLUSH_CACHE_STATUS_RESERVED_9A_MASK 0xffffffff00000000 291 292 293 294 295 #define REO_FLUSH_CACHE_STATUS_RESERVED_10A_OFFSET 0x0000000000000028 296 #define REO_FLUSH_CACHE_STATUS_RESERVED_10A_LSB 0 297 #define REO_FLUSH_CACHE_STATUS_RESERVED_10A_MSB 31 298 #define REO_FLUSH_CACHE_STATUS_RESERVED_10A_MASK 0x00000000ffffffff 299 300 301 302 303 #define REO_FLUSH_CACHE_STATUS_RESERVED_11A_OFFSET 0x0000000000000028 304 #define REO_FLUSH_CACHE_STATUS_RESERVED_11A_LSB 32 305 #define REO_FLUSH_CACHE_STATUS_RESERVED_11A_MSB 63 306 #define REO_FLUSH_CACHE_STATUS_RESERVED_11A_MASK 0xffffffff00000000 307 308 309 310 311 #define REO_FLUSH_CACHE_STATUS_RESERVED_12A_OFFSET 0x0000000000000030 312 #define REO_FLUSH_CACHE_STATUS_RESERVED_12A_LSB 0 313 #define REO_FLUSH_CACHE_STATUS_RESERVED_12A_MSB 31 314 #define REO_FLUSH_CACHE_STATUS_RESERVED_12A_MASK 0x00000000ffffffff 315 316 317 318 319 #define REO_FLUSH_CACHE_STATUS_RESERVED_13A_OFFSET 0x0000000000000030 320 #define REO_FLUSH_CACHE_STATUS_RESERVED_13A_LSB 32 321 #define REO_FLUSH_CACHE_STATUS_RESERVED_13A_MSB 63 322 #define REO_FLUSH_CACHE_STATUS_RESERVED_13A_MASK 0xffffffff00000000 323 324 325 326 327 #define REO_FLUSH_CACHE_STATUS_RESERVED_14A_OFFSET 0x0000000000000038 328 #define REO_FLUSH_CACHE_STATUS_RESERVED_14A_LSB 0 329 #define REO_FLUSH_CACHE_STATUS_RESERVED_14A_MSB 31 330 #define REO_FLUSH_CACHE_STATUS_RESERVED_14A_MASK 0x00000000ffffffff 331 332 333 334 335 #define REO_FLUSH_CACHE_STATUS_RESERVED_15A_OFFSET 0x0000000000000038 336 #define REO_FLUSH_CACHE_STATUS_RESERVED_15A_LSB 32 337 #define REO_FLUSH_CACHE_STATUS_RESERVED_15A_MSB 63 338 #define REO_FLUSH_CACHE_STATUS_RESERVED_15A_MASK 0xffffffff00000000 339 340 341 342 343 #define REO_FLUSH_CACHE_STATUS_RESERVED_16A_OFFSET 0x0000000000000040 344 #define REO_FLUSH_CACHE_STATUS_RESERVED_16A_LSB 0 345 #define REO_FLUSH_CACHE_STATUS_RESERVED_16A_MSB 31 346 #define REO_FLUSH_CACHE_STATUS_RESERVED_16A_MASK 0x00000000ffffffff 347 348 349 350 351 #define REO_FLUSH_CACHE_STATUS_RESERVED_17A_OFFSET 0x0000000000000040 352 #define REO_FLUSH_CACHE_STATUS_RESERVED_17A_LSB 32 353 #define REO_FLUSH_CACHE_STATUS_RESERVED_17A_MSB 63 354 #define REO_FLUSH_CACHE_STATUS_RESERVED_17A_MASK 0xffffffff00000000 355 356 357 358 359 #define REO_FLUSH_CACHE_STATUS_RESERVED_18A_OFFSET 0x0000000000000048 360 #define REO_FLUSH_CACHE_STATUS_RESERVED_18A_LSB 0 361 #define REO_FLUSH_CACHE_STATUS_RESERVED_18A_MSB 31 362 #define REO_FLUSH_CACHE_STATUS_RESERVED_18A_MASK 0x00000000ffffffff 363 364 365 366 367 #define REO_FLUSH_CACHE_STATUS_RESERVED_19A_OFFSET 0x0000000000000048 368 #define REO_FLUSH_CACHE_STATUS_RESERVED_19A_LSB 32 369 #define REO_FLUSH_CACHE_STATUS_RESERVED_19A_MSB 63 370 #define REO_FLUSH_CACHE_STATUS_RESERVED_19A_MASK 0xffffffff00000000 371 372 373 374 375 #define REO_FLUSH_CACHE_STATUS_RESERVED_20A_OFFSET 0x0000000000000050 376 #define REO_FLUSH_CACHE_STATUS_RESERVED_20A_LSB 0 377 #define REO_FLUSH_CACHE_STATUS_RESERVED_20A_MSB 31 378 #define REO_FLUSH_CACHE_STATUS_RESERVED_20A_MASK 0x00000000ffffffff 379 380 381 382 383 #define REO_FLUSH_CACHE_STATUS_RESERVED_21A_OFFSET 0x0000000000000050 384 #define REO_FLUSH_CACHE_STATUS_RESERVED_21A_LSB 32 385 #define REO_FLUSH_CACHE_STATUS_RESERVED_21A_MSB 63 386 #define REO_FLUSH_CACHE_STATUS_RESERVED_21A_MASK 0xffffffff00000000 387 388 389 390 391 #define REO_FLUSH_CACHE_STATUS_RESERVED_22A_OFFSET 0x0000000000000058 392 #define REO_FLUSH_CACHE_STATUS_RESERVED_22A_LSB 0 393 #define REO_FLUSH_CACHE_STATUS_RESERVED_22A_MSB 31 394 #define REO_FLUSH_CACHE_STATUS_RESERVED_22A_MASK 0x00000000ffffffff 395 396 397 398 399 #define REO_FLUSH_CACHE_STATUS_RESERVED_23A_OFFSET 0x0000000000000058 400 #define REO_FLUSH_CACHE_STATUS_RESERVED_23A_LSB 32 401 #define REO_FLUSH_CACHE_STATUS_RESERVED_23A_MSB 63 402 #define REO_FLUSH_CACHE_STATUS_RESERVED_23A_MASK 0xffffffff00000000 403 404 405 406 407 #define REO_FLUSH_CACHE_STATUS_RESERVED_24A_OFFSET 0x0000000000000060 408 #define REO_FLUSH_CACHE_STATUS_RESERVED_24A_LSB 0 409 #define REO_FLUSH_CACHE_STATUS_RESERVED_24A_MSB 31 410 #define REO_FLUSH_CACHE_STATUS_RESERVED_24A_MASK 0x00000000ffffffff 411 412 413 414 415 #define REO_FLUSH_CACHE_STATUS_RESERVED_25A_OFFSET 0x0000000000000060 416 #define REO_FLUSH_CACHE_STATUS_RESERVED_25A_LSB 32 417 #define REO_FLUSH_CACHE_STATUS_RESERVED_25A_MSB 59 418 #define REO_FLUSH_CACHE_STATUS_RESERVED_25A_MASK 0x0fffffff00000000 419 420 421 422 423 #define REO_FLUSH_CACHE_STATUS_LOOPING_COUNT_OFFSET 0x0000000000000060 424 #define REO_FLUSH_CACHE_STATUS_LOOPING_COUNT_LSB 60 425 #define REO_FLUSH_CACHE_STATUS_LOOPING_COUNT_MSB 63 426 #define REO_FLUSH_CACHE_STATUS_LOOPING_COUNT_MASK 0xf000000000000000 427 428 429 430 #endif 431