xref: /wlan-driver/fw-api/hw/kiwi/v2/vht_sig_b_su160_info.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1 
2 /*
3  * Copyright (c) 2023 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 #ifndef _VHT_SIG_B_SU160_INFO_H_
21 #define _VHT_SIG_B_SU160_INFO_H_
22 #if !defined(__ASSEMBLER__)
23 #endif
24 
25 #define NUM_OF_DWORDS_VHT_SIG_B_SU160_INFO 8
26 
27 struct vht_sig_b_su160_info {
28 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
29              uint32_t length                                                  : 21,
30                       vhtb_reserved                                           :  2,
31                       tail                                                    :  6,
32                       reserved_0                                              :  2,
33                       rx_ndp                                                  :  1;
34              uint32_t length_copy_a                                           : 21,
35                       vhtb_reserved_copy_a                                    :  2,
36                       tail_copy_a                                             :  6,
37                       reserved_1                                              :  2,
38                       rx_ndp_copy_a                                           :  1;
39              uint32_t length_copy_b                                           : 21,
40                       vhtb_reserved_copy_b                                    :  2,
41                       tail_copy_b                                             :  6,
42                       reserved_2                                              :  2,
43                       rx_ndp_copy_b                                           :  1;
44              uint32_t length_copy_c                                           : 21,
45                       vhtb_reserved_copy_c                                    :  2,
46                       tail_copy_c                                             :  6,
47                       reserved_3                                              :  2,
48                       rx_ndp_copy_c                                           :  1;
49              uint32_t length_copy_d                                           : 21,
50                       vhtb_reserved_copy_d                                    :  2,
51                       tail_copy_d                                             :  6,
52                       reserved_4                                              :  2,
53                       rx_ndp_copy_d                                           :  1;
54              uint32_t length_copy_e                                           : 21,
55                       vhtb_reserved_copy_e                                    :  2,
56                       tail_copy_e                                             :  6,
57                       reserved_5                                              :  2,
58                       rx_ndp_copy_e                                           :  1;
59              uint32_t length_copy_f                                           : 21,
60                       vhtb_reserved_copy_f                                    :  2,
61                       tail_copy_f                                             :  6,
62                       reserved_6                                              :  2,
63                       rx_ndp_copy_f                                           :  1;
64              uint32_t length_copy_g                                           : 21,
65                       vhtb_reserved_copy_g                                    :  2,
66                       tail_copy_g                                             :  6,
67                       reserved_7                                              :  2,
68                       rx_ndp_copy_g                                           :  1;
69 #else
70              uint32_t rx_ndp                                                  :  1,
71                       reserved_0                                              :  2,
72                       tail                                                    :  6,
73                       vhtb_reserved                                           :  2,
74                       length                                                  : 21;
75              uint32_t rx_ndp_copy_a                                           :  1,
76                       reserved_1                                              :  2,
77                       tail_copy_a                                             :  6,
78                       vhtb_reserved_copy_a                                    :  2,
79                       length_copy_a                                           : 21;
80              uint32_t rx_ndp_copy_b                                           :  1,
81                       reserved_2                                              :  2,
82                       tail_copy_b                                             :  6,
83                       vhtb_reserved_copy_b                                    :  2,
84                       length_copy_b                                           : 21;
85              uint32_t rx_ndp_copy_c                                           :  1,
86                       reserved_3                                              :  2,
87                       tail_copy_c                                             :  6,
88                       vhtb_reserved_copy_c                                    :  2,
89                       length_copy_c                                           : 21;
90              uint32_t rx_ndp_copy_d                                           :  1,
91                       reserved_4                                              :  2,
92                       tail_copy_d                                             :  6,
93                       vhtb_reserved_copy_d                                    :  2,
94                       length_copy_d                                           : 21;
95              uint32_t rx_ndp_copy_e                                           :  1,
96                       reserved_5                                              :  2,
97                       tail_copy_e                                             :  6,
98                       vhtb_reserved_copy_e                                    :  2,
99                       length_copy_e                                           : 21;
100              uint32_t rx_ndp_copy_f                                           :  1,
101                       reserved_6                                              :  2,
102                       tail_copy_f                                             :  6,
103                       vhtb_reserved_copy_f                                    :  2,
104                       length_copy_f                                           : 21;
105              uint32_t rx_ndp_copy_g                                           :  1,
106                       reserved_7                                              :  2,
107                       tail_copy_g                                             :  6,
108                       vhtb_reserved_copy_g                                    :  2,
109                       length_copy_g                                           : 21;
110 #endif
111 };
112 
113 #define VHT_SIG_B_SU160_INFO_LENGTH_OFFSET                                          0x00000000
114 #define VHT_SIG_B_SU160_INFO_LENGTH_LSB                                             0
115 #define VHT_SIG_B_SU160_INFO_LENGTH_MSB                                             20
116 #define VHT_SIG_B_SU160_INFO_LENGTH_MASK                                            0x001fffff
117 
118 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_OFFSET                                   0x00000000
119 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_LSB                                      21
120 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_MSB                                      22
121 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_MASK                                     0x00600000
122 
123 #define VHT_SIG_B_SU160_INFO_TAIL_OFFSET                                            0x00000000
124 #define VHT_SIG_B_SU160_INFO_TAIL_LSB                                               23
125 #define VHT_SIG_B_SU160_INFO_TAIL_MSB                                               28
126 #define VHT_SIG_B_SU160_INFO_TAIL_MASK                                              0x1f800000
127 
128 #define VHT_SIG_B_SU160_INFO_RESERVED_0_OFFSET                                      0x00000000
129 #define VHT_SIG_B_SU160_INFO_RESERVED_0_LSB                                         29
130 #define VHT_SIG_B_SU160_INFO_RESERVED_0_MSB                                         30
131 #define VHT_SIG_B_SU160_INFO_RESERVED_0_MASK                                        0x60000000
132 
133 #define VHT_SIG_B_SU160_INFO_RX_NDP_OFFSET                                          0x00000000
134 #define VHT_SIG_B_SU160_INFO_RX_NDP_LSB                                             31
135 #define VHT_SIG_B_SU160_INFO_RX_NDP_MSB                                             31
136 #define VHT_SIG_B_SU160_INFO_RX_NDP_MASK                                            0x80000000
137 
138 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_A_OFFSET                                   0x00000004
139 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_A_LSB                                      0
140 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_A_MSB                                      20
141 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_A_MASK                                     0x001fffff
142 
143 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_A_OFFSET                            0x00000004
144 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_A_LSB                               21
145 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_A_MSB                               22
146 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_A_MASK                              0x00600000
147 
148 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_A_OFFSET                                     0x00000004
149 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_A_LSB                                        23
150 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_A_MSB                                        28
151 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_A_MASK                                       0x1f800000
152 
153 #define VHT_SIG_B_SU160_INFO_RESERVED_1_OFFSET                                      0x00000004
154 #define VHT_SIG_B_SU160_INFO_RESERVED_1_LSB                                         29
155 #define VHT_SIG_B_SU160_INFO_RESERVED_1_MSB                                         30
156 #define VHT_SIG_B_SU160_INFO_RESERVED_1_MASK                                        0x60000000
157 
158 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_A_OFFSET                                   0x00000004
159 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_A_LSB                                      31
160 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_A_MSB                                      31
161 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_A_MASK                                     0x80000000
162 
163 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_B_OFFSET                                   0x00000008
164 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_B_LSB                                      0
165 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_B_MSB                                      20
166 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_B_MASK                                     0x001fffff
167 
168 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_B_OFFSET                            0x00000008
169 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_B_LSB                               21
170 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_B_MSB                               22
171 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_B_MASK                              0x00600000
172 
173 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_B_OFFSET                                     0x00000008
174 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_B_LSB                                        23
175 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_B_MSB                                        28
176 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_B_MASK                                       0x1f800000
177 
178 #define VHT_SIG_B_SU160_INFO_RESERVED_2_OFFSET                                      0x00000008
179 #define VHT_SIG_B_SU160_INFO_RESERVED_2_LSB                                         29
180 #define VHT_SIG_B_SU160_INFO_RESERVED_2_MSB                                         30
181 #define VHT_SIG_B_SU160_INFO_RESERVED_2_MASK                                        0x60000000
182 
183 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_B_OFFSET                                   0x00000008
184 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_B_LSB                                      31
185 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_B_MSB                                      31
186 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_B_MASK                                     0x80000000
187 
188 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_C_OFFSET                                   0x0000000c
189 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_C_LSB                                      0
190 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_C_MSB                                      20
191 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_C_MASK                                     0x001fffff
192 
193 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_C_OFFSET                            0x0000000c
194 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_C_LSB                               21
195 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_C_MSB                               22
196 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_C_MASK                              0x00600000
197 
198 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_C_OFFSET                                     0x0000000c
199 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_C_LSB                                        23
200 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_C_MSB                                        28
201 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_C_MASK                                       0x1f800000
202 
203 #define VHT_SIG_B_SU160_INFO_RESERVED_3_OFFSET                                      0x0000000c
204 #define VHT_SIG_B_SU160_INFO_RESERVED_3_LSB                                         29
205 #define VHT_SIG_B_SU160_INFO_RESERVED_3_MSB                                         30
206 #define VHT_SIG_B_SU160_INFO_RESERVED_3_MASK                                        0x60000000
207 
208 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_C_OFFSET                                   0x0000000c
209 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_C_LSB                                      31
210 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_C_MSB                                      31
211 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_C_MASK                                     0x80000000
212 
213 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_D_OFFSET                                   0x00000010
214 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_D_LSB                                      0
215 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_D_MSB                                      20
216 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_D_MASK                                     0x001fffff
217 
218 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_D_OFFSET                            0x00000010
219 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_D_LSB                               21
220 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_D_MSB                               22
221 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_D_MASK                              0x00600000
222 
223 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_D_OFFSET                                     0x00000010
224 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_D_LSB                                        23
225 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_D_MSB                                        28
226 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_D_MASK                                       0x1f800000
227 
228 #define VHT_SIG_B_SU160_INFO_RESERVED_4_OFFSET                                      0x00000010
229 #define VHT_SIG_B_SU160_INFO_RESERVED_4_LSB                                         29
230 #define VHT_SIG_B_SU160_INFO_RESERVED_4_MSB                                         30
231 #define VHT_SIG_B_SU160_INFO_RESERVED_4_MASK                                        0x60000000
232 
233 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_D_OFFSET                                   0x00000010
234 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_D_LSB                                      31
235 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_D_MSB                                      31
236 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_D_MASK                                     0x80000000
237 
238 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_E_OFFSET                                   0x00000014
239 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_E_LSB                                      0
240 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_E_MSB                                      20
241 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_E_MASK                                     0x001fffff
242 
243 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_E_OFFSET                            0x00000014
244 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_E_LSB                               21
245 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_E_MSB                               22
246 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_E_MASK                              0x00600000
247 
248 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_E_OFFSET                                     0x00000014
249 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_E_LSB                                        23
250 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_E_MSB                                        28
251 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_E_MASK                                       0x1f800000
252 
253 #define VHT_SIG_B_SU160_INFO_RESERVED_5_OFFSET                                      0x00000014
254 #define VHT_SIG_B_SU160_INFO_RESERVED_5_LSB                                         29
255 #define VHT_SIG_B_SU160_INFO_RESERVED_5_MSB                                         30
256 #define VHT_SIG_B_SU160_INFO_RESERVED_5_MASK                                        0x60000000
257 
258 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_E_OFFSET                                   0x00000014
259 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_E_LSB                                      31
260 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_E_MSB                                      31
261 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_E_MASK                                     0x80000000
262 
263 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_F_OFFSET                                   0x00000018
264 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_F_LSB                                      0
265 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_F_MSB                                      20
266 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_F_MASK                                     0x001fffff
267 
268 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_F_OFFSET                            0x00000018
269 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_F_LSB                               21
270 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_F_MSB                               22
271 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_F_MASK                              0x00600000
272 
273 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_F_OFFSET                                     0x00000018
274 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_F_LSB                                        23
275 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_F_MSB                                        28
276 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_F_MASK                                       0x1f800000
277 
278 #define VHT_SIG_B_SU160_INFO_RESERVED_6_OFFSET                                      0x00000018
279 #define VHT_SIG_B_SU160_INFO_RESERVED_6_LSB                                         29
280 #define VHT_SIG_B_SU160_INFO_RESERVED_6_MSB                                         30
281 #define VHT_SIG_B_SU160_INFO_RESERVED_6_MASK                                        0x60000000
282 
283 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_F_OFFSET                                   0x00000018
284 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_F_LSB                                      31
285 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_F_MSB                                      31
286 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_F_MASK                                     0x80000000
287 
288 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_G_OFFSET                                   0x0000001c
289 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_G_LSB                                      0
290 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_G_MSB                                      20
291 #define VHT_SIG_B_SU160_INFO_LENGTH_COPY_G_MASK                                     0x001fffff
292 
293 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_G_OFFSET                            0x0000001c
294 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_G_LSB                               21
295 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_G_MSB                               22
296 #define VHT_SIG_B_SU160_INFO_VHTB_RESERVED_COPY_G_MASK                              0x00600000
297 
298 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_G_OFFSET                                     0x0000001c
299 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_G_LSB                                        23
300 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_G_MSB                                        28
301 #define VHT_SIG_B_SU160_INFO_TAIL_COPY_G_MASK                                       0x1f800000
302 
303 #define VHT_SIG_B_SU160_INFO_RESERVED_7_OFFSET                                      0x0000001c
304 #define VHT_SIG_B_SU160_INFO_RESERVED_7_LSB                                         29
305 #define VHT_SIG_B_SU160_INFO_RESERVED_7_MSB                                         30
306 #define VHT_SIG_B_SU160_INFO_RESERVED_7_MASK                                        0x60000000
307 
308 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_G_OFFSET                                   0x0000001c
309 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_G_LSB                                      31
310 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_G_MSB                                      31
311 #define VHT_SIG_B_SU160_INFO_RX_NDP_COPY_G_MASK                                     0x80000000
312 
313 #endif
314