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 _HE_SIG_A_MU_DL_INFO_H_ 27 #define _HE_SIG_A_MU_DL_INFO_H_ 28 #if !defined(__ASSEMBLER__) 29 #endif 30 31 #define NUM_OF_DWORDS_HE_SIG_A_MU_DL_INFO 2 32 33 34 struct he_sig_a_mu_dl_info { 35 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 36 uint32_t dl_ul_flag : 1, 37 mcs_of_sig_b : 3, 38 dcm_of_sig_b : 1, 39 bss_color_id : 6, 40 spatial_reuse : 4, 41 transmit_bw : 3, 42 num_sig_b_symbols : 4, 43 comp_mode_sig_b : 1, 44 cp_ltf_size : 2, 45 doppler_indication : 1, 46 reserved_0a : 6; 47 uint32_t txop_duration : 7, 48 reserved_1a : 1, 49 num_ltf_symbols : 3, 50 ldpc_extra_symbol : 1, 51 stbc : 1, 52 packet_extension_a_factor : 2, 53 packet_extension_pe_disambiguity : 1, 54 crc : 4, 55 tail : 6, 56 reserved_1b : 5, 57 rx_integrity_check_passed : 1; 58 #else 59 uint32_t reserved_0a : 6, 60 doppler_indication : 1, 61 cp_ltf_size : 2, 62 comp_mode_sig_b : 1, 63 num_sig_b_symbols : 4, 64 transmit_bw : 3, 65 spatial_reuse : 4, 66 bss_color_id : 6, 67 dcm_of_sig_b : 1, 68 mcs_of_sig_b : 3, 69 dl_ul_flag : 1; 70 uint32_t rx_integrity_check_passed : 1, 71 reserved_1b : 5, 72 tail : 6, 73 crc : 4, 74 packet_extension_pe_disambiguity : 1, 75 packet_extension_a_factor : 2, 76 stbc : 1, 77 ldpc_extra_symbol : 1, 78 num_ltf_symbols : 3, 79 reserved_1a : 1, 80 txop_duration : 7; 81 #endif 82 }; 83 84 85 86 87 #define HE_SIG_A_MU_DL_INFO_DL_UL_FLAG_OFFSET 0x00000000 88 #define HE_SIG_A_MU_DL_INFO_DL_UL_FLAG_LSB 0 89 #define HE_SIG_A_MU_DL_INFO_DL_UL_FLAG_MSB 0 90 #define HE_SIG_A_MU_DL_INFO_DL_UL_FLAG_MASK 0x00000001 91 92 93 94 95 #define HE_SIG_A_MU_DL_INFO_MCS_OF_SIG_B_OFFSET 0x00000000 96 #define HE_SIG_A_MU_DL_INFO_MCS_OF_SIG_B_LSB 1 97 #define HE_SIG_A_MU_DL_INFO_MCS_OF_SIG_B_MSB 3 98 #define HE_SIG_A_MU_DL_INFO_MCS_OF_SIG_B_MASK 0x0000000e 99 100 101 102 103 #define HE_SIG_A_MU_DL_INFO_DCM_OF_SIG_B_OFFSET 0x00000000 104 #define HE_SIG_A_MU_DL_INFO_DCM_OF_SIG_B_LSB 4 105 #define HE_SIG_A_MU_DL_INFO_DCM_OF_SIG_B_MSB 4 106 #define HE_SIG_A_MU_DL_INFO_DCM_OF_SIG_B_MASK 0x00000010 107 108 109 110 111 #define HE_SIG_A_MU_DL_INFO_BSS_COLOR_ID_OFFSET 0x00000000 112 #define HE_SIG_A_MU_DL_INFO_BSS_COLOR_ID_LSB 5 113 #define HE_SIG_A_MU_DL_INFO_BSS_COLOR_ID_MSB 10 114 #define HE_SIG_A_MU_DL_INFO_BSS_COLOR_ID_MASK 0x000007e0 115 116 117 118 119 #define HE_SIG_A_MU_DL_INFO_SPATIAL_REUSE_OFFSET 0x00000000 120 #define HE_SIG_A_MU_DL_INFO_SPATIAL_REUSE_LSB 11 121 #define HE_SIG_A_MU_DL_INFO_SPATIAL_REUSE_MSB 14 122 #define HE_SIG_A_MU_DL_INFO_SPATIAL_REUSE_MASK 0x00007800 123 124 125 126 127 #define HE_SIG_A_MU_DL_INFO_TRANSMIT_BW_OFFSET 0x00000000 128 #define HE_SIG_A_MU_DL_INFO_TRANSMIT_BW_LSB 15 129 #define HE_SIG_A_MU_DL_INFO_TRANSMIT_BW_MSB 17 130 #define HE_SIG_A_MU_DL_INFO_TRANSMIT_BW_MASK 0x00038000 131 132 133 134 135 #define HE_SIG_A_MU_DL_INFO_NUM_SIG_B_SYMBOLS_OFFSET 0x00000000 136 #define HE_SIG_A_MU_DL_INFO_NUM_SIG_B_SYMBOLS_LSB 18 137 #define HE_SIG_A_MU_DL_INFO_NUM_SIG_B_SYMBOLS_MSB 21 138 #define HE_SIG_A_MU_DL_INFO_NUM_SIG_B_SYMBOLS_MASK 0x003c0000 139 140 141 142 143 #define HE_SIG_A_MU_DL_INFO_COMP_MODE_SIG_B_OFFSET 0x00000000 144 #define HE_SIG_A_MU_DL_INFO_COMP_MODE_SIG_B_LSB 22 145 #define HE_SIG_A_MU_DL_INFO_COMP_MODE_SIG_B_MSB 22 146 #define HE_SIG_A_MU_DL_INFO_COMP_MODE_SIG_B_MASK 0x00400000 147 148 149 150 151 #define HE_SIG_A_MU_DL_INFO_CP_LTF_SIZE_OFFSET 0x00000000 152 #define HE_SIG_A_MU_DL_INFO_CP_LTF_SIZE_LSB 23 153 #define HE_SIG_A_MU_DL_INFO_CP_LTF_SIZE_MSB 24 154 #define HE_SIG_A_MU_DL_INFO_CP_LTF_SIZE_MASK 0x01800000 155 156 157 158 159 #define HE_SIG_A_MU_DL_INFO_DOPPLER_INDICATION_OFFSET 0x00000000 160 #define HE_SIG_A_MU_DL_INFO_DOPPLER_INDICATION_LSB 25 161 #define HE_SIG_A_MU_DL_INFO_DOPPLER_INDICATION_MSB 25 162 #define HE_SIG_A_MU_DL_INFO_DOPPLER_INDICATION_MASK 0x02000000 163 164 165 166 167 #define HE_SIG_A_MU_DL_INFO_RESERVED_0A_OFFSET 0x00000000 168 #define HE_SIG_A_MU_DL_INFO_RESERVED_0A_LSB 26 169 #define HE_SIG_A_MU_DL_INFO_RESERVED_0A_MSB 31 170 #define HE_SIG_A_MU_DL_INFO_RESERVED_0A_MASK 0xfc000000 171 172 173 174 175 #define HE_SIG_A_MU_DL_INFO_TXOP_DURATION_OFFSET 0x00000004 176 #define HE_SIG_A_MU_DL_INFO_TXOP_DURATION_LSB 0 177 #define HE_SIG_A_MU_DL_INFO_TXOP_DURATION_MSB 6 178 #define HE_SIG_A_MU_DL_INFO_TXOP_DURATION_MASK 0x0000007f 179 180 181 182 183 #define HE_SIG_A_MU_DL_INFO_RESERVED_1A_OFFSET 0x00000004 184 #define HE_SIG_A_MU_DL_INFO_RESERVED_1A_LSB 7 185 #define HE_SIG_A_MU_DL_INFO_RESERVED_1A_MSB 7 186 #define HE_SIG_A_MU_DL_INFO_RESERVED_1A_MASK 0x00000080 187 188 189 190 191 #define HE_SIG_A_MU_DL_INFO_NUM_LTF_SYMBOLS_OFFSET 0x00000004 192 #define HE_SIG_A_MU_DL_INFO_NUM_LTF_SYMBOLS_LSB 8 193 #define HE_SIG_A_MU_DL_INFO_NUM_LTF_SYMBOLS_MSB 10 194 #define HE_SIG_A_MU_DL_INFO_NUM_LTF_SYMBOLS_MASK 0x00000700 195 196 197 198 199 #define HE_SIG_A_MU_DL_INFO_LDPC_EXTRA_SYMBOL_OFFSET 0x00000004 200 #define HE_SIG_A_MU_DL_INFO_LDPC_EXTRA_SYMBOL_LSB 11 201 #define HE_SIG_A_MU_DL_INFO_LDPC_EXTRA_SYMBOL_MSB 11 202 #define HE_SIG_A_MU_DL_INFO_LDPC_EXTRA_SYMBOL_MASK 0x00000800 203 204 205 206 207 #define HE_SIG_A_MU_DL_INFO_STBC_OFFSET 0x00000004 208 #define HE_SIG_A_MU_DL_INFO_STBC_LSB 12 209 #define HE_SIG_A_MU_DL_INFO_STBC_MSB 12 210 #define HE_SIG_A_MU_DL_INFO_STBC_MASK 0x00001000 211 212 213 214 215 #define HE_SIG_A_MU_DL_INFO_PACKET_EXTENSION_A_FACTOR_OFFSET 0x00000004 216 #define HE_SIG_A_MU_DL_INFO_PACKET_EXTENSION_A_FACTOR_LSB 13 217 #define HE_SIG_A_MU_DL_INFO_PACKET_EXTENSION_A_FACTOR_MSB 14 218 #define HE_SIG_A_MU_DL_INFO_PACKET_EXTENSION_A_FACTOR_MASK 0x00006000 219 220 221 222 223 #define HE_SIG_A_MU_DL_INFO_PACKET_EXTENSION_PE_DISAMBIGUITY_OFFSET 0x00000004 224 #define HE_SIG_A_MU_DL_INFO_PACKET_EXTENSION_PE_DISAMBIGUITY_LSB 15 225 #define HE_SIG_A_MU_DL_INFO_PACKET_EXTENSION_PE_DISAMBIGUITY_MSB 15 226 #define HE_SIG_A_MU_DL_INFO_PACKET_EXTENSION_PE_DISAMBIGUITY_MASK 0x00008000 227 228 229 230 231 #define HE_SIG_A_MU_DL_INFO_CRC_OFFSET 0x00000004 232 #define HE_SIG_A_MU_DL_INFO_CRC_LSB 16 233 #define HE_SIG_A_MU_DL_INFO_CRC_MSB 19 234 #define HE_SIG_A_MU_DL_INFO_CRC_MASK 0x000f0000 235 236 237 238 239 #define HE_SIG_A_MU_DL_INFO_TAIL_OFFSET 0x00000004 240 #define HE_SIG_A_MU_DL_INFO_TAIL_LSB 20 241 #define HE_SIG_A_MU_DL_INFO_TAIL_MSB 25 242 #define HE_SIG_A_MU_DL_INFO_TAIL_MASK 0x03f00000 243 244 245 246 247 #define HE_SIG_A_MU_DL_INFO_RESERVED_1B_OFFSET 0x00000004 248 #define HE_SIG_A_MU_DL_INFO_RESERVED_1B_LSB 26 249 #define HE_SIG_A_MU_DL_INFO_RESERVED_1B_MSB 30 250 #define HE_SIG_A_MU_DL_INFO_RESERVED_1B_MASK 0x7c000000 251 252 253 254 255 #define HE_SIG_A_MU_DL_INFO_RX_INTEGRITY_CHECK_PASSED_OFFSET 0x00000004 256 #define HE_SIG_A_MU_DL_INFO_RX_INTEGRITY_CHECK_PASSED_LSB 31 257 #define HE_SIG_A_MU_DL_INFO_RX_INTEGRITY_CHECK_PASSED_MSB 31 258 #define HE_SIG_A_MU_DL_INFO_RX_INTEGRITY_CHECK_PASSED_MASK 0x80000000 259 260 261 262 #endif 263