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