xref: /wlan-driver/fw-api/hw/qcn6432/reo_entrance_ring.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2023 Qualcomm Innovation Center, Inc. All rights reserved.
3*5113495bSYour Name  *
4*5113495bSYour Name  * Permission to use, copy, modify, and/or distribute this software for any
5*5113495bSYour Name  * purpose with or without fee is hereby granted, provided that the above
6*5113495bSYour Name  * copyright notice and this permission notice appear in all copies.
7*5113495bSYour Name  *
8*5113495bSYour Name  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9*5113495bSYour Name  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10*5113495bSYour Name  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11*5113495bSYour Name  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12*5113495bSYour Name  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13*5113495bSYour Name  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14*5113495bSYour Name  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15*5113495bSYour Name  */
16*5113495bSYour Name 
17*5113495bSYour Name #ifndef _REO_ENTRANCE_RING_H_
18*5113495bSYour Name #define _REO_ENTRANCE_RING_H_
19*5113495bSYour Name #if !defined(__ASSEMBLER__)
20*5113495bSYour Name #endif
21*5113495bSYour Name 
22*5113495bSYour Name #include "rx_mpdu_details.h"
23*5113495bSYour Name #define NUM_OF_DWORDS_REO_ENTRANCE_RING 8
24*5113495bSYour Name 
25*5113495bSYour Name 
26*5113495bSYour Name struct reo_entrance_ring {
27*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
28*5113495bSYour Name              struct   rx_mpdu_details                                           reo_level_mpdu_frame_info;
29*5113495bSYour Name              uint32_t rx_reo_queue_desc_addr_31_0                             : 32; // [31:0]
30*5113495bSYour Name              uint32_t rx_reo_queue_desc_addr_39_32                            :  8, // [7:0]
31*5113495bSYour Name                       rounded_mpdu_byte_count                                 : 14, // [21:8]
32*5113495bSYour Name                       reo_destination_indication                              :  5, // [26:22]
33*5113495bSYour Name                       frameless_bar                                           :  1, // [27:27]
34*5113495bSYour Name                       reserved_5a                                             :  4; // [31:28]
35*5113495bSYour Name              uint32_t rxdma_push_reason                                       :  2, // [1:0]
36*5113495bSYour Name                       rxdma_error_code                                        :  5, // [6:2]
37*5113495bSYour Name                       mpdu_fragment_number                                    :  4, // [10:7]
38*5113495bSYour Name                       sw_exception                                            :  1, // [11:11]
39*5113495bSYour Name                       sw_exception_mpdu_delink                                :  1, // [12:12]
40*5113495bSYour Name                       sw_exception_destination_ring_valid                     :  1, // [13:13]
41*5113495bSYour Name                       sw_exception_destination_ring                           :  5, // [18:14]
42*5113495bSYour Name                       mpdu_sequence_number                                    : 12, // [30:19]
43*5113495bSYour Name                       reserved_6a                                             :  1; // [31:31]
44*5113495bSYour Name              uint32_t phy_ppdu_id                                             : 16, // [15:0]
45*5113495bSYour Name                       src_link_id                                             :  3, // [18:16]
46*5113495bSYour Name                       reserved_7a                                             :  1, // [19:19]
47*5113495bSYour Name                       ring_id                                                 :  8, // [27:20]
48*5113495bSYour Name                       looping_count                                           :  4; // [31:28]
49*5113495bSYour Name #else
50*5113495bSYour Name              struct   rx_mpdu_details                                           reo_level_mpdu_frame_info;
51*5113495bSYour Name              uint32_t rx_reo_queue_desc_addr_31_0                             : 32; // [31:0]
52*5113495bSYour Name              uint32_t reserved_5a                                             :  4, // [31:28]
53*5113495bSYour Name                       frameless_bar                                           :  1, // [27:27]
54*5113495bSYour Name                       reo_destination_indication                              :  5, // [26:22]
55*5113495bSYour Name                       rounded_mpdu_byte_count                                 : 14, // [21:8]
56*5113495bSYour Name                       rx_reo_queue_desc_addr_39_32                            :  8; // [7:0]
57*5113495bSYour Name              uint32_t reserved_6a                                             :  1, // [31:31]
58*5113495bSYour Name                       mpdu_sequence_number                                    : 12, // [30:19]
59*5113495bSYour Name                       sw_exception_destination_ring                           :  5, // [18:14]
60*5113495bSYour Name                       sw_exception_destination_ring_valid                     :  1, // [13:13]
61*5113495bSYour Name                       sw_exception_mpdu_delink                                :  1, // [12:12]
62*5113495bSYour Name                       sw_exception                                            :  1, // [11:11]
63*5113495bSYour Name                       mpdu_fragment_number                                    :  4, // [10:7]
64*5113495bSYour Name                       rxdma_error_code                                        :  5, // [6:2]
65*5113495bSYour Name                       rxdma_push_reason                                       :  2; // [1:0]
66*5113495bSYour Name              uint32_t looping_count                                           :  4, // [31:28]
67*5113495bSYour Name                       ring_id                                                 :  8, // [27:20]
68*5113495bSYour Name                       reserved_7a                                             :  1, // [19:19]
69*5113495bSYour Name                       src_link_id                                             :  3, // [18:16]
70*5113495bSYour Name                       phy_ppdu_id                                             : 16; // [15:0]
71*5113495bSYour Name #endif
72*5113495bSYour Name };
73*5113495bSYour Name 
74*5113495bSYour Name 
75*5113495bSYour Name /* Description		REO_LEVEL_MPDU_FRAME_INFO
76*5113495bSYour Name 
77*5113495bSYour Name 			Consumer: REO
78*5113495bSYour Name 			Producer: RXDMA
79*5113495bSYour Name 
80*5113495bSYour Name 			Details related to the MPDU being pushed into the REO
81*5113495bSYour Name */
82*5113495bSYour Name 
83*5113495bSYour Name 
84*5113495bSYour Name /* Description		MSDU_LINK_DESC_ADDR_INFO
85*5113495bSYour Name 
86*5113495bSYour Name 			Consumer: REO/SW/FW
87*5113495bSYour Name 			Producer: RXDMA
88*5113495bSYour Name 
89*5113495bSYour Name 			Details of the physical address of the MSDU link descriptor
90*5113495bSYour Name 			 that contains pointers to MSDUs related to this MPDU
91*5113495bSYour Name */
92*5113495bSYour Name 
93*5113495bSYour Name 
94*5113495bSYour Name /* Description		BUFFER_ADDR_31_0
95*5113495bSYour Name 
96*5113495bSYour Name 			Address (lower 32 bits) of the MSDU buffer OR MSDU_EXTENSION
97*5113495bSYour Name 			 descriptor OR Link Descriptor
98*5113495bSYour Name 
99*5113495bSYour Name 			In case of 'NULL' pointer, this field is set to 0
100*5113495bSYour Name 			<legal all>
101*5113495bSYour Name */
102*5113495bSYour Name 
103*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_BUFFER_ADDR_31_0_OFFSET 0x00000000
104*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_BUFFER_ADDR_31_0_LSB 0
105*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_BUFFER_ADDR_31_0_MSB 31
106*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_BUFFER_ADDR_31_0_MASK 0xffffffff
107*5113495bSYour Name 
108*5113495bSYour Name 
109*5113495bSYour Name /* Description		BUFFER_ADDR_39_32
110*5113495bSYour Name 
111*5113495bSYour Name 			Address (upper 8 bits) of the MSDU buffer OR MSDU_EXTENSION
112*5113495bSYour Name 			 descriptor OR Link Descriptor
113*5113495bSYour Name 
114*5113495bSYour Name 			In case of 'NULL' pointer, this field is set to 0
115*5113495bSYour Name 			<legal all>
116*5113495bSYour Name */
117*5113495bSYour Name 
118*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_BUFFER_ADDR_39_32_OFFSET 0x00000004
119*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_BUFFER_ADDR_39_32_LSB 0
120*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_BUFFER_ADDR_39_32_MSB 7
121*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_BUFFER_ADDR_39_32_MASK 0x000000ff
122*5113495bSYour Name 
123*5113495bSYour Name 
124*5113495bSYour Name /* Description		RETURN_BUFFER_MANAGER
125*5113495bSYour Name 
126*5113495bSYour Name 			Consumer: WBM
127*5113495bSYour Name 			Producer: SW/FW
128*5113495bSYour Name 
129*5113495bSYour Name 			In case of 'NULL' pointer, this field is set to 0
130*5113495bSYour Name 
131*5113495bSYour Name 			Indicates to which buffer manager the buffer OR MSDU_EXTENSION
132*5113495bSYour Name 			 descriptor OR link descriptor that is being pointed to
133*5113495bSYour Name 			shall be returned after the frame has been processed. It
134*5113495bSYour Name 			 is used by WBM for routing purposes.
135*5113495bSYour Name 
136*5113495bSYour Name 			<enum 0 WBM_IDLE_BUF_LIST> This buffer shall be returned
137*5113495bSYour Name 			 to the WMB buffer idle list
138*5113495bSYour Name 			<enum 1 WBM_CHIP0_IDLE_DESC_LIST> This buffer shall be returned
139*5113495bSYour Name 			 to the WBM idle link descriptor idle list, where the chip
140*5113495bSYour Name 			 0 WBM is chosen in case of a multi-chip config
141*5113495bSYour Name 			<enum 2 WBM_CHIP1_IDLE_DESC_LIST> This buffer shall be returned
142*5113495bSYour Name 			 to the chip 1 WBM idle link descriptor idle list
143*5113495bSYour Name 			<enum 3 WBM_CHIP2_IDLE_DESC_LIST> This buffer shall be returned
144*5113495bSYour Name 			 to the chip 2 WBM idle link descriptor idle list
145*5113495bSYour Name 			<enum 12 WBM_CHIP3_IDLE_DESC_LIST> This buffer shall be
146*5113495bSYour Name 			returned to chip 3 WBM idle link descriptor idle list
147*5113495bSYour Name 			<enum 4 FW_BM> This buffer shall be returned to the FW
148*5113495bSYour Name 			<enum 5 SW0_BM> This buffer shall be returned to the SW,
149*5113495bSYour Name 			ring 0
150*5113495bSYour Name 			<enum 6 SW1_BM> This buffer shall be returned to the SW,
151*5113495bSYour Name 			ring 1
152*5113495bSYour Name 			<enum 7 SW2_BM> This buffer shall be returned to the SW,
153*5113495bSYour Name 			ring 2
154*5113495bSYour Name 			<enum 8 SW3_BM> This buffer shall be returned to the SW,
155*5113495bSYour Name 			ring 3
156*5113495bSYour Name 			<enum 9 SW4_BM> This buffer shall be returned to the SW,
157*5113495bSYour Name 			ring 4
158*5113495bSYour Name 			<enum 10 SW5_BM> This buffer shall be returned to the SW,
159*5113495bSYour Name 			ring 5
160*5113495bSYour Name 			<enum 11 SW6_BM> This buffer shall be returned to the SW,
161*5113495bSYour Name 			ring 6
162*5113495bSYour Name 
163*5113495bSYour Name 			<legal 0-12>
164*5113495bSYour Name */
165*5113495bSYour Name 
166*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_RETURN_BUFFER_MANAGER_OFFSET 0x00000004
167*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_RETURN_BUFFER_MANAGER_LSB 8
168*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_RETURN_BUFFER_MANAGER_MSB 11
169*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_RETURN_BUFFER_MANAGER_MASK 0x00000f00
170*5113495bSYour Name 
171*5113495bSYour Name 
172*5113495bSYour Name /* Description		SW_BUFFER_COOKIE
173*5113495bSYour Name 
174*5113495bSYour Name 			Cookie field exclusively used by SW.
175*5113495bSYour Name 
176*5113495bSYour Name 			In case of 'NULL' pointer, this field is set to 0
177*5113495bSYour Name 
178*5113495bSYour Name 			HW ignores the contents, accept that it passes the programmed
179*5113495bSYour Name 			 value on to other descriptors together with the physical
180*5113495bSYour Name 			 address
181*5113495bSYour Name 
182*5113495bSYour Name 			Field can be used by SW to for example associate the buffers
183*5113495bSYour Name 			 physical address with the virtual address
184*5113495bSYour Name 			The bit definitions as used by SW are within SW HLD specification
185*5113495bSYour Name 
186*5113495bSYour Name 
187*5113495bSYour Name 			NOTE1:
188*5113495bSYour Name 			The three most significant bits can have a special meaning
189*5113495bSYour Name 			 in case this struct is embedded in a TX_MPDU_DETAILS STRUCT,
190*5113495bSYour Name 			and field transmit_bw_restriction is set
191*5113495bSYour Name 
192*5113495bSYour Name 			In case of NON punctured transmission:
193*5113495bSYour Name 			Sw_buffer_cookie[19:17] = 3'b000: 20 MHz TX only
194*5113495bSYour Name 			Sw_buffer_cookie[19:17] = 3'b001: 40 MHz TX only
195*5113495bSYour Name 			Sw_buffer_cookie[19:17] = 3'b010: 80 MHz TX only
196*5113495bSYour Name 			Sw_buffer_cookie[19:17] = 3'b011: 160 MHz TX only
197*5113495bSYour Name 			Sw_buffer_cookie[19:17] = 3'b101: 240 MHz TX only
198*5113495bSYour Name 			Sw_buffer_cookie[19:17] = 3'b100: 320 MHz TX only
199*5113495bSYour Name 			Sw_buffer_cookie[19:18] = 2'b11: reserved
200*5113495bSYour Name 
201*5113495bSYour Name 			In case of punctured transmission:
202*5113495bSYour Name 			Sw_buffer_cookie[19:16] = 4'b0000: pattern 0 only
203*5113495bSYour Name 			Sw_buffer_cookie[19:16] = 4'b0001: pattern 1 only
204*5113495bSYour Name 			Sw_buffer_cookie[19:16] = 4'b0010: pattern 2 only
205*5113495bSYour Name 			Sw_buffer_cookie[19:16] = 4'b0011: pattern 3 only
206*5113495bSYour Name 			Sw_buffer_cookie[19:16] = 4'b0100: pattern 4 only
207*5113495bSYour Name 			Sw_buffer_cookie[19:16] = 4'b0101: pattern 5 only
208*5113495bSYour Name 			Sw_buffer_cookie[19:16] = 4'b0110: pattern 6 only
209*5113495bSYour Name 			Sw_buffer_cookie[19:16] = 4'b0111: pattern 7 only
210*5113495bSYour Name 			Sw_buffer_cookie[19:16] = 4'b1000: pattern 8 only
211*5113495bSYour Name 			Sw_buffer_cookie[19:16] = 4'b1001: pattern 9 only
212*5113495bSYour Name 			Sw_buffer_cookie[19:16] = 4'b1010: pattern 10 only
213*5113495bSYour Name 			Sw_buffer_cookie[19:16] = 4'b1011: pattern 11 only
214*5113495bSYour Name 			Sw_buffer_cookie[19:18] = 2'b11: reserved
215*5113495bSYour Name 
216*5113495bSYour Name 			Note: a punctured transmission is indicated by the presence
217*5113495bSYour Name 			 of TLV TX_PUNCTURE_SETUP embedded in the scheduler TLV
218*5113495bSYour Name 
219*5113495bSYour Name 			<legal all>
220*5113495bSYour Name */
221*5113495bSYour Name 
222*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_SW_BUFFER_COOKIE_OFFSET 0x00000004
223*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_SW_BUFFER_COOKIE_LSB 12
224*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_SW_BUFFER_COOKIE_MSB 31
225*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_MSDU_LINK_DESC_ADDR_INFO_SW_BUFFER_COOKIE_MASK 0xfffff000
226*5113495bSYour Name 
227*5113495bSYour Name 
228*5113495bSYour Name /* Description		RX_MPDU_DESC_INFO_DETAILS
229*5113495bSYour Name 
230*5113495bSYour Name 			Consumer: REO/SW/FW
231*5113495bSYour Name 			Producer: RXDMA
232*5113495bSYour Name 
233*5113495bSYour Name 			General information related to the MPDU that should be passed
234*5113495bSYour Name 			 on from REO entrance ring to the REO destination ring
235*5113495bSYour Name */
236*5113495bSYour Name 
237*5113495bSYour Name 
238*5113495bSYour Name /* Description		MSDU_COUNT
239*5113495bSYour Name 
240*5113495bSYour Name 			Consumer: REO/SW/FW
241*5113495bSYour Name 			Producer: RXDMA
242*5113495bSYour Name 
243*5113495bSYour Name 			The number of MSDUs within the MPDU
244*5113495bSYour Name 			<legal all>
245*5113495bSYour Name */
246*5113495bSYour Name 
247*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MSDU_COUNT_OFFSET 0x00000008
248*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MSDU_COUNT_LSB 0
249*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MSDU_COUNT_MSB 7
250*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MSDU_COUNT_MASK 0x000000ff
251*5113495bSYour Name 
252*5113495bSYour Name 
253*5113495bSYour Name /* Description		FRAGMENT_FLAG
254*5113495bSYour Name 
255*5113495bSYour Name 			Consumer: REO/SW/FW
256*5113495bSYour Name 			Producer: RXDMA
257*5113495bSYour Name 
258*5113495bSYour Name 			When set, this MPDU is a fragment and REO should forward
259*5113495bSYour Name 			 this fragment MPDU to the REO destination ring without
260*5113495bSYour Name 			any reorder checks, pn checks or bitmap update. This implies
261*5113495bSYour Name 			 that REO is forwarding the pointer to the MSDU link descriptor.
262*5113495bSYour Name 			The destination ring is coming from a programmable register
263*5113495bSYour Name 			 setting in REO
264*5113495bSYour Name 
265*5113495bSYour Name 			<legal all>
266*5113495bSYour Name */
267*5113495bSYour Name 
268*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_FRAGMENT_FLAG_OFFSET 0x00000008
269*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_FRAGMENT_FLAG_LSB 8
270*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_FRAGMENT_FLAG_MSB 8
271*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_FRAGMENT_FLAG_MASK 0x00000100
272*5113495bSYour Name 
273*5113495bSYour Name 
274*5113495bSYour Name /* Description		MPDU_RETRY_BIT
275*5113495bSYour Name 
276*5113495bSYour Name 			Consumer: REO/SW/FW
277*5113495bSYour Name 			Producer: RXDMA
278*5113495bSYour Name 
279*5113495bSYour Name 			The retry bit setting from the MPDU header of the received
280*5113495bSYour Name 			 frame
281*5113495bSYour Name 			<legal all>
282*5113495bSYour Name */
283*5113495bSYour Name 
284*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MPDU_RETRY_BIT_OFFSET 0x00000008
285*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MPDU_RETRY_BIT_LSB 9
286*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MPDU_RETRY_BIT_MSB 9
287*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MPDU_RETRY_BIT_MASK 0x00000200
288*5113495bSYour Name 
289*5113495bSYour Name 
290*5113495bSYour Name /* Description		AMPDU_FLAG
291*5113495bSYour Name 
292*5113495bSYour Name 			Consumer: REO/SW/FW
293*5113495bSYour Name 			Producer: RXDMA
294*5113495bSYour Name 
295*5113495bSYour Name 			When set, the MPDU was received as part of an A-MPDU.
296*5113495bSYour Name 			<legal all>
297*5113495bSYour Name */
298*5113495bSYour Name 
299*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_AMPDU_FLAG_OFFSET 0x00000008
300*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_AMPDU_FLAG_LSB 10
301*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_AMPDU_FLAG_MSB 10
302*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_AMPDU_FLAG_MASK 0x00000400
303*5113495bSYour Name 
304*5113495bSYour Name 
305*5113495bSYour Name /* Description		BAR_FRAME
306*5113495bSYour Name 
307*5113495bSYour Name 			Consumer: REO/SW/FW
308*5113495bSYour Name 			Producer: RXDMA
309*5113495bSYour Name 
310*5113495bSYour Name 			When set, the received frame is a BAR frame. After processing,
311*5113495bSYour Name 			this frame shall be pushed to SW or deleted.
312*5113495bSYour Name 			<legal all>
313*5113495bSYour Name */
314*5113495bSYour Name 
315*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_BAR_FRAME_OFFSET 0x00000008
316*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_BAR_FRAME_LSB 11
317*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_BAR_FRAME_MSB 11
318*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_BAR_FRAME_MASK 0x00000800
319*5113495bSYour Name 
320*5113495bSYour Name 
321*5113495bSYour Name /* Description		PN_FIELDS_CONTAIN_VALID_INFO
322*5113495bSYour Name 
323*5113495bSYour Name 			Consumer: REO/SW/FW
324*5113495bSYour Name 			Producer: RXDMA
325*5113495bSYour Name 
326*5113495bSYour Name 			Copied here by RXDMA from RX_MPDU_END
327*5113495bSYour Name 			When not set, REO will Not perform a PN sequence number
328*5113495bSYour Name 			check
329*5113495bSYour Name */
330*5113495bSYour Name 
331*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_PN_FIELDS_CONTAIN_VALID_INFO_OFFSET 0x00000008
332*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_PN_FIELDS_CONTAIN_VALID_INFO_LSB 12
333*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_PN_FIELDS_CONTAIN_VALID_INFO_MSB 12
334*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_PN_FIELDS_CONTAIN_VALID_INFO_MASK 0x00001000
335*5113495bSYour Name 
336*5113495bSYour Name 
337*5113495bSYour Name /* Description		RAW_MPDU
338*5113495bSYour Name 
339*5113495bSYour Name 			Field only valid when first_msdu_in_mpdu_flag is set.
340*5113495bSYour Name 
341*5113495bSYour Name 			When set, the contents in the MSDU buffer contains a 'RAW'
342*5113495bSYour Name 			MPDU. This 'RAW' MPDU might be spread out over multiple
343*5113495bSYour Name 			MSDU buffers.
344*5113495bSYour Name 			<legal all>
345*5113495bSYour Name */
346*5113495bSYour Name 
347*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_RAW_MPDU_OFFSET 0x00000008
348*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_RAW_MPDU_LSB 13
349*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_RAW_MPDU_MSB 13
350*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_RAW_MPDU_MASK 0x00002000
351*5113495bSYour Name 
352*5113495bSYour Name 
353*5113495bSYour Name /* Description		MORE_FRAGMENT_FLAG
354*5113495bSYour Name 
355*5113495bSYour Name 			The More Fragment bit setting from the MPDU header of the
356*5113495bSYour Name 			 received frame
357*5113495bSYour Name 
358*5113495bSYour Name 			<legal all>
359*5113495bSYour Name */
360*5113495bSYour Name 
361*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MORE_FRAGMENT_FLAG_OFFSET 0x00000008
362*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MORE_FRAGMENT_FLAG_LSB 14
363*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MORE_FRAGMENT_FLAG_MSB 14
364*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MORE_FRAGMENT_FLAG_MASK 0x00004000
365*5113495bSYour Name 
366*5113495bSYour Name 
367*5113495bSYour Name /* Description		SRC_INFO
368*5113495bSYour Name 
369*5113495bSYour Name 			Source (virtual) device/interface info. associated with
370*5113495bSYour Name 			this peer
371*5113495bSYour Name 
372*5113495bSYour Name 			This field gets passed on by REO to PPE in the EDMA descriptor
373*5113495bSYour Name 			 ('REO_TO_PPE_RING').
374*5113495bSYour Name 
375*5113495bSYour Name 			<legal all>
376*5113495bSYour Name */
377*5113495bSYour Name 
378*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_SRC_INFO_OFFSET 0x00000008
379*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_SRC_INFO_LSB 15
380*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_SRC_INFO_MSB 26
381*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_SRC_INFO_MASK 0x07ff8000
382*5113495bSYour Name 
383*5113495bSYour Name 
384*5113495bSYour Name /* Description		MPDU_QOS_CONTROL_VALID
385*5113495bSYour Name 
386*5113495bSYour Name 			When set, the MPDU has a QoS control field.
387*5113495bSYour Name 
388*5113495bSYour Name 			In case of ndp or phy_err, this field will never be set.
389*5113495bSYour Name 
390*5113495bSYour Name 			<legal all>
391*5113495bSYour Name */
392*5113495bSYour Name 
393*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MPDU_QOS_CONTROL_VALID_OFFSET 0x00000008
394*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MPDU_QOS_CONTROL_VALID_LSB 27
395*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MPDU_QOS_CONTROL_VALID_MSB 27
396*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_MPDU_QOS_CONTROL_VALID_MASK 0x08000000
397*5113495bSYour Name 
398*5113495bSYour Name 
399*5113495bSYour Name /* Description		TID
400*5113495bSYour Name 
401*5113495bSYour Name 			Field only valid when mpdu_qos_control_valid is set
402*5113495bSYour Name 
403*5113495bSYour Name 			The TID field in the QoS control field
404*5113495bSYour Name 			<legal all>
405*5113495bSYour Name */
406*5113495bSYour Name 
407*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_TID_OFFSET 0x00000008
408*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_TID_LSB 28
409*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_TID_MSB 31
410*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_TID_MASK 0xf0000000
411*5113495bSYour Name 
412*5113495bSYour Name 
413*5113495bSYour Name /* Description		PEER_META_DATA
414*5113495bSYour Name 
415*5113495bSYour Name 			Meta data that SW has programmed in the Peer table entry
416*5113495bSYour Name 			 of the transmitting STA.
417*5113495bSYour Name 			<legal all>
418*5113495bSYour Name */
419*5113495bSYour Name 
420*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_PEER_META_DATA_OFFSET 0x0000000c
421*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_PEER_META_DATA_LSB 0
422*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_PEER_META_DATA_MSB 31
423*5113495bSYour Name #define REO_ENTRANCE_RING_REO_LEVEL_MPDU_FRAME_INFO_RX_MPDU_DESC_INFO_DETAILS_PEER_META_DATA_MASK 0xffffffff
424*5113495bSYour Name 
425*5113495bSYour Name 
426*5113495bSYour Name /* Description		RX_REO_QUEUE_DESC_ADDR_31_0
427*5113495bSYour Name 
428*5113495bSYour Name 			Consumer: REO
429*5113495bSYour Name 			Producer: RXDMA
430*5113495bSYour Name 
431*5113495bSYour Name 			Address (lower 32 bits) of the REO queue descriptor
432*5113495bSYour Name 
433*5113495bSYour Name 			Alternatively, REO internally looks up the
434*5113495bSYour Name 			 queue descriptor address from 'Sw_peer_id' and 'Tid.' In
435*5113495bSYour Name 			 this mode, RXDMA fills 'Sw_peer_id' from 'RX_MPDU_START'
436*5113495bSYour Name 			in the LSB 16 bits. 'Tid' is available in 'RX_MPDU_DETAILS.'
437*5113495bSYour Name 
438*5113495bSYour Name 			<legal all>
439*5113495bSYour Name */
440*5113495bSYour Name 
441*5113495bSYour Name #define REO_ENTRANCE_RING_RX_REO_QUEUE_DESC_ADDR_31_0_OFFSET                        0x00000010
442*5113495bSYour Name #define REO_ENTRANCE_RING_RX_REO_QUEUE_DESC_ADDR_31_0_LSB                           0
443*5113495bSYour Name #define REO_ENTRANCE_RING_RX_REO_QUEUE_DESC_ADDR_31_0_MSB                           31
444*5113495bSYour Name #define REO_ENTRANCE_RING_RX_REO_QUEUE_DESC_ADDR_31_0_MASK                          0xffffffff
445*5113495bSYour Name 
446*5113495bSYour Name 
447*5113495bSYour Name /* Description		RX_REO_QUEUE_DESC_ADDR_39_32
448*5113495bSYour Name 
449*5113495bSYour Name 			Consumer: REO
450*5113495bSYour Name 			Producer: RXDMA
451*5113495bSYour Name 
452*5113495bSYour Name 			Address (upper 8 bits) of the REO queue descriptor
453*5113495bSYour Name 			Alternatively, REO internally looks up the
454*5113495bSYour Name 			 queue descriptor address from 'Sw_peer_id' and 'Tid.' In
455*5113495bSYour Name 			 this mode, this field is unused.
456*5113495bSYour Name 			<legal all>
457*5113495bSYour Name */
458*5113495bSYour Name 
459*5113495bSYour Name #define REO_ENTRANCE_RING_RX_REO_QUEUE_DESC_ADDR_39_32_OFFSET                       0x00000014
460*5113495bSYour Name #define REO_ENTRANCE_RING_RX_REO_QUEUE_DESC_ADDR_39_32_LSB                          0
461*5113495bSYour Name #define REO_ENTRANCE_RING_RX_REO_QUEUE_DESC_ADDR_39_32_MSB                          7
462*5113495bSYour Name #define REO_ENTRANCE_RING_RX_REO_QUEUE_DESC_ADDR_39_32_MASK                         0x000000ff
463*5113495bSYour Name 
464*5113495bSYour Name 
465*5113495bSYour Name /* Description		ROUNDED_MPDU_BYTE_COUNT
466*5113495bSYour Name 
467*5113495bSYour Name 			An approximation of the number of bytes received in this
468*5113495bSYour Name 			 MPDU.
469*5113495bSYour Name 			Used to keeps stats on the amount of data flowing through
470*5113495bSYour Name 			 a queue.
471*5113495bSYour Name 			<legal all>
472*5113495bSYour Name */
473*5113495bSYour Name 
474*5113495bSYour Name #define REO_ENTRANCE_RING_ROUNDED_MPDU_BYTE_COUNT_OFFSET                            0x00000014
475*5113495bSYour Name #define REO_ENTRANCE_RING_ROUNDED_MPDU_BYTE_COUNT_LSB                               8
476*5113495bSYour Name #define REO_ENTRANCE_RING_ROUNDED_MPDU_BYTE_COUNT_MSB                               21
477*5113495bSYour Name #define REO_ENTRANCE_RING_ROUNDED_MPDU_BYTE_COUNT_MASK                              0x003fff00
478*5113495bSYour Name 
479*5113495bSYour Name 
480*5113495bSYour Name /* Description		REO_DESTINATION_INDICATION
481*5113495bSYour Name 
482*5113495bSYour Name 			RXDMA copy the MPDU's first MSDU's destination indication
483*5113495bSYour Name 			 field here. This is used for REO to be able to re-route
484*5113495bSYour Name 			 the packet to a different SW destination ring if the packet
485*5113495bSYour Name 			 is detected as error in REO.
486*5113495bSYour Name 
487*5113495bSYour Name 			The ID of the REO exit ring where the MSDU frame shall push
488*5113495bSYour Name 			 after (MPDU level) reordering has finished.
489*5113495bSYour Name 
490*5113495bSYour Name 			<enum 0 reo_destination_sw0> Reo will push the frame into
491*5113495bSYour Name 			 the REO2SW0 ring
492*5113495bSYour Name 			<enum 1 reo_destination_sw1> Reo will push the frame into
493*5113495bSYour Name 			 the REO2SW1 ring
494*5113495bSYour Name 			<enum 2 reo_destination_sw2> Reo will push the frame into
495*5113495bSYour Name 			 the REO2SW2 ring
496*5113495bSYour Name 			<enum 3 reo_destination_sw3> Reo will push the frame into
497*5113495bSYour Name 			 the REO2SW3 ring
498*5113495bSYour Name 			<enum 4 reo_destination_sw4> Reo will push the frame into
499*5113495bSYour Name 			 the REO2SW4 ring
500*5113495bSYour Name 			<enum 5 reo_destination_release> Reo will push the frame
501*5113495bSYour Name 			 into the REO_release ring
502*5113495bSYour Name 			<enum 6 reo_destination_fw> Reo will push the frame into
503*5113495bSYour Name 			 the REO2FW ring
504*5113495bSYour Name 			<enum 7 reo_destination_sw5> Reo will push the frame into
505*5113495bSYour Name 			 the REO2SW5 ring (REO remaps this in chips without REO2SW5
506*5113495bSYour Name 			 ring)
507*5113495bSYour Name 			<enum 8 reo_destination_sw6> Reo will push the frame into
508*5113495bSYour Name 			 the REO2SW6 ring (REO remaps this in chips without REO2SW6
509*5113495bSYour Name 			 ring)
510*5113495bSYour Name 			 <enum 9 reo_destination_sw7> Reo will push the frame into
511*5113495bSYour Name 			 the REO2SW7 ring (REO remaps this in chips without REO2SW7
512*5113495bSYour Name 			 ring)
513*5113495bSYour Name 			<enum 10 reo_destination_sw8> Reo will push the frame into
514*5113495bSYour Name 			 the REO2SW8 ring (REO remaps this in chips without REO2SW8
515*5113495bSYour Name 			 ring)
516*5113495bSYour Name 			<enum 11 reo_destination_11> REO remaps this
517*5113495bSYour Name 			<enum 12 reo_destination_12> REO remaps this <enum 13 reo_destination_13>
518*5113495bSYour Name 			REO remaps this
519*5113495bSYour Name 			<enum 14 reo_destination_14> REO remaps this
520*5113495bSYour Name 			<enum 15 reo_destination_15> REO remaps this
521*5113495bSYour Name 			<enum 16 reo_destination_16> REO remaps this
522*5113495bSYour Name 			<enum 17 reo_destination_17> REO remaps this
523*5113495bSYour Name 			<enum 18 reo_destination_18> REO remaps this
524*5113495bSYour Name 			<enum 19 reo_destination_19> REO remaps this
525*5113495bSYour Name 			<enum 20 reo_destination_20> REO remaps this
526*5113495bSYour Name 			<enum 21 reo_destination_21> REO remaps this
527*5113495bSYour Name 			<enum 22 reo_destination_22> REO remaps this
528*5113495bSYour Name 			<enum 23 reo_destination_23> REO remaps this
529*5113495bSYour Name 			<enum 24 reo_destination_24> REO remaps this
530*5113495bSYour Name 			<enum 25 reo_destination_25> REO remaps this
531*5113495bSYour Name 			<enum 26 reo_destination_26> REO remaps this
532*5113495bSYour Name 			<enum 27 reo_destination_27> REO remaps this
533*5113495bSYour Name 			<enum 28 reo_destination_28> REO remaps this
534*5113495bSYour Name 			<enum 29 reo_destination_29> REO remaps this
535*5113495bSYour Name 			<enum 30 reo_destination_30> REO remaps this
536*5113495bSYour Name 			<enum 31 reo_destination_31> REO remaps this
537*5113495bSYour Name 
538*5113495bSYour Name 			<legal all>
539*5113495bSYour Name */
540*5113495bSYour Name 
541*5113495bSYour Name #define REO_ENTRANCE_RING_REO_DESTINATION_INDICATION_OFFSET                         0x00000014
542*5113495bSYour Name #define REO_ENTRANCE_RING_REO_DESTINATION_INDICATION_LSB                            22
543*5113495bSYour Name #define REO_ENTRANCE_RING_REO_DESTINATION_INDICATION_MSB                            26
544*5113495bSYour Name #define REO_ENTRANCE_RING_REO_DESTINATION_INDICATION_MASK                           0x07c00000
545*5113495bSYour Name 
546*5113495bSYour Name 
547*5113495bSYour Name /* Description		FRAMELESS_BAR
548*5113495bSYour Name 
549*5113495bSYour Name 			When set, this REO entrance ring struct contains BAR info
550*5113495bSYour Name 			 from a multi TID BAR frame. The original multi TID BAR
551*5113495bSYour Name 			frame itself contained all the REO info for the first TID,
552*5113495bSYour Name 			but all the subsequent TID info and their linkage to the
553*5113495bSYour Name 			 REO descriptors is passed down as 'frameless' BAR info.
554*5113495bSYour Name 
555*5113495bSYour Name 
556*5113495bSYour Name 			The only fields valid in this descriptor when this bit is
557*5113495bSYour Name 			 set are:
558*5113495bSYour Name 			Rx_reo_queue_desc_addr_31_0
559*5113495bSYour Name 			RX_reo_queue_desc_addr_39_32
560*5113495bSYour Name 
561*5113495bSYour Name 			And within the
562*5113495bSYour Name 			Reo_level_mpdu_frame_info:
563*5113495bSYour Name 			   Within Rx_mpdu_desc_info_details:
564*5113495bSYour Name 			Mpdu_Sequence_number
565*5113495bSYour Name 			BAR_frame
566*5113495bSYour Name 			Peer_meta_data
567*5113495bSYour Name 			All other fields shall be set to 0
568*5113495bSYour Name 
569*5113495bSYour Name 			<legal all>
570*5113495bSYour Name */
571*5113495bSYour Name 
572*5113495bSYour Name #define REO_ENTRANCE_RING_FRAMELESS_BAR_OFFSET                                      0x00000014
573*5113495bSYour Name #define REO_ENTRANCE_RING_FRAMELESS_BAR_LSB                                         27
574*5113495bSYour Name #define REO_ENTRANCE_RING_FRAMELESS_BAR_MSB                                         27
575*5113495bSYour Name #define REO_ENTRANCE_RING_FRAMELESS_BAR_MASK                                        0x08000000
576*5113495bSYour Name 
577*5113495bSYour Name 
578*5113495bSYour Name /* Description		RESERVED_5A
579*5113495bSYour Name 
580*5113495bSYour Name 			<legal 0>
581*5113495bSYour Name */
582*5113495bSYour Name 
583*5113495bSYour Name #define REO_ENTRANCE_RING_RESERVED_5A_OFFSET                                        0x00000014
584*5113495bSYour Name #define REO_ENTRANCE_RING_RESERVED_5A_LSB                                           28
585*5113495bSYour Name #define REO_ENTRANCE_RING_RESERVED_5A_MSB                                           31
586*5113495bSYour Name #define REO_ENTRANCE_RING_RESERVED_5A_MASK                                          0xf0000000
587*5113495bSYour Name 
588*5113495bSYour Name 
589*5113495bSYour Name /* Description		RXDMA_PUSH_REASON
590*5113495bSYour Name 
591*5113495bSYour Name 			Indicates why rxdma pushed the frame to this ring
592*5113495bSYour Name 
593*5113495bSYour Name 			This field is ignored by REO.
594*5113495bSYour Name 
595*5113495bSYour Name 			<enum 0 rxdma_error_detected> RXDMA detected an error an
596*5113495bSYour Name 			 pushed this frame to this queue
597*5113495bSYour Name 			<enum 1 rxdma_routing_instruction> RXDMA pushed the frame
598*5113495bSYour Name 			 to this queue per received routing instructions. No error
599*5113495bSYour Name 			 within RXDMA was detected
600*5113495bSYour Name 			<enum 2 rxdma_rx_flush> RXDMA received an RX_FLUSH. As a
601*5113495bSYour Name 			 result the MSDU link descriptor might not have the "last_msdu_in_mpdu_flag"
602*5113495bSYour Name 			set, but instead WBM might just see a NULL pointer in the
603*5113495bSYour Name 			 MSDU link descriptor. This is to be considered a normal
604*5113495bSYour Name 			 condition for this scenario.
605*5113495bSYour Name 
606*5113495bSYour Name 			<legal 0 - 2>
607*5113495bSYour Name */
608*5113495bSYour Name 
609*5113495bSYour Name #define REO_ENTRANCE_RING_RXDMA_PUSH_REASON_OFFSET                                  0x00000018
610*5113495bSYour Name #define REO_ENTRANCE_RING_RXDMA_PUSH_REASON_LSB                                     0
611*5113495bSYour Name #define REO_ENTRANCE_RING_RXDMA_PUSH_REASON_MSB                                     1
612*5113495bSYour Name #define REO_ENTRANCE_RING_RXDMA_PUSH_REASON_MASK                                    0x00000003
613*5113495bSYour Name 
614*5113495bSYour Name 
615*5113495bSYour Name /* Description		RXDMA_ERROR_CODE
616*5113495bSYour Name 
617*5113495bSYour Name 			Field only valid when 'rxdma_push_reason' set to 'rxdma_error_detected'.
618*5113495bSYour Name 
619*5113495bSYour Name 
620*5113495bSYour Name 			This field is ignored by REO.
621*5113495bSYour Name 
622*5113495bSYour Name 			<enum 0 rxdma_overflow_err>MPDU frame is not complete due
623*5113495bSYour Name 			 to a FIFO overflow error in RXPCU.
624*5113495bSYour Name 			<enum 1 rxdma_mpdu_length_err>MPDU frame is not complete
625*5113495bSYour Name 			 due to receiving incomplete MPDU from the PHY
626*5113495bSYour Name 			<enum 2 rxdma_fcs_err>FCS check on the MPDU frame failed
627*5113495bSYour Name 
628*5113495bSYour Name 			<enum 3 rxdma_decrypt_err>CRYPTO reported a decryption error
629*5113495bSYour Name 			 or CRYPTO received an encrypted frame, but did not get
630*5113495bSYour Name 			a valid corresponding key id in the peer entry.
631*5113495bSYour Name 			<enum 4 rxdma_tkip_mic_err>CRYPTO reported a TKIP MIC error
632*5113495bSYour Name 
633*5113495bSYour Name 			<enum 5 rxdma_unecrypted_err>CRYPTO reported an unencrypted
634*5113495bSYour Name 			 frame error when encrypted was expected
635*5113495bSYour Name 			<enum 6 rxdma_msdu_len_err>RX OLE reported an MSDU length
636*5113495bSYour Name 			 error
637*5113495bSYour Name 			<enum 7 rxdma_msdu_limit_err>RX OLE reported that max number
638*5113495bSYour Name 			 of MSDUs allowed in an MPDU got exceeded
639*5113495bSYour Name 			<enum 8 rxdma_wifi_parse_err>RX OLE reported a parsing error
640*5113495bSYour Name 
641*5113495bSYour Name 			<enum 9 rxdma_amsdu_parse_err>RX OLE reported an A-MSDU
642*5113495bSYour Name 			parsing error
643*5113495bSYour Name 			<enum 10 rxdma_sa_timeout_err>RX OLE reported a timeout
644*5113495bSYour Name 			during SA search
645*5113495bSYour Name 			<enum 11 rxdma_da_timeout_err>RX OLE reported a timeout
646*5113495bSYour Name 			during DA search
647*5113495bSYour Name 			<enum 12 rxdma_flow_timeout_err>RX OLE reported a timeout
648*5113495bSYour Name 			 during flow search
649*5113495bSYour Name 			<enum 13 rxdma_flush_request>RXDMA received a flush request
650*5113495bSYour Name 
651*5113495bSYour Name 			<enum 15 rxdma_multicast_echo_err>RX OLE reported a multicast
652*5113495bSYour Name 			 echo
653*5113495bSYour Name 			<enum 16 rxdma_amsdu_addr_mismatch_err>RX OLE reported an
654*5113495bSYour Name 			 A-MSDU with either 'from DS = 0' with an SA mismatching
655*5113495bSYour Name 			 TA or 'to DS = 0' with a DA mismatching RA.
656*5113495bSYour Name 			<enum 17 rxdma_unauthorized_wds_err>RX PCU reported that
657*5113495bSYour Name 			 Rx peer entry did not indicate 'authorized_to_send_WDS'
658*5113495bSYour Name 			and also indicated 'from DS = to DS = 1.'
659*5113495bSYour Name 			<enum 18 rxdma_groupcast_amsdu_or_wds_err>RX PCU reported
660*5113495bSYour Name 			 a broadcast or multicast RA as well as either A-MSDU present
661*5113495bSYour Name 			 or 'from DS = to DS = 1.'
662*5113495bSYour Name */
663*5113495bSYour Name 
664*5113495bSYour Name #define REO_ENTRANCE_RING_RXDMA_ERROR_CODE_OFFSET                                   0x00000018
665*5113495bSYour Name #define REO_ENTRANCE_RING_RXDMA_ERROR_CODE_LSB                                      2
666*5113495bSYour Name #define REO_ENTRANCE_RING_RXDMA_ERROR_CODE_MSB                                      6
667*5113495bSYour Name #define REO_ENTRANCE_RING_RXDMA_ERROR_CODE_MASK                                     0x0000007c
668*5113495bSYour Name 
669*5113495bSYour Name 
670*5113495bSYour Name /* Description		MPDU_FRAGMENT_NUMBER
671*5113495bSYour Name 
672*5113495bSYour Name 			Field only valid when Reo_level_mpdu_frame_info. Rx_mpdu_desc_info_details.Fragment_flag
673*5113495bSYour Name 			 is set.
674*5113495bSYour Name 
675*5113495bSYour Name 			The fragment number from the 802.11 header.
676*5113495bSYour Name 
677*5113495bSYour Name 			Note that the sequence number is embedded in the field:
678*5113495bSYour Name 			Reo_level_mpdu_frame_info. Rx_mpdu_desc_info_details. Mpdu_sequence_number
679*5113495bSYour Name 
680*5113495bSYour Name 
681*5113495bSYour Name 			<legal all>
682*5113495bSYour Name */
683*5113495bSYour Name 
684*5113495bSYour Name #define REO_ENTRANCE_RING_MPDU_FRAGMENT_NUMBER_OFFSET                               0x00000018
685*5113495bSYour Name #define REO_ENTRANCE_RING_MPDU_FRAGMENT_NUMBER_LSB                                  7
686*5113495bSYour Name #define REO_ENTRANCE_RING_MPDU_FRAGMENT_NUMBER_MSB                                  10
687*5113495bSYour Name #define REO_ENTRANCE_RING_MPDU_FRAGMENT_NUMBER_MASK                                 0x00000780
688*5113495bSYour Name 
689*5113495bSYour Name 
690*5113495bSYour Name /* Description		SW_EXCEPTION
691*5113495bSYour Name 
692*5113495bSYour Name 			When not set, REO is performing all its default MPDU processing
693*5113495bSYour Name 			 operations,
694*5113495bSYour Name 			When set, this REO entrance descriptor is generated by FW,
695*5113495bSYour Name 			and should be processed as an exception. This implies:
696*5113495bSYour Name 			NO re-order function is needed.
697*5113495bSYour Name 			MPDU delinking is determined by the setting of field SW_excection_mpdu_delink
698*5113495bSYour Name 
699*5113495bSYour Name 			Destination ring selection is based on the setting of the
700*5113495bSYour Name 			 field SW_exception_destination_ring_valid
701*5113495bSYour Name 			In the destination ring descriptor set bit: SW_exception_entry
702*5113495bSYour Name 
703*5113495bSYour Name 			<legal all>
704*5113495bSYour Name */
705*5113495bSYour Name 
706*5113495bSYour Name #define REO_ENTRANCE_RING_SW_EXCEPTION_OFFSET                                       0x00000018
707*5113495bSYour Name #define REO_ENTRANCE_RING_SW_EXCEPTION_LSB                                          11
708*5113495bSYour Name #define REO_ENTRANCE_RING_SW_EXCEPTION_MSB                                          11
709*5113495bSYour Name #define REO_ENTRANCE_RING_SW_EXCEPTION_MASK                                         0x00000800
710*5113495bSYour Name 
711*5113495bSYour Name 
712*5113495bSYour Name /* Description		SW_EXCEPTION_MPDU_DELINK
713*5113495bSYour Name 
714*5113495bSYour Name 			Field only valid when SW_exception is set.
715*5113495bSYour Name 			1'b0: REO should NOT delink the MPDU, and thus pass this
716*5113495bSYour Name 			 MPDU on to the destination ring as is. This implies that
717*5113495bSYour Name 			 in the REO_DESTINATION_RING struct field Buf_or_link_desc_addr_info
718*5113495bSYour Name 			 should point to an MSDU link descriptor
719*5113495bSYour Name 			1'b1: REO should perform the normal MPDU delink into MSDU
720*5113495bSYour Name 			 operations.
721*5113495bSYour Name 			<legal all>
722*5113495bSYour Name */
723*5113495bSYour Name 
724*5113495bSYour Name #define REO_ENTRANCE_RING_SW_EXCEPTION_MPDU_DELINK_OFFSET                           0x00000018
725*5113495bSYour Name #define REO_ENTRANCE_RING_SW_EXCEPTION_MPDU_DELINK_LSB                              12
726*5113495bSYour Name #define REO_ENTRANCE_RING_SW_EXCEPTION_MPDU_DELINK_MSB                              12
727*5113495bSYour Name #define REO_ENTRANCE_RING_SW_EXCEPTION_MPDU_DELINK_MASK                             0x00001000
728*5113495bSYour Name 
729*5113495bSYour Name 
730*5113495bSYour Name /* Description		SW_EXCEPTION_DESTINATION_RING_VALID
731*5113495bSYour Name 
732*5113495bSYour Name 			Field only valid when SW_exception is set.
733*5113495bSYour Name 			1'b0: REO shall push the MPDU (or delinked MPDU based on
734*5113495bSYour Name 			 the setting of SW_exception_mpdu_delink) to the destination
735*5113495bSYour Name 			 ring according to field reo_destination_indication.
736*5113495bSYour Name 			1'b1: REO shall push the MPDU (or delinked MPDU based on
737*5113495bSYour Name 			 the setting of SW_exception_mpdu_delink) to the destination
738*5113495bSYour Name 			 ring according to field SW_exception_destination_ring.
739*5113495bSYour Name 			<legal all>
740*5113495bSYour Name */
741*5113495bSYour Name 
742*5113495bSYour Name #define REO_ENTRANCE_RING_SW_EXCEPTION_DESTINATION_RING_VALID_OFFSET                0x00000018
743*5113495bSYour Name #define REO_ENTRANCE_RING_SW_EXCEPTION_DESTINATION_RING_VALID_LSB                   13
744*5113495bSYour Name #define REO_ENTRANCE_RING_SW_EXCEPTION_DESTINATION_RING_VALID_MSB                   13
745*5113495bSYour Name #define REO_ENTRANCE_RING_SW_EXCEPTION_DESTINATION_RING_VALID_MASK                  0x00002000
746*5113495bSYour Name 
747*5113495bSYour Name 
748*5113495bSYour Name /* Description		SW_EXCEPTION_DESTINATION_RING
749*5113495bSYour Name 
750*5113495bSYour Name 			Field only valid when fields SW_exception and SW_exception_destination_ring_valid
751*5113495bSYour Name 			 are set.
752*5113495bSYour Name 			The ID of the ring where REO shall push this frame.
753*5113495bSYour Name 			<enum 0 reo_destination_sw0> Reo will push the frame into
754*5113495bSYour Name 			 the REO2SW0 ring
755*5113495bSYour Name 			<enum 1 reo_destination_sw1> Reo will push the frame into
756*5113495bSYour Name 			 the REO2SW1 ring
757*5113495bSYour Name 			<enum 2 reo_destination_sw2> Reo will push the frame into
758*5113495bSYour Name 			 the REO2SW1 ring
759*5113495bSYour Name 			<enum 3 reo_destination_sw3> Reo will push the frame into
760*5113495bSYour Name 			 the REO2SW1 ring
761*5113495bSYour Name 			<enum 4 reo_destination_sw4> Reo will push the frame into
762*5113495bSYour Name 			 the REO2SW1 ring
763*5113495bSYour Name 			<enum 5 reo_destination_release> Reo will push the frame
764*5113495bSYour Name 			 into the REO_release ring
765*5113495bSYour Name 			<enum 6 reo_destination_fw> Reo will push the frame into
766*5113495bSYour Name 			 the REO2FW ring
767*5113495bSYour Name 			<enum 7 reo_destination_sw5> REO remaps this
768*5113495bSYour Name 			<enum 8 reo_destination_sw6> REO remaps this
769*5113495bSYour Name 			<enum 9 reo_destination_sw7> REO remaps this
770*5113495bSYour Name 			<enum 10 reo_destination_sw8> REO remaps this
771*5113495bSYour Name 			<enum 11 reo_destination_11> REO remaps this
772*5113495bSYour Name 			<enum 12 reo_destination_12> REO remaps this <enum 13 reo_destination_13>
773*5113495bSYour Name 			REO remaps this
774*5113495bSYour Name 			<enum 14 reo_destination_14> REO remaps this
775*5113495bSYour Name 			<enum 15 reo_destination_15> REO remaps this
776*5113495bSYour Name 			<enum 16 reo_destination_16> REO remaps this
777*5113495bSYour Name 			<enum 17 reo_destination_17> REO remaps this
778*5113495bSYour Name 			<enum 18 reo_destination_18> REO remaps this
779*5113495bSYour Name 			<enum 19 reo_destination_19> REO remaps this
780*5113495bSYour Name 			<enum 20 reo_destination_20> REO remaps this
781*5113495bSYour Name 			<enum 21 reo_destination_21> REO remaps this
782*5113495bSYour Name 			<enum 22 reo_destination_22> REO remaps this
783*5113495bSYour Name 			<enum 23 reo_destination_23> REO remaps this
784*5113495bSYour Name 			<enum 24 reo_destination_24> REO remaps this
785*5113495bSYour Name 			<enum 25 reo_destination_25> REO remaps this
786*5113495bSYour Name 			<enum 26 reo_destination_26> REO remaps this
787*5113495bSYour Name 			<enum 27 reo_destination_27> REO remaps this
788*5113495bSYour Name 			<enum 28 reo_destination_28> REO remaps this
789*5113495bSYour Name 			<enum 29 reo_destination_29> REO remaps this
790*5113495bSYour Name 			<enum 30 reo_destination_30> REO remaps this
791*5113495bSYour Name 			<enum 31 reo_destination_31> REO remaps this
792*5113495bSYour Name 
793*5113495bSYour Name 			<legal all>
794*5113495bSYour Name */
795*5113495bSYour Name 
796*5113495bSYour Name #define REO_ENTRANCE_RING_SW_EXCEPTION_DESTINATION_RING_OFFSET                      0x00000018
797*5113495bSYour Name #define REO_ENTRANCE_RING_SW_EXCEPTION_DESTINATION_RING_LSB                         14
798*5113495bSYour Name #define REO_ENTRANCE_RING_SW_EXCEPTION_DESTINATION_RING_MSB                         18
799*5113495bSYour Name #define REO_ENTRANCE_RING_SW_EXCEPTION_DESTINATION_RING_MASK                        0x0007c000
800*5113495bSYour Name 
801*5113495bSYour Name 
802*5113495bSYour Name /* Description		MPDU_SEQUENCE_NUMBER
803*5113495bSYour Name 
804*5113495bSYour Name 			Consumer: REO/SW/FW
805*5113495bSYour Name 			Producer: RXDMA
806*5113495bSYour Name 
807*5113495bSYour Name 			The field can have two different meanings based on the setting
808*5113495bSYour Name 			 of sub-field Reo_level_mpdu_frame_info. Rx_mpdu_desc_info_details.BAR_frame:
809*5113495bSYour Name 
810*5113495bSYour Name 
811*5113495bSYour Name 			'BAR_frame' is NOT set:
812*5113495bSYour Name 			The MPDU sequence number of the received frame.
813*5113495bSYour Name 
814*5113495bSYour Name 			'BAR_frame' is set.
815*5113495bSYour Name 			The MPDU Start sequence number from the BAR frame
816*5113495bSYour Name 			<legal all>
817*5113495bSYour Name */
818*5113495bSYour Name 
819*5113495bSYour Name #define REO_ENTRANCE_RING_MPDU_SEQUENCE_NUMBER_OFFSET                               0x00000018
820*5113495bSYour Name #define REO_ENTRANCE_RING_MPDU_SEQUENCE_NUMBER_LSB                                  19
821*5113495bSYour Name #define REO_ENTRANCE_RING_MPDU_SEQUENCE_NUMBER_MSB                                  30
822*5113495bSYour Name #define REO_ENTRANCE_RING_MPDU_SEQUENCE_NUMBER_MASK                                 0x7ff80000
823*5113495bSYour Name 
824*5113495bSYour Name 
825*5113495bSYour Name /* Description		RESERVED_6A
826*5113495bSYour Name 
827*5113495bSYour Name 			Field only valid when Reo_level_mpdu_frame_info. Rx_mpdu_desc_info_details.
828*5113495bSYour Name 			Mpdu_qos_control_valid is set
829*5113495bSYour Name 
830*5113495bSYour Name 			This indicates whether the 'Ack policy' field within the
831*5113495bSYour Name 			 QoS control field of the MPDU indicates 'no-Ack.'
832*5113495bSYour Name 			<legal all>
833*5113495bSYour Name */
834*5113495bSYour Name 
835*5113495bSYour Name #define REO_ENTRANCE_RING_RESERVED_6A_OFFSET                                        0x00000018
836*5113495bSYour Name #define REO_ENTRANCE_RING_RESERVED_6A_LSB                                           31
837*5113495bSYour Name #define REO_ENTRANCE_RING_RESERVED_6A_MSB                                           31
838*5113495bSYour Name #define REO_ENTRANCE_RING_RESERVED_6A_MASK                                          0x80000000
839*5113495bSYour Name 
840*5113495bSYour Name 
841*5113495bSYour Name /* Description		PHY_PPDU_ID
842*5113495bSYour Name 
843*5113495bSYour Name 			A PPDU counter value that PHY increments for every PPDU
844*5113495bSYour Name 			received
845*5113495bSYour Name 			The counter value wraps around. RXDMA can be configured
846*5113495bSYour Name 			 to copy this from the RX_PPDU_START TLV for every output
847*5113495bSYour Name 			 descriptor.
848*5113495bSYour Name 
849*5113495bSYour Name 			This field is ignored by REO.
850*5113495bSYour Name 
851*5113495bSYour Name 			<legal all>
852*5113495bSYour Name */
853*5113495bSYour Name 
854*5113495bSYour Name #define REO_ENTRANCE_RING_PHY_PPDU_ID_OFFSET                                        0x0000001c
855*5113495bSYour Name #define REO_ENTRANCE_RING_PHY_PPDU_ID_LSB                                           0
856*5113495bSYour Name #define REO_ENTRANCE_RING_PHY_PPDU_ID_MSB                                           15
857*5113495bSYour Name #define REO_ENTRANCE_RING_PHY_PPDU_ID_MASK                                          0x0000ffff
858*5113495bSYour Name 
859*5113495bSYour Name 
860*5113495bSYour Name /* Description		SRC_LINK_ID
861*5113495bSYour Name 
862*5113495bSYour Name 			Consumer: SW
863*5113495bSYour Name 			Producer: RXDMA
864*5113495bSYour Name 
865*5113495bSYour Name 			Set to the link ID of the PMAC that received the frame
866*5113495bSYour Name 			<legal all>
867*5113495bSYour Name */
868*5113495bSYour Name 
869*5113495bSYour Name #define REO_ENTRANCE_RING_SRC_LINK_ID_OFFSET                                        0x0000001c
870*5113495bSYour Name #define REO_ENTRANCE_RING_SRC_LINK_ID_LSB                                           16
871*5113495bSYour Name #define REO_ENTRANCE_RING_SRC_LINK_ID_MSB                                           18
872*5113495bSYour Name #define REO_ENTRANCE_RING_SRC_LINK_ID_MASK                                          0x00070000
873*5113495bSYour Name 
874*5113495bSYour Name 
875*5113495bSYour Name 
876*5113495bSYour Name #define REO_ENTRANCE_RING_RESERVED_7A_OFFSET                                        0x0000001c
877*5113495bSYour Name #define REO_ENTRANCE_RING_RESERVED_7A_LSB                                           19
878*5113495bSYour Name #define REO_ENTRANCE_RING_RESERVED_7A_MSB                                           19
879*5113495bSYour Name #define REO_ENTRANCE_RING_RESERVED_7A_MASK                                          0x00080000
880*5113495bSYour Name 
881*5113495bSYour Name 
882*5113495bSYour Name /* Description		RING_ID
883*5113495bSYour Name 
884*5113495bSYour Name 			Consumer: SW/REO/DEBUG
885*5113495bSYour Name 			Producer: SRNG (of RXDMA)
886*5113495bSYour Name 
887*5113495bSYour Name 			For debugging.
888*5113495bSYour Name 			This field is filled in by the SRNG module.
889*5113495bSYour Name 			It help to identify the ring that is being looked <legal
890*5113495bSYour Name 			 all>
891*5113495bSYour Name */
892*5113495bSYour Name 
893*5113495bSYour Name #define REO_ENTRANCE_RING_RING_ID_OFFSET                                            0x0000001c
894*5113495bSYour Name #define REO_ENTRANCE_RING_RING_ID_LSB                                               20
895*5113495bSYour Name #define REO_ENTRANCE_RING_RING_ID_MSB                                               27
896*5113495bSYour Name #define REO_ENTRANCE_RING_RING_ID_MASK                                              0x0ff00000
897*5113495bSYour Name 
898*5113495bSYour Name 
899*5113495bSYour Name /* Description		LOOPING_COUNT
900*5113495bSYour Name 
901*5113495bSYour Name 			Consumer: SW/REO/DEBUG
902*5113495bSYour Name 			Producer: SRNG (of RXDMA)
903*5113495bSYour Name 
904*5113495bSYour Name 			For debugging.
905*5113495bSYour Name 			This field is filled in by the SRNG module.
906*5113495bSYour Name 
907*5113495bSYour Name 			A count value that indicates the number of times the producer
908*5113495bSYour Name 			 of entries into this Ring has looped around the ring.
909*5113495bSYour Name 			At initialization time, this value is set to 0. On the first
910*5113495bSYour Name 			 loop, this value is set to 1. After the max value is reached
911*5113495bSYour Name 			 allowed by the number of bits for this field, the count
912*5113495bSYour Name 			 value continues with 0 again.
913*5113495bSYour Name 
914*5113495bSYour Name 			In case SW is the consumer of the ring entries, it can use
915*5113495bSYour Name 			 this field to figure out up to where the producer of entries
916*5113495bSYour Name 			 has created new entries. This eliminates the need to check
917*5113495bSYour Name 			 where the "head pointer' of the ring is located once the
918*5113495bSYour Name 			 SW starts processing an interrupt indicating that new entries
919*5113495bSYour Name 			 have been put into this ring...
920*5113495bSYour Name 
921*5113495bSYour Name 			Also note that SW if it wants only needs to look at the
922*5113495bSYour Name 			LSB bit of this count value.
923*5113495bSYour Name 			<legal all>
924*5113495bSYour Name */
925*5113495bSYour Name 
926*5113495bSYour Name #define REO_ENTRANCE_RING_LOOPING_COUNT_OFFSET                                      0x0000001c
927*5113495bSYour Name #define REO_ENTRANCE_RING_LOOPING_COUNT_LSB                                         28
928*5113495bSYour Name #define REO_ENTRANCE_RING_LOOPING_COUNT_MSB                                         31
929*5113495bSYour Name #define REO_ENTRANCE_RING_LOOPING_COUNT_MASK                                        0xf0000000
930*5113495bSYour Name 
931*5113495bSYour Name 
932*5113495bSYour Name 
933*5113495bSYour Name #endif   // REO_ENTRANCE_RING
934