1 2 /* Copyright (c) 2021, 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 _HE_SIG_A_SU_INFO_H_ 27 #define _HE_SIG_A_SU_INFO_H_ 28 #if !defined(__ASSEMBLER__) 29 #endif 30 31 #define NUM_OF_DWORDS_HE_SIG_A_SU_INFO 2 32 33 34 struct he_sig_a_su_info { 35 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 36 uint32_t format_indication : 1, 37 beam_change : 1, 38 dl_ul_flag : 1, 39 transmit_mcs : 4, 40 dcm : 1, 41 bss_color_id : 6, 42 reserved_0a : 1, 43 spatial_reuse : 4, 44 transmit_bw : 2, 45 cp_ltf_size : 2, 46 nsts : 3, 47 reserved_0b : 6; 48 uint32_t txop_duration : 7, 49 coding : 1, 50 ldpc_extra_symbol : 1, 51 stbc : 1, 52 txbf : 1, 53 packet_extension_a_factor : 2, 54 packet_extension_pe_disambiguity : 1, 55 reserved_1a : 1, 56 doppler_indication : 1, 57 crc : 4, 58 tail : 6, 59 dot11ax_su_extended : 1, 60 dot11ax_ext_ru_size : 3, 61 rx_ndp : 1, 62 rx_integrity_check_passed : 1; 63 #else 64 uint32_t reserved_0b : 6, 65 nsts : 3, 66 cp_ltf_size : 2, 67 transmit_bw : 2, 68 spatial_reuse : 4, 69 reserved_0a : 1, 70 bss_color_id : 6, 71 dcm : 1, 72 transmit_mcs : 4, 73 dl_ul_flag : 1, 74 beam_change : 1, 75 format_indication : 1; 76 uint32_t rx_integrity_check_passed : 1, 77 rx_ndp : 1, 78 dot11ax_ext_ru_size : 3, 79 dot11ax_su_extended : 1, 80 tail : 6, 81 crc : 4, 82 doppler_indication : 1, 83 reserved_1a : 1, 84 packet_extension_pe_disambiguity : 1, 85 packet_extension_a_factor : 2, 86 txbf : 1, 87 stbc : 1, 88 ldpc_extra_symbol : 1, 89 coding : 1, 90 txop_duration : 7; 91 #endif 92 }; 93 94 95 96 97 #define HE_SIG_A_SU_INFO_FORMAT_INDICATION_OFFSET 0x00000000 98 #define HE_SIG_A_SU_INFO_FORMAT_INDICATION_LSB 0 99 #define HE_SIG_A_SU_INFO_FORMAT_INDICATION_MSB 0 100 #define HE_SIG_A_SU_INFO_FORMAT_INDICATION_MASK 0x00000001 101 102 103 104 105 #define HE_SIG_A_SU_INFO_BEAM_CHANGE_OFFSET 0x00000000 106 #define HE_SIG_A_SU_INFO_BEAM_CHANGE_LSB 1 107 #define HE_SIG_A_SU_INFO_BEAM_CHANGE_MSB 1 108 #define HE_SIG_A_SU_INFO_BEAM_CHANGE_MASK 0x00000002 109 110 111 112 113 #define HE_SIG_A_SU_INFO_DL_UL_FLAG_OFFSET 0x00000000 114 #define HE_SIG_A_SU_INFO_DL_UL_FLAG_LSB 2 115 #define HE_SIG_A_SU_INFO_DL_UL_FLAG_MSB 2 116 #define HE_SIG_A_SU_INFO_DL_UL_FLAG_MASK 0x00000004 117 118 119 120 121 #define HE_SIG_A_SU_INFO_TRANSMIT_MCS_OFFSET 0x00000000 122 #define HE_SIG_A_SU_INFO_TRANSMIT_MCS_LSB 3 123 #define HE_SIG_A_SU_INFO_TRANSMIT_MCS_MSB 6 124 #define HE_SIG_A_SU_INFO_TRANSMIT_MCS_MASK 0x00000078 125 126 127 128 129 #define HE_SIG_A_SU_INFO_DCM_OFFSET 0x00000000 130 #define HE_SIG_A_SU_INFO_DCM_LSB 7 131 #define HE_SIG_A_SU_INFO_DCM_MSB 7 132 #define HE_SIG_A_SU_INFO_DCM_MASK 0x00000080 133 134 135 136 137 #define HE_SIG_A_SU_INFO_BSS_COLOR_ID_OFFSET 0x00000000 138 #define HE_SIG_A_SU_INFO_BSS_COLOR_ID_LSB 8 139 #define HE_SIG_A_SU_INFO_BSS_COLOR_ID_MSB 13 140 #define HE_SIG_A_SU_INFO_BSS_COLOR_ID_MASK 0x00003f00 141 142 143 144 145 #define HE_SIG_A_SU_INFO_RESERVED_0A_OFFSET 0x00000000 146 #define HE_SIG_A_SU_INFO_RESERVED_0A_LSB 14 147 #define HE_SIG_A_SU_INFO_RESERVED_0A_MSB 14 148 #define HE_SIG_A_SU_INFO_RESERVED_0A_MASK 0x00004000 149 150 151 152 153 #define HE_SIG_A_SU_INFO_SPATIAL_REUSE_OFFSET 0x00000000 154 #define HE_SIG_A_SU_INFO_SPATIAL_REUSE_LSB 15 155 #define HE_SIG_A_SU_INFO_SPATIAL_REUSE_MSB 18 156 #define HE_SIG_A_SU_INFO_SPATIAL_REUSE_MASK 0x00078000 157 158 159 160 161 #define HE_SIG_A_SU_INFO_TRANSMIT_BW_OFFSET 0x00000000 162 #define HE_SIG_A_SU_INFO_TRANSMIT_BW_LSB 19 163 #define HE_SIG_A_SU_INFO_TRANSMIT_BW_MSB 20 164 #define HE_SIG_A_SU_INFO_TRANSMIT_BW_MASK 0x00180000 165 166 167 168 169 #define HE_SIG_A_SU_INFO_CP_LTF_SIZE_OFFSET 0x00000000 170 #define HE_SIG_A_SU_INFO_CP_LTF_SIZE_LSB 21 171 #define HE_SIG_A_SU_INFO_CP_LTF_SIZE_MSB 22 172 #define HE_SIG_A_SU_INFO_CP_LTF_SIZE_MASK 0x00600000 173 174 175 176 177 #define HE_SIG_A_SU_INFO_NSTS_OFFSET 0x00000000 178 #define HE_SIG_A_SU_INFO_NSTS_LSB 23 179 #define HE_SIG_A_SU_INFO_NSTS_MSB 25 180 #define HE_SIG_A_SU_INFO_NSTS_MASK 0x03800000 181 182 183 184 185 #define HE_SIG_A_SU_INFO_RESERVED_0B_OFFSET 0x00000000 186 #define HE_SIG_A_SU_INFO_RESERVED_0B_LSB 26 187 #define HE_SIG_A_SU_INFO_RESERVED_0B_MSB 31 188 #define HE_SIG_A_SU_INFO_RESERVED_0B_MASK 0xfc000000 189 190 191 192 193 #define HE_SIG_A_SU_INFO_TXOP_DURATION_OFFSET 0x00000004 194 #define HE_SIG_A_SU_INFO_TXOP_DURATION_LSB 0 195 #define HE_SIG_A_SU_INFO_TXOP_DURATION_MSB 6 196 #define HE_SIG_A_SU_INFO_TXOP_DURATION_MASK 0x0000007f 197 198 199 200 201 #define HE_SIG_A_SU_INFO_CODING_OFFSET 0x00000004 202 #define HE_SIG_A_SU_INFO_CODING_LSB 7 203 #define HE_SIG_A_SU_INFO_CODING_MSB 7 204 #define HE_SIG_A_SU_INFO_CODING_MASK 0x00000080 205 206 207 208 209 #define HE_SIG_A_SU_INFO_LDPC_EXTRA_SYMBOL_OFFSET 0x00000004 210 #define HE_SIG_A_SU_INFO_LDPC_EXTRA_SYMBOL_LSB 8 211 #define HE_SIG_A_SU_INFO_LDPC_EXTRA_SYMBOL_MSB 8 212 #define HE_SIG_A_SU_INFO_LDPC_EXTRA_SYMBOL_MASK 0x00000100 213 214 215 216 217 #define HE_SIG_A_SU_INFO_STBC_OFFSET 0x00000004 218 #define HE_SIG_A_SU_INFO_STBC_LSB 9 219 #define HE_SIG_A_SU_INFO_STBC_MSB 9 220 #define HE_SIG_A_SU_INFO_STBC_MASK 0x00000200 221 222 223 224 225 #define HE_SIG_A_SU_INFO_TXBF_OFFSET 0x00000004 226 #define HE_SIG_A_SU_INFO_TXBF_LSB 10 227 #define HE_SIG_A_SU_INFO_TXBF_MSB 10 228 #define HE_SIG_A_SU_INFO_TXBF_MASK 0x00000400 229 230 231 232 233 #define HE_SIG_A_SU_INFO_PACKET_EXTENSION_A_FACTOR_OFFSET 0x00000004 234 #define HE_SIG_A_SU_INFO_PACKET_EXTENSION_A_FACTOR_LSB 11 235 #define HE_SIG_A_SU_INFO_PACKET_EXTENSION_A_FACTOR_MSB 12 236 #define HE_SIG_A_SU_INFO_PACKET_EXTENSION_A_FACTOR_MASK 0x00001800 237 238 239 240 241 #define HE_SIG_A_SU_INFO_PACKET_EXTENSION_PE_DISAMBIGUITY_OFFSET 0x00000004 242 #define HE_SIG_A_SU_INFO_PACKET_EXTENSION_PE_DISAMBIGUITY_LSB 13 243 #define HE_SIG_A_SU_INFO_PACKET_EXTENSION_PE_DISAMBIGUITY_MSB 13 244 #define HE_SIG_A_SU_INFO_PACKET_EXTENSION_PE_DISAMBIGUITY_MASK 0x00002000 245 246 247 248 249 #define HE_SIG_A_SU_INFO_RESERVED_1A_OFFSET 0x00000004 250 #define HE_SIG_A_SU_INFO_RESERVED_1A_LSB 14 251 #define HE_SIG_A_SU_INFO_RESERVED_1A_MSB 14 252 #define HE_SIG_A_SU_INFO_RESERVED_1A_MASK 0x00004000 253 254 255 256 257 #define HE_SIG_A_SU_INFO_DOPPLER_INDICATION_OFFSET 0x00000004 258 #define HE_SIG_A_SU_INFO_DOPPLER_INDICATION_LSB 15 259 #define HE_SIG_A_SU_INFO_DOPPLER_INDICATION_MSB 15 260 #define HE_SIG_A_SU_INFO_DOPPLER_INDICATION_MASK 0x00008000 261 262 263 264 265 #define HE_SIG_A_SU_INFO_CRC_OFFSET 0x00000004 266 #define HE_SIG_A_SU_INFO_CRC_LSB 16 267 #define HE_SIG_A_SU_INFO_CRC_MSB 19 268 #define HE_SIG_A_SU_INFO_CRC_MASK 0x000f0000 269 270 271 272 273 #define HE_SIG_A_SU_INFO_TAIL_OFFSET 0x00000004 274 #define HE_SIG_A_SU_INFO_TAIL_LSB 20 275 #define HE_SIG_A_SU_INFO_TAIL_MSB 25 276 #define HE_SIG_A_SU_INFO_TAIL_MASK 0x03f00000 277 278 279 280 281 #define HE_SIG_A_SU_INFO_DOT11AX_SU_EXTENDED_OFFSET 0x00000004 282 #define HE_SIG_A_SU_INFO_DOT11AX_SU_EXTENDED_LSB 26 283 #define HE_SIG_A_SU_INFO_DOT11AX_SU_EXTENDED_MSB 26 284 #define HE_SIG_A_SU_INFO_DOT11AX_SU_EXTENDED_MASK 0x04000000 285 286 287 288 289 #define HE_SIG_A_SU_INFO_DOT11AX_EXT_RU_SIZE_OFFSET 0x00000004 290 #define HE_SIG_A_SU_INFO_DOT11AX_EXT_RU_SIZE_LSB 27 291 #define HE_SIG_A_SU_INFO_DOT11AX_EXT_RU_SIZE_MSB 29 292 #define HE_SIG_A_SU_INFO_DOT11AX_EXT_RU_SIZE_MASK 0x38000000 293 294 295 296 297 #define HE_SIG_A_SU_INFO_RX_NDP_OFFSET 0x00000004 298 #define HE_SIG_A_SU_INFO_RX_NDP_LSB 30 299 #define HE_SIG_A_SU_INFO_RX_NDP_MSB 30 300 #define HE_SIG_A_SU_INFO_RX_NDP_MASK 0x40000000 301 302 303 304 305 #define HE_SIG_A_SU_INFO_RX_INTEGRITY_CHECK_PASSED_OFFSET 0x00000004 306 #define HE_SIG_A_SU_INFO_RX_INTEGRITY_CHECK_PASSED_LSB 31 307 #define HE_SIG_A_SU_INFO_RX_INTEGRITY_CHECK_PASSED_MSB 31 308 #define HE_SIG_A_SU_INFO_RX_INTEGRITY_CHECK_PASSED_MASK 0x80000000 309 310 311 312 #endif 313