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