xref: /wlan-driver/fw-api/hw/qcn9224/v1/vht_sig_b_su80_info.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
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 any
6  * purpose with or without fee is hereby granted, provided that the above
7  * copyright notice and this permission notice appear in all copies.
8  *
9  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16  */
17 
18 
19 
20 
21 
22 
23 
24 
25 
26 
27 #ifndef _VHT_SIG_B_SU80_INFO_H_
28 #define _VHT_SIG_B_SU80_INFO_H_
29 #if !defined(__ASSEMBLER__)
30 #endif
31 
32 #define NUM_OF_DWORDS_VHT_SIG_B_SU80_INFO 4
33 
34 
35 struct vht_sig_b_su80_info {
36 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
37              uint32_t length                                                  : 21, // [20:0]
38                       vhtb_reserved                                           :  2, // [22:21]
39                       tail                                                    :  6, // [28:23]
40                       reserved_0                                              :  2, // [30:29]
41                       rx_ndp                                                  :  1; // [31:31]
42              uint32_t length_copy_a                                           : 21, // [20:0]
43                       vhtb_reserved_copy_a                                    :  2, // [22:21]
44                       tail_copy_a                                             :  6, // [28:23]
45                       reserved_1                                              :  2, // [30:29]
46                       rx_ndp_copy_a                                           :  1; // [31:31]
47              uint32_t length_copy_b                                           : 21, // [20:0]
48                       vhtb_reserved_copy_b                                    :  2, // [22:21]
49                       tail_copy_b                                             :  6, // [28:23]
50                       reserved_2                                              :  2, // [30:29]
51                       rx_ndp_copy_b                                           :  1; // [31:31]
52              uint32_t length_copy_c                                           : 21, // [20:0]
53                       vhtb_reserved_copy_c                                    :  2, // [22:21]
54                       tail_copy_c                                             :  6, // [28:23]
55                       reserved_3                                              :  2, // [30:29]
56                       rx_ndp_copy_c                                           :  1; // [31:31]
57 #else
58              uint32_t rx_ndp                                                  :  1, // [31:31]
59                       reserved_0                                              :  2, // [30:29]
60                       tail                                                    :  6, // [28:23]
61                       vhtb_reserved                                           :  2, // [22:21]
62                       length                                                  : 21; // [20:0]
63              uint32_t rx_ndp_copy_a                                           :  1, // [31:31]
64                       reserved_1                                              :  2, // [30:29]
65                       tail_copy_a                                             :  6, // [28:23]
66                       vhtb_reserved_copy_a                                    :  2, // [22:21]
67                       length_copy_a                                           : 21; // [20:0]
68              uint32_t rx_ndp_copy_b                                           :  1, // [31:31]
69                       reserved_2                                              :  2, // [30:29]
70                       tail_copy_b                                             :  6, // [28:23]
71                       vhtb_reserved_copy_b                                    :  2, // [22:21]
72                       length_copy_b                                           : 21; // [20:0]
73              uint32_t rx_ndp_copy_c                                           :  1, // [31:31]
74                       reserved_3                                              :  2, // [30:29]
75                       tail_copy_c                                             :  6, // [28:23]
76                       vhtb_reserved_copy_c                                    :  2, // [22:21]
77                       length_copy_c                                           : 21; // [20:0]
78 #endif
79 };
80 
81 
82 
83 
84 #define VHT_SIG_B_SU80_INFO_LENGTH_OFFSET                                           0x00000000
85 #define VHT_SIG_B_SU80_INFO_LENGTH_LSB                                              0
86 #define VHT_SIG_B_SU80_INFO_LENGTH_MSB                                              20
87 #define VHT_SIG_B_SU80_INFO_LENGTH_MASK                                             0x001fffff
88 
89 
90 
91 
92 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_OFFSET                                    0x00000000
93 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_LSB                                       21
94 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_MSB                                       22
95 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_MASK                                      0x00600000
96 
97 
98 
99 
100 #define VHT_SIG_B_SU80_INFO_TAIL_OFFSET                                             0x00000000
101 #define VHT_SIG_B_SU80_INFO_TAIL_LSB                                                23
102 #define VHT_SIG_B_SU80_INFO_TAIL_MSB                                                28
103 #define VHT_SIG_B_SU80_INFO_TAIL_MASK                                               0x1f800000
104 
105 
106 
107 
108 #define VHT_SIG_B_SU80_INFO_RESERVED_0_OFFSET                                       0x00000000
109 #define VHT_SIG_B_SU80_INFO_RESERVED_0_LSB                                          29
110 #define VHT_SIG_B_SU80_INFO_RESERVED_0_MSB                                          30
111 #define VHT_SIG_B_SU80_INFO_RESERVED_0_MASK                                         0x60000000
112 
113 
114 
115 
116 #define VHT_SIG_B_SU80_INFO_RX_NDP_OFFSET                                           0x00000000
117 #define VHT_SIG_B_SU80_INFO_RX_NDP_LSB                                              31
118 #define VHT_SIG_B_SU80_INFO_RX_NDP_MSB                                              31
119 #define VHT_SIG_B_SU80_INFO_RX_NDP_MASK                                             0x80000000
120 
121 
122 
123 
124 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_OFFSET                                    0x00000004
125 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_LSB                                       0
126 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_MSB                                       20
127 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_A_MASK                                      0x001fffff
128 
129 
130 
131 
132 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_OFFSET                             0x00000004
133 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_LSB                                21
134 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_MSB                                22
135 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_A_MASK                               0x00600000
136 
137 
138 
139 
140 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_OFFSET                                      0x00000004
141 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_LSB                                         23
142 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_MSB                                         28
143 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_A_MASK                                        0x1f800000
144 
145 
146 
147 
148 #define VHT_SIG_B_SU80_INFO_RESERVED_1_OFFSET                                       0x00000004
149 #define VHT_SIG_B_SU80_INFO_RESERVED_1_LSB                                          29
150 #define VHT_SIG_B_SU80_INFO_RESERVED_1_MSB                                          30
151 #define VHT_SIG_B_SU80_INFO_RESERVED_1_MASK                                         0x60000000
152 
153 
154 
155 
156 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_OFFSET                                    0x00000004
157 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_LSB                                       31
158 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_MSB                                       31
159 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_A_MASK                                      0x80000000
160 
161 
162 
163 
164 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_OFFSET                                    0x00000008
165 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_LSB                                       0
166 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_MSB                                       20
167 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_B_MASK                                      0x001fffff
168 
169 
170 
171 
172 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_OFFSET                             0x00000008
173 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_LSB                                21
174 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_MSB                                22
175 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_B_MASK                               0x00600000
176 
177 
178 
179 
180 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_OFFSET                                      0x00000008
181 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_LSB                                         23
182 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_MSB                                         28
183 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_B_MASK                                        0x1f800000
184 
185 
186 
187 
188 #define VHT_SIG_B_SU80_INFO_RESERVED_2_OFFSET                                       0x00000008
189 #define VHT_SIG_B_SU80_INFO_RESERVED_2_LSB                                          29
190 #define VHT_SIG_B_SU80_INFO_RESERVED_2_MSB                                          30
191 #define VHT_SIG_B_SU80_INFO_RESERVED_2_MASK                                         0x60000000
192 
193 
194 
195 
196 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_OFFSET                                    0x00000008
197 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_LSB                                       31
198 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_MSB                                       31
199 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_B_MASK                                      0x80000000
200 
201 
202 
203 
204 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_OFFSET                                    0x0000000c
205 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_LSB                                       0
206 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_MSB                                       20
207 #define VHT_SIG_B_SU80_INFO_LENGTH_COPY_C_MASK                                      0x001fffff
208 
209 
210 
211 
212 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_OFFSET                             0x0000000c
213 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_LSB                                21
214 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_MSB                                22
215 #define VHT_SIG_B_SU80_INFO_VHTB_RESERVED_COPY_C_MASK                               0x00600000
216 
217 
218 
219 
220 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_OFFSET                                      0x0000000c
221 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_LSB                                         23
222 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_MSB                                         28
223 #define VHT_SIG_B_SU80_INFO_TAIL_COPY_C_MASK                                        0x1f800000
224 
225 
226 
227 
228 #define VHT_SIG_B_SU80_INFO_RESERVED_3_OFFSET                                       0x0000000c
229 #define VHT_SIG_B_SU80_INFO_RESERVED_3_LSB                                          29
230 #define VHT_SIG_B_SU80_INFO_RESERVED_3_MSB                                          30
231 #define VHT_SIG_B_SU80_INFO_RESERVED_3_MASK                                         0x60000000
232 
233 
234 
235 
236 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_OFFSET                                    0x0000000c
237 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_LSB                                       31
238 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_MSB                                       31
239 #define VHT_SIG_B_SU80_INFO_RX_NDP_COPY_C_MASK                                      0x80000000
240 
241 
242 
243 
244 #endif
245