xref: /wlan-driver/fw-api/hw/qcn9224/v2/phyrx_common_user_info.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name 
2*5113495bSYour Name /* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
3*5113495bSYour Name  *
4*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for any
5*5113495bSYour Name  * purpose with or without fee is hereby granted, provided that the above
6*5113495bSYour Name  * copyright notice and this permission notice appear in all copies.
7*5113495bSYour Name  *
8*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9*5113495bSYour Name  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10*5113495bSYour Name  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11*5113495bSYour Name  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12*5113495bSYour Name  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13*5113495bSYour Name  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14*5113495bSYour Name  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*5113495bSYour Name  */
16*5113495bSYour Name 
17*5113495bSYour Name 
18*5113495bSYour Name 
19*5113495bSYour Name 
20*5113495bSYour Name 
21*5113495bSYour Name 
22*5113495bSYour Name 
23*5113495bSYour Name 
24*5113495bSYour Name 
25*5113495bSYour Name 
26*5113495bSYour Name #ifndef _PHYRX_COMMON_USER_INFO_H_
27*5113495bSYour Name #define _PHYRX_COMMON_USER_INFO_H_
28*5113495bSYour Name #if !defined(__ASSEMBLER__)
29*5113495bSYour Name #endif
30*5113495bSYour Name 
31*5113495bSYour Name #define NUM_OF_DWORDS_PHYRX_COMMON_USER_INFO 4
32*5113495bSYour Name 
33*5113495bSYour Name #define NUM_OF_QWORDS_PHYRX_COMMON_USER_INFO 2
34*5113495bSYour Name 
35*5113495bSYour Name 
36*5113495bSYour Name struct phyrx_common_user_info {
37*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
38*5113495bSYour Name              uint32_t receive_duration                                        : 16,
39*5113495bSYour Name                       reserved_0a                                             : 16;
40*5113495bSYour Name              uint32_t u_sig_puncture_pattern_encoding                         :  6,
41*5113495bSYour Name                       reserved_1a                                             : 26;
42*5113495bSYour Name              uint32_t eht_ppdu_type                                           :  2,
43*5113495bSYour Name                       bss_color_id                                            :  6,
44*5113495bSYour Name                       dl_ul_flag                                              :  1,
45*5113495bSYour Name                       txop_duration                                           :  7,
46*5113495bSYour Name                       cp_setting                                              :  2,
47*5113495bSYour Name                       ltf_size                                                :  2,
48*5113495bSYour Name                       spatial_reuse                                           :  4,
49*5113495bSYour Name                       rx_ndp                                                  :  1,
50*5113495bSYour Name                       dot11be_su_extended                                     :  1,
51*5113495bSYour Name                       reserved_2a                                             :  6;
52*5113495bSYour Name              uint32_t eht_duplicate                                           :  2,
53*5113495bSYour Name                       eht_sig_cmn_field_type                                  :  2,
54*5113495bSYour Name                       doppler_indication                                      :  1,
55*5113495bSYour Name                       sta_id                                                  : 11,
56*5113495bSYour Name                       puncture_bitmap                                         : 16;
57*5113495bSYour Name #else
58*5113495bSYour Name              uint32_t reserved_0a                                             : 16,
59*5113495bSYour Name                       receive_duration                                        : 16;
60*5113495bSYour Name              uint32_t reserved_1a                                             : 26,
61*5113495bSYour Name                       u_sig_puncture_pattern_encoding                         :  6;
62*5113495bSYour Name              uint32_t reserved_2a                                             :  6,
63*5113495bSYour Name                       dot11be_su_extended                                     :  1,
64*5113495bSYour Name                       rx_ndp                                                  :  1,
65*5113495bSYour Name                       spatial_reuse                                           :  4,
66*5113495bSYour Name                       ltf_size                                                :  2,
67*5113495bSYour Name                       cp_setting                                              :  2,
68*5113495bSYour Name                       txop_duration                                           :  7,
69*5113495bSYour Name                       dl_ul_flag                                              :  1,
70*5113495bSYour Name                       bss_color_id                                            :  6,
71*5113495bSYour Name                       eht_ppdu_type                                           :  2;
72*5113495bSYour Name              uint32_t puncture_bitmap                                         : 16,
73*5113495bSYour Name                       sta_id                                                  : 11,
74*5113495bSYour Name                       doppler_indication                                      :  1,
75*5113495bSYour Name                       eht_sig_cmn_field_type                                  :  2,
76*5113495bSYour Name                       eht_duplicate                                           :  2;
77*5113495bSYour Name #endif
78*5113495bSYour Name };
79*5113495bSYour Name 
80*5113495bSYour Name 
81*5113495bSYour Name 
82*5113495bSYour Name 
83*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RECEIVE_DURATION_OFFSET                              0x0000000000000000
84*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RECEIVE_DURATION_LSB                                 0
85*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RECEIVE_DURATION_MSB                                 15
86*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RECEIVE_DURATION_MASK                                0x000000000000ffff
87*5113495bSYour Name 
88*5113495bSYour Name 
89*5113495bSYour Name 
90*5113495bSYour Name 
91*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RESERVED_0A_OFFSET                                   0x0000000000000000
92*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RESERVED_0A_LSB                                      16
93*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RESERVED_0A_MSB                                      31
94*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RESERVED_0A_MASK                                     0x00000000ffff0000
95*5113495bSYour Name 
96*5113495bSYour Name 
97*5113495bSYour Name 
98*5113495bSYour Name 
99*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_U_SIG_PUNCTURE_PATTERN_ENCODING_OFFSET               0x0000000000000000
100*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_U_SIG_PUNCTURE_PATTERN_ENCODING_LSB                  32
101*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_U_SIG_PUNCTURE_PATTERN_ENCODING_MSB                  37
102*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_U_SIG_PUNCTURE_PATTERN_ENCODING_MASK                 0x0000003f00000000
103*5113495bSYour Name 
104*5113495bSYour Name 
105*5113495bSYour Name 
106*5113495bSYour Name 
107*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RESERVED_1A_OFFSET                                   0x0000000000000000
108*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RESERVED_1A_LSB                                      38
109*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RESERVED_1A_MSB                                      63
110*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RESERVED_1A_MASK                                     0xffffffc000000000
111*5113495bSYour Name 
112*5113495bSYour Name 
113*5113495bSYour Name 
114*5113495bSYour Name 
115*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_EHT_PPDU_TYPE_OFFSET                                 0x0000000000000008
116*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_EHT_PPDU_TYPE_LSB                                    0
117*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_EHT_PPDU_TYPE_MSB                                    1
118*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_EHT_PPDU_TYPE_MASK                                   0x0000000000000003
119*5113495bSYour Name 
120*5113495bSYour Name 
121*5113495bSYour Name 
122*5113495bSYour Name 
123*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_BSS_COLOR_ID_OFFSET                                  0x0000000000000008
124*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_BSS_COLOR_ID_LSB                                     2
125*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_BSS_COLOR_ID_MSB                                     7
126*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_BSS_COLOR_ID_MASK                                    0x00000000000000fc
127*5113495bSYour Name 
128*5113495bSYour Name 
129*5113495bSYour Name 
130*5113495bSYour Name 
131*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_DL_UL_FLAG_OFFSET                                    0x0000000000000008
132*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_DL_UL_FLAG_LSB                                       8
133*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_DL_UL_FLAG_MSB                                       8
134*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_DL_UL_FLAG_MASK                                      0x0000000000000100
135*5113495bSYour Name 
136*5113495bSYour Name 
137*5113495bSYour Name 
138*5113495bSYour Name 
139*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_TXOP_DURATION_OFFSET                                 0x0000000000000008
140*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_TXOP_DURATION_LSB                                    9
141*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_TXOP_DURATION_MSB                                    15
142*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_TXOP_DURATION_MASK                                   0x000000000000fe00
143*5113495bSYour Name 
144*5113495bSYour Name 
145*5113495bSYour Name 
146*5113495bSYour Name 
147*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_CP_SETTING_OFFSET                                    0x0000000000000008
148*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_CP_SETTING_LSB                                       16
149*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_CP_SETTING_MSB                                       17
150*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_CP_SETTING_MASK                                      0x0000000000030000
151*5113495bSYour Name 
152*5113495bSYour Name 
153*5113495bSYour Name 
154*5113495bSYour Name 
155*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_LTF_SIZE_OFFSET                                      0x0000000000000008
156*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_LTF_SIZE_LSB                                         18
157*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_LTF_SIZE_MSB                                         19
158*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_LTF_SIZE_MASK                                        0x00000000000c0000
159*5113495bSYour Name 
160*5113495bSYour Name 
161*5113495bSYour Name 
162*5113495bSYour Name 
163*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_SPATIAL_REUSE_OFFSET                                 0x0000000000000008
164*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_SPATIAL_REUSE_LSB                                    20
165*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_SPATIAL_REUSE_MSB                                    23
166*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_SPATIAL_REUSE_MASK                                   0x0000000000f00000
167*5113495bSYour Name 
168*5113495bSYour Name 
169*5113495bSYour Name 
170*5113495bSYour Name 
171*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RX_NDP_OFFSET                                        0x0000000000000008
172*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RX_NDP_LSB                                           24
173*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RX_NDP_MSB                                           24
174*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RX_NDP_MASK                                          0x0000000001000000
175*5113495bSYour Name 
176*5113495bSYour Name 
177*5113495bSYour Name 
178*5113495bSYour Name 
179*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_DOT11BE_SU_EXTENDED_OFFSET                           0x0000000000000008
180*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_DOT11BE_SU_EXTENDED_LSB                              25
181*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_DOT11BE_SU_EXTENDED_MSB                              25
182*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_DOT11BE_SU_EXTENDED_MASK                             0x0000000002000000
183*5113495bSYour Name 
184*5113495bSYour Name 
185*5113495bSYour Name 
186*5113495bSYour Name 
187*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RESERVED_2A_OFFSET                                   0x0000000000000008
188*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RESERVED_2A_LSB                                      26
189*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RESERVED_2A_MSB                                      31
190*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_RESERVED_2A_MASK                                     0x00000000fc000000
191*5113495bSYour Name 
192*5113495bSYour Name 
193*5113495bSYour Name 
194*5113495bSYour Name 
195*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_EHT_DUPLICATE_OFFSET                                 0x0000000000000008
196*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_EHT_DUPLICATE_LSB                                    32
197*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_EHT_DUPLICATE_MSB                                    33
198*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_EHT_DUPLICATE_MASK                                   0x0000000300000000
199*5113495bSYour Name 
200*5113495bSYour Name 
201*5113495bSYour Name 
202*5113495bSYour Name 
203*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_EHT_SIG_CMN_FIELD_TYPE_OFFSET                        0x0000000000000008
204*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_EHT_SIG_CMN_FIELD_TYPE_LSB                           34
205*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_EHT_SIG_CMN_FIELD_TYPE_MSB                           35
206*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_EHT_SIG_CMN_FIELD_TYPE_MASK                          0x0000000c00000000
207*5113495bSYour Name 
208*5113495bSYour Name 
209*5113495bSYour Name 
210*5113495bSYour Name 
211*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_DOPPLER_INDICATION_OFFSET                            0x0000000000000008
212*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_DOPPLER_INDICATION_LSB                               36
213*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_DOPPLER_INDICATION_MSB                               36
214*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_DOPPLER_INDICATION_MASK                              0x0000001000000000
215*5113495bSYour Name 
216*5113495bSYour Name 
217*5113495bSYour Name 
218*5113495bSYour Name 
219*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_STA_ID_OFFSET                                        0x0000000000000008
220*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_STA_ID_LSB                                           37
221*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_STA_ID_MSB                                           47
222*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_STA_ID_MASK                                          0x0000ffe000000000
223*5113495bSYour Name 
224*5113495bSYour Name 
225*5113495bSYour Name 
226*5113495bSYour Name 
227*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_PUNCTURE_BITMAP_OFFSET                               0x0000000000000008
228*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_PUNCTURE_BITMAP_LSB                                  48
229*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_PUNCTURE_BITMAP_MSB                                  63
230*5113495bSYour Name #define PHYRX_COMMON_USER_INFO_PUNCTURE_BITMAP_MASK                                 0xffff000000000000
231*5113495bSYour Name 
232*5113495bSYour Name 
233*5113495bSYour Name 
234*5113495bSYour Name #endif
235