1 
2 /*
3  * Copyright (c) 2024, Qualcomm Innovation Center, Inc. All rights reserved.
4  * SPDX-License-Identifier: ISC
5  */
6 
7 
8 
9 
10 
11 
12 
13 
14 
15 
16 
17 
18 
19 #ifndef _PHYRX_COMMON_USER_INFO_H_
20 #define _PHYRX_COMMON_USER_INFO_H_
21 #if !defined(__ASSEMBLER__)
22 #endif
23 
24 #define NUM_OF_DWORDS_PHYRX_COMMON_USER_INFO 4
25 
26 #define NUM_OF_QWORDS_PHYRX_COMMON_USER_INFO 2
27 
28 
29 struct phyrx_common_user_info {
30 #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
31              uint32_t receive_duration                                        : 16,
32                       reserved_0a                                             : 16;
33              uint32_t u_sig_puncture_pattern_encoding                         :  6,
34                       reserved_1a                                             : 26;
35              uint32_t eht_ppdu_type                                           :  2,
36                       bss_color_id                                            :  6,
37                       dl_ul_flag                                              :  1,
38                       txop_duration                                           :  7,
39                       cp_setting                                              :  2,
40                       ltf_size                                                :  2,
41                       spatial_reuse                                           :  4,
42                       rx_ndp                                                  :  1,
43                       dot11be_su_extended                                     :  1,
44                       reserved_2a                                             :  6;
45              uint32_t eht_duplicate                                           :  2,
46                       eht_sig_cmn_field_type                                  :  2,
47                       doppler_indication                                      :  1,
48                       sta_id                                                  : 11,
49                       puncture_bitmap                                         : 16;
50 #else
51              uint32_t reserved_0a                                             : 16,
52                       receive_duration                                        : 16;
53              uint32_t reserved_1a                                             : 26,
54                       u_sig_puncture_pattern_encoding                         :  6;
55              uint32_t reserved_2a                                             :  6,
56                       dot11be_su_extended                                     :  1,
57                       rx_ndp                                                  :  1,
58                       spatial_reuse                                           :  4,
59                       ltf_size                                                :  2,
60                       cp_setting                                              :  2,
61                       txop_duration                                           :  7,
62                       dl_ul_flag                                              :  1,
63                       bss_color_id                                            :  6,
64                       eht_ppdu_type                                           :  2;
65              uint32_t puncture_bitmap                                         : 16,
66                       sta_id                                                  : 11,
67                       doppler_indication                                      :  1,
68                       eht_sig_cmn_field_type                                  :  2,
69                       eht_duplicate                                           :  2;
70 #endif
71 };
72 
73 
74 
75 
76 #define PHYRX_COMMON_USER_INFO_RECEIVE_DURATION_OFFSET                              0x0000000000000000
77 #define PHYRX_COMMON_USER_INFO_RECEIVE_DURATION_LSB                                 0
78 #define PHYRX_COMMON_USER_INFO_RECEIVE_DURATION_MSB                                 15
79 #define PHYRX_COMMON_USER_INFO_RECEIVE_DURATION_MASK                                0x000000000000ffff
80 
81 
82 
83 
84 #define PHYRX_COMMON_USER_INFO_RESERVED_0A_OFFSET                                   0x0000000000000000
85 #define PHYRX_COMMON_USER_INFO_RESERVED_0A_LSB                                      16
86 #define PHYRX_COMMON_USER_INFO_RESERVED_0A_MSB                                      31
87 #define PHYRX_COMMON_USER_INFO_RESERVED_0A_MASK                                     0x00000000ffff0000
88 
89 
90 
91 
92 #define PHYRX_COMMON_USER_INFO_U_SIG_PUNCTURE_PATTERN_ENCODING_OFFSET               0x0000000000000000
93 #define PHYRX_COMMON_USER_INFO_U_SIG_PUNCTURE_PATTERN_ENCODING_LSB                  32
94 #define PHYRX_COMMON_USER_INFO_U_SIG_PUNCTURE_PATTERN_ENCODING_MSB                  37
95 #define PHYRX_COMMON_USER_INFO_U_SIG_PUNCTURE_PATTERN_ENCODING_MASK                 0x0000003f00000000
96 
97 
98 
99 
100 #define PHYRX_COMMON_USER_INFO_RESERVED_1A_OFFSET                                   0x0000000000000000
101 #define PHYRX_COMMON_USER_INFO_RESERVED_1A_LSB                                      38
102 #define PHYRX_COMMON_USER_INFO_RESERVED_1A_MSB                                      63
103 #define PHYRX_COMMON_USER_INFO_RESERVED_1A_MASK                                     0xffffffc000000000
104 
105 
106 
107 
108 #define PHYRX_COMMON_USER_INFO_EHT_PPDU_TYPE_OFFSET                                 0x0000000000000008
109 #define PHYRX_COMMON_USER_INFO_EHT_PPDU_TYPE_LSB                                    0
110 #define PHYRX_COMMON_USER_INFO_EHT_PPDU_TYPE_MSB                                    1
111 #define PHYRX_COMMON_USER_INFO_EHT_PPDU_TYPE_MASK                                   0x0000000000000003
112 
113 
114 
115 
116 #define PHYRX_COMMON_USER_INFO_BSS_COLOR_ID_OFFSET                                  0x0000000000000008
117 #define PHYRX_COMMON_USER_INFO_BSS_COLOR_ID_LSB                                     2
118 #define PHYRX_COMMON_USER_INFO_BSS_COLOR_ID_MSB                                     7
119 #define PHYRX_COMMON_USER_INFO_BSS_COLOR_ID_MASK                                    0x00000000000000fc
120 
121 
122 
123 
124 #define PHYRX_COMMON_USER_INFO_DL_UL_FLAG_OFFSET                                    0x0000000000000008
125 #define PHYRX_COMMON_USER_INFO_DL_UL_FLAG_LSB                                       8
126 #define PHYRX_COMMON_USER_INFO_DL_UL_FLAG_MSB                                       8
127 #define PHYRX_COMMON_USER_INFO_DL_UL_FLAG_MASK                                      0x0000000000000100
128 
129 
130 
131 
132 #define PHYRX_COMMON_USER_INFO_TXOP_DURATION_OFFSET                                 0x0000000000000008
133 #define PHYRX_COMMON_USER_INFO_TXOP_DURATION_LSB                                    9
134 #define PHYRX_COMMON_USER_INFO_TXOP_DURATION_MSB                                    15
135 #define PHYRX_COMMON_USER_INFO_TXOP_DURATION_MASK                                   0x000000000000fe00
136 
137 
138 
139 
140 #define PHYRX_COMMON_USER_INFO_CP_SETTING_OFFSET                                    0x0000000000000008
141 #define PHYRX_COMMON_USER_INFO_CP_SETTING_LSB                                       16
142 #define PHYRX_COMMON_USER_INFO_CP_SETTING_MSB                                       17
143 #define PHYRX_COMMON_USER_INFO_CP_SETTING_MASK                                      0x0000000000030000
144 
145 
146 
147 
148 #define PHYRX_COMMON_USER_INFO_LTF_SIZE_OFFSET                                      0x0000000000000008
149 #define PHYRX_COMMON_USER_INFO_LTF_SIZE_LSB                                         18
150 #define PHYRX_COMMON_USER_INFO_LTF_SIZE_MSB                                         19
151 #define PHYRX_COMMON_USER_INFO_LTF_SIZE_MASK                                        0x00000000000c0000
152 
153 
154 
155 
156 #define PHYRX_COMMON_USER_INFO_SPATIAL_REUSE_OFFSET                                 0x0000000000000008
157 #define PHYRX_COMMON_USER_INFO_SPATIAL_REUSE_LSB                                    20
158 #define PHYRX_COMMON_USER_INFO_SPATIAL_REUSE_MSB                                    23
159 #define PHYRX_COMMON_USER_INFO_SPATIAL_REUSE_MASK                                   0x0000000000f00000
160 
161 
162 
163 
164 #define PHYRX_COMMON_USER_INFO_RX_NDP_OFFSET                                        0x0000000000000008
165 #define PHYRX_COMMON_USER_INFO_RX_NDP_LSB                                           24
166 #define PHYRX_COMMON_USER_INFO_RX_NDP_MSB                                           24
167 #define PHYRX_COMMON_USER_INFO_RX_NDP_MASK                                          0x0000000001000000
168 
169 
170 
171 
172 #define PHYRX_COMMON_USER_INFO_DOT11BE_SU_EXTENDED_OFFSET                           0x0000000000000008
173 #define PHYRX_COMMON_USER_INFO_DOT11BE_SU_EXTENDED_LSB                              25
174 #define PHYRX_COMMON_USER_INFO_DOT11BE_SU_EXTENDED_MSB                              25
175 #define PHYRX_COMMON_USER_INFO_DOT11BE_SU_EXTENDED_MASK                             0x0000000002000000
176 
177 
178 
179 
180 #define PHYRX_COMMON_USER_INFO_RESERVED_2A_OFFSET                                   0x0000000000000008
181 #define PHYRX_COMMON_USER_INFO_RESERVED_2A_LSB                                      26
182 #define PHYRX_COMMON_USER_INFO_RESERVED_2A_MSB                                      31
183 #define PHYRX_COMMON_USER_INFO_RESERVED_2A_MASK                                     0x00000000fc000000
184 
185 
186 
187 
188 #define PHYRX_COMMON_USER_INFO_EHT_DUPLICATE_OFFSET                                 0x0000000000000008
189 #define PHYRX_COMMON_USER_INFO_EHT_DUPLICATE_LSB                                    32
190 #define PHYRX_COMMON_USER_INFO_EHT_DUPLICATE_MSB                                    33
191 #define PHYRX_COMMON_USER_INFO_EHT_DUPLICATE_MASK                                   0x0000000300000000
192 
193 
194 
195 
196 #define PHYRX_COMMON_USER_INFO_EHT_SIG_CMN_FIELD_TYPE_OFFSET                        0x0000000000000008
197 #define PHYRX_COMMON_USER_INFO_EHT_SIG_CMN_FIELD_TYPE_LSB                           34
198 #define PHYRX_COMMON_USER_INFO_EHT_SIG_CMN_FIELD_TYPE_MSB                           35
199 #define PHYRX_COMMON_USER_INFO_EHT_SIG_CMN_FIELD_TYPE_MASK                          0x0000000c00000000
200 
201 
202 
203 
204 #define PHYRX_COMMON_USER_INFO_DOPPLER_INDICATION_OFFSET                            0x0000000000000008
205 #define PHYRX_COMMON_USER_INFO_DOPPLER_INDICATION_LSB                               36
206 #define PHYRX_COMMON_USER_INFO_DOPPLER_INDICATION_MSB                               36
207 #define PHYRX_COMMON_USER_INFO_DOPPLER_INDICATION_MASK                              0x0000001000000000
208 
209 
210 
211 
212 #define PHYRX_COMMON_USER_INFO_STA_ID_OFFSET                                        0x0000000000000008
213 #define PHYRX_COMMON_USER_INFO_STA_ID_LSB                                           37
214 #define PHYRX_COMMON_USER_INFO_STA_ID_MSB                                           47
215 #define PHYRX_COMMON_USER_INFO_STA_ID_MASK                                          0x0000ffe000000000
216 
217 
218 
219 
220 #define PHYRX_COMMON_USER_INFO_PUNCTURE_BITMAP_OFFSET                               0x0000000000000008
221 #define PHYRX_COMMON_USER_INFO_PUNCTURE_BITMAP_LSB                                  48
222 #define PHYRX_COMMON_USER_INFO_PUNCTURE_BITMAP_MSB                                  63
223 #define PHYRX_COMMON_USER_INFO_PUNCTURE_BITMAP_MASK                                 0xffff000000000000
224 
225 
226 
227 #endif
228