xref: /wlan-driver/fw-api/hw/qca6290/v2/reo_destination_ring.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2016-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 //
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_DESTINATION_RING_H_
25*5113495bSYour Name #define _REO_DESTINATION_RING_H_
26*5113495bSYour Name #if !defined(__ASSEMBLER__)
27*5113495bSYour Name #endif
28*5113495bSYour Name 
29*5113495bSYour Name #include "buffer_addr_info.h"
30*5113495bSYour Name #include "rx_mpdu_desc_info.h"
31*5113495bSYour Name #include "rx_msdu_desc_info.h"
32*5113495bSYour Name 
33*5113495bSYour Name // ################ START SUMMARY #################
34*5113495bSYour Name //
35*5113495bSYour Name //	Dword	Fields
36*5113495bSYour Name //	0-1	struct buffer_addr_info buf_or_link_desc_addr_info;
37*5113495bSYour Name //	2-3	struct rx_mpdu_desc_info rx_mpdu_desc_info_details;
38*5113495bSYour Name //	4-5	struct rx_msdu_desc_info rx_msdu_desc_info_details;
39*5113495bSYour Name //	6	rx_reo_queue_desc_addr_31_0[31:0]
40*5113495bSYour Name //	7	rx_reo_queue_desc_addr_39_32[7:0], reo_dest_buffer_type[8], reo_push_reason[10:9], reo_error_code[15:11], receive_queue_number[31:16]
41*5113495bSYour Name //	8	soft_reorder_info_valid[0], reorder_opcode[4:1], reorder_slot_index[12:5], reserved_8a[31:13]
42*5113495bSYour Name //	9	reserved_9a[31:0]
43*5113495bSYour Name //	10	reserved_10a[31:0]
44*5113495bSYour Name //	11	reserved_11a[31:0]
45*5113495bSYour Name //	12	reserved_12a[31:0]
46*5113495bSYour Name //	13	reserved_13a[31:0]
47*5113495bSYour Name //	14	reserved_14a[31:0]
48*5113495bSYour Name //	15	reserved_15[19:0], ring_id[27:20], looping_count[31:28]
49*5113495bSYour Name //
50*5113495bSYour Name // ################ END SUMMARY #################
51*5113495bSYour Name 
52*5113495bSYour Name #define NUM_OF_DWORDS_REO_DESTINATION_RING 16
53*5113495bSYour Name 
54*5113495bSYour Name struct reo_destination_ring {
55*5113495bSYour Name     struct            buffer_addr_info                       buf_or_link_desc_addr_info;
56*5113495bSYour Name     struct            rx_mpdu_desc_info                       rx_mpdu_desc_info_details;
57*5113495bSYour Name     struct            rx_msdu_desc_info                       rx_msdu_desc_info_details;
58*5113495bSYour Name              uint32_t rx_reo_queue_desc_addr_31_0     : 32; //[31:0]
59*5113495bSYour Name              uint32_t rx_reo_queue_desc_addr_39_32    :  8, //[7:0]
60*5113495bSYour Name                       reo_dest_buffer_type            :  1, //[8]
61*5113495bSYour Name                       reo_push_reason                 :  2, //[10:9]
62*5113495bSYour Name                       reo_error_code                  :  5, //[15:11]
63*5113495bSYour Name                       receive_queue_number            : 16; //[31:16]
64*5113495bSYour Name              uint32_t soft_reorder_info_valid         :  1, //[0]
65*5113495bSYour Name                       reorder_opcode                  :  4, //[4:1]
66*5113495bSYour Name                       reorder_slot_index              :  8, //[12:5]
67*5113495bSYour Name                       reserved_8a                     : 19; //[31:13]
68*5113495bSYour Name              uint32_t reserved_9a                     : 32; //[31:0]
69*5113495bSYour Name              uint32_t reserved_10a                    : 32; //[31:0]
70*5113495bSYour Name              uint32_t reserved_11a                    : 32; //[31:0]
71*5113495bSYour Name              uint32_t reserved_12a                    : 32; //[31:0]
72*5113495bSYour Name              uint32_t reserved_13a                    : 32; //[31:0]
73*5113495bSYour Name              uint32_t reserved_14a                    : 32; //[31:0]
74*5113495bSYour Name              uint32_t reserved_15                     : 20, //[19:0]
75*5113495bSYour Name                       ring_id                         :  8, //[27:20]
76*5113495bSYour Name                       looping_count                   :  4; //[31:28]
77*5113495bSYour Name };
78*5113495bSYour Name 
79*5113495bSYour Name /*
80*5113495bSYour Name 
81*5113495bSYour Name struct buffer_addr_info buf_or_link_desc_addr_info
82*5113495bSYour Name 
83*5113495bSYour Name 			Consumer: REO/SW/FW
84*5113495bSYour Name 
85*5113495bSYour Name 			Producer: RXDMA
86*5113495bSYour Name 
87*5113495bSYour Name 
88*5113495bSYour Name 
89*5113495bSYour Name 			Details of the physical address of the a buffer or MSDU
90*5113495bSYour Name 			link descriptor
91*5113495bSYour Name 
92*5113495bSYour Name struct rx_mpdu_desc_info rx_mpdu_desc_info_details
93*5113495bSYour Name 
94*5113495bSYour Name 			Consumer: REO/SW/FW
95*5113495bSYour Name 
96*5113495bSYour Name 			Producer: RXDMA
97*5113495bSYour Name 
98*5113495bSYour Name 
99*5113495bSYour Name 
100*5113495bSYour Name 			General information related to the MPDU that is passed
101*5113495bSYour Name 			on from REO entrance ring to the REO destination ring
102*5113495bSYour Name 
103*5113495bSYour Name struct rx_msdu_desc_info rx_msdu_desc_info_details
104*5113495bSYour Name 
105*5113495bSYour Name 			General information related to the MSDU that is passed
106*5113495bSYour Name 			on from RXDMA all the way to to the REO destination ring.
107*5113495bSYour Name 
108*5113495bSYour Name rx_reo_queue_desc_addr_31_0
109*5113495bSYour Name 
110*5113495bSYour Name 			Consumer: REO
111*5113495bSYour Name 
112*5113495bSYour Name 			Producer: RXDMA
113*5113495bSYour Name 
114*5113495bSYour Name 
115*5113495bSYour Name 
116*5113495bSYour Name 			Address (lower 32 bits) of the REO queue descriptor.
117*5113495bSYour Name 
118*5113495bSYour Name 			<legal all>
119*5113495bSYour Name 
120*5113495bSYour Name rx_reo_queue_desc_addr_39_32
121*5113495bSYour Name 
122*5113495bSYour Name 			Consumer: REO
123*5113495bSYour Name 
124*5113495bSYour Name 			Producer: RXDMA
125*5113495bSYour Name 
126*5113495bSYour Name 
127*5113495bSYour Name 
128*5113495bSYour Name 			Address (upper 8 bits) of the REO queue descriptor.
129*5113495bSYour Name 
130*5113495bSYour Name 			<legal all>
131*5113495bSYour Name 
132*5113495bSYour Name reo_dest_buffer_type
133*5113495bSYour Name 
134*5113495bSYour Name 			Indicates the type of address provided in the
135*5113495bSYour Name 			'Buf_or_link_desc_addr_info'
136*5113495bSYour Name 
137*5113495bSYour Name 
138*5113495bSYour Name 
139*5113495bSYour Name 			<enum 0 MSDU_buf_address> The address of an MSDU buffer
140*5113495bSYour Name 
141*5113495bSYour Name 			<enum 1 MSDU_link_desc_address> The address of the MSDU
142*5113495bSYour Name 			link descriptor.
143*5113495bSYour Name 
144*5113495bSYour Name 
145*5113495bSYour Name 
146*5113495bSYour Name 			<legal all>
147*5113495bSYour Name 
148*5113495bSYour Name reo_push_reason
149*5113495bSYour Name 
150*5113495bSYour Name 			Indicates why REO pushed the frame to this exit ring
151*5113495bSYour Name 
152*5113495bSYour Name 
153*5113495bSYour Name 
154*5113495bSYour Name 			<enum 0 reo_error_detected> Reo detected an error an
155*5113495bSYour Name 			pushed this frame to this queue
156*5113495bSYour Name 
157*5113495bSYour Name 			<enum 1 reo_routing_instruction> Reo pushed the frame to
158*5113495bSYour Name 			this queue per received routing instructions. No error
159*5113495bSYour Name 			within REO was detected
160*5113495bSYour Name 
161*5113495bSYour Name 
162*5113495bSYour Name 
163*5113495bSYour Name 
164*5113495bSYour Name 
165*5113495bSYour Name 			<legal 0 - 1>
166*5113495bSYour Name 
167*5113495bSYour Name reo_error_code
168*5113495bSYour Name 
169*5113495bSYour Name 			Field only valid when 'Reo_push_reason' set to
170*5113495bSYour Name 			'reo_error_detected'.
171*5113495bSYour Name 
172*5113495bSYour Name 
173*5113495bSYour Name 
174*5113495bSYour Name 			<enum 0 reo_queue_desc_addr_zero> Reo queue descriptor
175*5113495bSYour Name 			provided in the REO_ENTRANCE ring is set to 0
176*5113495bSYour Name 
177*5113495bSYour Name 			<enum 1 reo_queue_desc_not_valid> Reo queue descriptor
178*5113495bSYour Name 			valid bit is NOT set
179*5113495bSYour Name 
180*5113495bSYour Name 			<enum 2 ampdu_in_non_ba> AMPDU frame received without BA
181*5113495bSYour Name 			session having been setup.
182*5113495bSYour Name 
183*5113495bSYour Name 			<enum 3 non_ba_duplicate> Non-BA session, SN equal to
184*5113495bSYour Name 			SSN, Retry bit set: duplicate frame
185*5113495bSYour Name 
186*5113495bSYour Name 			<enum 4 ba_duplicate> BA session, duplicate frame
187*5113495bSYour Name 
188*5113495bSYour Name 			<enum 5 regular_frame_2k_jump> A normal (management/data
189*5113495bSYour Name 			frame) received with 2K jump in SN
190*5113495bSYour Name 
191*5113495bSYour Name 			<enum 6 bar_frame_2k_jump> A bar received with 2K jump
192*5113495bSYour Name 			in SSN
193*5113495bSYour Name 
194*5113495bSYour Name 			<enum 7 regular_frame_OOR> A normal (management/data
195*5113495bSYour Name 			frame) received with SN falling within the OOR window
196*5113495bSYour Name 
197*5113495bSYour Name 			<enum 8 bar_frame_OOR> A bar received with SSN falling
198*5113495bSYour Name 			within the OOR window
199*5113495bSYour Name 
200*5113495bSYour Name 			<enum 9 bar_frame_no_ba_session> A bar received without
201*5113495bSYour Name 			a BA session
202*5113495bSYour Name 
203*5113495bSYour Name 			<enum 10 bar_frame_sn_equals_ssn> A bar received with
204*5113495bSYour Name 			SSN equal to SN
205*5113495bSYour Name 
206*5113495bSYour Name 			<enum 11 pn_check_failed> PN Check Failed packet.
207*5113495bSYour Name 
208*5113495bSYour Name 			<enum 12 2k_error_handling_flag_set> Frame is forwarded
209*5113495bSYour Name 			as a result of the 'Seq_2k_error_detected_flag' been set in
210*5113495bSYour Name 			the REO Queue descriptor
211*5113495bSYour Name 
212*5113495bSYour Name 			<enum 13 pn_error_handling_flag_set> Frame is forwarded
213*5113495bSYour Name 			as a result of the 'pn_error_detected_flag' been set in the
214*5113495bSYour Name 			REO Queue descriptor
215*5113495bSYour Name 
216*5113495bSYour Name 			<enum 14 queue_descriptor_blocked_set> Frame is
217*5113495bSYour Name 			forwarded as a result of the queue descriptor(address) being
218*5113495bSYour Name 			blocked as SW/FW seems to be currently in the process of
219*5113495bSYour Name 			making updates to this descriptor...
220*5113495bSYour Name 
221*5113495bSYour Name 
222*5113495bSYour Name 
223*5113495bSYour Name 			<legal 0-14>
224*5113495bSYour Name 
225*5113495bSYour Name receive_queue_number
226*5113495bSYour Name 
227*5113495bSYour Name 			This field indicates the REO MPDU reorder queue ID from
228*5113495bSYour Name 			which this frame originated. This field is populated from a
229*5113495bSYour Name 			field with the same name in the RX_REO_QUEUE descriptor.
230*5113495bSYour Name 
231*5113495bSYour Name 			<legal all>
232*5113495bSYour Name 
233*5113495bSYour Name soft_reorder_info_valid
234*5113495bSYour Name 
235*5113495bSYour Name 			When set, REO has been instructed to not perform the
236*5113495bSYour Name 			actual re-ordering of frames for this queue, but just to
237*5113495bSYour Name 			insert the reorder opcodes
238*5113495bSYour Name 
239*5113495bSYour Name 			<legal all>
240*5113495bSYour Name 
241*5113495bSYour Name reorder_opcode
242*5113495bSYour Name 
243*5113495bSYour Name 			Field is valid when 'Soft_reorder_info_valid' is set.
244*5113495bSYour Name 			This field is always valid for debug purpose as well.
245*5113495bSYour Name 
246*5113495bSYour Name 			Details are in the MLD.
247*5113495bSYour Name 
248*5113495bSYour Name 
249*5113495bSYour Name 
250*5113495bSYour Name 			<enum 0 invalid>
251*5113495bSYour Name 
252*5113495bSYour Name 			<enum 1 fwdcur_fwdbuf>
253*5113495bSYour Name 
254*5113495bSYour Name 			<enum 2 fwdbuf_fwdcur>
255*5113495bSYour Name 
256*5113495bSYour Name 			<enum 3 qcur>
257*5113495bSYour Name 
258*5113495bSYour Name 			<enum 4 fwdbuf_qcur>
259*5113495bSYour Name 
260*5113495bSYour Name 			<enum 5 fwdbuf_drop>
261*5113495bSYour Name 
262*5113495bSYour Name 			<enum 6 fwdall_drop>
263*5113495bSYour Name 
264*5113495bSYour Name 			<enum 7 fwdall_qcur>
265*5113495bSYour Name 
266*5113495bSYour Name 			<enum 8 reserved_reo_opcode_1>
267*5113495bSYour Name 
268*5113495bSYour Name 			<enum 9 dropcur>  the error reason code is in
269*5113495bSYour Name 			reo_error_code field.
270*5113495bSYour Name 
271*5113495bSYour Name 			<enum 10 reserved_reo_opcode_2>
272*5113495bSYour Name 
273*5113495bSYour Name 			<enum 11 reserved_reo_opcode_3>
274*5113495bSYour Name 
275*5113495bSYour Name 			<enum 12 reserved_reo_opcode_4>
276*5113495bSYour Name 
277*5113495bSYour Name 			<enum 13 reserved_reo_opcode_5>
278*5113495bSYour Name 
279*5113495bSYour Name 			<enum 14 reserved_reo_opcode_6>
280*5113495bSYour Name 
281*5113495bSYour Name 			<enum 15 reserved_reo_opcode_7>
282*5113495bSYour Name 
283*5113495bSYour Name 
284*5113495bSYour Name 
285*5113495bSYour Name 			<legal all>
286*5113495bSYour Name 
287*5113495bSYour Name reorder_slot_index
288*5113495bSYour Name 
289*5113495bSYour Name 			Field only valid when 'Soft_reorder_info_valid' is set.
290*5113495bSYour Name 
291*5113495bSYour Name 
292*5113495bSYour Name 
293*5113495bSYour Name 			TODO: add description
294*5113495bSYour Name 
295*5113495bSYour Name 
296*5113495bSYour Name 
297*5113495bSYour Name 			<legal all>
298*5113495bSYour Name 
299*5113495bSYour Name reserved_8a
300*5113495bSYour Name 
301*5113495bSYour Name 			<legal 0>
302*5113495bSYour Name 
303*5113495bSYour Name reserved_9a
304*5113495bSYour Name 
305*5113495bSYour Name 			<legal 0>
306*5113495bSYour Name 
307*5113495bSYour Name reserved_10a
308*5113495bSYour Name 
309*5113495bSYour Name 			<legal 0>
310*5113495bSYour Name 
311*5113495bSYour Name reserved_11a
312*5113495bSYour Name 
313*5113495bSYour Name 			<legal 0>
314*5113495bSYour Name 
315*5113495bSYour Name reserved_12a
316*5113495bSYour Name 
317*5113495bSYour Name 			<legal 0>
318*5113495bSYour Name 
319*5113495bSYour Name reserved_13a
320*5113495bSYour Name 
321*5113495bSYour Name 			<legal 0>
322*5113495bSYour Name 
323*5113495bSYour Name reserved_14a
324*5113495bSYour Name 
325*5113495bSYour Name 			<legal 0>
326*5113495bSYour Name 
327*5113495bSYour Name reserved_15
328*5113495bSYour Name 
329*5113495bSYour Name 			<legal 0>
330*5113495bSYour Name 
331*5113495bSYour Name ring_id
332*5113495bSYour Name 
333*5113495bSYour Name 			The buffer pointer ring ID.
334*5113495bSYour Name 
335*5113495bSYour Name 			0 refers to the IDLE ring
336*5113495bSYour Name 
337*5113495bSYour Name 			1 - N refers to other rings
338*5113495bSYour Name 
339*5113495bSYour Name 
340*5113495bSYour Name 
341*5113495bSYour Name 			Helps with debugging when dumping ring contents.
342*5113495bSYour Name 
343*5113495bSYour Name 			<legal all>
344*5113495bSYour Name 
345*5113495bSYour Name looping_count
346*5113495bSYour Name 
347*5113495bSYour Name 			A count value that indicates the number of times the
348*5113495bSYour Name 			producer of entries into this Ring has looped around the
349*5113495bSYour Name 			ring.
350*5113495bSYour Name 
351*5113495bSYour Name 			At initialization time, this value is set to 0. On the
352*5113495bSYour Name 			first loop, this value is set to 1. After the max value is
353*5113495bSYour Name 			reached allowed by the number of bits for this field, the
354*5113495bSYour Name 			count value continues with 0 again.
355*5113495bSYour Name 
356*5113495bSYour Name 			In case SW is the consumer of the ring entries, it can
357*5113495bSYour Name 			use this field to figure out up to where the producer of
358*5113495bSYour Name 			entries has created new entries. This eliminates the need to
359*5113495bSYour Name 			check where the head pointer' of the ring is located once
360*5113495bSYour Name 			the SW starts processing an interrupt indicating that new
361*5113495bSYour Name 			entries have been put into this ring...
362*5113495bSYour Name 
363*5113495bSYour Name 
364*5113495bSYour Name 
365*5113495bSYour Name 			Also note that SW if it wants only needs to look at the
366*5113495bSYour Name 			LSB bit of this count value.
367*5113495bSYour Name 
368*5113495bSYour Name 			<legal all>
369*5113495bSYour Name */
370*5113495bSYour Name 
371*5113495bSYour Name #define REO_DESTINATION_RING_0_BUFFER_ADDR_INFO_BUF_OR_LINK_DESC_ADDR_INFO_OFFSET 0x00000000
372*5113495bSYour Name #define REO_DESTINATION_RING_0_BUFFER_ADDR_INFO_BUF_OR_LINK_DESC_ADDR_INFO_LSB 28
373*5113495bSYour Name #define REO_DESTINATION_RING_0_BUFFER_ADDR_INFO_BUF_OR_LINK_DESC_ADDR_INFO_MASK 0xffffffff
374*5113495bSYour Name #define REO_DESTINATION_RING_1_BUFFER_ADDR_INFO_BUF_OR_LINK_DESC_ADDR_INFO_OFFSET 0x00000004
375*5113495bSYour Name #define REO_DESTINATION_RING_1_BUFFER_ADDR_INFO_BUF_OR_LINK_DESC_ADDR_INFO_LSB 28
376*5113495bSYour Name #define REO_DESTINATION_RING_1_BUFFER_ADDR_INFO_BUF_OR_LINK_DESC_ADDR_INFO_MASK 0xffffffff
377*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_RX_MPDU_DESC_INFO_DETAILS_OFFSET 0x00000008
378*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_RX_MPDU_DESC_INFO_DETAILS_LSB 28
379*5113495bSYour Name #define REO_DESTINATION_RING_2_RX_MPDU_DESC_INFO_RX_MPDU_DESC_INFO_DETAILS_MASK 0xffffffff
380*5113495bSYour Name #define REO_DESTINATION_RING_3_RX_MPDU_DESC_INFO_RX_MPDU_DESC_INFO_DETAILS_OFFSET 0x0000000c
381*5113495bSYour Name #define REO_DESTINATION_RING_3_RX_MPDU_DESC_INFO_RX_MPDU_DESC_INFO_DETAILS_LSB 28
382*5113495bSYour Name #define REO_DESTINATION_RING_3_RX_MPDU_DESC_INFO_RX_MPDU_DESC_INFO_DETAILS_MASK 0xffffffff
383*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_OFFSET 0x00000010
384*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_LSB 28
385*5113495bSYour Name #define REO_DESTINATION_RING_4_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_MASK 0xffffffff
386*5113495bSYour Name #define REO_DESTINATION_RING_5_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_OFFSET 0x00000014
387*5113495bSYour Name #define REO_DESTINATION_RING_5_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_LSB 28
388*5113495bSYour Name #define REO_DESTINATION_RING_5_RX_MSDU_DESC_INFO_RX_MSDU_DESC_INFO_DETAILS_MASK 0xffffffff
389*5113495bSYour Name 
390*5113495bSYour Name /* Description		REO_DESTINATION_RING_6_RX_REO_QUEUE_DESC_ADDR_31_0
391*5113495bSYour Name 
392*5113495bSYour Name 			Consumer: REO
393*5113495bSYour Name 
394*5113495bSYour Name 			Producer: RXDMA
395*5113495bSYour Name 
396*5113495bSYour Name 
397*5113495bSYour Name 
398*5113495bSYour Name 			Address (lower 32 bits) of the REO queue descriptor.
399*5113495bSYour Name 
400*5113495bSYour Name 			<legal all>
401*5113495bSYour Name */
402*5113495bSYour Name #define REO_DESTINATION_RING_6_RX_REO_QUEUE_DESC_ADDR_31_0_OFFSET    0x00000018
403*5113495bSYour Name #define REO_DESTINATION_RING_6_RX_REO_QUEUE_DESC_ADDR_31_0_LSB       0
404*5113495bSYour Name #define REO_DESTINATION_RING_6_RX_REO_QUEUE_DESC_ADDR_31_0_MASK      0xffffffff
405*5113495bSYour Name 
406*5113495bSYour Name /* Description		REO_DESTINATION_RING_7_RX_REO_QUEUE_DESC_ADDR_39_32
407*5113495bSYour Name 
408*5113495bSYour Name 			Consumer: REO
409*5113495bSYour Name 
410*5113495bSYour Name 			Producer: RXDMA
411*5113495bSYour Name 
412*5113495bSYour Name 
413*5113495bSYour Name 
414*5113495bSYour Name 			Address (upper 8 bits) of the REO queue descriptor.
415*5113495bSYour Name 
416*5113495bSYour Name 			<legal all>
417*5113495bSYour Name */
418*5113495bSYour Name #define REO_DESTINATION_RING_7_RX_REO_QUEUE_DESC_ADDR_39_32_OFFSET   0x0000001c
419*5113495bSYour Name #define REO_DESTINATION_RING_7_RX_REO_QUEUE_DESC_ADDR_39_32_LSB      0
420*5113495bSYour Name #define REO_DESTINATION_RING_7_RX_REO_QUEUE_DESC_ADDR_39_32_MASK     0x000000ff
421*5113495bSYour Name 
422*5113495bSYour Name /* Description		REO_DESTINATION_RING_7_REO_DEST_BUFFER_TYPE
423*5113495bSYour Name 
424*5113495bSYour Name 			Indicates the type of address provided in the
425*5113495bSYour Name 			'Buf_or_link_desc_addr_info'
426*5113495bSYour Name 
427*5113495bSYour Name 
428*5113495bSYour Name 
429*5113495bSYour Name 			<enum 0 MSDU_buf_address> The address of an MSDU buffer
430*5113495bSYour Name 
431*5113495bSYour Name 			<enum 1 MSDU_link_desc_address> The address of the MSDU
432*5113495bSYour Name 			link descriptor.
433*5113495bSYour Name 
434*5113495bSYour Name 
435*5113495bSYour Name 
436*5113495bSYour Name 			<legal all>
437*5113495bSYour Name */
438*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_DEST_BUFFER_TYPE_OFFSET           0x0000001c
439*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_DEST_BUFFER_TYPE_LSB              8
440*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_DEST_BUFFER_TYPE_MASK             0x00000100
441*5113495bSYour Name 
442*5113495bSYour Name /* Description		REO_DESTINATION_RING_7_REO_PUSH_REASON
443*5113495bSYour Name 
444*5113495bSYour Name 			Indicates why REO pushed the frame to this exit ring
445*5113495bSYour Name 
446*5113495bSYour Name 
447*5113495bSYour Name 
448*5113495bSYour Name 			<enum 0 reo_error_detected> Reo detected an error an
449*5113495bSYour Name 			pushed this frame to this queue
450*5113495bSYour Name 
451*5113495bSYour Name 			<enum 1 reo_routing_instruction> Reo pushed the frame to
452*5113495bSYour Name 			this queue per received routing instructions. No error
453*5113495bSYour Name 			within REO was detected
454*5113495bSYour Name 
455*5113495bSYour Name 
456*5113495bSYour Name 
457*5113495bSYour Name 
458*5113495bSYour Name 
459*5113495bSYour Name 			<legal 0 - 1>
460*5113495bSYour Name */
461*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_PUSH_REASON_OFFSET                0x0000001c
462*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_PUSH_REASON_LSB                   9
463*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_PUSH_REASON_MASK                  0x00000600
464*5113495bSYour Name 
465*5113495bSYour Name /* Description		REO_DESTINATION_RING_7_REO_ERROR_CODE
466*5113495bSYour Name 
467*5113495bSYour Name 			Field only valid when 'Reo_push_reason' set to
468*5113495bSYour Name 			'reo_error_detected'.
469*5113495bSYour Name 
470*5113495bSYour Name 
471*5113495bSYour Name 
472*5113495bSYour Name 			<enum 0 reo_queue_desc_addr_zero> Reo queue descriptor
473*5113495bSYour Name 			provided in the REO_ENTRANCE ring is set to 0
474*5113495bSYour Name 
475*5113495bSYour Name 			<enum 1 reo_queue_desc_not_valid> Reo queue descriptor
476*5113495bSYour Name 			valid bit is NOT set
477*5113495bSYour Name 
478*5113495bSYour Name 			<enum 2 ampdu_in_non_ba> AMPDU frame received without BA
479*5113495bSYour Name 			session having been setup.
480*5113495bSYour Name 
481*5113495bSYour Name 			<enum 3 non_ba_duplicate> Non-BA session, SN equal to
482*5113495bSYour Name 			SSN, Retry bit set: duplicate frame
483*5113495bSYour Name 
484*5113495bSYour Name 			<enum 4 ba_duplicate> BA session, duplicate frame
485*5113495bSYour Name 
486*5113495bSYour Name 			<enum 5 regular_frame_2k_jump> A normal (management/data
487*5113495bSYour Name 			frame) received with 2K jump in SN
488*5113495bSYour Name 
489*5113495bSYour Name 			<enum 6 bar_frame_2k_jump> A bar received with 2K jump
490*5113495bSYour Name 			in SSN
491*5113495bSYour Name 
492*5113495bSYour Name 			<enum 7 regular_frame_OOR> A normal (management/data
493*5113495bSYour Name 			frame) received with SN falling within the OOR window
494*5113495bSYour Name 
495*5113495bSYour Name 			<enum 8 bar_frame_OOR> A bar received with SSN falling
496*5113495bSYour Name 			within the OOR window
497*5113495bSYour Name 
498*5113495bSYour Name 			<enum 9 bar_frame_no_ba_session> A bar received without
499*5113495bSYour Name 			a BA session
500*5113495bSYour Name 
501*5113495bSYour Name 			<enum 10 bar_frame_sn_equals_ssn> A bar received with
502*5113495bSYour Name 			SSN equal to SN
503*5113495bSYour Name 
504*5113495bSYour Name 			<enum 11 pn_check_failed> PN Check Failed packet.
505*5113495bSYour Name 
506*5113495bSYour Name 			<enum 12 2k_error_handling_flag_set> Frame is forwarded
507*5113495bSYour Name 			as a result of the 'Seq_2k_error_detected_flag' been set in
508*5113495bSYour Name 			the REO Queue descriptor
509*5113495bSYour Name 
510*5113495bSYour Name 			<enum 13 pn_error_handling_flag_set> Frame is forwarded
511*5113495bSYour Name 			as a result of the 'pn_error_detected_flag' been set in the
512*5113495bSYour Name 			REO Queue descriptor
513*5113495bSYour Name 
514*5113495bSYour Name 			<enum 14 queue_descriptor_blocked_set> Frame is
515*5113495bSYour Name 			forwarded as a result of the queue descriptor(address) being
516*5113495bSYour Name 			blocked as SW/FW seems to be currently in the process of
517*5113495bSYour Name 			making updates to this descriptor...
518*5113495bSYour Name 
519*5113495bSYour Name 
520*5113495bSYour Name 
521*5113495bSYour Name 			<legal 0-14>
522*5113495bSYour Name */
523*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_ERROR_CODE_OFFSET                 0x0000001c
524*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_ERROR_CODE_LSB                    11
525*5113495bSYour Name #define REO_DESTINATION_RING_7_REO_ERROR_CODE_MASK                   0x0000f800
526*5113495bSYour Name 
527*5113495bSYour Name /* Description		REO_DESTINATION_RING_7_RECEIVE_QUEUE_NUMBER
528*5113495bSYour Name 
529*5113495bSYour Name 			This field indicates the REO MPDU reorder queue ID from
530*5113495bSYour Name 			which this frame originated. This field is populated from a
531*5113495bSYour Name 			field with the same name in the RX_REO_QUEUE descriptor.
532*5113495bSYour Name 
533*5113495bSYour Name 			<legal all>
534*5113495bSYour Name */
535*5113495bSYour Name #define REO_DESTINATION_RING_7_RECEIVE_QUEUE_NUMBER_OFFSET           0x0000001c
536*5113495bSYour Name #define REO_DESTINATION_RING_7_RECEIVE_QUEUE_NUMBER_LSB              16
537*5113495bSYour Name #define REO_DESTINATION_RING_7_RECEIVE_QUEUE_NUMBER_MASK             0xffff0000
538*5113495bSYour Name 
539*5113495bSYour Name /* Description		REO_DESTINATION_RING_8_SOFT_REORDER_INFO_VALID
540*5113495bSYour Name 
541*5113495bSYour Name 			When set, REO has been instructed to not perform the
542*5113495bSYour Name 			actual re-ordering of frames for this queue, but just to
543*5113495bSYour Name 			insert the reorder opcodes
544*5113495bSYour Name 
545*5113495bSYour Name 			<legal all>
546*5113495bSYour Name */
547*5113495bSYour Name #define REO_DESTINATION_RING_8_SOFT_REORDER_INFO_VALID_OFFSET        0x00000020
548*5113495bSYour Name #define REO_DESTINATION_RING_8_SOFT_REORDER_INFO_VALID_LSB           0
549*5113495bSYour Name #define REO_DESTINATION_RING_8_SOFT_REORDER_INFO_VALID_MASK          0x00000001
550*5113495bSYour Name 
551*5113495bSYour Name /* Description		REO_DESTINATION_RING_8_REORDER_OPCODE
552*5113495bSYour Name 
553*5113495bSYour Name 			Field is valid when 'Soft_reorder_info_valid' is set.
554*5113495bSYour Name 			This field is always valid for debug purpose as well.
555*5113495bSYour Name 
556*5113495bSYour Name 			Details are in the MLD.
557*5113495bSYour Name 
558*5113495bSYour Name 
559*5113495bSYour Name 
560*5113495bSYour Name 			<enum 0 invalid>
561*5113495bSYour Name 
562*5113495bSYour Name 			<enum 1 fwdcur_fwdbuf>
563*5113495bSYour Name 
564*5113495bSYour Name 			<enum 2 fwdbuf_fwdcur>
565*5113495bSYour Name 
566*5113495bSYour Name 			<enum 3 qcur>
567*5113495bSYour Name 
568*5113495bSYour Name 			<enum 4 fwdbuf_qcur>
569*5113495bSYour Name 
570*5113495bSYour Name 			<enum 5 fwdbuf_drop>
571*5113495bSYour Name 
572*5113495bSYour Name 			<enum 6 fwdall_drop>
573*5113495bSYour Name 
574*5113495bSYour Name 			<enum 7 fwdall_qcur>
575*5113495bSYour Name 
576*5113495bSYour Name 			<enum 8 reserved_reo_opcode_1>
577*5113495bSYour Name 
578*5113495bSYour Name 			<enum 9 dropcur>  the error reason code is in
579*5113495bSYour Name 			reo_error_code field.
580*5113495bSYour Name 
581*5113495bSYour Name 			<enum 10 reserved_reo_opcode_2>
582*5113495bSYour Name 
583*5113495bSYour Name 			<enum 11 reserved_reo_opcode_3>
584*5113495bSYour Name 
585*5113495bSYour Name 			<enum 12 reserved_reo_opcode_4>
586*5113495bSYour Name 
587*5113495bSYour Name 			<enum 13 reserved_reo_opcode_5>
588*5113495bSYour Name 
589*5113495bSYour Name 			<enum 14 reserved_reo_opcode_6>
590*5113495bSYour Name 
591*5113495bSYour Name 			<enum 15 reserved_reo_opcode_7>
592*5113495bSYour Name 
593*5113495bSYour Name 
594*5113495bSYour Name 
595*5113495bSYour Name 			<legal all>
596*5113495bSYour Name */
597*5113495bSYour Name #define REO_DESTINATION_RING_8_REORDER_OPCODE_OFFSET                 0x00000020
598*5113495bSYour Name #define REO_DESTINATION_RING_8_REORDER_OPCODE_LSB                    1
599*5113495bSYour Name #define REO_DESTINATION_RING_8_REORDER_OPCODE_MASK                   0x0000001e
600*5113495bSYour Name 
601*5113495bSYour Name /* Description		REO_DESTINATION_RING_8_REORDER_SLOT_INDEX
602*5113495bSYour Name 
603*5113495bSYour Name 			Field only valid when 'Soft_reorder_info_valid' is set.
604*5113495bSYour Name 
605*5113495bSYour Name 
606*5113495bSYour Name 
607*5113495bSYour Name 			TODO: add description
608*5113495bSYour Name 
609*5113495bSYour Name 
610*5113495bSYour Name 
611*5113495bSYour Name 			<legal all>
612*5113495bSYour Name */
613*5113495bSYour Name #define REO_DESTINATION_RING_8_REORDER_SLOT_INDEX_OFFSET             0x00000020
614*5113495bSYour Name #define REO_DESTINATION_RING_8_REORDER_SLOT_INDEX_LSB                5
615*5113495bSYour Name #define REO_DESTINATION_RING_8_REORDER_SLOT_INDEX_MASK               0x00001fe0
616*5113495bSYour Name 
617*5113495bSYour Name /* Description		REO_DESTINATION_RING_8_RESERVED_8A
618*5113495bSYour Name 
619*5113495bSYour Name 			<legal 0>
620*5113495bSYour Name */
621*5113495bSYour Name #define REO_DESTINATION_RING_8_RESERVED_8A_OFFSET                    0x00000020
622*5113495bSYour Name #define REO_DESTINATION_RING_8_RESERVED_8A_LSB                       13
623*5113495bSYour Name #define REO_DESTINATION_RING_8_RESERVED_8A_MASK                      0xffffe000
624*5113495bSYour Name 
625*5113495bSYour Name /* Description		REO_DESTINATION_RING_9_RESERVED_9A
626*5113495bSYour Name 
627*5113495bSYour Name 			<legal 0>
628*5113495bSYour Name */
629*5113495bSYour Name #define REO_DESTINATION_RING_9_RESERVED_9A_OFFSET                    0x00000024
630*5113495bSYour Name #define REO_DESTINATION_RING_9_RESERVED_9A_LSB                       0
631*5113495bSYour Name #define REO_DESTINATION_RING_9_RESERVED_9A_MASK                      0xffffffff
632*5113495bSYour Name 
633*5113495bSYour Name /* Description		REO_DESTINATION_RING_10_RESERVED_10A
634*5113495bSYour Name 
635*5113495bSYour Name 			<legal 0>
636*5113495bSYour Name */
637*5113495bSYour Name #define REO_DESTINATION_RING_10_RESERVED_10A_OFFSET                  0x00000028
638*5113495bSYour Name #define REO_DESTINATION_RING_10_RESERVED_10A_LSB                     0
639*5113495bSYour Name #define REO_DESTINATION_RING_10_RESERVED_10A_MASK                    0xffffffff
640*5113495bSYour Name 
641*5113495bSYour Name /* Description		REO_DESTINATION_RING_11_RESERVED_11A
642*5113495bSYour Name 
643*5113495bSYour Name 			<legal 0>
644*5113495bSYour Name */
645*5113495bSYour Name #define REO_DESTINATION_RING_11_RESERVED_11A_OFFSET                  0x0000002c
646*5113495bSYour Name #define REO_DESTINATION_RING_11_RESERVED_11A_LSB                     0
647*5113495bSYour Name #define REO_DESTINATION_RING_11_RESERVED_11A_MASK                    0xffffffff
648*5113495bSYour Name 
649*5113495bSYour Name /* Description		REO_DESTINATION_RING_12_RESERVED_12A
650*5113495bSYour Name 
651*5113495bSYour Name 			<legal 0>
652*5113495bSYour Name */
653*5113495bSYour Name #define REO_DESTINATION_RING_12_RESERVED_12A_OFFSET                  0x00000030
654*5113495bSYour Name #define REO_DESTINATION_RING_12_RESERVED_12A_LSB                     0
655*5113495bSYour Name #define REO_DESTINATION_RING_12_RESERVED_12A_MASK                    0xffffffff
656*5113495bSYour Name 
657*5113495bSYour Name /* Description		REO_DESTINATION_RING_13_RESERVED_13A
658*5113495bSYour Name 
659*5113495bSYour Name 			<legal 0>
660*5113495bSYour Name */
661*5113495bSYour Name #define REO_DESTINATION_RING_13_RESERVED_13A_OFFSET                  0x00000034
662*5113495bSYour Name #define REO_DESTINATION_RING_13_RESERVED_13A_LSB                     0
663*5113495bSYour Name #define REO_DESTINATION_RING_13_RESERVED_13A_MASK                    0xffffffff
664*5113495bSYour Name 
665*5113495bSYour Name /* Description		REO_DESTINATION_RING_14_RESERVED_14A
666*5113495bSYour Name 
667*5113495bSYour Name 			<legal 0>
668*5113495bSYour Name */
669*5113495bSYour Name #define REO_DESTINATION_RING_14_RESERVED_14A_OFFSET                  0x00000038
670*5113495bSYour Name #define REO_DESTINATION_RING_14_RESERVED_14A_LSB                     0
671*5113495bSYour Name #define REO_DESTINATION_RING_14_RESERVED_14A_MASK                    0xffffffff
672*5113495bSYour Name 
673*5113495bSYour Name /* Description		REO_DESTINATION_RING_15_RESERVED_15
674*5113495bSYour Name 
675*5113495bSYour Name 			<legal 0>
676*5113495bSYour Name */
677*5113495bSYour Name #define REO_DESTINATION_RING_15_RESERVED_15_OFFSET                   0x0000003c
678*5113495bSYour Name #define REO_DESTINATION_RING_15_RESERVED_15_LSB                      0
679*5113495bSYour Name #define REO_DESTINATION_RING_15_RESERVED_15_MASK                     0x000fffff
680*5113495bSYour Name 
681*5113495bSYour Name /* Description		REO_DESTINATION_RING_15_RING_ID
682*5113495bSYour Name 
683*5113495bSYour Name 			The buffer pointer ring ID.
684*5113495bSYour Name 
685*5113495bSYour Name 			0 refers to the IDLE ring
686*5113495bSYour Name 
687*5113495bSYour Name 			1 - N refers to other rings
688*5113495bSYour Name 
689*5113495bSYour Name 
690*5113495bSYour Name 
691*5113495bSYour Name 			Helps with debugging when dumping ring contents.
692*5113495bSYour Name 
693*5113495bSYour Name 			<legal all>
694*5113495bSYour Name */
695*5113495bSYour Name #define REO_DESTINATION_RING_15_RING_ID_OFFSET                       0x0000003c
696*5113495bSYour Name #define REO_DESTINATION_RING_15_RING_ID_LSB                          20
697*5113495bSYour Name #define REO_DESTINATION_RING_15_RING_ID_MASK                         0x0ff00000
698*5113495bSYour Name 
699*5113495bSYour Name /* Description		REO_DESTINATION_RING_15_LOOPING_COUNT
700*5113495bSYour Name 
701*5113495bSYour Name 			A count value that indicates the number of times the
702*5113495bSYour Name 			producer of entries into this Ring has looped around the
703*5113495bSYour Name 			ring.
704*5113495bSYour Name 
705*5113495bSYour Name 			At initialization time, this value is set to 0. On the
706*5113495bSYour Name 			first loop, this value is set to 1. After the max value is
707*5113495bSYour Name 			reached allowed by the number of bits for this field, the
708*5113495bSYour Name 			count value continues with 0 again.
709*5113495bSYour Name 
710*5113495bSYour Name 			In case SW is the consumer of the ring entries, it can
711*5113495bSYour Name 			use this field to figure out up to where the producer of
712*5113495bSYour Name 			entries has created new entries. This eliminates the need to
713*5113495bSYour Name 			check where the head pointer' of the ring is located once
714*5113495bSYour Name 			the SW starts processing an interrupt indicating that new
715*5113495bSYour Name 			entries have been put into this ring...
716*5113495bSYour Name 
717*5113495bSYour Name 
718*5113495bSYour Name 
719*5113495bSYour Name 			Also note that SW if it wants only needs to look at the
720*5113495bSYour Name 			LSB bit of this count value.
721*5113495bSYour Name 
722*5113495bSYour Name 			<legal all>
723*5113495bSYour Name */
724*5113495bSYour Name #define REO_DESTINATION_RING_15_LOOPING_COUNT_OFFSET                 0x0000003c
725*5113495bSYour Name #define REO_DESTINATION_RING_15_LOOPING_COUNT_LSB                    28
726*5113495bSYour Name #define REO_DESTINATION_RING_15_LOOPING_COUNT_MASK                   0xf0000000
727*5113495bSYour Name 
728*5113495bSYour Name 
729*5113495bSYour Name #endif // _REO_DESTINATION_RING_H_
730