xref: /wlan-driver/fw-api/hw/qcn9224/v2/vht_sig_b_su160_info.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
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_SU160_INFO_H_
27 #define _VHT_SIG_B_SU160_INFO_H_
28 #if !defined(__ASSEMBLER__)
29 #endif
30 
31 #define NUM_OF_DWORDS_VHT_SIG_B_SU160_INFO 8
32 
33 
34 struct vht_sig_b_su160_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              uint32_t length_copy_d                                           : 21,
57                       vhtb_reserved_copy_d                                    :  2,
58                       tail_copy_d                                             :  6,
59                       reserved_4                                              :  2,
60                       rx_ndp_copy_d                                           :  1;
61              uint32_t length_copy_e                                           : 21,
62                       vhtb_reserved_copy_e                                    :  2,
63                       tail_copy_e                                             :  6,
64                       reserved_5                                              :  2,
65                       rx_ndp_copy_e                                           :  1;
66              uint32_t length_copy_f                                           : 21,
67                       vhtb_reserved_copy_f                                    :  2,
68                       tail_copy_f                                             :  6,
69                       reserved_6                                              :  2,
70                       rx_ndp_copy_f                                           :  1;
71              uint32_t length_copy_g                                           : 21,
72                       vhtb_reserved_copy_g                                    :  2,
73                       tail_copy_g                                             :  6,
74                       reserved_7                                              :  2,
75                       rx_ndp_copy_g                                           :  1;
76 #else
77              uint32_t rx_ndp                                                  :  1,
78                       reserved_0                                              :  2,
79                       tail                                                    :  6,
80                       vhtb_reserved                                           :  2,
81                       length                                                  : 21;
82              uint32_t rx_ndp_copy_a                                           :  1,
83                       reserved_1                                              :  2,
84                       tail_copy_a                                             :  6,
85                       vhtb_reserved_copy_a                                    :  2,
86                       length_copy_a                                           : 21;
87              uint32_t rx_ndp_copy_b                                           :  1,
88                       reserved_2                                              :  2,
89                       tail_copy_b                                             :  6,
90                       vhtb_reserved_copy_b                                    :  2,
91                       length_copy_b                                           : 21;
92              uint32_t rx_ndp_copy_c                                           :  1,
93                       reserved_3                                              :  2,
94                       tail_copy_c                                             :  6,
95                       vhtb_reserved_copy_c                                    :  2,
96                       length_copy_c                                           : 21;
97              uint32_t rx_ndp_copy_d                                           :  1,
98                       reserved_4                                              :  2,
99                       tail_copy_d                                             :  6,
100                       vhtb_reserved_copy_d                                    :  2,
101                       length_copy_d                                           : 21;
102              uint32_t rx_ndp_copy_e                                           :  1,
103                       reserved_5                                              :  2,
104                       tail_copy_e                                             :  6,
105                       vhtb_reserved_copy_e                                    :  2,
106                       length_copy_e                                           : 21;
107              uint32_t rx_ndp_copy_f                                           :  1,
108                       reserved_6                                              :  2,
109                       tail_copy_f                                             :  6,
110                       vhtb_reserved_copy_f                                    :  2,
111                       length_copy_f                                           : 21;
112              uint32_t rx_ndp_copy_g                                           :  1,
113                       reserved_7                                              :  2,
114                       tail_copy_g                                             :  6,
115                       vhtb_reserved_copy_g                                    :  2,
116                       length_copy_g                                           : 21;
117 #endif
118 };
119 
120 
121 
122 
123 #define VHT_SIG_B_SU160_INFO_LENGTH_OFFSET                                          0x00000000
124 #define VHT_SIG_B_SU160_INFO_LENGTH_LSB                                             0
125 #define VHT_SIG_B_SU160_INFO_LENGTH_MSB                                             20
126 #define VHT_SIG_B_SU160_INFO_LENGTH_MASK                                            0x001fffff
127 
128 
129 
130 
131 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_OFFSET                                   0x00000000
132 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_LSB                                      21
133 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_MSB                                      22
134 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_MASK                                     0x00600000
135 
136 
137 
138 
139 #define VHT_SIG_B_SU160_INFO_TAIL_OFFSET                                            0x00000000
140 #define VHT_SIG_B_SU160_INFO_TAIL_LSB                                               23
141 #define VHT_SIG_B_SU160_INFO_TAIL_MSB                                               28
142 #define VHT_SIG_B_SU160_INFO_TAIL_MASK                                              0x1f800000
143 
144 
145 
146 
147 #define VHT_SIG_B_SU160_INFO_RESERVED_0_OFFSET                                      0x00000000
148 #define VHT_SIG_B_SU160_INFO_RESERVED_0_LSB                                         29
149 #define VHT_SIG_B_SU160_INFO_RESERVED_0_MSB                                         30
150 #define VHT_SIG_B_SU160_INFO_RESERVED_0_MASK                                        0x60000000
151 
152 
153 
154 
155 #define VHT_SIG_B_SU160_INFO_RX_NDP_OFFSET                                          0x00000000
156 #define VHT_SIG_B_SU160_INFO_RX_NDP_LSB                                             31
157 #define VHT_SIG_B_SU160_INFO_RX_NDP_MSB                                             31
158 #define VHT_SIG_B_SU160_INFO_RX_NDP_MASK                                            0x80000000
159 
160 
161 
162 
163 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_A_OFFSET                                   0x00000004
164 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_A_LSB                                      0
165 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_A_MSB                                      20
166 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_A_MASK                                     0x001fffff
167 
168 
169 
170 
171 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_A_OFFSET                            0x00000004
172 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_A_LSB                               21
173 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_A_MSB                               22
174 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_A_MASK                              0x00600000
175 
176 
177 
178 
179 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_A_OFFSET                                     0x00000004
180 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_A_LSB                                        23
181 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_A_MSB                                        28
182 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_A_MASK                                       0x1f800000
183 
184 
185 
186 
187 #define VHT_SIG_B_SU160_INFO_RESERVED_1_OFFSET                                      0x00000004
188 #define VHT_SIG_B_SU160_INFO_RESERVED_1_LSB                                         29
189 #define VHT_SIG_B_SU160_INFO_RESERVED_1_MSB                                         30
190 #define VHT_SIG_B_SU160_INFO_RESERVED_1_MASK                                        0x60000000
191 
192 
193 
194 
195 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_A_OFFSET                                   0x00000004
196 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_A_LSB                                      31
197 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_A_MSB                                      31
198 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_A_MASK                                     0x80000000
199 
200 
201 
202 
203 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_B_OFFSET                                   0x00000008
204 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_B_LSB                                      0
205 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_B_MSB                                      20
206 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_B_MASK                                     0x001fffff
207 
208 
209 
210 
211 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_B_OFFSET                            0x00000008
212 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_B_LSB                               21
213 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_B_MSB                               22
214 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_B_MASK                              0x00600000
215 
216 
217 
218 
219 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_B_OFFSET                                     0x00000008
220 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_B_LSB                                        23
221 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_B_MSB                                        28
222 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_B_MASK                                       0x1f800000
223 
224 
225 
226 
227 #define VHT_SIG_B_SU160_INFO_RESERVED_2_OFFSET                                      0x00000008
228 #define VHT_SIG_B_SU160_INFO_RESERVED_2_LSB                                         29
229 #define VHT_SIG_B_SU160_INFO_RESERVED_2_MSB                                         30
230 #define VHT_SIG_B_SU160_INFO_RESERVED_2_MASK                                        0x60000000
231 
232 
233 
234 
235 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_B_OFFSET                                   0x00000008
236 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_B_LSB                                      31
237 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_B_MSB                                      31
238 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_B_MASK                                     0x80000000
239 
240 
241 
242 
243 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_C_OFFSET                                   0x0000000c
244 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_C_LSB                                      0
245 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_C_MSB                                      20
246 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_C_MASK                                     0x001fffff
247 
248 
249 
250 
251 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_C_OFFSET                            0x0000000c
252 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_C_LSB                               21
253 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_C_MSB                               22
254 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_C_MASK                              0x00600000
255 
256 
257 
258 
259 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_C_OFFSET                                     0x0000000c
260 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_C_LSB                                        23
261 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_C_MSB                                        28
262 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_C_MASK                                       0x1f800000
263 
264 
265 
266 
267 #define VHT_SIG_B_SU160_INFO_RESERVED_3_OFFSET                                      0x0000000c
268 #define VHT_SIG_B_SU160_INFO_RESERVED_3_LSB                                         29
269 #define VHT_SIG_B_SU160_INFO_RESERVED_3_MSB                                         30
270 #define VHT_SIG_B_SU160_INFO_RESERVED_3_MASK                                        0x60000000
271 
272 
273 
274 
275 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_C_OFFSET                                   0x0000000c
276 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_C_LSB                                      31
277 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_C_MSB                                      31
278 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_C_MASK                                     0x80000000
279 
280 
281 
282 
283 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_D_OFFSET                                   0x00000010
284 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_D_LSB                                      0
285 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_D_MSB                                      20
286 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_D_MASK                                     0x001fffff
287 
288 
289 
290 
291 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_D_OFFSET                            0x00000010
292 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_D_LSB                               21
293 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_D_MSB                               22
294 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_D_MASK                              0x00600000
295 
296 
297 
298 
299 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_D_OFFSET                                     0x00000010
300 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_D_LSB                                        23
301 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_D_MSB                                        28
302 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_D_MASK                                       0x1f800000
303 
304 
305 
306 
307 #define VHT_SIG_B_SU160_INFO_RESERVED_4_OFFSET                                      0x00000010
308 #define VHT_SIG_B_SU160_INFO_RESERVED_4_LSB                                         29
309 #define VHT_SIG_B_SU160_INFO_RESERVED_4_MSB                                         30
310 #define VHT_SIG_B_SU160_INFO_RESERVED_4_MASK                                        0x60000000
311 
312 
313 
314 
315 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_D_OFFSET                                   0x00000010
316 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_D_LSB                                      31
317 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_D_MSB                                      31
318 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_D_MASK                                     0x80000000
319 
320 
321 
322 
323 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_E_OFFSET                                   0x00000014
324 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_E_LSB                                      0
325 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_E_MSB                                      20
326 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_E_MASK                                     0x001fffff
327 
328 
329 
330 
331 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_E_OFFSET                            0x00000014
332 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_E_LSB                               21
333 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_E_MSB                               22
334 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_E_MASK                              0x00600000
335 
336 
337 
338 
339 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_E_OFFSET                                     0x00000014
340 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_E_LSB                                        23
341 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_E_MSB                                        28
342 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_E_MASK                                       0x1f800000
343 
344 
345 
346 
347 #define VHT_SIG_B_SU160_INFO_RESERVED_5_OFFSET                                      0x00000014
348 #define VHT_SIG_B_SU160_INFO_RESERVED_5_LSB                                         29
349 #define VHT_SIG_B_SU160_INFO_RESERVED_5_MSB                                         30
350 #define VHT_SIG_B_SU160_INFO_RESERVED_5_MASK                                        0x60000000
351 
352 
353 
354 
355 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_E_OFFSET                                   0x00000014
356 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_E_LSB                                      31
357 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_E_MSB                                      31
358 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_E_MASK                                     0x80000000
359 
360 
361 
362 
363 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_F_OFFSET                                   0x00000018
364 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_F_LSB                                      0
365 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_F_MSB                                      20
366 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_F_MASK                                     0x001fffff
367 
368 
369 
370 
371 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_F_OFFSET                            0x00000018
372 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_F_LSB                               21
373 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_F_MSB                               22
374 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_F_MASK                              0x00600000
375 
376 
377 
378 
379 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_F_OFFSET                                     0x00000018
380 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_F_LSB                                        23
381 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_F_MSB                                        28
382 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_F_MASK                                       0x1f800000
383 
384 
385 
386 
387 #define VHT_SIG_B_SU160_INFO_RESERVED_6_OFFSET                                      0x00000018
388 #define VHT_SIG_B_SU160_INFO_RESERVED_6_LSB                                         29
389 #define VHT_SIG_B_SU160_INFO_RESERVED_6_MSB                                         30
390 #define VHT_SIG_B_SU160_INFO_RESERVED_6_MASK                                        0x60000000
391 
392 
393 
394 
395 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_F_OFFSET                                   0x00000018
396 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_F_LSB                                      31
397 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_F_MSB                                      31
398 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_F_MASK                                     0x80000000
399 
400 
401 
402 
403 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_G_OFFSET                                   0x0000001c
404 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_G_LSB                                      0
405 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_G_MSB                                      20
406 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_G_MASK                                     0x001fffff
407 
408 
409 
410 
411 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_G_OFFSET                            0x0000001c
412 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_G_LSB                               21
413 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_G_MSB                               22
414 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_G_MASK                              0x00600000
415 
416 
417 
418 
419 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_G_OFFSET                                     0x0000001c
420 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_G_LSB                                        23
421 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_G_MSB                                        28
422 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_G_MASK                                       0x1f800000
423 
424 
425 
426 
427 #define VHT_SIG_B_SU160_INFO_RESERVED_7_OFFSET                                      0x0000001c
428 #define VHT_SIG_B_SU160_INFO_RESERVED_7_LSB                                         29
429 #define VHT_SIG_B_SU160_INFO_RESERVED_7_MSB                                         30
430 #define VHT_SIG_B_SU160_INFO_RESERVED_7_MASK                                        0x60000000
431 
432 
433 
434 
435 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_G_OFFSET                                   0x0000001c
436 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_G_LSB                                      31
437 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_G_MSB                                      31
438 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_G_MASK                                     0x80000000
439 
440 
441 
442 #endif
443