xref: /wlan-driver/fw-api/hw/qcn9224/v1/vht_sig_b_mu80_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_MU80_INFO_H_
28 #define _VHT_SIG_B_MU80_INFO_H_
29 #if !defined(__ASSEMBLER__)
30 #endif
31 
32 #define NUM_OF_DWORDS_VHT_SIG_B_MU80_INFO 4
33 
34 
35 struct vht_sig_b_mu80_info {
36 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
37              uint32_t length                                                  : 19, // [18:0]
38                       mcs                                                     :  4, // [22:19]
39                       tail                                                    :  6, // [28:23]
40                       reserved_0                                              :  3; // [31:29]
41              uint32_t length_copy_a                                           : 19, // [18:0]
42                       mcs_copy_a                                              :  4, // [22:19]
43                       tail_copy_a                                             :  6, // [28:23]
44                       reserved_1                                              :  3; // [31:29]
45              uint32_t length_copy_b                                           : 19, // [18:0]
46                       mcs_copy_b                                              :  4, // [22:19]
47                       tail_copy_b                                             :  6, // [28:23]
48                       mu_user_number                                          :  3; // [31:29]
49              uint32_t length_copy_c                                           : 19, // [18:0]
50                       mcs_copy_c                                              :  4, // [22:19]
51                       tail_copy_c                                             :  6, // [28:23]
52                       reserved_3                                              :  3; // [31:29]
53 #else
54              uint32_t reserved_0                                              :  3, // [31:29]
55                       tail                                                    :  6, // [28:23]
56                       mcs                                                     :  4, // [22:19]
57                       length                                                  : 19; // [18:0]
58              uint32_t reserved_1                                              :  3, // [31:29]
59                       tail_copy_a                                             :  6, // [28:23]
60                       mcs_copy_a                                              :  4, // [22:19]
61                       length_copy_a                                           : 19; // [18:0]
62              uint32_t mu_user_number                                          :  3, // [31:29]
63                       tail_copy_b                                             :  6, // [28:23]
64                       mcs_copy_b                                              :  4, // [22:19]
65                       length_copy_b                                           : 19; // [18:0]
66              uint32_t reserved_3                                              :  3, // [31:29]
67                       tail_copy_c                                             :  6, // [28:23]
68                       mcs_copy_c                                              :  4, // [22:19]
69                       length_copy_c                                           : 19; // [18:0]
70 #endif
71 };
72 
73 
74 
75 
76 #define VHT_SIG_B_MU80_INFO_LENGTH_OFFSET                                           0x00000000
77 #define VHT_SIG_B_MU80_INFO_LENGTH_LSB                                              0
78 #define VHT_SIG_B_MU80_INFO_LENGTH_MSB                                              18
79 #define VHT_SIG_B_MU80_INFO_LENGTH_MASK                                             0x0007ffff
80 
81 
82 
83 
84 #define VHT_SIG_B_MU80_INFO_MCS_OFFSET                                              0x00000000
85 #define VHT_SIG_B_MU80_INFO_MCS_LSB                                                 19
86 #define VHT_SIG_B_MU80_INFO_MCS_MSB                                                 22
87 #define VHT_SIG_B_MU80_INFO_MCS_MASK                                                0x00780000
88 
89 
90 
91 
92 #define VHT_SIG_B_MU80_INFO_TAIL_OFFSET                                             0x00000000
93 #define VHT_SIG_B_MU80_INFO_TAIL_LSB                                                23
94 #define VHT_SIG_B_MU80_INFO_TAIL_MSB                                                28
95 #define VHT_SIG_B_MU80_INFO_TAIL_MASK                                               0x1f800000
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 
203 #endif
204