1 2 /* 3 * Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for any 6 * purpose with or without fee is hereby granted, provided that the above 7 * copyright notice and this permission notice appear in all copies. 8 * 9 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 */ 17 18 19 20 21 22 23 24 25 26 27 #ifndef _RECEIVED_RESPONSE_USER_INFO_H_ 28 #define _RECEIVED_RESPONSE_USER_INFO_H_ 29 #if !defined(__ASSEMBLER__) 30 #endif 31 32 #define NUM_OF_DWORDS_RECEIVED_RESPONSE_USER_INFO 8 33 34 35 struct received_response_user_info { 36 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 37 uint32_t mpdu_fcs_pass_count : 12, // [11:0] 38 mpdu_fcs_fail_count : 12, // [23:12] 39 qosnull_frame_count : 4, // [27:24] 40 reserved_0a : 3, // [30:28] 41 user_info_valid : 1; // [31:31] 42 uint32_t null_delimiter_count : 22, // [21:0] 43 reserved_1a : 9, // [30:22] 44 ht_control_valid : 1; // [31:31] 45 uint32_t ht_control : 32; // [31:0] 46 uint32_t qos_control_valid : 16, // [15:0] 47 eosp : 16; // [31:16] 48 uint32_t qos_control_15_8_tid_0 : 8, // [7:0] 49 qos_control_15_8_tid_1 : 8, // [15:8] 50 qos_control_15_8_tid_2 : 8, // [23:16] 51 qos_control_15_8_tid_3 : 8; // [31:24] 52 uint32_t qos_control_15_8_tid_4 : 8, // [7:0] 53 qos_control_15_8_tid_5 : 8, // [15:8] 54 qos_control_15_8_tid_6 : 8, // [23:16] 55 qos_control_15_8_tid_7 : 8; // [31:24] 56 uint32_t qos_control_15_8_tid_8 : 8, // [7:0] 57 qos_control_15_8_tid_9 : 8, // [15:8] 58 qos_control_15_8_tid_10 : 8, // [23:16] 59 qos_control_15_8_tid_11 : 8; // [31:24] 60 uint32_t qos_control_15_8_tid_12 : 8, // [7:0] 61 qos_control_15_8_tid_13 : 8, // [15:8] 62 qos_control_15_8_tid_14 : 8, // [23:16] 63 qos_control_15_8_tid_15 : 8; // [31:24] 64 #else 65 uint32_t user_info_valid : 1, // [31:31] 66 reserved_0a : 3, // [30:28] 67 qosnull_frame_count : 4, // [27:24] 68 mpdu_fcs_fail_count : 12, // [23:12] 69 mpdu_fcs_pass_count : 12; // [11:0] 70 uint32_t ht_control_valid : 1, // [31:31] 71 reserved_1a : 9, // [30:22] 72 null_delimiter_count : 22; // [21:0] 73 uint32_t ht_control : 32; // [31:0] 74 uint32_t eosp : 16, // [31:16] 75 qos_control_valid : 16; // [15:0] 76 uint32_t qos_control_15_8_tid_3 : 8, // [31:24] 77 qos_control_15_8_tid_2 : 8, // [23:16] 78 qos_control_15_8_tid_1 : 8, // [15:8] 79 qos_control_15_8_tid_0 : 8; // [7:0] 80 uint32_t qos_control_15_8_tid_7 : 8, // [31:24] 81 qos_control_15_8_tid_6 : 8, // [23:16] 82 qos_control_15_8_tid_5 : 8, // [15:8] 83 qos_control_15_8_tid_4 : 8; // [7:0] 84 uint32_t qos_control_15_8_tid_11 : 8, // [31:24] 85 qos_control_15_8_tid_10 : 8, // [23:16] 86 qos_control_15_8_tid_9 : 8, // [15:8] 87 qos_control_15_8_tid_8 : 8; // [7:0] 88 uint32_t qos_control_15_8_tid_15 : 8, // [31:24] 89 qos_control_15_8_tid_14 : 8, // [23:16] 90 qos_control_15_8_tid_13 : 8, // [15:8] 91 qos_control_15_8_tid_12 : 8; // [7:0] 92 #endif 93 }; 94 95 96 97 98 #define RECEIVED_RESPONSE_USER_INFO_MPDU_FCS_PASS_COUNT_OFFSET 0x00000000 99 #define RECEIVED_RESPONSE_USER_INFO_MPDU_FCS_PASS_COUNT_LSB 0 100 #define RECEIVED_RESPONSE_USER_INFO_MPDU_FCS_PASS_COUNT_MSB 11 101 #define RECEIVED_RESPONSE_USER_INFO_MPDU_FCS_PASS_COUNT_MASK 0x00000fff 102 103 104 105 106 #define RECEIVED_RESPONSE_USER_INFO_MPDU_FCS_FAIL_COUNT_OFFSET 0x00000000 107 #define RECEIVED_RESPONSE_USER_INFO_MPDU_FCS_FAIL_COUNT_LSB 12 108 #define RECEIVED_RESPONSE_USER_INFO_MPDU_FCS_FAIL_COUNT_MSB 23 109 #define RECEIVED_RESPONSE_USER_INFO_MPDU_FCS_FAIL_COUNT_MASK 0x00fff000 110 111 112 113 114 #define RECEIVED_RESPONSE_USER_INFO_QOSNULL_FRAME_COUNT_OFFSET 0x00000000 115 #define RECEIVED_RESPONSE_USER_INFO_QOSNULL_FRAME_COUNT_LSB 24 116 #define RECEIVED_RESPONSE_USER_INFO_QOSNULL_FRAME_COUNT_MSB 27 117 #define RECEIVED_RESPONSE_USER_INFO_QOSNULL_FRAME_COUNT_MASK 0x0f000000 118 119 120 121 122 #define RECEIVED_RESPONSE_USER_INFO_RESERVED_0A_OFFSET 0x00000000 123 #define RECEIVED_RESPONSE_USER_INFO_RESERVED_0A_LSB 28 124 #define RECEIVED_RESPONSE_USER_INFO_RESERVED_0A_MSB 30 125 #define RECEIVED_RESPONSE_USER_INFO_RESERVED_0A_MASK 0x70000000 126 127 128 129 130 #define RECEIVED_RESPONSE_USER_INFO_USER_INFO_VALID_OFFSET 0x00000000 131 #define RECEIVED_RESPONSE_USER_INFO_USER_INFO_VALID_LSB 31 132 #define RECEIVED_RESPONSE_USER_INFO_USER_INFO_VALID_MSB 31 133 #define RECEIVED_RESPONSE_USER_INFO_USER_INFO_VALID_MASK 0x80000000 134 135 136 137 138 #define RECEIVED_RESPONSE_USER_INFO_NULL_DELIMITER_COUNT_OFFSET 0x00000004 139 #define RECEIVED_RESPONSE_USER_INFO_NULL_DELIMITER_COUNT_LSB 0 140 #define RECEIVED_RESPONSE_USER_INFO_NULL_DELIMITER_COUNT_MSB 21 141 #define RECEIVED_RESPONSE_USER_INFO_NULL_DELIMITER_COUNT_MASK 0x003fffff 142 143 144 145 146 #define RECEIVED_RESPONSE_USER_INFO_RESERVED_1A_OFFSET 0x00000004 147 #define RECEIVED_RESPONSE_USER_INFO_RESERVED_1A_LSB 22 148 #define RECEIVED_RESPONSE_USER_INFO_RESERVED_1A_MSB 30 149 #define RECEIVED_RESPONSE_USER_INFO_RESERVED_1A_MASK 0x7fc00000 150 151 152 153 154 #define RECEIVED_RESPONSE_USER_INFO_HT_CONTROL_VALID_OFFSET 0x00000004 155 #define RECEIVED_RESPONSE_USER_INFO_HT_CONTROL_VALID_LSB 31 156 #define RECEIVED_RESPONSE_USER_INFO_HT_CONTROL_VALID_MSB 31 157 #define RECEIVED_RESPONSE_USER_INFO_HT_CONTROL_VALID_MASK 0x80000000 158 159 160 161 162 #define RECEIVED_RESPONSE_USER_INFO_HT_CONTROL_OFFSET 0x00000008 163 #define RECEIVED_RESPONSE_USER_INFO_HT_CONTROL_LSB 0 164 #define RECEIVED_RESPONSE_USER_INFO_HT_CONTROL_MSB 31 165 #define RECEIVED_RESPONSE_USER_INFO_HT_CONTROL_MASK 0xffffffff 166 167 168 169 170 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_VALID_OFFSET 0x0000000c 171 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_VALID_LSB 0 172 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_VALID_MSB 15 173 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_VALID_MASK 0x0000ffff 174 175 176 177 178 #define RECEIVED_RESPONSE_USER_INFO_EOSP_OFFSET 0x0000000c 179 #define RECEIVED_RESPONSE_USER_INFO_EOSP_LSB 16 180 #define RECEIVED_RESPONSE_USER_INFO_EOSP_MSB 31 181 #define RECEIVED_RESPONSE_USER_INFO_EOSP_MASK 0xffff0000 182 183 184 185 186 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_0_OFFSET 0x00000010 187 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_0_LSB 0 188 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_0_MSB 7 189 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_0_MASK 0x000000ff 190 191 192 193 194 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_1_OFFSET 0x00000010 195 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_1_LSB 8 196 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_1_MSB 15 197 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_1_MASK 0x0000ff00 198 199 200 201 202 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_2_OFFSET 0x00000010 203 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_2_LSB 16 204 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_2_MSB 23 205 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_2_MASK 0x00ff0000 206 207 208 209 210 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_3_OFFSET 0x00000010 211 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_3_LSB 24 212 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_3_MSB 31 213 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_3_MASK 0xff000000 214 215 216 217 218 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_4_OFFSET 0x00000014 219 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_4_LSB 0 220 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_4_MSB 7 221 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_4_MASK 0x000000ff 222 223 224 225 226 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_5_OFFSET 0x00000014 227 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_5_LSB 8 228 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_5_MSB 15 229 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_5_MASK 0x0000ff00 230 231 232 233 234 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_6_OFFSET 0x00000014 235 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_6_LSB 16 236 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_6_MSB 23 237 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_6_MASK 0x00ff0000 238 239 240 241 242 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_7_OFFSET 0x00000014 243 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_7_LSB 24 244 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_7_MSB 31 245 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_7_MASK 0xff000000 246 247 248 249 250 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_8_OFFSET 0x00000018 251 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_8_LSB 0 252 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_8_MSB 7 253 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_8_MASK 0x000000ff 254 255 256 257 258 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_9_OFFSET 0x00000018 259 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_9_LSB 8 260 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_9_MSB 15 261 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_9_MASK 0x0000ff00 262 263 264 265 266 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_10_OFFSET 0x00000018 267 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_10_LSB 16 268 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_10_MSB 23 269 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_10_MASK 0x00ff0000 270 271 272 273 274 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_11_OFFSET 0x00000018 275 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_11_LSB 24 276 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_11_MSB 31 277 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_11_MASK 0xff000000 278 279 280 281 282 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_12_OFFSET 0x0000001c 283 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_12_LSB 0 284 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_12_MSB 7 285 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_12_MASK 0x000000ff 286 287 288 289 290 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_13_OFFSET 0x0000001c 291 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_13_LSB 8 292 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_13_MSB 15 293 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_13_MASK 0x0000ff00 294 295 296 297 298 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_14_OFFSET 0x0000001c 299 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_14_LSB 16 300 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_14_MSB 23 301 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_14_MASK 0x00ff0000 302 303 304 305 306 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_15_OFFSET 0x0000001c 307 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_15_LSB 24 308 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_15_MSB 31 309 #define RECEIVED_RESPONSE_USER_INFO_QOS_CONTROL_15_8_TID_15_MASK 0xff000000 310 311 312 313 314 #endif 315