xref: /wlan-driver/fw-api/hw/qca6750/v1/reo_get_queue_stats_status.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2020 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 //
20*5113495bSYour Name // DO NOT EDIT!  This file is automatically generated
21*5113495bSYour Name //               These definitions are tied to a particular hardware layout
22*5113495bSYour Name 
23*5113495bSYour Name 
24*5113495bSYour Name #ifndef _REO_GET_QUEUE_STATS_STATUS_H_
25*5113495bSYour Name #define _REO_GET_QUEUE_STATS_STATUS_H_
26*5113495bSYour Name #if !defined(__ASSEMBLER__)
27*5113495bSYour Name #endif
28*5113495bSYour Name 
29*5113495bSYour Name #include "uniform_reo_status_header.h"
30*5113495bSYour Name 
31*5113495bSYour Name // ################ START SUMMARY #################
32*5113495bSYour Name //
33*5113495bSYour Name //	Dword	Fields
34*5113495bSYour Name //	0-1	struct uniform_reo_status_header status_header;
35*5113495bSYour Name //	2	ssn[11:0], current_index[19:12], reserved_2[31:20]
36*5113495bSYour Name //	3	pn_31_0[31:0]
37*5113495bSYour Name //	4	pn_63_32[31:0]
38*5113495bSYour Name //	5	pn_95_64[31:0]
39*5113495bSYour Name //	6	pn_127_96[31:0]
40*5113495bSYour Name //	7	last_rx_enqueue_timestamp[31:0]
41*5113495bSYour Name //	8	last_rx_dequeue_timestamp[31:0]
42*5113495bSYour Name //	9	rx_bitmap_31_0[31:0]
43*5113495bSYour Name //	10	rx_bitmap_63_32[31:0]
44*5113495bSYour Name //	11	rx_bitmap_95_64[31:0]
45*5113495bSYour Name //	12	rx_bitmap_127_96[31:0]
46*5113495bSYour Name //	13	rx_bitmap_159_128[31:0]
47*5113495bSYour Name //	14	rx_bitmap_191_160[31:0]
48*5113495bSYour Name //	15	rx_bitmap_223_192[31:0]
49*5113495bSYour Name //	16	rx_bitmap_255_224[31:0]
50*5113495bSYour Name //	17	current_mpdu_count[6:0], current_msdu_count[31:7]
51*5113495bSYour Name //	18	reserved_18[3:0], timeout_count[9:4], forward_due_to_bar_count[15:10], duplicate_count[31:16]
52*5113495bSYour Name //	19	frames_in_order_count[23:0], bar_received_count[31:24]
53*5113495bSYour Name //	20	mpdu_frames_processed_count[31:0]
54*5113495bSYour Name //	21	msdu_frames_processed_count[31:0]
55*5113495bSYour Name //	22	total_processed_byte_count[31:0]
56*5113495bSYour Name //	23	late_receive_mpdu_count[11:0], window_jump_2k[15:12], hole_count[31:16]
57*5113495bSYour Name //	24	reserved_24a[27:0], looping_count[31:28]
58*5113495bSYour Name //
59*5113495bSYour Name // ################ END SUMMARY #################
60*5113495bSYour Name 
61*5113495bSYour Name #define NUM_OF_DWORDS_REO_GET_QUEUE_STATS_STATUS 25
62*5113495bSYour Name 
63*5113495bSYour Name struct reo_get_queue_stats_status {
64*5113495bSYour Name     struct            uniform_reo_status_header                       status_header;
65*5113495bSYour Name              uint32_t ssn                             : 12, //[11:0]
66*5113495bSYour Name                       current_index                   :  8, //[19:12]
67*5113495bSYour Name                       reserved_2                      : 12; //[31:20]
68*5113495bSYour Name              uint32_t pn_31_0                         : 32; //[31:0]
69*5113495bSYour Name              uint32_t pn_63_32                        : 32; //[31:0]
70*5113495bSYour Name              uint32_t pn_95_64                        : 32; //[31:0]
71*5113495bSYour Name              uint32_t pn_127_96                       : 32; //[31:0]
72*5113495bSYour Name              uint32_t last_rx_enqueue_timestamp       : 32; //[31:0]
73*5113495bSYour Name              uint32_t last_rx_dequeue_timestamp       : 32; //[31:0]
74*5113495bSYour Name              uint32_t rx_bitmap_31_0                  : 32; //[31:0]
75*5113495bSYour Name              uint32_t rx_bitmap_63_32                 : 32; //[31:0]
76*5113495bSYour Name              uint32_t rx_bitmap_95_64                 : 32; //[31:0]
77*5113495bSYour Name              uint32_t rx_bitmap_127_96                : 32; //[31:0]
78*5113495bSYour Name              uint32_t rx_bitmap_159_128               : 32; //[31:0]
79*5113495bSYour Name              uint32_t rx_bitmap_191_160               : 32; //[31:0]
80*5113495bSYour Name              uint32_t rx_bitmap_223_192               : 32; //[31:0]
81*5113495bSYour Name              uint32_t rx_bitmap_255_224               : 32; //[31:0]
82*5113495bSYour Name              uint32_t current_mpdu_count              :  7, //[6:0]
83*5113495bSYour Name                       current_msdu_count              : 25; //[31:7]
84*5113495bSYour Name              uint32_t reserved_18                     :  4, //[3:0]
85*5113495bSYour Name                       timeout_count                   :  6, //[9:4]
86*5113495bSYour Name                       forward_due_to_bar_count        :  6, //[15:10]
87*5113495bSYour Name                       duplicate_count                 : 16; //[31:16]
88*5113495bSYour Name              uint32_t frames_in_order_count           : 24, //[23:0]
89*5113495bSYour Name                       bar_received_count              :  8; //[31:24]
90*5113495bSYour Name              uint32_t mpdu_frames_processed_count     : 32; //[31:0]
91*5113495bSYour Name              uint32_t msdu_frames_processed_count     : 32; //[31:0]
92*5113495bSYour Name              uint32_t total_processed_byte_count      : 32; //[31:0]
93*5113495bSYour Name              uint32_t late_receive_mpdu_count         : 12, //[11:0]
94*5113495bSYour Name                       window_jump_2k                  :  4, //[15:12]
95*5113495bSYour Name                       hole_count                      : 16; //[31:16]
96*5113495bSYour Name              uint32_t reserved_24a                    : 28, //[27:0]
97*5113495bSYour Name                       looping_count                   :  4; //[31:28]
98*5113495bSYour Name };
99*5113495bSYour Name 
100*5113495bSYour Name /*
101*5113495bSYour Name 
102*5113495bSYour Name struct uniform_reo_status_header status_header
103*5113495bSYour Name 
104*5113495bSYour Name 			Consumer: SW
105*5113495bSYour Name 
106*5113495bSYour Name 			Producer: REO
107*5113495bSYour Name 
108*5113495bSYour Name 
109*5113495bSYour Name 
110*5113495bSYour Name 			Details that can link this status with the original
111*5113495bSYour Name 			command. It also contains info on how long REO took to
112*5113495bSYour Name 			execute this command.
113*5113495bSYour Name 
114*5113495bSYour Name ssn
115*5113495bSYour Name 
116*5113495bSYour Name 			Starting Sequence number of the session, this changes
117*5113495bSYour Name 			whenever window moves. (can be filled by SW then maintained
118*5113495bSYour Name 			by REO)
119*5113495bSYour Name 
120*5113495bSYour Name 			<legal all>
121*5113495bSYour Name 
122*5113495bSYour Name current_index
123*5113495bSYour Name 
124*5113495bSYour Name 			Points to last forwarded packet
125*5113495bSYour Name 
126*5113495bSYour Name 			<legal all>
127*5113495bSYour Name 
128*5113495bSYour Name reserved_2
129*5113495bSYour Name 
130*5113495bSYour Name 			<legal 0>
131*5113495bSYour Name 
132*5113495bSYour Name pn_31_0
133*5113495bSYour Name 
134*5113495bSYour Name 
135*5113495bSYour Name 			<legal all>
136*5113495bSYour Name 
137*5113495bSYour Name pn_63_32
138*5113495bSYour Name 
139*5113495bSYour Name 			Bits [63:32] of the PN number.
140*5113495bSYour Name 
141*5113495bSYour Name 			<legal all>
142*5113495bSYour Name 
143*5113495bSYour Name pn_95_64
144*5113495bSYour Name 
145*5113495bSYour Name 			Bits [95:64] of the PN number.
146*5113495bSYour Name 
147*5113495bSYour Name 			<legal all>
148*5113495bSYour Name 
149*5113495bSYour Name pn_127_96
150*5113495bSYour Name 
151*5113495bSYour Name 			Bits [127:96] of the PN number.
152*5113495bSYour Name 
153*5113495bSYour Name 			<legal all>
154*5113495bSYour Name 
155*5113495bSYour Name last_rx_enqueue_timestamp
156*5113495bSYour Name 
157*5113495bSYour Name 			Timestamp of arrival of the last MPDU for this queue
158*5113495bSYour Name 
159*5113495bSYour Name 			<legal all>
160*5113495bSYour Name 
161*5113495bSYour Name last_rx_dequeue_timestamp
162*5113495bSYour Name 
163*5113495bSYour Name 			Timestamp of forwarding an MPDU
164*5113495bSYour Name 
165*5113495bSYour Name 
166*5113495bSYour Name 
167*5113495bSYour Name 			If the queue is empty when a frame gets received, this
168*5113495bSYour Name 			time shall be initialized to the 'enqueue' timestamp
169*5113495bSYour Name 
170*5113495bSYour Name 
171*5113495bSYour Name 
172*5113495bSYour Name 			Used for aging
173*5113495bSYour Name 
174*5113495bSYour Name 			<legal all>
175*5113495bSYour Name 
176*5113495bSYour Name rx_bitmap_31_0
177*5113495bSYour Name 
178*5113495bSYour Name 			When a bit is set, the corresponding frame is currently
179*5113495bSYour Name 			held in the re-order queue.
180*5113495bSYour Name 
181*5113495bSYour Name 			The bitmap  is Fully managed by HW.
182*5113495bSYour Name 
183*5113495bSYour Name 			SW shall init this to 0, and then never ever change it
184*5113495bSYour Name 
185*5113495bSYour Name 			<legal all>
186*5113495bSYour Name 
187*5113495bSYour Name rx_bitmap_63_32
188*5113495bSYour Name 
189*5113495bSYour Name 			See Rx_bitmap_31_0 description
190*5113495bSYour Name 
191*5113495bSYour Name 			<legal all>
192*5113495bSYour Name 
193*5113495bSYour Name rx_bitmap_95_64
194*5113495bSYour Name 
195*5113495bSYour Name 			See Rx_bitmap_31_0 description
196*5113495bSYour Name 
197*5113495bSYour Name 			<legal all>
198*5113495bSYour Name 
199*5113495bSYour Name rx_bitmap_127_96
200*5113495bSYour Name 
201*5113495bSYour Name 			See Rx_bitmap_31_0 description
202*5113495bSYour Name 
203*5113495bSYour Name 			<legal all>
204*5113495bSYour Name 
205*5113495bSYour Name rx_bitmap_159_128
206*5113495bSYour Name 
207*5113495bSYour Name 			See Rx_bitmap_31_0 description
208*5113495bSYour Name 
209*5113495bSYour Name 			<legal all>
210*5113495bSYour Name 
211*5113495bSYour Name rx_bitmap_191_160
212*5113495bSYour Name 
213*5113495bSYour Name 			See Rx_bitmap_31_0 description
214*5113495bSYour Name 
215*5113495bSYour Name 			<legal all>
216*5113495bSYour Name 
217*5113495bSYour Name rx_bitmap_223_192
218*5113495bSYour Name 
219*5113495bSYour Name 			See Rx_bitmap_31_0 description
220*5113495bSYour Name 
221*5113495bSYour Name 			<legal all>
222*5113495bSYour Name 
223*5113495bSYour Name rx_bitmap_255_224
224*5113495bSYour Name 
225*5113495bSYour Name 			See Rx_bitmap_31_0 description
226*5113495bSYour Name 
227*5113495bSYour Name 			<legal all>
228*5113495bSYour Name 
229*5113495bSYour Name current_mpdu_count
230*5113495bSYour Name 
231*5113495bSYour Name 			The number of MPDUs in the queue.
232*5113495bSYour Name 
233*5113495bSYour Name 
234*5113495bSYour Name 
235*5113495bSYour Name 			<legal all>
236*5113495bSYour Name 
237*5113495bSYour Name current_msdu_count
238*5113495bSYour Name 
239*5113495bSYour Name 			The number of MSDUs in the queue.
240*5113495bSYour Name 
241*5113495bSYour Name 			<legal all>
242*5113495bSYour Name 
243*5113495bSYour Name reserved_18
244*5113495bSYour Name 
245*5113495bSYour Name 			<legal 0>
246*5113495bSYour Name 
247*5113495bSYour Name timeout_count
248*5113495bSYour Name 
249*5113495bSYour Name 			The number of times that REO started forwarding frames
250*5113495bSYour Name 			even though there is a hole in the bitmap. Forwarding reason
251*5113495bSYour Name 			is Timeout
252*5113495bSYour Name 
253*5113495bSYour Name 
254*5113495bSYour Name 
255*5113495bSYour Name 			The counter saturates and freezes at 0x3F
256*5113495bSYour Name 
257*5113495bSYour Name 
258*5113495bSYour Name 
259*5113495bSYour Name 			<legal all>
260*5113495bSYour Name 
261*5113495bSYour Name forward_due_to_bar_count
262*5113495bSYour Name 
263*5113495bSYour Name 			The number of times that REO started forwarding frames
264*5113495bSYour Name 			even though there is a hole in the bitmap. Forwarding reason
265*5113495bSYour Name 			is reception of BAR frame.
266*5113495bSYour Name 
267*5113495bSYour Name 
268*5113495bSYour Name 
269*5113495bSYour Name 			The counter saturates and freezes at 0x3F
270*5113495bSYour Name 
271*5113495bSYour Name 
272*5113495bSYour Name 
273*5113495bSYour Name 			<legal all>
274*5113495bSYour Name 
275*5113495bSYour Name duplicate_count
276*5113495bSYour Name 
277*5113495bSYour Name 			The number of duplicate frames that have been detected
278*5113495bSYour Name 
279*5113495bSYour Name 			<legal all>
280*5113495bSYour Name 
281*5113495bSYour Name frames_in_order_count
282*5113495bSYour Name 
283*5113495bSYour Name 			The number of frames that have been received in order
284*5113495bSYour Name 			(without a hole that prevented them from being forwarded
285*5113495bSYour Name 			immediately)
286*5113495bSYour Name 
287*5113495bSYour Name 
288*5113495bSYour Name 
289*5113495bSYour Name 			This corresponds to the Reorder opcodes:
290*5113495bSYour Name 
291*5113495bSYour Name 			'FWDCUR' and 'FWD BUF'
292*5113495bSYour Name 
293*5113495bSYour Name 
294*5113495bSYour Name 
295*5113495bSYour Name 			<legal all>
296*5113495bSYour Name 
297*5113495bSYour Name bar_received_count
298*5113495bSYour Name 
299*5113495bSYour Name 			The number of times a BAR frame is received.
300*5113495bSYour Name 
301*5113495bSYour Name 
302*5113495bSYour Name 
303*5113495bSYour Name 			This corresponds to the Reorder opcodes with 'DROP'
304*5113495bSYour Name 
305*5113495bSYour Name 
306*5113495bSYour Name 
307*5113495bSYour Name 			The counter saturates and freezes at 0xFF
308*5113495bSYour Name 
309*5113495bSYour Name 			<legal all>
310*5113495bSYour Name 
311*5113495bSYour Name mpdu_frames_processed_count
312*5113495bSYour Name 
313*5113495bSYour Name 			The total number of MPDU frames that have been processed
314*5113495bSYour Name 			by REO. This includes the duplicates.
315*5113495bSYour Name 
316*5113495bSYour Name 
317*5113495bSYour Name 
318*5113495bSYour Name 			<legal all>
319*5113495bSYour Name 
320*5113495bSYour Name msdu_frames_processed_count
321*5113495bSYour Name 
322*5113495bSYour Name 			The total number of MSDU frames that have been processed
323*5113495bSYour Name 			by REO. This includes the duplicates.
324*5113495bSYour Name 
325*5113495bSYour Name 
326*5113495bSYour Name 
327*5113495bSYour Name 			<legal all>
328*5113495bSYour Name 
329*5113495bSYour Name total_processed_byte_count
330*5113495bSYour Name 
331*5113495bSYour Name 			An approximation of the number of bytes received for
332*5113495bSYour Name 			this queue.
333*5113495bSYour Name 
334*5113495bSYour Name 
335*5113495bSYour Name 
336*5113495bSYour Name 			In 64 byte units
337*5113495bSYour Name 
338*5113495bSYour Name 			<legal all>
339*5113495bSYour Name 
340*5113495bSYour Name late_receive_mpdu_count
341*5113495bSYour Name 
342*5113495bSYour Name 			The number of MPDUs received after the window had
343*5113495bSYour Name 			already moved on. The 'late' sequence window is defined as
344*5113495bSYour Name 			(Window SSN - 256) - (Window SSN - 1)
345*5113495bSYour Name 
346*5113495bSYour Name 
347*5113495bSYour Name 
348*5113495bSYour Name 			This corresponds with Out of order detection in
349*5113495bSYour Name 			duplicate detect FSM
350*5113495bSYour Name 
351*5113495bSYour Name 
352*5113495bSYour Name 
353*5113495bSYour Name 			The counter saturates and freezes at 0xFFF
354*5113495bSYour Name 
355*5113495bSYour Name 
356*5113495bSYour Name 
357*5113495bSYour Name 			<legal all>
358*5113495bSYour Name 
359*5113495bSYour Name window_jump_2k
360*5113495bSYour Name 
361*5113495bSYour Name 			The number of times the window moved more then 2K
362*5113495bSYour Name 
363*5113495bSYour Name 
364*5113495bSYour Name 
365*5113495bSYour Name 			The counter saturates and freezes at 0xF
366*5113495bSYour Name 
367*5113495bSYour Name 
368*5113495bSYour Name 
369*5113495bSYour Name 			(Note: field name can not start with number: previous
370*5113495bSYour Name 			2k_window_jump)
371*5113495bSYour Name 
372*5113495bSYour Name 
373*5113495bSYour Name 
374*5113495bSYour Name 			<legal all>
375*5113495bSYour Name 
376*5113495bSYour Name hole_count
377*5113495bSYour Name 
378*5113495bSYour Name 			The number of times a hole was created in the receive
379*5113495bSYour Name 			bitmap.
380*5113495bSYour Name 
381*5113495bSYour Name 
382*5113495bSYour Name 
383*5113495bSYour Name 			This corresponds to the Reorder opcodes with 'QCUR'
384*5113495bSYour Name 
385*5113495bSYour Name 
386*5113495bSYour Name 
387*5113495bSYour Name 			<legal all>
388*5113495bSYour Name 
389*5113495bSYour Name reserved_24a
390*5113495bSYour Name 
391*5113495bSYour Name 			<legal 0>
392*5113495bSYour Name 
393*5113495bSYour Name looping_count
394*5113495bSYour Name 
395*5113495bSYour Name 			A count value that indicates the number of times the
396*5113495bSYour Name 			producer of entries into this Ring has looped around the
397*5113495bSYour Name 			ring.
398*5113495bSYour Name 
399*5113495bSYour Name 			At initialization time, this value is set to 0. On the
400*5113495bSYour Name 			first loop, this value is set to 1. After the max value is
401*5113495bSYour Name 			reached allowed by the number of bits for this field, the
402*5113495bSYour Name 			count value continues with 0 again.
403*5113495bSYour Name 
404*5113495bSYour Name 
405*5113495bSYour Name 
406*5113495bSYour Name 			In case SW is the consumer of the ring entries, it can
407*5113495bSYour Name 			use this field to figure out up to where the producer of
408*5113495bSYour Name 			entries has created new entries. This eliminates the need to
409*5113495bSYour Name 			check where the head pointer' of the ring is located once
410*5113495bSYour Name 			the SW starts processing an interrupt indicating that new
411*5113495bSYour Name 			entries have been put into this ring...
412*5113495bSYour Name 
413*5113495bSYour Name 
414*5113495bSYour Name 
415*5113495bSYour Name 			Also note that SW if it wants only needs to look at the
416*5113495bSYour Name 			LSB bit of this count value.
417*5113495bSYour Name 
418*5113495bSYour Name 			<legal all>
419*5113495bSYour Name */
420*5113495bSYour Name 
421*5113495bSYour Name 
422*5113495bSYour Name  /* EXTERNAL REFERENCE : struct uniform_reo_status_header status_header */
423*5113495bSYour Name 
424*5113495bSYour Name 
425*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_0_STATUS_HEADER_REO_STATUS_NUMBER
426*5113495bSYour Name 
427*5113495bSYour Name 			Consumer: SW , DEBUG
428*5113495bSYour Name 
429*5113495bSYour Name 			Producer: REO
430*5113495bSYour Name 
431*5113495bSYour Name 
432*5113495bSYour Name 
433*5113495bSYour Name 			The value in this field is equal to value of the
434*5113495bSYour Name 			'REO_CMD_Number' field the REO command
435*5113495bSYour Name 
436*5113495bSYour Name 
437*5113495bSYour Name 
438*5113495bSYour Name 			This field helps to correlate the statuses with the REO
439*5113495bSYour Name 			commands.
440*5113495bSYour Name 
441*5113495bSYour Name 
442*5113495bSYour Name 
443*5113495bSYour Name 			<legal all>
444*5113495bSYour Name */
445*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_0_STATUS_HEADER_REO_STATUS_NUMBER_OFFSET 0x00000000
446*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_0_STATUS_HEADER_REO_STATUS_NUMBER_LSB 0
447*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_0_STATUS_HEADER_REO_STATUS_NUMBER_MASK 0x0000ffff
448*5113495bSYour Name 
449*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_0_STATUS_HEADER_CMD_EXECUTION_TIME
450*5113495bSYour Name 
451*5113495bSYour Name 			Consumer: DEBUG
452*5113495bSYour Name 
453*5113495bSYour Name 			Producer: REO
454*5113495bSYour Name 
455*5113495bSYour Name 
456*5113495bSYour Name 
457*5113495bSYour Name 			The amount of time REO took to excecute the command.
458*5113495bSYour Name 			Note that this time does not include the duration of the
459*5113495bSYour Name 			command waiting in the command ring, before the execution
460*5113495bSYour Name 			started.
461*5113495bSYour Name 
462*5113495bSYour Name 
463*5113495bSYour Name 
464*5113495bSYour Name 			In us.
465*5113495bSYour Name 
466*5113495bSYour Name 
467*5113495bSYour Name 
468*5113495bSYour Name 			<legal all>
469*5113495bSYour Name */
470*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_0_STATUS_HEADER_CMD_EXECUTION_TIME_OFFSET 0x00000000
471*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_0_STATUS_HEADER_CMD_EXECUTION_TIME_LSB 16
472*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_0_STATUS_HEADER_CMD_EXECUTION_TIME_MASK 0x03ff0000
473*5113495bSYour Name 
474*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_0_STATUS_HEADER_REO_CMD_EXECUTION_STATUS
475*5113495bSYour Name 
476*5113495bSYour Name 			Consumer: DEBUG
477*5113495bSYour Name 
478*5113495bSYour Name 			Producer: REO
479*5113495bSYour Name 
480*5113495bSYour Name 
481*5113495bSYour Name 
482*5113495bSYour Name 			Execution status of the command.
483*5113495bSYour Name 
484*5113495bSYour Name 
485*5113495bSYour Name 
486*5113495bSYour Name 			<enum 0 reo_successful_execution> Command has
487*5113495bSYour Name 			successfully be executed
488*5113495bSYour Name 
489*5113495bSYour Name 			<enum 1 reo_blocked_execution> Command could not be
490*5113495bSYour Name 			executed as the queue or cache was blocked
491*5113495bSYour Name 
492*5113495bSYour Name 			<enum 2 reo_failed_execution> Command has encountered
493*5113495bSYour Name 			problems when executing, like the queue descriptor not being
494*5113495bSYour Name 			valid. None of the status fields in the entire STATUS TLV
495*5113495bSYour Name 			are valid.
496*5113495bSYour Name 
497*5113495bSYour Name 			<enum 3 reo_resource_blocked> Command is NOT  executed
498*5113495bSYour Name 			because one or more descriptors were blocked. This is SW
499*5113495bSYour Name 			programming mistake.
500*5113495bSYour Name 
501*5113495bSYour Name 			None of the status fields in the entire STATUS TLV are
502*5113495bSYour Name 			valid.
503*5113495bSYour Name 
504*5113495bSYour Name 
505*5113495bSYour Name 
506*5113495bSYour Name 			<legal  0-3>
507*5113495bSYour Name */
508*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_0_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_OFFSET 0x00000000
509*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_0_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_LSB 26
510*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_0_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_MASK 0x0c000000
511*5113495bSYour Name 
512*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_0_STATUS_HEADER_RESERVED_0A
513*5113495bSYour Name 
514*5113495bSYour Name 			<legal 0>
515*5113495bSYour Name */
516*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_0_STATUS_HEADER_RESERVED_0A_OFFSET 0x00000000
517*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_0_STATUS_HEADER_RESERVED_0A_LSB   28
518*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_0_STATUS_HEADER_RESERVED_0A_MASK  0xf0000000
519*5113495bSYour Name 
520*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_1_STATUS_HEADER_TIMESTAMP
521*5113495bSYour Name 
522*5113495bSYour Name 			Timestamp at the moment that this status report is
523*5113495bSYour Name 			written.
524*5113495bSYour Name 
525*5113495bSYour Name 
526*5113495bSYour Name 
527*5113495bSYour Name 			<legal all>
528*5113495bSYour Name */
529*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_1_STATUS_HEADER_TIMESTAMP_OFFSET  0x00000004
530*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_1_STATUS_HEADER_TIMESTAMP_LSB     0
531*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_1_STATUS_HEADER_TIMESTAMP_MASK    0xffffffff
532*5113495bSYour Name 
533*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_2_SSN
534*5113495bSYour Name 
535*5113495bSYour Name 			Starting Sequence number of the session, this changes
536*5113495bSYour Name 			whenever window moves. (can be filled by SW then maintained
537*5113495bSYour Name 			by REO)
538*5113495bSYour Name 
539*5113495bSYour Name 			<legal all>
540*5113495bSYour Name */
541*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_2_SSN_OFFSET                      0x00000008
542*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_2_SSN_LSB                         0
543*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_2_SSN_MASK                        0x00000fff
544*5113495bSYour Name 
545*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_2_CURRENT_INDEX
546*5113495bSYour Name 
547*5113495bSYour Name 			Points to last forwarded packet
548*5113495bSYour Name 
549*5113495bSYour Name 			<legal all>
550*5113495bSYour Name */
551*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_2_CURRENT_INDEX_OFFSET            0x00000008
552*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_2_CURRENT_INDEX_LSB               12
553*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_2_CURRENT_INDEX_MASK              0x000ff000
554*5113495bSYour Name 
555*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_2_RESERVED_2
556*5113495bSYour Name 
557*5113495bSYour Name 			<legal 0>
558*5113495bSYour Name */
559*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_2_RESERVED_2_OFFSET               0x00000008
560*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_2_RESERVED_2_LSB                  20
561*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_2_RESERVED_2_MASK                 0xfff00000
562*5113495bSYour Name 
563*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_3_PN_31_0
564*5113495bSYour Name 
565*5113495bSYour Name 
566*5113495bSYour Name 			<legal all>
567*5113495bSYour Name */
568*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_3_PN_31_0_OFFSET                  0x0000000c
569*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_3_PN_31_0_LSB                     0
570*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_3_PN_31_0_MASK                    0xffffffff
571*5113495bSYour Name 
572*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_4_PN_63_32
573*5113495bSYour Name 
574*5113495bSYour Name 			Bits [63:32] of the PN number.
575*5113495bSYour Name 
576*5113495bSYour Name 			<legal all>
577*5113495bSYour Name */
578*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_4_PN_63_32_OFFSET                 0x00000010
579*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_4_PN_63_32_LSB                    0
580*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_4_PN_63_32_MASK                   0xffffffff
581*5113495bSYour Name 
582*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_5_PN_95_64
583*5113495bSYour Name 
584*5113495bSYour Name 			Bits [95:64] of the PN number.
585*5113495bSYour Name 
586*5113495bSYour Name 			<legal all>
587*5113495bSYour Name */
588*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_5_PN_95_64_OFFSET                 0x00000014
589*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_5_PN_95_64_LSB                    0
590*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_5_PN_95_64_MASK                   0xffffffff
591*5113495bSYour Name 
592*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_6_PN_127_96
593*5113495bSYour Name 
594*5113495bSYour Name 			Bits [127:96] of the PN number.
595*5113495bSYour Name 
596*5113495bSYour Name 			<legal all>
597*5113495bSYour Name */
598*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_6_PN_127_96_OFFSET                0x00000018
599*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_6_PN_127_96_LSB                   0
600*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_6_PN_127_96_MASK                  0xffffffff
601*5113495bSYour Name 
602*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_7_LAST_RX_ENQUEUE_TIMESTAMP
603*5113495bSYour Name 
604*5113495bSYour Name 			Timestamp of arrival of the last MPDU for this queue
605*5113495bSYour Name 
606*5113495bSYour Name 			<legal all>
607*5113495bSYour Name */
608*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_7_LAST_RX_ENQUEUE_TIMESTAMP_OFFSET 0x0000001c
609*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_7_LAST_RX_ENQUEUE_TIMESTAMP_LSB   0
610*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_7_LAST_RX_ENQUEUE_TIMESTAMP_MASK  0xffffffff
611*5113495bSYour Name 
612*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_8_LAST_RX_DEQUEUE_TIMESTAMP
613*5113495bSYour Name 
614*5113495bSYour Name 			Timestamp of forwarding an MPDU
615*5113495bSYour Name 
616*5113495bSYour Name 
617*5113495bSYour Name 
618*5113495bSYour Name 			If the queue is empty when a frame gets received, this
619*5113495bSYour Name 			time shall be initialized to the 'enqueue' timestamp
620*5113495bSYour Name 
621*5113495bSYour Name 
622*5113495bSYour Name 
623*5113495bSYour Name 			Used for aging
624*5113495bSYour Name 
625*5113495bSYour Name 			<legal all>
626*5113495bSYour Name */
627*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_8_LAST_RX_DEQUEUE_TIMESTAMP_OFFSET 0x00000020
628*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_8_LAST_RX_DEQUEUE_TIMESTAMP_LSB   0
629*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_8_LAST_RX_DEQUEUE_TIMESTAMP_MASK  0xffffffff
630*5113495bSYour Name 
631*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_9_RX_BITMAP_31_0
632*5113495bSYour Name 
633*5113495bSYour Name 			When a bit is set, the corresponding frame is currently
634*5113495bSYour Name 			held in the re-order queue.
635*5113495bSYour Name 
636*5113495bSYour Name 			The bitmap  is Fully managed by HW.
637*5113495bSYour Name 
638*5113495bSYour Name 			SW shall init this to 0, and then never ever change it
639*5113495bSYour Name 
640*5113495bSYour Name 			<legal all>
641*5113495bSYour Name */
642*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_9_RX_BITMAP_31_0_OFFSET           0x00000024
643*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_9_RX_BITMAP_31_0_LSB              0
644*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_9_RX_BITMAP_31_0_MASK             0xffffffff
645*5113495bSYour Name 
646*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_10_RX_BITMAP_63_32
647*5113495bSYour Name 
648*5113495bSYour Name 			See Rx_bitmap_31_0 description
649*5113495bSYour Name 
650*5113495bSYour Name 			<legal all>
651*5113495bSYour Name */
652*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_10_RX_BITMAP_63_32_OFFSET         0x00000028
653*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_10_RX_BITMAP_63_32_LSB            0
654*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_10_RX_BITMAP_63_32_MASK           0xffffffff
655*5113495bSYour Name 
656*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_11_RX_BITMAP_95_64
657*5113495bSYour Name 
658*5113495bSYour Name 			See Rx_bitmap_31_0 description
659*5113495bSYour Name 
660*5113495bSYour Name 			<legal all>
661*5113495bSYour Name */
662*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_11_RX_BITMAP_95_64_OFFSET         0x0000002c
663*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_11_RX_BITMAP_95_64_LSB            0
664*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_11_RX_BITMAP_95_64_MASK           0xffffffff
665*5113495bSYour Name 
666*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_12_RX_BITMAP_127_96
667*5113495bSYour Name 
668*5113495bSYour Name 			See Rx_bitmap_31_0 description
669*5113495bSYour Name 
670*5113495bSYour Name 			<legal all>
671*5113495bSYour Name */
672*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_12_RX_BITMAP_127_96_OFFSET        0x00000030
673*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_12_RX_BITMAP_127_96_LSB           0
674*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_12_RX_BITMAP_127_96_MASK          0xffffffff
675*5113495bSYour Name 
676*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_13_RX_BITMAP_159_128
677*5113495bSYour Name 
678*5113495bSYour Name 			See Rx_bitmap_31_0 description
679*5113495bSYour Name 
680*5113495bSYour Name 			<legal all>
681*5113495bSYour Name */
682*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_13_RX_BITMAP_159_128_OFFSET       0x00000034
683*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_13_RX_BITMAP_159_128_LSB          0
684*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_13_RX_BITMAP_159_128_MASK         0xffffffff
685*5113495bSYour Name 
686*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_14_RX_BITMAP_191_160
687*5113495bSYour Name 
688*5113495bSYour Name 			See Rx_bitmap_31_0 description
689*5113495bSYour Name 
690*5113495bSYour Name 			<legal all>
691*5113495bSYour Name */
692*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_14_RX_BITMAP_191_160_OFFSET       0x00000038
693*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_14_RX_BITMAP_191_160_LSB          0
694*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_14_RX_BITMAP_191_160_MASK         0xffffffff
695*5113495bSYour Name 
696*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_15_RX_BITMAP_223_192
697*5113495bSYour Name 
698*5113495bSYour Name 			See Rx_bitmap_31_0 description
699*5113495bSYour Name 
700*5113495bSYour Name 			<legal all>
701*5113495bSYour Name */
702*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_15_RX_BITMAP_223_192_OFFSET       0x0000003c
703*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_15_RX_BITMAP_223_192_LSB          0
704*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_15_RX_BITMAP_223_192_MASK         0xffffffff
705*5113495bSYour Name 
706*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_16_RX_BITMAP_255_224
707*5113495bSYour Name 
708*5113495bSYour Name 			See Rx_bitmap_31_0 description
709*5113495bSYour Name 
710*5113495bSYour Name 			<legal all>
711*5113495bSYour Name */
712*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_16_RX_BITMAP_255_224_OFFSET       0x00000040
713*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_16_RX_BITMAP_255_224_LSB          0
714*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_16_RX_BITMAP_255_224_MASK         0xffffffff
715*5113495bSYour Name 
716*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_17_CURRENT_MPDU_COUNT
717*5113495bSYour Name 
718*5113495bSYour Name 			The number of MPDUs in the queue.
719*5113495bSYour Name 
720*5113495bSYour Name 
721*5113495bSYour Name 
722*5113495bSYour Name 			<legal all>
723*5113495bSYour Name */
724*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_17_CURRENT_MPDU_COUNT_OFFSET      0x00000044
725*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_17_CURRENT_MPDU_COUNT_LSB         0
726*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_17_CURRENT_MPDU_COUNT_MASK        0x0000007f
727*5113495bSYour Name 
728*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_17_CURRENT_MSDU_COUNT
729*5113495bSYour Name 
730*5113495bSYour Name 			The number of MSDUs in the queue.
731*5113495bSYour Name 
732*5113495bSYour Name 			<legal all>
733*5113495bSYour Name */
734*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_17_CURRENT_MSDU_COUNT_OFFSET      0x00000044
735*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_17_CURRENT_MSDU_COUNT_LSB         7
736*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_17_CURRENT_MSDU_COUNT_MASK        0xffffff80
737*5113495bSYour Name 
738*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_18_RESERVED_18
739*5113495bSYour Name 
740*5113495bSYour Name 			<legal 0>
741*5113495bSYour Name */
742*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_18_RESERVED_18_OFFSET             0x00000048
743*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_18_RESERVED_18_LSB                0
744*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_18_RESERVED_18_MASK               0x0000000f
745*5113495bSYour Name 
746*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_18_TIMEOUT_COUNT
747*5113495bSYour Name 
748*5113495bSYour Name 			The number of times that REO started forwarding frames
749*5113495bSYour Name 			even though there is a hole in the bitmap. Forwarding reason
750*5113495bSYour Name 			is Timeout
751*5113495bSYour Name 
752*5113495bSYour Name 
753*5113495bSYour Name 
754*5113495bSYour Name 			The counter saturates and freezes at 0x3F
755*5113495bSYour Name 
756*5113495bSYour Name 
757*5113495bSYour Name 
758*5113495bSYour Name 			<legal all>
759*5113495bSYour Name */
760*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_18_TIMEOUT_COUNT_OFFSET           0x00000048
761*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_18_TIMEOUT_COUNT_LSB              4
762*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_18_TIMEOUT_COUNT_MASK             0x000003f0
763*5113495bSYour Name 
764*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_18_FORWARD_DUE_TO_BAR_COUNT
765*5113495bSYour Name 
766*5113495bSYour Name 			The number of times that REO started forwarding frames
767*5113495bSYour Name 			even though there is a hole in the bitmap. Forwarding reason
768*5113495bSYour Name 			is reception of BAR frame.
769*5113495bSYour Name 
770*5113495bSYour Name 
771*5113495bSYour Name 
772*5113495bSYour Name 			The counter saturates and freezes at 0x3F
773*5113495bSYour Name 
774*5113495bSYour Name 
775*5113495bSYour Name 
776*5113495bSYour Name 			<legal all>
777*5113495bSYour Name */
778*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_18_FORWARD_DUE_TO_BAR_COUNT_OFFSET 0x00000048
779*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_18_FORWARD_DUE_TO_BAR_COUNT_LSB   10
780*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_18_FORWARD_DUE_TO_BAR_COUNT_MASK  0x0000fc00
781*5113495bSYour Name 
782*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_18_DUPLICATE_COUNT
783*5113495bSYour Name 
784*5113495bSYour Name 			The number of duplicate frames that have been detected
785*5113495bSYour Name 
786*5113495bSYour Name 			<legal all>
787*5113495bSYour Name */
788*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_18_DUPLICATE_COUNT_OFFSET         0x00000048
789*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_18_DUPLICATE_COUNT_LSB            16
790*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_18_DUPLICATE_COUNT_MASK           0xffff0000
791*5113495bSYour Name 
792*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_19_FRAMES_IN_ORDER_COUNT
793*5113495bSYour Name 
794*5113495bSYour Name 			The number of frames that have been received in order
795*5113495bSYour Name 			(without a hole that prevented them from being forwarded
796*5113495bSYour Name 			immediately)
797*5113495bSYour Name 
798*5113495bSYour Name 
799*5113495bSYour Name 
800*5113495bSYour Name 			This corresponds to the Reorder opcodes:
801*5113495bSYour Name 
802*5113495bSYour Name 			'FWDCUR' and 'FWD BUF'
803*5113495bSYour Name 
804*5113495bSYour Name 
805*5113495bSYour Name 
806*5113495bSYour Name 			<legal all>
807*5113495bSYour Name */
808*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_19_FRAMES_IN_ORDER_COUNT_OFFSET   0x0000004c
809*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_19_FRAMES_IN_ORDER_COUNT_LSB      0
810*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_19_FRAMES_IN_ORDER_COUNT_MASK     0x00ffffff
811*5113495bSYour Name 
812*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_19_BAR_RECEIVED_COUNT
813*5113495bSYour Name 
814*5113495bSYour Name 			The number of times a BAR frame is received.
815*5113495bSYour Name 
816*5113495bSYour Name 
817*5113495bSYour Name 
818*5113495bSYour Name 			This corresponds to the Reorder opcodes with 'DROP'
819*5113495bSYour Name 
820*5113495bSYour Name 
821*5113495bSYour Name 
822*5113495bSYour Name 			The counter saturates and freezes at 0xFF
823*5113495bSYour Name 
824*5113495bSYour Name 			<legal all>
825*5113495bSYour Name */
826*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_19_BAR_RECEIVED_COUNT_OFFSET      0x0000004c
827*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_19_BAR_RECEIVED_COUNT_LSB         24
828*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_19_BAR_RECEIVED_COUNT_MASK        0xff000000
829*5113495bSYour Name 
830*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_20_MPDU_FRAMES_PROCESSED_COUNT
831*5113495bSYour Name 
832*5113495bSYour Name 			The total number of MPDU frames that have been processed
833*5113495bSYour Name 			by REO. This includes the duplicates.
834*5113495bSYour Name 
835*5113495bSYour Name 
836*5113495bSYour Name 
837*5113495bSYour Name 			<legal all>
838*5113495bSYour Name */
839*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_20_MPDU_FRAMES_PROCESSED_COUNT_OFFSET 0x00000050
840*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_20_MPDU_FRAMES_PROCESSED_COUNT_LSB 0
841*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_20_MPDU_FRAMES_PROCESSED_COUNT_MASK 0xffffffff
842*5113495bSYour Name 
843*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_21_MSDU_FRAMES_PROCESSED_COUNT
844*5113495bSYour Name 
845*5113495bSYour Name 			The total number of MSDU frames that have been processed
846*5113495bSYour Name 			by REO. This includes the duplicates.
847*5113495bSYour Name 
848*5113495bSYour Name 
849*5113495bSYour Name 
850*5113495bSYour Name 			<legal all>
851*5113495bSYour Name */
852*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_21_MSDU_FRAMES_PROCESSED_COUNT_OFFSET 0x00000054
853*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_21_MSDU_FRAMES_PROCESSED_COUNT_LSB 0
854*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_21_MSDU_FRAMES_PROCESSED_COUNT_MASK 0xffffffff
855*5113495bSYour Name 
856*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_22_TOTAL_PROCESSED_BYTE_COUNT
857*5113495bSYour Name 
858*5113495bSYour Name 			An approximation of the number of bytes received for
859*5113495bSYour Name 			this queue.
860*5113495bSYour Name 
861*5113495bSYour Name 
862*5113495bSYour Name 
863*5113495bSYour Name 			In 64 byte units
864*5113495bSYour Name 
865*5113495bSYour Name 			<legal all>
866*5113495bSYour Name */
867*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_22_TOTAL_PROCESSED_BYTE_COUNT_OFFSET 0x00000058
868*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_22_TOTAL_PROCESSED_BYTE_COUNT_LSB 0
869*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_22_TOTAL_PROCESSED_BYTE_COUNT_MASK 0xffffffff
870*5113495bSYour Name 
871*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_23_LATE_RECEIVE_MPDU_COUNT
872*5113495bSYour Name 
873*5113495bSYour Name 			The number of MPDUs received after the window had
874*5113495bSYour Name 			already moved on. The 'late' sequence window is defined as
875*5113495bSYour Name 			(Window SSN - 256) - (Window SSN - 1)
876*5113495bSYour Name 
877*5113495bSYour Name 
878*5113495bSYour Name 
879*5113495bSYour Name 			This corresponds with Out of order detection in
880*5113495bSYour Name 			duplicate detect FSM
881*5113495bSYour Name 
882*5113495bSYour Name 
883*5113495bSYour Name 
884*5113495bSYour Name 			The counter saturates and freezes at 0xFFF
885*5113495bSYour Name 
886*5113495bSYour Name 
887*5113495bSYour Name 
888*5113495bSYour Name 			<legal all>
889*5113495bSYour Name */
890*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_23_LATE_RECEIVE_MPDU_COUNT_OFFSET 0x0000005c
891*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_23_LATE_RECEIVE_MPDU_COUNT_LSB    0
892*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_23_LATE_RECEIVE_MPDU_COUNT_MASK   0x00000fff
893*5113495bSYour Name 
894*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_23_WINDOW_JUMP_2K
895*5113495bSYour Name 
896*5113495bSYour Name 			The number of times the window moved more then 2K
897*5113495bSYour Name 
898*5113495bSYour Name 
899*5113495bSYour Name 
900*5113495bSYour Name 			The counter saturates and freezes at 0xF
901*5113495bSYour Name 
902*5113495bSYour Name 
903*5113495bSYour Name 
904*5113495bSYour Name 			(Note: field name can not start with number: previous
905*5113495bSYour Name 			2k_window_jump)
906*5113495bSYour Name 
907*5113495bSYour Name 
908*5113495bSYour Name 
909*5113495bSYour Name 			<legal all>
910*5113495bSYour Name */
911*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_23_WINDOW_JUMP_2K_OFFSET          0x0000005c
912*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_23_WINDOW_JUMP_2K_LSB             12
913*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_23_WINDOW_JUMP_2K_MASK            0x0000f000
914*5113495bSYour Name 
915*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_23_HOLE_COUNT
916*5113495bSYour Name 
917*5113495bSYour Name 			The number of times a hole was created in the receive
918*5113495bSYour Name 			bitmap.
919*5113495bSYour Name 
920*5113495bSYour Name 
921*5113495bSYour Name 
922*5113495bSYour Name 			This corresponds to the Reorder opcodes with 'QCUR'
923*5113495bSYour Name 
924*5113495bSYour Name 
925*5113495bSYour Name 
926*5113495bSYour Name 			<legal all>
927*5113495bSYour Name */
928*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_23_HOLE_COUNT_OFFSET              0x0000005c
929*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_23_HOLE_COUNT_LSB                 16
930*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_23_HOLE_COUNT_MASK                0xffff0000
931*5113495bSYour Name 
932*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_24_RESERVED_24A
933*5113495bSYour Name 
934*5113495bSYour Name 			<legal 0>
935*5113495bSYour Name */
936*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_24_RESERVED_24A_OFFSET            0x00000060
937*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_24_RESERVED_24A_LSB               0
938*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_24_RESERVED_24A_MASK              0x0fffffff
939*5113495bSYour Name 
940*5113495bSYour Name /* Description		REO_GET_QUEUE_STATS_STATUS_24_LOOPING_COUNT
941*5113495bSYour Name 
942*5113495bSYour Name 			A count value that indicates the number of times the
943*5113495bSYour Name 			producer of entries into this Ring has looped around the
944*5113495bSYour Name 			ring.
945*5113495bSYour Name 
946*5113495bSYour Name 			At initialization time, this value is set to 0. On the
947*5113495bSYour Name 			first loop, this value is set to 1. After the max value is
948*5113495bSYour Name 			reached allowed by the number of bits for this field, the
949*5113495bSYour Name 			count value continues with 0 again.
950*5113495bSYour Name 
951*5113495bSYour Name 
952*5113495bSYour Name 
953*5113495bSYour Name 			In case SW is the consumer of the ring entries, it can
954*5113495bSYour Name 			use this field to figure out up to where the producer of
955*5113495bSYour Name 			entries has created new entries. This eliminates the need to
956*5113495bSYour Name 			check where the head pointer' of the ring is located once
957*5113495bSYour Name 			the SW starts processing an interrupt indicating that new
958*5113495bSYour Name 			entries have been put into this ring...
959*5113495bSYour Name 
960*5113495bSYour Name 
961*5113495bSYour Name 
962*5113495bSYour Name 			Also note that SW if it wants only needs to look at the
963*5113495bSYour Name 			LSB bit of this count value.
964*5113495bSYour Name 
965*5113495bSYour Name 			<legal all>
966*5113495bSYour Name */
967*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_24_LOOPING_COUNT_OFFSET           0x00000060
968*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_24_LOOPING_COUNT_LSB              28
969*5113495bSYour Name #define REO_GET_QUEUE_STATS_STATUS_24_LOOPING_COUNT_MASK             0xf0000000
970*5113495bSYour Name 
971*5113495bSYour Name 
972*5113495bSYour Name #endif // _REO_GET_QUEUE_STATS_STATUS_H_
973