xref: /wlan-driver/fw-api/hw/qca6290/v1/rx_ppdu_end_user_stats_ext.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2017 The Linux Foundation. All rights reserved.
3*5113495bSYour Name  *
4*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for
5*5113495bSYour Name  * any purpose with or without fee is hereby granted, provided that the
6*5113495bSYour Name  * above copyright notice and this permission notice appear in all
7*5113495bSYour Name  * copies.
8*5113495bSYour Name  *
9*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
10*5113495bSYour Name  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
11*5113495bSYour Name  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
12*5113495bSYour Name  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
13*5113495bSYour Name  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14*5113495bSYour Name  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
15*5113495bSYour Name  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16*5113495bSYour Name  * PERFORMANCE OF THIS SOFTWARE.
17*5113495bSYour Name  */
18*5113495bSYour Name 
19*5113495bSYour Name #ifndef _RX_PPDU_END_USER_STATS_EXT_H_
20*5113495bSYour Name #define _RX_PPDU_END_USER_STATS_EXT_H_
21*5113495bSYour Name #if !defined(__ASSEMBLER__)
22*5113495bSYour Name #endif
23*5113495bSYour Name 
24*5113495bSYour Name #include "rx_rxpcu_classification_overview.h"
25*5113495bSYour Name 
26*5113495bSYour Name // ################ START SUMMARY #################
27*5113495bSYour Name //
28*5113495bSYour Name //	Dword	Fields
29*5113495bSYour Name //	0	struct rx_rxpcu_classification_overview rxpcu_classification_details;
30*5113495bSYour Name //	1	fcs_ok_bitmap_95_64[31:0]
31*5113495bSYour Name //	2	fcs_ok_bitmap_127_96[31:0]
32*5113495bSYour Name //	3	fcs_ok_bitmap_159_128[31:0]
33*5113495bSYour Name //	4	fcs_ok_bitmap_191_160[31:0]
34*5113495bSYour Name //	5	fcs_ok_bitmap_223_192[31:0]
35*5113495bSYour Name //	6	fcs_ok_bitmap_255_224[31:0]
36*5113495bSYour Name //
37*5113495bSYour Name // ################ END SUMMARY #################
38*5113495bSYour Name 
39*5113495bSYour Name #define NUM_OF_DWORDS_RX_PPDU_END_USER_STATS_EXT 7
40*5113495bSYour Name 
41*5113495bSYour Name struct rx_ppdu_end_user_stats_ext {
42*5113495bSYour Name     struct            rx_rxpcu_classification_overview                       rxpcu_classification_details;
43*5113495bSYour Name              uint32_t fcs_ok_bitmap_95_64             : 32; //[31:0]
44*5113495bSYour Name              uint32_t fcs_ok_bitmap_127_96            : 32; //[31:0]
45*5113495bSYour Name              uint32_t fcs_ok_bitmap_159_128           : 32; //[31:0]
46*5113495bSYour Name              uint32_t fcs_ok_bitmap_191_160           : 32; //[31:0]
47*5113495bSYour Name              uint32_t fcs_ok_bitmap_223_192           : 32; //[31:0]
48*5113495bSYour Name              uint32_t fcs_ok_bitmap_255_224           : 32; //[31:0]
49*5113495bSYour Name };
50*5113495bSYour Name 
51*5113495bSYour Name /*
52*5113495bSYour Name 
53*5113495bSYour Name struct rx_rxpcu_classification_overview rxpcu_classification_details
54*5113495bSYour Name 
55*5113495bSYour Name 			Details related to what RXPCU classification types of
56*5113495bSYour Name 			MPDUs have been received
57*5113495bSYour Name 
58*5113495bSYour Name fcs_ok_bitmap_95_64
59*5113495bSYour Name 
60*5113495bSYour Name 			Bitmap indicates in order of received MPDUs, which MPDUs
61*5113495bSYour Name 			had an passing FCS or had an error.
62*5113495bSYour Name 
63*5113495bSYour Name 			1: FCS OK
64*5113495bSYour Name 
65*5113495bSYour Name 			0: FCS error
66*5113495bSYour Name 
67*5113495bSYour Name 			<legal all>
68*5113495bSYour Name 
69*5113495bSYour Name fcs_ok_bitmap_127_96
70*5113495bSYour Name 
71*5113495bSYour Name 			Bitmap indicates in order of received MPDUs, which MPDUs
72*5113495bSYour Name 			had an passing FCS or had an error.
73*5113495bSYour Name 
74*5113495bSYour Name 			1: FCS OK
75*5113495bSYour Name 
76*5113495bSYour Name 			0: FCS error
77*5113495bSYour Name 
78*5113495bSYour Name 			<legal all>
79*5113495bSYour Name 
80*5113495bSYour Name fcs_ok_bitmap_159_128
81*5113495bSYour Name 
82*5113495bSYour Name 			Bitmap indicates in order of received MPDUs, which MPDUs
83*5113495bSYour Name 			had an passing FCS or had an error.
84*5113495bSYour Name 
85*5113495bSYour Name 			1: FCS OK
86*5113495bSYour Name 
87*5113495bSYour Name 			0: FCS error
88*5113495bSYour Name 
89*5113495bSYour Name 			<legal all>
90*5113495bSYour Name 
91*5113495bSYour Name fcs_ok_bitmap_191_160
92*5113495bSYour Name 
93*5113495bSYour Name 			Bitmap indicates in order of received MPDUs, which MPDUs
94*5113495bSYour Name 			had an passing FCS or had an error.
95*5113495bSYour Name 
96*5113495bSYour Name 			1: FCS OK
97*5113495bSYour Name 
98*5113495bSYour Name 			0: FCS error
99*5113495bSYour Name 
100*5113495bSYour Name 			<legal all>
101*5113495bSYour Name 
102*5113495bSYour Name fcs_ok_bitmap_223_192
103*5113495bSYour Name 
104*5113495bSYour Name 			Bitmap indicates in order of received MPDUs, which MPDUs
105*5113495bSYour Name 			had an passing FCS or had an error.
106*5113495bSYour Name 
107*5113495bSYour Name 			1: FCS OK
108*5113495bSYour Name 
109*5113495bSYour Name 			0: FCS error
110*5113495bSYour Name 
111*5113495bSYour Name 			<legal all>
112*5113495bSYour Name 
113*5113495bSYour Name fcs_ok_bitmap_255_224
114*5113495bSYour Name 
115*5113495bSYour Name 			Bitmap indicates in order of received MPDUs, which MPDUs
116*5113495bSYour Name 			had an passing FCS or had an error.
117*5113495bSYour Name 
118*5113495bSYour Name 			1: FCS OK
119*5113495bSYour Name 
120*5113495bSYour Name 			0: FCS error
121*5113495bSYour Name 
122*5113495bSYour Name 			<legal all>
123*5113495bSYour Name */
124*5113495bSYour Name 
125*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_0_RX_RXPCU_CLASSIFICATION_OVERVIEW_RXPCU_CLASSIFICATION_DETAILS_OFFSET 0x00000000
126*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_0_RX_RXPCU_CLASSIFICATION_OVERVIEW_RXPCU_CLASSIFICATION_DETAILS_LSB 0
127*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_0_RX_RXPCU_CLASSIFICATION_OVERVIEW_RXPCU_CLASSIFICATION_DETAILS_MASK 0xffffffff
128*5113495bSYour Name 
129*5113495bSYour Name /* Description		RX_PPDU_END_USER_STATS_EXT_1_FCS_OK_BITMAP_95_64
130*5113495bSYour Name 
131*5113495bSYour Name 			Bitmap indicates in order of received MPDUs, which MPDUs
132*5113495bSYour Name 			had an passing FCS or had an error.
133*5113495bSYour Name 
134*5113495bSYour Name 			1: FCS OK
135*5113495bSYour Name 
136*5113495bSYour Name 			0: FCS error
137*5113495bSYour Name 
138*5113495bSYour Name 			<legal all>
139*5113495bSYour Name */
140*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_1_FCS_OK_BITMAP_95_64_OFFSET      0x00000004
141*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_1_FCS_OK_BITMAP_95_64_LSB         0
142*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_1_FCS_OK_BITMAP_95_64_MASK        0xffffffff
143*5113495bSYour Name 
144*5113495bSYour Name /* Description		RX_PPDU_END_USER_STATS_EXT_2_FCS_OK_BITMAP_127_96
145*5113495bSYour Name 
146*5113495bSYour Name 			Bitmap indicates in order of received MPDUs, which MPDUs
147*5113495bSYour Name 			had an passing FCS or had an error.
148*5113495bSYour Name 
149*5113495bSYour Name 			1: FCS OK
150*5113495bSYour Name 
151*5113495bSYour Name 			0: FCS error
152*5113495bSYour Name 
153*5113495bSYour Name 			<legal all>
154*5113495bSYour Name */
155*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_2_FCS_OK_BITMAP_127_96_OFFSET     0x00000008
156*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_2_FCS_OK_BITMAP_127_96_LSB        0
157*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_2_FCS_OK_BITMAP_127_96_MASK       0xffffffff
158*5113495bSYour Name 
159*5113495bSYour Name /* Description		RX_PPDU_END_USER_STATS_EXT_3_FCS_OK_BITMAP_159_128
160*5113495bSYour Name 
161*5113495bSYour Name 			Bitmap indicates in order of received MPDUs, which MPDUs
162*5113495bSYour Name 			had an passing FCS or had an error.
163*5113495bSYour Name 
164*5113495bSYour Name 			1: FCS OK
165*5113495bSYour Name 
166*5113495bSYour Name 			0: FCS error
167*5113495bSYour Name 
168*5113495bSYour Name 			<legal all>
169*5113495bSYour Name */
170*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_3_FCS_OK_BITMAP_159_128_OFFSET    0x0000000c
171*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_3_FCS_OK_BITMAP_159_128_LSB       0
172*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_3_FCS_OK_BITMAP_159_128_MASK      0xffffffff
173*5113495bSYour Name 
174*5113495bSYour Name /* Description		RX_PPDU_END_USER_STATS_EXT_4_FCS_OK_BITMAP_191_160
175*5113495bSYour Name 
176*5113495bSYour Name 			Bitmap indicates in order of received MPDUs, which MPDUs
177*5113495bSYour Name 			had an passing FCS or had an error.
178*5113495bSYour Name 
179*5113495bSYour Name 			1: FCS OK
180*5113495bSYour Name 
181*5113495bSYour Name 			0: FCS error
182*5113495bSYour Name 
183*5113495bSYour Name 			<legal all>
184*5113495bSYour Name */
185*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_4_FCS_OK_BITMAP_191_160_OFFSET    0x00000010
186*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_4_FCS_OK_BITMAP_191_160_LSB       0
187*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_4_FCS_OK_BITMAP_191_160_MASK      0xffffffff
188*5113495bSYour Name 
189*5113495bSYour Name /* Description		RX_PPDU_END_USER_STATS_EXT_5_FCS_OK_BITMAP_223_192
190*5113495bSYour Name 
191*5113495bSYour Name 			Bitmap indicates in order of received MPDUs, which MPDUs
192*5113495bSYour Name 			had an passing FCS or had an error.
193*5113495bSYour Name 
194*5113495bSYour Name 			1: FCS OK
195*5113495bSYour Name 
196*5113495bSYour Name 			0: FCS error
197*5113495bSYour Name 
198*5113495bSYour Name 			<legal all>
199*5113495bSYour Name */
200*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_5_FCS_OK_BITMAP_223_192_OFFSET    0x00000014
201*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_5_FCS_OK_BITMAP_223_192_LSB       0
202*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_5_FCS_OK_BITMAP_223_192_MASK      0xffffffff
203*5113495bSYour Name 
204*5113495bSYour Name /* Description		RX_PPDU_END_USER_STATS_EXT_6_FCS_OK_BITMAP_255_224
205*5113495bSYour Name 
206*5113495bSYour Name 			Bitmap indicates in order of received MPDUs, which MPDUs
207*5113495bSYour Name 			had an passing FCS or had an error.
208*5113495bSYour Name 
209*5113495bSYour Name 			1: FCS OK
210*5113495bSYour Name 
211*5113495bSYour Name 			0: FCS error
212*5113495bSYour Name 
213*5113495bSYour Name 			<legal all>
214*5113495bSYour Name */
215*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_6_FCS_OK_BITMAP_255_224_OFFSET    0x00000018
216*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_6_FCS_OK_BITMAP_255_224_LSB       0
217*5113495bSYour Name #define RX_PPDU_END_USER_STATS_EXT_6_FCS_OK_BITMAP_255_224_MASK      0xffffffff
218*5113495bSYour Name 
219*5113495bSYour Name 
220*5113495bSYour Name #endif // _RX_PPDU_END_USER_STATS_EXT_H_
221