xref: /wlan-driver/fw-api/hw/peach/v2/vht_sig_b_su40_info.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 /*
2  * Copyright (c) 2023-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_B_SU40_INFO_H_
19 #define _VHT_SIG_B_SU40_INFO_H_
20 
21 #define NUM_OF_DWORDS_VHT_SIG_B_SU40_INFO 2
22 
23 struct vht_sig_b_su40_info {
24 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
25              uint32_t length                                                  : 19,
26                       vhtb_reserved                                           :  2,
27                       tail                                                    :  6,
28                       reserved                                                :  4,
29                       rx_ndp                                                  :  1;
30              uint32_t length_copy                                             : 19,
31                       vhtb_reserved_copy                                      :  2,
32                       tail_copy                                               :  6,
33                       reserved_copy                                           :  4,
34                       rx_ndp_copy                                             :  1;
35 #else
36              uint32_t rx_ndp                                                  :  1,
37                       reserved                                                :  4,
38                       tail                                                    :  6,
39                       vhtb_reserved                                           :  2,
40                       length                                                  : 19;
41              uint32_t rx_ndp_copy                                             :  1,
42                       reserved_copy                                           :  4,
43                       tail_copy                                               :  6,
44                       vhtb_reserved_copy                                      :  2,
45                       length_copy                                             : 19;
46 #endif
47 };
48 
49 #define VHT_SIG_B_SU40_INFO_LENGTH_OFFSET                                           0x00000000
50 #define VHT_SIG_B_SU40_INFO_LENGTH_LSB                                              0
51 #define VHT_SIG_B_SU40_INFO_LENGTH_MSB                                              18
52 #define VHT_SIG_B_SU40_INFO_LENGTH_MASK                                             0x0007ffff
53 
54 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_OFFSET                                    0x00000000
55 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_LSB                                       19
56 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_MSB                                       20
57 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_MASK                                      0x00180000
58 
59 #define VHT_SIG_B_SU40_INFO_TAIL_OFFSET                                             0x00000000
60 #define VHT_SIG_B_SU40_INFO_TAIL_LSB                                                21
61 #define VHT_SIG_B_SU40_INFO_TAIL_MSB                                                26
62 #define VHT_SIG_B_SU40_INFO_TAIL_MASK                                               0x07e00000
63 
64 #define VHT_SIG_B_SU40_INFO_RESERVED_OFFSET                                         0x00000000
65 #define VHT_SIG_B_SU40_INFO_RESERVED_LSB                                            27
66 #define VHT_SIG_B_SU40_INFO_RESERVED_MSB                                            30
67 #define VHT_SIG_B_SU40_INFO_RESERVED_MASK                                           0x78000000
68 
69 #define VHT_SIG_B_SU40_INFO_RX_NDP_OFFSET                                           0x00000000
70 #define VHT_SIG_B_SU40_INFO_RX_NDP_LSB                                              31
71 #define VHT_SIG_B_SU40_INFO_RX_NDP_MSB                                              31
72 #define VHT_SIG_B_SU40_INFO_RX_NDP_MASK                                             0x80000000
73 
74 #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_OFFSET                                      0x00000004
75 #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_LSB                                         0
76 #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_MSB                                         18
77 #define VHT_SIG_B_SU40_INFO_LENGTH_COPY_MASK                                        0x0007ffff
78 
79 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_OFFSET                               0x00000004
80 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_LSB                                  19
81 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_MSB                                  20
82 #define VHT_SIG_B_SU40_INFO_VHTB_RESERVED_COPY_MASK                                 0x00180000
83 
84 #define VHT_SIG_B_SU40_INFO_TAIL_COPY_OFFSET                                        0x00000004
85 #define VHT_SIG_B_SU40_INFO_TAIL_COPY_LSB                                           21
86 #define VHT_SIG_B_SU40_INFO_TAIL_COPY_MSB                                           26
87 #define VHT_SIG_B_SU40_INFO_TAIL_COPY_MASK                                          0x07e00000
88 
89 #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_OFFSET                                    0x00000004
90 #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_LSB                                       27
91 #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_MSB                                       30
92 #define VHT_SIG_B_SU40_INFO_RESERVED_COPY_MASK                                      0x78000000
93 
94 #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_OFFSET                                      0x00000004
95 #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_LSB                                         31
96 #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_MSB                                         31
97 #define VHT_SIG_B_SU40_INFO_RX_NDP_COPY_MASK                                        0x80000000
98 
99 #endif
100