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 _VHT_SIG_A_INFO_H_ 31 #define _VHT_SIG_A_INFO_H_ 32 #if !defined(__ASSEMBLER__) 33 #endif 34 35 #define NUM_OF_DWORDS_VHT_SIG_A_INFO 2 36 37 38 struct vht_sig_a_info { 39 uint32_t bandwidth : 2, 40 vhta_reserved_0 : 1, 41 stbc : 1, 42 group_id : 6, 43 n_sts : 12, 44 txop_ps_not_allowed : 1, 45 vhta_reserved_0b : 1, 46 reserved_0 : 8; 47 uint32_t gi_setting : 2, 48 su_mu_coding : 1, 49 ldpc_extra_symbol : 1, 50 mcs : 4, 51 beamformed : 1, 52 vhta_reserved_1 : 1, 53 crc : 8, 54 tail : 6, 55 reserved_1 : 7, 56 rx_integrity_check_passed : 1; 57 }; 58 59 60 61 62 #define VHT_SIG_A_INFO_BANDWIDTH_OFFSET 0x00000000 63 #define VHT_SIG_A_INFO_BANDWIDTH_LSB 0 64 #define VHT_SIG_A_INFO_BANDWIDTH_MSB 1 65 #define VHT_SIG_A_INFO_BANDWIDTH_MASK 0x00000003 66 67 68 69 70 #define VHT_SIG_A_INFO_VHTA_RESERVED_0_OFFSET 0x00000000 71 #define VHT_SIG_A_INFO_VHTA_RESERVED_0_LSB 2 72 #define VHT_SIG_A_INFO_VHTA_RESERVED_0_MSB 2 73 #define VHT_SIG_A_INFO_VHTA_RESERVED_0_MASK 0x00000004 74 75 76 77 78 #define VHT_SIG_A_INFO_STBC_OFFSET 0x00000000 79 #define VHT_SIG_A_INFO_STBC_LSB 3 80 #define VHT_SIG_A_INFO_STBC_MSB 3 81 #define VHT_SIG_A_INFO_STBC_MASK 0x00000008 82 83 84 85 86 #define VHT_SIG_A_INFO_GROUP_ID_OFFSET 0x00000000 87 #define VHT_SIG_A_INFO_GROUP_ID_LSB 4 88 #define VHT_SIG_A_INFO_GROUP_ID_MSB 9 89 #define VHT_SIG_A_INFO_GROUP_ID_MASK 0x000003f0 90 91 92 93 94 #define VHT_SIG_A_INFO_N_STS_OFFSET 0x00000000 95 #define VHT_SIG_A_INFO_N_STS_LSB 10 96 #define VHT_SIG_A_INFO_N_STS_MSB 21 97 #define VHT_SIG_A_INFO_N_STS_MASK 0x003ffc00 98 99 100 101 102 #define VHT_SIG_A_INFO_TXOP_PS_NOT_ALLOWED_OFFSET 0x00000000 103 #define VHT_SIG_A_INFO_TXOP_PS_NOT_ALLOWED_LSB 22 104 #define VHT_SIG_A_INFO_TXOP_PS_NOT_ALLOWED_MSB 22 105 #define VHT_SIG_A_INFO_TXOP_PS_NOT_ALLOWED_MASK 0x00400000 106 107 108 109 110 #define VHT_SIG_A_INFO_VHTA_RESERVED_0B_OFFSET 0x00000000 111 #define VHT_SIG_A_INFO_VHTA_RESERVED_0B_LSB 23 112 #define VHT_SIG_A_INFO_VHTA_RESERVED_0B_MSB 23 113 #define VHT_SIG_A_INFO_VHTA_RESERVED_0B_MASK 0x00800000 114 115 116 117 118 #define VHT_SIG_A_INFO_RESERVED_0_OFFSET 0x00000000 119 #define VHT_SIG_A_INFO_RESERVED_0_LSB 24 120 #define VHT_SIG_A_INFO_RESERVED_0_MSB 31 121 #define VHT_SIG_A_INFO_RESERVED_0_MASK 0xff000000 122 123 124 125 126 #define VHT_SIG_A_INFO_GI_SETTING_OFFSET 0x00000004 127 #define VHT_SIG_A_INFO_GI_SETTING_LSB 0 128 #define VHT_SIG_A_INFO_GI_SETTING_MSB 1 129 #define VHT_SIG_A_INFO_GI_SETTING_MASK 0x00000003 130 131 132 133 134 #define VHT_SIG_A_INFO_SU_MU_CODING_OFFSET 0x00000004 135 #define VHT_SIG_A_INFO_SU_MU_CODING_LSB 2 136 #define VHT_SIG_A_INFO_SU_MU_CODING_MSB 2 137 #define VHT_SIG_A_INFO_SU_MU_CODING_MASK 0x00000004 138 139 140 141 142 #define VHT_SIG_A_INFO_LDPC_EXTRA_SYMBOL_OFFSET 0x00000004 143 #define VHT_SIG_A_INFO_LDPC_EXTRA_SYMBOL_LSB 3 144 #define VHT_SIG_A_INFO_LDPC_EXTRA_SYMBOL_MSB 3 145 #define VHT_SIG_A_INFO_LDPC_EXTRA_SYMBOL_MASK 0x00000008 146 147 148 149 150 #define VHT_SIG_A_INFO_MCS_OFFSET 0x00000004 151 #define VHT_SIG_A_INFO_MCS_LSB 4 152 #define VHT_SIG_A_INFO_MCS_MSB 7 153 #define VHT_SIG_A_INFO_MCS_MASK 0x000000f0 154 155 156 157 158 #define VHT_SIG_A_INFO_BEAMFORMED_OFFSET 0x00000004 159 #define VHT_SIG_A_INFO_BEAMFORMED_LSB 8 160 #define VHT_SIG_A_INFO_BEAMFORMED_MSB 8 161 #define VHT_SIG_A_INFO_BEAMFORMED_MASK 0x00000100 162 163 164 165 166 #define VHT_SIG_A_INFO_VHTA_RESERVED_1_OFFSET 0x00000004 167 #define VHT_SIG_A_INFO_VHTA_RESERVED_1_LSB 9 168 #define VHT_SIG_A_INFO_VHTA_RESERVED_1_MSB 9 169 #define VHT_SIG_A_INFO_VHTA_RESERVED_1_MASK 0x00000200 170 171 172 173 174 #define VHT_SIG_A_INFO_CRC_OFFSET 0x00000004 175 #define VHT_SIG_A_INFO_CRC_LSB 10 176 #define VHT_SIG_A_INFO_CRC_MSB 17 177 #define VHT_SIG_A_INFO_CRC_MASK 0x0003fc00 178 179 180 181 182 #define VHT_SIG_A_INFO_TAIL_OFFSET 0x00000004 183 #define VHT_SIG_A_INFO_TAIL_LSB 18 184 #define VHT_SIG_A_INFO_TAIL_MSB 23 185 #define VHT_SIG_A_INFO_TAIL_MASK 0x00fc0000 186 187 188 189 190 #define VHT_SIG_A_INFO_RESERVED_1_OFFSET 0x00000004 191 #define VHT_SIG_A_INFO_RESERVED_1_LSB 24 192 #define VHT_SIG_A_INFO_RESERVED_1_MSB 30 193 #define VHT_SIG_A_INFO_RESERVED_1_MASK 0x7f000000 194 195 196 197 198 #define VHT_SIG_A_INFO_RX_INTEGRITY_CHECK_PASSED_OFFSET 0x00000004 199 #define VHT_SIG_A_INFO_RX_INTEGRITY_CHECK_PASSED_LSB 31 200 #define VHT_SIG_A_INFO_RX_INTEGRITY_CHECK_PASSED_MSB 31 201 #define VHT_SIG_A_INFO_RX_INTEGRITY_CHECK_PASSED_MASK 0x80000000 202 203 204 205 #endif 206