1 2 /* 3 * Copyright (c) 2021 Qualcomm Innovation Center, Inc. All rights reserved. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for 6 * any purpose with or without fee is hereby granted, provided that the 7 * above copyright notice and this permission notice appear in all 8 * copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17 * PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20 21 22 23 24 25 26 27 28 29 30 #ifndef _REO_GET_QUEUE_STATS_STATUS_H_ 31 #define _REO_GET_QUEUE_STATS_STATUS_H_ 32 #if !defined(__ASSEMBLER__) 33 #endif 34 35 #include "uniform_reo_status_header.h" 36 #define NUM_OF_DWORDS_REO_GET_QUEUE_STATS_STATUS 26 37 38 #define NUM_OF_QWORDS_REO_GET_QUEUE_STATS_STATUS 13 39 40 41 struct reo_get_queue_stats_status { 42 struct uniform_reo_status_header status_header; 43 uint32_t ssn : 12, 44 current_index : 10, 45 reserved_2 : 10; 46 uint32_t pn_31_0 : 32; 47 uint32_t pn_63_32 : 32; 48 uint32_t pn_95_64 : 32; 49 uint32_t pn_127_96 : 32; 50 uint32_t last_rx_enqueue_timestamp : 32; 51 uint32_t last_rx_dequeue_timestamp : 32; 52 uint32_t rx_bitmap_31_0 : 32; 53 uint32_t rx_bitmap_63_32 : 32; 54 uint32_t rx_bitmap_95_64 : 32; 55 uint32_t rx_bitmap_127_96 : 32; 56 uint32_t rx_bitmap_159_128 : 32; 57 uint32_t rx_bitmap_191_160 : 32; 58 uint32_t rx_bitmap_223_192 : 32; 59 uint32_t rx_bitmap_255_224 : 32; 60 uint32_t rx_bitmap_287_256 : 32; 61 uint32_t current_mpdu_count : 7, 62 current_msdu_count : 25; 63 uint32_t window_jump_2k : 4, 64 timeout_count : 6, 65 forward_due_to_bar_count : 6, 66 duplicate_count : 16; 67 uint32_t frames_in_order_count : 24, 68 bar_received_count : 8; 69 uint32_t mpdu_frames_processed_count : 32; 70 uint32_t msdu_frames_processed_count : 32; 71 uint32_t total_processed_byte_count : 32; 72 uint32_t late_receive_mpdu_count : 12, 73 hole_count : 16, 74 get_queue_1k_stats_status_to_follow : 1, 75 reserved_24a : 3; 76 uint32_t reserved_25a : 28, 77 looping_count : 4; 78 }; 79 80 81 82 83 84 85 86 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_REO_STATUS_NUMBER_OFFSET 0x0000000000000000 87 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_REO_STATUS_NUMBER_LSB 0 88 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_REO_STATUS_NUMBER_MSB 15 89 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_REO_STATUS_NUMBER_MASK 0x000000000000ffff 90 91 92 93 94 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_CMD_EXECUTION_TIME_OFFSET 0x0000000000000000 95 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_CMD_EXECUTION_TIME_LSB 16 96 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_CMD_EXECUTION_TIME_MSB 25 97 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_CMD_EXECUTION_TIME_MASK 0x0000000003ff0000 98 99 100 101 102 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_OFFSET 0x0000000000000000 103 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_LSB 26 104 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_MSB 27 105 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_MASK 0x000000000c000000 106 107 108 109 110 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_RESERVED_0A_OFFSET 0x0000000000000000 111 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_RESERVED_0A_LSB 28 112 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_RESERVED_0A_MSB 31 113 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_RESERVED_0A_MASK 0x00000000f0000000 114 115 116 117 118 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_TIMESTAMP_OFFSET 0x0000000000000000 119 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_TIMESTAMP_LSB 32 120 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_TIMESTAMP_MSB 63 121 #define REO_GET_QUEUE_STATS_STATUS_STATUS_HEADER_TIMESTAMP_MASK 0xffffffff00000000 122 123 124 125 126 #define REO_GET_QUEUE_STATS_STATUS_SSN_OFFSET 0x0000000000000008 127 #define REO_GET_QUEUE_STATS_STATUS_SSN_LSB 0 128 #define REO_GET_QUEUE_STATS_STATUS_SSN_MSB 11 129 #define REO_GET_QUEUE_STATS_STATUS_SSN_MASK 0x0000000000000fff 130 131 132 133 134 #define REO_GET_QUEUE_STATS_STATUS_CURRENT_INDEX_OFFSET 0x0000000000000008 135 #define REO_GET_QUEUE_STATS_STATUS_CURRENT_INDEX_LSB 12 136 #define REO_GET_QUEUE_STATS_STATUS_CURRENT_INDEX_MSB 21 137 #define REO_GET_QUEUE_STATS_STATUS_CURRENT_INDEX_MASK 0x00000000003ff000 138 139 140 141 142 #define REO_GET_QUEUE_STATS_STATUS_RESERVED_2_OFFSET 0x0000000000000008 143 #define REO_GET_QUEUE_STATS_STATUS_RESERVED_2_LSB 22 144 #define REO_GET_QUEUE_STATS_STATUS_RESERVED_2_MSB 31 145 #define REO_GET_QUEUE_STATS_STATUS_RESERVED_2_MASK 0x00000000ffc00000 146 147 148 149 150 #define REO_GET_QUEUE_STATS_STATUS_PN_31_0_OFFSET 0x0000000000000008 151 #define REO_GET_QUEUE_STATS_STATUS_PN_31_0_LSB 32 152 #define REO_GET_QUEUE_STATS_STATUS_PN_31_0_MSB 63 153 #define REO_GET_QUEUE_STATS_STATUS_PN_31_0_MASK 0xffffffff00000000 154 155 156 157 158 #define REO_GET_QUEUE_STATS_STATUS_PN_63_32_OFFSET 0x0000000000000010 159 #define REO_GET_QUEUE_STATS_STATUS_PN_63_32_LSB 0 160 #define REO_GET_QUEUE_STATS_STATUS_PN_63_32_MSB 31 161 #define REO_GET_QUEUE_STATS_STATUS_PN_63_32_MASK 0x00000000ffffffff 162 163 164 165 166 #define REO_GET_QUEUE_STATS_STATUS_PN_95_64_OFFSET 0x0000000000000010 167 #define REO_GET_QUEUE_STATS_STATUS_PN_95_64_LSB 32 168 #define REO_GET_QUEUE_STATS_STATUS_PN_95_64_MSB 63 169 #define REO_GET_QUEUE_STATS_STATUS_PN_95_64_MASK 0xffffffff00000000 170 171 172 173 174 #define REO_GET_QUEUE_STATS_STATUS_PN_127_96_OFFSET 0x0000000000000018 175 #define REO_GET_QUEUE_STATS_STATUS_PN_127_96_LSB 0 176 #define REO_GET_QUEUE_STATS_STATUS_PN_127_96_MSB 31 177 #define REO_GET_QUEUE_STATS_STATUS_PN_127_96_MASK 0x00000000ffffffff 178 179 180 181 182 #define REO_GET_QUEUE_STATS_STATUS_LAST_RX_ENQUEUE_TIMESTAMP_OFFSET 0x0000000000000018 183 #define REO_GET_QUEUE_STATS_STATUS_LAST_RX_ENQUEUE_TIMESTAMP_LSB 32 184 #define REO_GET_QUEUE_STATS_STATUS_LAST_RX_ENQUEUE_TIMESTAMP_MSB 63 185 #define REO_GET_QUEUE_STATS_STATUS_LAST_RX_ENQUEUE_TIMESTAMP_MASK 0xffffffff00000000 186 187 188 189 190 #define REO_GET_QUEUE_STATS_STATUS_LAST_RX_DEQUEUE_TIMESTAMP_OFFSET 0x0000000000000020 191 #define REO_GET_QUEUE_STATS_STATUS_LAST_RX_DEQUEUE_TIMESTAMP_LSB 0 192 #define REO_GET_QUEUE_STATS_STATUS_LAST_RX_DEQUEUE_TIMESTAMP_MSB 31 193 #define REO_GET_QUEUE_STATS_STATUS_LAST_RX_DEQUEUE_TIMESTAMP_MASK 0x00000000ffffffff 194 195 196 197 198 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_31_0_OFFSET 0x0000000000000020 199 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_31_0_LSB 32 200 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_31_0_MSB 63 201 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_31_0_MASK 0xffffffff00000000 202 203 204 205 206 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_63_32_OFFSET 0x0000000000000028 207 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_63_32_LSB 0 208 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_63_32_MSB 31 209 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_63_32_MASK 0x00000000ffffffff 210 211 212 213 214 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_95_64_OFFSET 0x0000000000000028 215 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_95_64_LSB 32 216 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_95_64_MSB 63 217 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_95_64_MASK 0xffffffff00000000 218 219 220 221 222 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_127_96_OFFSET 0x0000000000000030 223 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_127_96_LSB 0 224 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_127_96_MSB 31 225 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_127_96_MASK 0x00000000ffffffff 226 227 228 229 230 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_159_128_OFFSET 0x0000000000000030 231 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_159_128_LSB 32 232 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_159_128_MSB 63 233 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_159_128_MASK 0xffffffff00000000 234 235 236 237 238 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_191_160_OFFSET 0x0000000000000038 239 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_191_160_LSB 0 240 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_191_160_MSB 31 241 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_191_160_MASK 0x00000000ffffffff 242 243 244 245 246 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_223_192_OFFSET 0x0000000000000038 247 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_223_192_LSB 32 248 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_223_192_MSB 63 249 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_223_192_MASK 0xffffffff00000000 250 251 252 253 254 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_255_224_OFFSET 0x0000000000000040 255 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_255_224_LSB 0 256 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_255_224_MSB 31 257 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_255_224_MASK 0x00000000ffffffff 258 259 260 261 262 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_287_256_OFFSET 0x0000000000000040 263 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_287_256_LSB 32 264 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_287_256_MSB 63 265 #define REO_GET_QUEUE_STATS_STATUS_RX_BITMAP_287_256_MASK 0xffffffff00000000 266 267 268 269 270 #define REO_GET_QUEUE_STATS_STATUS_CURRENT_MPDU_COUNT_OFFSET 0x0000000000000048 271 #define REO_GET_QUEUE_STATS_STATUS_CURRENT_MPDU_COUNT_LSB 0 272 #define REO_GET_QUEUE_STATS_STATUS_CURRENT_MPDU_COUNT_MSB 6 273 #define REO_GET_QUEUE_STATS_STATUS_CURRENT_MPDU_COUNT_MASK 0x000000000000007f 274 275 276 277 278 #define REO_GET_QUEUE_STATS_STATUS_CURRENT_MSDU_COUNT_OFFSET 0x0000000000000048 279 #define REO_GET_QUEUE_STATS_STATUS_CURRENT_MSDU_COUNT_LSB 7 280 #define REO_GET_QUEUE_STATS_STATUS_CURRENT_MSDU_COUNT_MSB 31 281 #define REO_GET_QUEUE_STATS_STATUS_CURRENT_MSDU_COUNT_MASK 0x00000000ffffff80 282 283 284 285 286 #define REO_GET_QUEUE_STATS_STATUS_WINDOW_JUMP_2K_OFFSET 0x0000000000000048 287 #define REO_GET_QUEUE_STATS_STATUS_WINDOW_JUMP_2K_LSB 32 288 #define REO_GET_QUEUE_STATS_STATUS_WINDOW_JUMP_2K_MSB 35 289 #define REO_GET_QUEUE_STATS_STATUS_WINDOW_JUMP_2K_MASK 0x0000000f00000000 290 291 292 293 294 #define REO_GET_QUEUE_STATS_STATUS_TIMEOUT_COUNT_OFFSET 0x0000000000000048 295 #define REO_GET_QUEUE_STATS_STATUS_TIMEOUT_COUNT_LSB 36 296 #define REO_GET_QUEUE_STATS_STATUS_TIMEOUT_COUNT_MSB 41 297 #define REO_GET_QUEUE_STATS_STATUS_TIMEOUT_COUNT_MASK 0x000003f000000000 298 299 300 301 302 #define REO_GET_QUEUE_STATS_STATUS_FORWARD_DUE_TO_BAR_COUNT_OFFSET 0x0000000000000048 303 #define REO_GET_QUEUE_STATS_STATUS_FORWARD_DUE_TO_BAR_COUNT_LSB 42 304 #define REO_GET_QUEUE_STATS_STATUS_FORWARD_DUE_TO_BAR_COUNT_MSB 47 305 #define REO_GET_QUEUE_STATS_STATUS_FORWARD_DUE_TO_BAR_COUNT_MASK 0x0000fc0000000000 306 307 308 309 310 #define REO_GET_QUEUE_STATS_STATUS_DUPLICATE_COUNT_OFFSET 0x0000000000000048 311 #define REO_GET_QUEUE_STATS_STATUS_DUPLICATE_COUNT_LSB 48 312 #define REO_GET_QUEUE_STATS_STATUS_DUPLICATE_COUNT_MSB 63 313 #define REO_GET_QUEUE_STATS_STATUS_DUPLICATE_COUNT_MASK 0xffff000000000000 314 315 316 317 318 #define REO_GET_QUEUE_STATS_STATUS_FRAMES_IN_ORDER_COUNT_OFFSET 0x0000000000000050 319 #define REO_GET_QUEUE_STATS_STATUS_FRAMES_IN_ORDER_COUNT_LSB 0 320 #define REO_GET_QUEUE_STATS_STATUS_FRAMES_IN_ORDER_COUNT_MSB 23 321 #define REO_GET_QUEUE_STATS_STATUS_FRAMES_IN_ORDER_COUNT_MASK 0x0000000000ffffff 322 323 324 325 326 #define REO_GET_QUEUE_STATS_STATUS_BAR_RECEIVED_COUNT_OFFSET 0x0000000000000050 327 #define REO_GET_QUEUE_STATS_STATUS_BAR_RECEIVED_COUNT_LSB 24 328 #define REO_GET_QUEUE_STATS_STATUS_BAR_RECEIVED_COUNT_MSB 31 329 #define REO_GET_QUEUE_STATS_STATUS_BAR_RECEIVED_COUNT_MASK 0x00000000ff000000 330 331 332 333 334 #define REO_GET_QUEUE_STATS_STATUS_MPDU_FRAMES_PROCESSED_COUNT_OFFSET 0x0000000000000050 335 #define REO_GET_QUEUE_STATS_STATUS_MPDU_FRAMES_PROCESSED_COUNT_LSB 32 336 #define REO_GET_QUEUE_STATS_STATUS_MPDU_FRAMES_PROCESSED_COUNT_MSB 63 337 #define REO_GET_QUEUE_STATS_STATUS_MPDU_FRAMES_PROCESSED_COUNT_MASK 0xffffffff00000000 338 339 340 341 342 #define REO_GET_QUEUE_STATS_STATUS_MSDU_FRAMES_PROCESSED_COUNT_OFFSET 0x0000000000000058 343 #define REO_GET_QUEUE_STATS_STATUS_MSDU_FRAMES_PROCESSED_COUNT_LSB 0 344 #define REO_GET_QUEUE_STATS_STATUS_MSDU_FRAMES_PROCESSED_COUNT_MSB 31 345 #define REO_GET_QUEUE_STATS_STATUS_MSDU_FRAMES_PROCESSED_COUNT_MASK 0x00000000ffffffff 346 347 348 349 350 #define REO_GET_QUEUE_STATS_STATUS_TOTAL_PROCESSED_BYTE_COUNT_OFFSET 0x0000000000000058 351 #define REO_GET_QUEUE_STATS_STATUS_TOTAL_PROCESSED_BYTE_COUNT_LSB 32 352 #define REO_GET_QUEUE_STATS_STATUS_TOTAL_PROCESSED_BYTE_COUNT_MSB 63 353 #define REO_GET_QUEUE_STATS_STATUS_TOTAL_PROCESSED_BYTE_COUNT_MASK 0xffffffff00000000 354 355 356 357 358 #define REO_GET_QUEUE_STATS_STATUS_LATE_RECEIVE_MPDU_COUNT_OFFSET 0x0000000000000060 359 #define REO_GET_QUEUE_STATS_STATUS_LATE_RECEIVE_MPDU_COUNT_LSB 0 360 #define REO_GET_QUEUE_STATS_STATUS_LATE_RECEIVE_MPDU_COUNT_MSB 11 361 #define REO_GET_QUEUE_STATS_STATUS_LATE_RECEIVE_MPDU_COUNT_MASK 0x0000000000000fff 362 363 364 365 366 #define REO_GET_QUEUE_STATS_STATUS_HOLE_COUNT_OFFSET 0x0000000000000060 367 #define REO_GET_QUEUE_STATS_STATUS_HOLE_COUNT_LSB 12 368 #define REO_GET_QUEUE_STATS_STATUS_HOLE_COUNT_MSB 27 369 #define REO_GET_QUEUE_STATS_STATUS_HOLE_COUNT_MASK 0x000000000ffff000 370 371 372 373 374 #define REO_GET_QUEUE_STATS_STATUS_GET_QUEUE_1K_STATS_STATUS_TO_FOLLOW_OFFSET 0x0000000000000060 375 #define REO_GET_QUEUE_STATS_STATUS_GET_QUEUE_1K_STATS_STATUS_TO_FOLLOW_LSB 28 376 #define REO_GET_QUEUE_STATS_STATUS_GET_QUEUE_1K_STATS_STATUS_TO_FOLLOW_MSB 28 377 #define REO_GET_QUEUE_STATS_STATUS_GET_QUEUE_1K_STATS_STATUS_TO_FOLLOW_MASK 0x0000000010000000 378 379 380 381 382 #define REO_GET_QUEUE_STATS_STATUS_RESERVED_24A_OFFSET 0x0000000000000060 383 #define REO_GET_QUEUE_STATS_STATUS_RESERVED_24A_LSB 29 384 #define REO_GET_QUEUE_STATS_STATUS_RESERVED_24A_MSB 31 385 #define REO_GET_QUEUE_STATS_STATUS_RESERVED_24A_MASK 0x00000000e0000000 386 387 388 389 390 #define REO_GET_QUEUE_STATS_STATUS_RESERVED_25A_OFFSET 0x0000000000000060 391 #define REO_GET_QUEUE_STATS_STATUS_RESERVED_25A_LSB 32 392 #define REO_GET_QUEUE_STATS_STATUS_RESERVED_25A_MSB 59 393 #define REO_GET_QUEUE_STATS_STATUS_RESERVED_25A_MASK 0x0fffffff00000000 394 395 396 397 398 #define REO_GET_QUEUE_STATS_STATUS_LOOPING_COUNT_OFFSET 0x0000000000000060 399 #define REO_GET_QUEUE_STATS_STATUS_LOOPING_COUNT_LSB 60 400 #define REO_GET_QUEUE_STATS_STATUS_LOOPING_COUNT_MSB 63 401 #define REO_GET_QUEUE_STATS_STATUS_LOOPING_COUNT_MASK 0xf000000000000000 402 403 404 405 #endif 406