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 _VHT_SIG_B_SU80_INFO_H_ 27 #define _VHT_SIG_B_SU80_INFO_H_ 28 #if !defined(__ASSEMBLER__) 29 #endif 30 31 #define NUM_OF_DWORDS_VHT_SIG_B_SU80_INFO 4 32 33 34 struct vht_sig_b_su80_info { 35 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN 36 uint32_t length : 21, 37 vhtb_reserved : 2, 38 tail : 6, 39 reserved_0 : 2, 40 rx_ndp : 1; 41 uint32_t length_copy_a : 21, 42 vhtb_reserved_copy_a : 2, 43 tail_copy_a : 6, 44 reserved_1 : 2, 45 rx_ndp_copy_a : 1; 46 uint32_t length_copy_b : 21, 47 vhtb_reserved_copy_b : 2, 48 tail_copy_b : 6, 49 reserved_2 : 2, 50 rx_ndp_copy_b : 1; 51 uint32_t length_copy_c : 21, 52 vhtb_reserved_copy_c : 2, 53 tail_copy_c : 6, 54 reserved_3 : 2, 55 rx_ndp_copy_c : 1; 56 #else 57 uint32_t rx_ndp : 1, 58 reserved_0 : 2, 59 tail : 6, 60 vhtb_reserved : 2, 61 length : 21; 62 uint32_t rx_ndp_copy_a : 1, 63 reserved_1 : 2, 64 tail_copy_a : 6, 65 vhtb_reserved_copy_a : 2, 66 length_copy_a : 21; 67 uint32_t rx_ndp_copy_b : 1, 68 reserved_2 : 2, 69 tail_copy_b : 6, 70 vhtb_reserved_copy_b : 2, 71 length_copy_b : 21; 72 uint32_t rx_ndp_copy_c : 1, 73 reserved_3 : 2, 74 tail_copy_c : 6, 75 vhtb_reserved_copy_c : 2, 76 length_copy_c : 21; 77 #endif 78 }; 79 80 81 82 83 #define VHT_SIG_B_SU80_INFO_LENGTH_OFFSET 0x00000000 84 #define VHT_SIG_B_SU80_INFO_LENGTH_LSB 0 85 #define VHT_SIG_B_SU80_INFO_LENGTH_MSB 20 86 #define VHT_SIG_B_SU80_INFO_LENGTH_MASK 0x001fffff 87 88 89 90 91 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_OFFSET 0x00000000 92 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_LSB 21 93 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_MSB 22 94 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_MASK 0x00600000 95 96 97 98 99 #define VHT_SIG_B_SU80_INFO_TAIL_OFFSET 0x00000000 100 #define VHT_SIG_B_SU80_INFO_TAIL_LSB 23 101 #define VHT_SIG_B_SU80_INFO_TAIL_MSB 28 102 #define VHT_SIG_B_SU80_INFO_TAIL_MASK 0x1f800000 103 104 105 106 107 #define VHT_SIG_B_SU80_INFO_RESERVED_0_OFFSET 0x00000000 108 #define VHT_SIG_B_SU80_INFO_RESERVED_0_LSB 29 109 #define VHT_SIG_B_SU80_INFO_RESERVED_0_MSB 30 110 #define VHT_SIG_B_SU80_INFO_RESERVED_0_MASK 0x60000000 111 112 113 114 115 #define VHT_SIG_B_SU80_INFO_RX_NDP_OFFSET 0x00000000 116 #define VHT_SIG_B_SU80_INFO_RX_NDP_LSB 31 117 #define VHT_SIG_B_SU80_INFO_RX_NDP_MSB 31 118 #define VHT_SIG_B_SU80_INFO_RX_NDP_MASK 0x80000000 119 120 121 122 123 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_OFFSET 0x00000004 124 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_LSB 0 125 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_MSB 20 126 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_MASK 0x001fffff 127 128 129 130 131 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_OFFSET 0x00000004 132 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_LSB 21 133 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_MSB 22 134 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_MASK 0x00600000 135 136 137 138 139 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_OFFSET 0x00000004 140 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_LSB 23 141 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_MSB 28 142 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_MASK 0x1f800000 143 144 145 146 147 #define VHT_SIG_B_SU80_INFO_RESERVED_1_OFFSET 0x00000004 148 #define VHT_SIG_B_SU80_INFO_RESERVED_1_LSB 29 149 #define VHT_SIG_B_SU80_INFO_RESERVED_1_MSB 30 150 #define VHT_SIG_B_SU80_INFO_RESERVED_1_MASK 0x60000000 151 152 153 154 155 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_OFFSET 0x00000004 156 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_LSB 31 157 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_MSB 31 158 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_MASK 0x80000000 159 160 161 162 163 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_OFFSET 0x00000008 164 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_LSB 0 165 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_MSB 20 166 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_MASK 0x001fffff 167 168 169 170 171 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_OFFSET 0x00000008 172 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_LSB 21 173 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_MSB 22 174 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_MASK 0x00600000 175 176 177 178 179 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_OFFSET 0x00000008 180 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_LSB 23 181 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_MSB 28 182 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_MASK 0x1f800000 183 184 185 186 187 #define VHT_SIG_B_SU80_INFO_RESERVED_2_OFFSET 0x00000008 188 #define VHT_SIG_B_SU80_INFO_RESERVED_2_LSB 29 189 #define VHT_SIG_B_SU80_INFO_RESERVED_2_MSB 30 190 #define VHT_SIG_B_SU80_INFO_RESERVED_2_MASK 0x60000000 191 192 193 194 195 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_OFFSET 0x00000008 196 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_LSB 31 197 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_MSB 31 198 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_MASK 0x80000000 199 200 201 202 203 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_OFFSET 0x0000000c 204 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_LSB 0 205 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_MSB 20 206 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_MASK 0x001fffff 207 208 209 210 211 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_OFFSET 0x0000000c 212 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_LSB 21 213 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_MSB 22 214 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_MASK 0x00600000 215 216 217 218 219 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_OFFSET 0x0000000c 220 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_LSB 23 221 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_MSB 28 222 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_MASK 0x1f800000 223 224 225 226 227 #define VHT_SIG_B_SU80_INFO_RESERVED_3_OFFSET 0x0000000c 228 #define VHT_SIG_B_SU80_INFO_RESERVED_3_LSB 29 229 #define VHT_SIG_B_SU80_INFO_RESERVED_3_MSB 30 230 #define VHT_SIG_B_SU80_INFO_RESERVED_3_MASK 0x60000000 231 232 233 234 235 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_OFFSET 0x0000000c 236 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_LSB 31 237 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_MSB 31 238 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_MASK 0x80000000 239 240 241 242 #endif 243