xref: /wlan-driver/fw-api/hw/qcn9224/v2/vht_sig_b_mu80_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_MU80_INFO_H_
27 #define _VHT_SIG_B_MU80_INFO_H_
28 #if !defined(__ASSEMBLER__)
29 #endif
30 
31 #define NUM_OF_DWORDS_VHT_SIG_B_MU80_INFO 4
32 
33 
34 struct vht_sig_b_mu80_info {
35 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
36              uint32_t length                                                  : 19,
37                       mcs                                                     :  4,
38                       tail                                                    :  6,
39                       reserved_0                                              :  3;
40              uint32_t length_copy_a                                           : 19,
41                       mcs_copy_a                                              :  4,
42                       tail_copy_a                                             :  6,
43                       reserved_1                                              :  3;
44              uint32_t length_copy_b                                           : 19,
45                       mcs_copy_b                                              :  4,
46                       tail_copy_b                                             :  6,
47                       mu_user_number                                          :  3;
48              uint32_t length_copy_c                                           : 19,
49                       mcs_copy_c                                              :  4,
50                       tail_copy_c                                             :  6,
51                       reserved_3                                              :  3;
52 #else
53              uint32_t reserved_0                                              :  3,
54                       tail                                                    :  6,
55                       mcs                                                     :  4,
56                       length                                                  : 19;
57              uint32_t reserved_1                                              :  3,
58                       tail_copy_a                                             :  6,
59                       mcs_copy_a                                              :  4,
60                       length_copy_a                                           : 19;
61              uint32_t mu_user_number                                          :  3,
62                       tail_copy_b                                             :  6,
63                       mcs_copy_b                                              :  4,
64                       length_copy_b                                           : 19;
65              uint32_t reserved_3                                              :  3,
66                       tail_copy_c                                             :  6,
67                       mcs_copy_c                                              :  4,
68                       length_copy_c                                           : 19;
69 #endif
70 };
71 
72 
73 
74 
75 #define VHT_SIG_B_MU80_INFO_LENGTH_OFFSET                                           0x00000000
76 #define VHT_SIG_B_MU80_INFO_LENGTH_LSB                                              0
77 #define VHT_SIG_B_MU80_INFO_LENGTH_MSB                                              18
78 #define VHT_SIG_B_MU80_INFO_LENGTH_MASK                                             0x0007ffff
79 
80 
81 
82 
83 #define VHT_SIG_B_MU80_INFO_MCS_OFFSET                                              0x00000000
84 #define VHT_SIG_B_MU80_INFO_MCS_LSB                                                 19
85 #define VHT_SIG_B_MU80_INFO_MCS_MSB                                                 22
86 #define VHT_SIG_B_MU80_INFO_MCS_MASK                                                0x00780000
87 
88 
89 
90 
91 #define VHT_SIG_B_MU80_INFO_TAIL_OFFSET                                             0x00000000
92 #define VHT_SIG_B_MU80_INFO_TAIL_LSB                                                23
93 #define VHT_SIG_B_MU80_INFO_TAIL_MSB                                                28
94 #define VHT_SIG_B_MU80_INFO_TAIL_MASK                                               0x1f800000
95 
96 
97 
98 
99 #define VHT_SIG_B_MU80_INFO_RESERVED_0_OFFSET                                       0x00000000
100 #define VHT_SIG_B_MU80_INFO_RESERVED_0_LSB                                          29
101 #define VHT_SIG_B_MU80_INFO_RESERVED_0_MSB                                          31
102 #define VHT_SIG_B_MU80_INFO_RESERVED_0_MASK                                         0xe0000000
103 
104 
105 
106 
107 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_OFFSET                                    0x00000004
108 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_LSB                                       0
109 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_MSB                                       18
110 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_A_MASK                                      0x0007ffff
111 
112 
113 
114 
115 #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_OFFSET                                       0x00000004
116 #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_LSB                                          19
117 #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_MSB                                          22
118 #define VHT_SIG_B_MU80_INFO_MCS_COPY_A_MASK                                         0x00780000
119 
120 
121 
122 
123 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_OFFSET                                      0x00000004
124 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_LSB                                         23
125 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_MSB                                         28
126 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_A_MASK                                        0x1f800000
127 
128 
129 
130 
131 #define VHT_SIG_B_MU80_INFO_RESERVED_1_OFFSET                                       0x00000004
132 #define VHT_SIG_B_MU80_INFO_RESERVED_1_LSB                                          29
133 #define VHT_SIG_B_MU80_INFO_RESERVED_1_MSB                                          31
134 #define VHT_SIG_B_MU80_INFO_RESERVED_1_MASK                                         0xe0000000
135 
136 
137 
138 
139 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_OFFSET                                    0x00000008
140 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_LSB                                       0
141 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_MSB                                       18
142 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_B_MASK                                      0x0007ffff
143 
144 
145 
146 
147 #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_OFFSET                                       0x00000008
148 #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_LSB                                          19
149 #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_MSB                                          22
150 #define VHT_SIG_B_MU80_INFO_MCS_COPY_B_MASK                                         0x00780000
151 
152 
153 
154 
155 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_OFFSET                                      0x00000008
156 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_LSB                                         23
157 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_MSB                                         28
158 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_B_MASK                                        0x1f800000
159 
160 
161 
162 
163 #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_OFFSET                                   0x00000008
164 #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_LSB                                      29
165 #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_MSB                                      31
166 #define VHT_SIG_B_MU80_INFO_MU_USER_NUMBER_MASK                                     0xe0000000
167 
168 
169 
170 
171 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_OFFSET                                    0x0000000c
172 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_LSB                                       0
173 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_MSB                                       18
174 #define VHT_SIG_B_MU80_INFO_LENGTH_COPY_C_MASK                                      0x0007ffff
175 
176 
177 
178 
179 #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_OFFSET                                       0x0000000c
180 #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_LSB                                          19
181 #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_MSB                                          22
182 #define VHT_SIG_B_MU80_INFO_MCS_COPY_C_MASK                                         0x00780000
183 
184 
185 
186 
187 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_OFFSET                                      0x0000000c
188 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_LSB                                         23
189 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_MSB                                         28
190 #define VHT_SIG_B_MU80_INFO_TAIL_COPY_C_MASK                                        0x1f800000
191 
192 
193 
194 
195 #define VHT_SIG_B_MU80_INFO_RESERVED_3_OFFSET                                       0x0000000c
196 #define VHT_SIG_B_MU80_INFO_RESERVED_3_LSB                                          29
197 #define VHT_SIG_B_MU80_INFO_RESERVED_3_MSB                                          31
198 #define VHT_SIG_B_MU80_INFO_RESERVED_3_MASK                                         0xe0000000
199 
200 
201 
202 #endif
203