xref: /wlan-driver/fw-api/hw/qca6490/v1/rxpt_classify_info.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2019 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 _RXPT_CLASSIFY_INFO_H_
25*5113495bSYour Name #define _RXPT_CLASSIFY_INFO_H_
26*5113495bSYour Name #if !defined(__ASSEMBLER__)
27*5113495bSYour Name #endif
28*5113495bSYour Name 
29*5113495bSYour Name 
30*5113495bSYour Name // ################ START SUMMARY #################
31*5113495bSYour Name //
32*5113495bSYour Name //	Dword	Fields
33*5113495bSYour Name //	0	reo_destination_indication[4:0], lmac_peer_id_msb[6:5], use_flow_id_toeplitz_clfy[7], pkt_selection_fp_ucast_data[8], pkt_selection_fp_mcast_data[9], pkt_selection_fp_1000[10], rxdma0_source_ring_selection[12:11], rxdma0_destination_ring_selection[14:13], reserved_0b[31:15]
34*5113495bSYour Name //
35*5113495bSYour Name // ################ END SUMMARY #################
36*5113495bSYour Name 
37*5113495bSYour Name #define NUM_OF_DWORDS_RXPT_CLASSIFY_INFO 1
38*5113495bSYour Name 
39*5113495bSYour Name struct rxpt_classify_info {
40*5113495bSYour Name              uint32_t reo_destination_indication      :  5, //[4:0]
41*5113495bSYour Name                       lmac_peer_id_msb                :  2, //[6:5]
42*5113495bSYour Name                       use_flow_id_toeplitz_clfy       :  1, //[7]
43*5113495bSYour Name                       pkt_selection_fp_ucast_data     :  1, //[8]
44*5113495bSYour Name                       pkt_selection_fp_mcast_data     :  1, //[9]
45*5113495bSYour Name                       pkt_selection_fp_1000           :  1, //[10]
46*5113495bSYour Name                       rxdma0_source_ring_selection    :  2, //[12:11]
47*5113495bSYour Name                       rxdma0_destination_ring_selection:  2, //[14:13]
48*5113495bSYour Name                       reserved_0b                     : 17; //[31:15]
49*5113495bSYour Name };
50*5113495bSYour Name 
51*5113495bSYour Name /*
52*5113495bSYour Name 
53*5113495bSYour Name reo_destination_indication
54*5113495bSYour Name 
55*5113495bSYour Name 			The ID of the REO exit ring where the MSDU frame shall
56*5113495bSYour Name 			push after (MPDU level) reordering has finished.
57*5113495bSYour Name 
58*5113495bSYour Name 
59*5113495bSYour Name 
60*5113495bSYour Name 			<enum 0 reo_destination_tcl> Reo will push the frame
61*5113495bSYour Name 			into the REO2TCL ring
62*5113495bSYour Name 
63*5113495bSYour Name 			<enum 1 reo_destination_sw1> Reo will push the frame
64*5113495bSYour Name 			into the REO2SW1 ring
65*5113495bSYour Name 
66*5113495bSYour Name 			<enum 2 reo_destination_sw2> Reo will push the frame
67*5113495bSYour Name 			into the REO2SW2 ring
68*5113495bSYour Name 
69*5113495bSYour Name 			<enum 3 reo_destination_sw3> Reo will push the frame
70*5113495bSYour Name 			into the REO2SW3 ring
71*5113495bSYour Name 
72*5113495bSYour Name 			<enum 4 reo_destination_sw4> Reo will push the frame
73*5113495bSYour Name 			into the REO2SW4 ring
74*5113495bSYour Name 
75*5113495bSYour Name 			<enum 5 reo_destination_release> Reo will push the frame
76*5113495bSYour Name 			into the REO_release ring
77*5113495bSYour Name 
78*5113495bSYour Name 			<enum 6 reo_destination_fw> Reo will push the frame into
79*5113495bSYour Name 			the REO2FW ring
80*5113495bSYour Name 
81*5113495bSYour Name 			<enum 7 reo_destination_sw5> Reo will push the frame
82*5113495bSYour Name 			into the REO2SW5 ring
83*5113495bSYour Name 
84*5113495bSYour Name 			<enum 8 reo_destination_sw6> Reo will push the frame
85*5113495bSYour Name 			into the REO2SW6 ring
86*5113495bSYour Name 
87*5113495bSYour Name 			<enum 9 reo_destination_9> REO remaps this <enum 10
88*5113495bSYour Name 			reo_destination_10> REO remaps this
89*5113495bSYour Name 
90*5113495bSYour Name 			<enum 11 reo_destination_11> REO remaps this
91*5113495bSYour Name 
92*5113495bSYour Name 			<enum 12 reo_destination_12> REO remaps this <enum 13
93*5113495bSYour Name 			reo_destination_13> REO remaps this
94*5113495bSYour Name 
95*5113495bSYour Name 			<enum 14 reo_destination_14> REO remaps this
96*5113495bSYour Name 
97*5113495bSYour Name 			<enum 15 reo_destination_15> REO remaps this
98*5113495bSYour Name 
99*5113495bSYour Name 			<enum 16 reo_destination_16> REO remaps this
100*5113495bSYour Name 
101*5113495bSYour Name 			<enum 17 reo_destination_17> REO remaps this
102*5113495bSYour Name 
103*5113495bSYour Name 			<enum 18 reo_destination_18> REO remaps this
104*5113495bSYour Name 
105*5113495bSYour Name 			<enum 19 reo_destination_19> REO remaps this
106*5113495bSYour Name 
107*5113495bSYour Name 			<enum 20 reo_destination_20> REO remaps this
108*5113495bSYour Name 
109*5113495bSYour Name 			<enum 21 reo_destination_21> REO remaps this
110*5113495bSYour Name 
111*5113495bSYour Name 			<enum 22 reo_destination_22> REO remaps this
112*5113495bSYour Name 
113*5113495bSYour Name 			<enum 23 reo_destination_23> REO remaps this
114*5113495bSYour Name 
115*5113495bSYour Name 			<enum 24 reo_destination_24> REO remaps this
116*5113495bSYour Name 
117*5113495bSYour Name 			<enum 25 reo_destination_25> REO remaps this
118*5113495bSYour Name 
119*5113495bSYour Name 			<enum 26 reo_destination_26> REO remaps this
120*5113495bSYour Name 
121*5113495bSYour Name 			<enum 27 reo_destination_27> REO remaps this
122*5113495bSYour Name 
123*5113495bSYour Name 			<enum 28 reo_destination_28> REO remaps this
124*5113495bSYour Name 
125*5113495bSYour Name 			<enum 29 reo_destination_29> REO remaps this
126*5113495bSYour Name 
127*5113495bSYour Name 			<enum 30 reo_destination_30> REO remaps this
128*5113495bSYour Name 
129*5113495bSYour Name 			<enum 31 reo_destination_31> REO remaps this
130*5113495bSYour Name 
131*5113495bSYour Name 
132*5113495bSYour Name 
133*5113495bSYour Name 			<legal all>
134*5113495bSYour Name 
135*5113495bSYour Name lmac_peer_id_msb
136*5113495bSYour Name 
137*5113495bSYour Name 			If use_flow_id_toeplitz_clfy is set and lmac_peer_id_'sb
138*5113495bSYour Name 			is 2'b00, Rx OLE uses a REO desination indicati'n of {1'b1,
139*5113495bSYour Name 			hash[3:0]} using the chosen Toeplitz hash from Common Parser
140*5113495bSYour Name 			if flow search fails.
141*5113495bSYour Name 
142*5113495bSYour Name 			If use_flow_id_toeplitz_clfy is set and lmac_peer_id_msb
143*5113495bSYour Name 			's not 2'b00, Rx OLE uses a REO desination indication of
144*5113495bSYour Name 			{lmac_peer_id_msb, hash[2:0]} using the chosen Toeplitz hash
145*5113495bSYour Name 			from Common Parser if flow search fails.
146*5113495bSYour Name 
147*5113495bSYour Name 			This LMAC/peer-based routing is not supported in
148*5113495bSYour Name 			Hastings80 and HastingsPrime.
149*5113495bSYour Name 
150*5113495bSYour Name 			<legal 0>
151*5113495bSYour Name 
152*5113495bSYour Name use_flow_id_toeplitz_clfy
153*5113495bSYour Name 
154*5113495bSYour Name 			Indication to Rx OLE to enable REO destination routing
155*5113495bSYour Name 			based on the chosen Toeplitz hash from Common Parser, in
156*5113495bSYour Name 			case flow search fails
157*5113495bSYour Name 
158*5113495bSYour Name 			<legal all>
159*5113495bSYour Name 
160*5113495bSYour Name pkt_selection_fp_ucast_data
161*5113495bSYour Name 
162*5113495bSYour Name 			Filter pass Unicast data frame (matching
163*5113495bSYour Name 			rxpcu_filter_pass and sw_frame_group_Unicast_data) routing
164*5113495bSYour Name 			selection
165*5113495bSYour Name 
166*5113495bSYour Name 
167*5113495bSYour Name 
168*5113495bSYour Name 			1'b0: source and destination rings are selected from the
169*5113495bSYour Name 			RxOLE register settings for the packet type
170*5113495bSYour Name 
171*5113495bSYour Name 
172*5113495bSYour Name 
173*5113495bSYour Name 			1'b1: source ring and destination ring is selected from
174*5113495bSYour Name 			the rxdma0_source_ring_selection and
175*5113495bSYour Name 			rxdma0_destination_ring_selection fields in this STRUCT
176*5113495bSYour Name 
177*5113495bSYour Name 			<legal all>
178*5113495bSYour Name 
179*5113495bSYour Name pkt_selection_fp_mcast_data
180*5113495bSYour Name 
181*5113495bSYour Name 			Filter pass Multicast data frame (matching
182*5113495bSYour Name 			rxpcu_filter_pass and sw_frame_group_Multicast_data) routing
183*5113495bSYour Name 			selection
184*5113495bSYour Name 
185*5113495bSYour Name 
186*5113495bSYour Name 
187*5113495bSYour Name 			1'b0: source and destination rings are selected from the
188*5113495bSYour Name 			RxOLE register settings for the packet type
189*5113495bSYour Name 
190*5113495bSYour Name 
191*5113495bSYour Name 
192*5113495bSYour Name 			1'b1: source ring and destination ring is selected from
193*5113495bSYour Name 			the rxdma0_source_ring_selection and
194*5113495bSYour Name 			rxdma0_destination_ring_selection fields in this STRUCT
195*5113495bSYour Name 
196*5113495bSYour Name 			<legal all>
197*5113495bSYour Name 
198*5113495bSYour Name pkt_selection_fp_1000
199*5113495bSYour Name 
200*5113495bSYour Name 			Filter pass BAR frame (matching rxpcu_filter_pass and
201*5113495bSYour Name 			sw_frame_group_ctrl_1000) routing selection
202*5113495bSYour Name 
203*5113495bSYour Name 
204*5113495bSYour Name 
205*5113495bSYour Name 			1'b0: source and destination rings are selected from the
206*5113495bSYour Name 			RxOLE register settings for the packet type
207*5113495bSYour Name 
208*5113495bSYour Name 
209*5113495bSYour Name 
210*5113495bSYour Name 			1'b1: source ring and destination ring is selected from
211*5113495bSYour Name 			the rxdma0_source_ring_selection and
212*5113495bSYour Name 			rxdma0_destination_ring_selection fields in this STRUCT
213*5113495bSYour Name 
214*5113495bSYour Name 			<legal all>
215*5113495bSYour Name 
216*5113495bSYour Name rxdma0_source_ring_selection
217*5113495bSYour Name 
218*5113495bSYour Name 			Field only valid when for the received frame type the
219*5113495bSYour Name 			corresponding pkt_selection_fp_... bit is set
220*5113495bSYour Name 
221*5113495bSYour Name 
222*5113495bSYour Name 
223*5113495bSYour Name 			<enum 0 wbm2rxdma_buf_source_ring> The data buffer for
224*5113495bSYour Name 
225*5113495bSYour Name 			<enum 1 fw2rxdma_buf_source_ring> The data buffer for
226*5113495bSYour Name 			this frame shall be sourced by fw2rxdma buffer source ring.
227*5113495bSYour Name 
228*5113495bSYour Name 			<enum 2 sw2rxdma_buf_source_ring> The data buffer for
229*5113495bSYour Name 			this frame shall be sourced by sw2rxdma buffer source ring.
230*5113495bSYour Name 
231*5113495bSYour Name 			<enum 3 no_buffer_ring> The frame shall not be written
232*5113495bSYour Name 			to any data buffer.
233*5113495bSYour Name 
234*5113495bSYour Name 
235*5113495bSYour Name 
236*5113495bSYour Name 			<legal all>
237*5113495bSYour Name 
238*5113495bSYour Name rxdma0_destination_ring_selection
239*5113495bSYour Name 
240*5113495bSYour Name 			Field only valid when for the received frame type the
241*5113495bSYour Name 			corresponding pkt_selection_fp_... bit is set
242*5113495bSYour Name 
243*5113495bSYour Name 
244*5113495bSYour Name 
245*5113495bSYour Name 			<enum 0  rxdma_release_ring> RXDMA0 shall push the frame
246*5113495bSYour Name 			to the Release ring. Effectively this means the frame needs
247*5113495bSYour Name 			to be dropped.
248*5113495bSYour Name 
249*5113495bSYour Name 			<enum 1  rxdma2fw_ring> RXDMA0 shall push the frame to
250*5113495bSYour Name 			the FW ring.
251*5113495bSYour Name 
252*5113495bSYour Name 			<enum 2  rxdma2sw_ring> RXDMA0 shall push the frame to
253*5113495bSYour Name 			the SW ring.
254*5113495bSYour Name 
255*5113495bSYour Name 			<enum 3  rxdma2reo_ring> RXDMA0 shall push the frame to
256*5113495bSYour Name 			the REO entrance ring.
257*5113495bSYour Name 
258*5113495bSYour Name 
259*5113495bSYour Name 
260*5113495bSYour Name 			<legal all>
261*5113495bSYour Name 
262*5113495bSYour Name reserved_0b
263*5113495bSYour Name 
264*5113495bSYour Name 			<legal 0>
265*5113495bSYour Name */
266*5113495bSYour Name 
267*5113495bSYour Name 
268*5113495bSYour Name /* Description		RXPT_CLASSIFY_INFO_0_REO_DESTINATION_INDICATION
269*5113495bSYour Name 
270*5113495bSYour Name 			The ID of the REO exit ring where the MSDU frame shall
271*5113495bSYour Name 			push after (MPDU level) reordering has finished.
272*5113495bSYour Name 
273*5113495bSYour Name 
274*5113495bSYour Name 
275*5113495bSYour Name 			<enum 0 reo_destination_tcl> Reo will push the frame
276*5113495bSYour Name 			into the REO2TCL ring
277*5113495bSYour Name 
278*5113495bSYour Name 			<enum 1 reo_destination_sw1> Reo will push the frame
279*5113495bSYour Name 			into the REO2SW1 ring
280*5113495bSYour Name 
281*5113495bSYour Name 			<enum 2 reo_destination_sw2> Reo will push the frame
282*5113495bSYour Name 			into the REO2SW2 ring
283*5113495bSYour Name 
284*5113495bSYour Name 			<enum 3 reo_destination_sw3> Reo will push the frame
285*5113495bSYour Name 			into the REO2SW3 ring
286*5113495bSYour Name 
287*5113495bSYour Name 			<enum 4 reo_destination_sw4> Reo will push the frame
288*5113495bSYour Name 			into the REO2SW4 ring
289*5113495bSYour Name 
290*5113495bSYour Name 			<enum 5 reo_destination_release> Reo will push the frame
291*5113495bSYour Name 			into the REO_release ring
292*5113495bSYour Name 
293*5113495bSYour Name 			<enum 6 reo_destination_fw> Reo will push the frame into
294*5113495bSYour Name 			the REO2FW ring
295*5113495bSYour Name 
296*5113495bSYour Name 			<enum 7 reo_destination_sw5> Reo will push the frame
297*5113495bSYour Name 			into the REO2SW5 ring
298*5113495bSYour Name 
299*5113495bSYour Name 			<enum 8 reo_destination_sw6> Reo will push the frame
300*5113495bSYour Name 			into the REO2SW6 ring
301*5113495bSYour Name 
302*5113495bSYour Name 			<enum 9 reo_destination_9> REO remaps this <enum 10
303*5113495bSYour Name 			reo_destination_10> REO remaps this
304*5113495bSYour Name 
305*5113495bSYour Name 			<enum 11 reo_destination_11> REO remaps this
306*5113495bSYour Name 
307*5113495bSYour Name 			<enum 12 reo_destination_12> REO remaps this <enum 13
308*5113495bSYour Name 			reo_destination_13> REO remaps this
309*5113495bSYour Name 
310*5113495bSYour Name 			<enum 14 reo_destination_14> REO remaps this
311*5113495bSYour Name 
312*5113495bSYour Name 			<enum 15 reo_destination_15> REO remaps this
313*5113495bSYour Name 
314*5113495bSYour Name 			<enum 16 reo_destination_16> REO remaps this
315*5113495bSYour Name 
316*5113495bSYour Name 			<enum 17 reo_destination_17> REO remaps this
317*5113495bSYour Name 
318*5113495bSYour Name 			<enum 18 reo_destination_18> REO remaps this
319*5113495bSYour Name 
320*5113495bSYour Name 			<enum 19 reo_destination_19> REO remaps this
321*5113495bSYour Name 
322*5113495bSYour Name 			<enum 20 reo_destination_20> REO remaps this
323*5113495bSYour Name 
324*5113495bSYour Name 			<enum 21 reo_destination_21> REO remaps this
325*5113495bSYour Name 
326*5113495bSYour Name 			<enum 22 reo_destination_22> REO remaps this
327*5113495bSYour Name 
328*5113495bSYour Name 			<enum 23 reo_destination_23> REO remaps this
329*5113495bSYour Name 
330*5113495bSYour Name 			<enum 24 reo_destination_24> REO remaps this
331*5113495bSYour Name 
332*5113495bSYour Name 			<enum 25 reo_destination_25> REO remaps this
333*5113495bSYour Name 
334*5113495bSYour Name 			<enum 26 reo_destination_26> REO remaps this
335*5113495bSYour Name 
336*5113495bSYour Name 			<enum 27 reo_destination_27> REO remaps this
337*5113495bSYour Name 
338*5113495bSYour Name 			<enum 28 reo_destination_28> REO remaps this
339*5113495bSYour Name 
340*5113495bSYour Name 			<enum 29 reo_destination_29> REO remaps this
341*5113495bSYour Name 
342*5113495bSYour Name 			<enum 30 reo_destination_30> REO remaps this
343*5113495bSYour Name 
344*5113495bSYour Name 			<enum 31 reo_destination_31> REO remaps this
345*5113495bSYour Name 
346*5113495bSYour Name 
347*5113495bSYour Name 
348*5113495bSYour Name 			<legal all>
349*5113495bSYour Name */
350*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_REO_DESTINATION_INDICATION_OFFSET       0x00000000
351*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_REO_DESTINATION_INDICATION_LSB          0
352*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_REO_DESTINATION_INDICATION_MASK         0x0000001f
353*5113495bSYour Name 
354*5113495bSYour Name /* Description		RXPT_CLASSIFY_INFO_0_LMAC_PEER_ID_MSB
355*5113495bSYour Name 
356*5113495bSYour Name 			If use_flow_id_toeplitz_clfy is set and lmac_peer_id_'sb
357*5113495bSYour Name 			is 2'b00, Rx OLE uses a REO desination indicati'n of {1'b1,
358*5113495bSYour Name 			hash[3:0]} using the chosen Toeplitz hash from Common Parser
359*5113495bSYour Name 			if flow search fails.
360*5113495bSYour Name 
361*5113495bSYour Name 			If use_flow_id_toeplitz_clfy is set and lmac_peer_id_msb
362*5113495bSYour Name 			's not 2'b00, Rx OLE uses a REO desination indication of
363*5113495bSYour Name 			{lmac_peer_id_msb, hash[2:0]} using the chosen Toeplitz hash
364*5113495bSYour Name 			from Common Parser if flow search fails.
365*5113495bSYour Name 
366*5113495bSYour Name 			This LMAC/peer-based routing is not supported in
367*5113495bSYour Name 			Hastings80 and HastingsPrime.
368*5113495bSYour Name 
369*5113495bSYour Name 			<legal 0>
370*5113495bSYour Name */
371*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_LMAC_PEER_ID_MSB_OFFSET                 0x00000000
372*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_LMAC_PEER_ID_MSB_LSB                    5
373*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_LMAC_PEER_ID_MSB_MASK                   0x00000060
374*5113495bSYour Name 
375*5113495bSYour Name /* Description		RXPT_CLASSIFY_INFO_0_USE_FLOW_ID_TOEPLITZ_CLFY
376*5113495bSYour Name 
377*5113495bSYour Name 			Indication to Rx OLE to enable REO destination routing
378*5113495bSYour Name 			based on the chosen Toeplitz hash from Common Parser, in
379*5113495bSYour Name 			case flow search fails
380*5113495bSYour Name 
381*5113495bSYour Name 			<legal all>
382*5113495bSYour Name */
383*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_USE_FLOW_ID_TOEPLITZ_CLFY_OFFSET        0x00000000
384*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_USE_FLOW_ID_TOEPLITZ_CLFY_LSB           7
385*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_USE_FLOW_ID_TOEPLITZ_CLFY_MASK          0x00000080
386*5113495bSYour Name 
387*5113495bSYour Name /* Description		RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_UCAST_DATA
388*5113495bSYour Name 
389*5113495bSYour Name 			Filter pass Unicast data frame (matching
390*5113495bSYour Name 			rxpcu_filter_pass and sw_frame_group_Unicast_data) routing
391*5113495bSYour Name 			selection
392*5113495bSYour Name 
393*5113495bSYour Name 
394*5113495bSYour Name 
395*5113495bSYour Name 			1'b0: source and destination rings are selected from the
396*5113495bSYour Name 			RxOLE register settings for the packet type
397*5113495bSYour Name 
398*5113495bSYour Name 
399*5113495bSYour Name 
400*5113495bSYour Name 			1'b1: source ring and destination ring is selected from
401*5113495bSYour Name 			the rxdma0_source_ring_selection and
402*5113495bSYour Name 			rxdma0_destination_ring_selection fields in this STRUCT
403*5113495bSYour Name 
404*5113495bSYour Name 			<legal all>
405*5113495bSYour Name */
406*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_UCAST_DATA_OFFSET      0x00000000
407*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_UCAST_DATA_LSB         8
408*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_UCAST_DATA_MASK        0x00000100
409*5113495bSYour Name 
410*5113495bSYour Name /* Description		RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_MCAST_DATA
411*5113495bSYour Name 
412*5113495bSYour Name 			Filter pass Multicast data frame (matching
413*5113495bSYour Name 			rxpcu_filter_pass and sw_frame_group_Multicast_data) routing
414*5113495bSYour Name 			selection
415*5113495bSYour Name 
416*5113495bSYour Name 
417*5113495bSYour Name 
418*5113495bSYour Name 			1'b0: source and destination rings are selected from the
419*5113495bSYour Name 			RxOLE register settings for the packet type
420*5113495bSYour Name 
421*5113495bSYour Name 
422*5113495bSYour Name 
423*5113495bSYour Name 			1'b1: source ring and destination ring is selected from
424*5113495bSYour Name 			the rxdma0_source_ring_selection and
425*5113495bSYour Name 			rxdma0_destination_ring_selection fields in this STRUCT
426*5113495bSYour Name 
427*5113495bSYour Name 			<legal all>
428*5113495bSYour Name */
429*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_MCAST_DATA_OFFSET      0x00000000
430*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_MCAST_DATA_LSB         9
431*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_MCAST_DATA_MASK        0x00000200
432*5113495bSYour Name 
433*5113495bSYour Name /* Description		RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_1000
434*5113495bSYour Name 
435*5113495bSYour Name 			Filter pass BAR frame (matching rxpcu_filter_pass and
436*5113495bSYour Name 			sw_frame_group_ctrl_1000) routing selection
437*5113495bSYour Name 
438*5113495bSYour Name 
439*5113495bSYour Name 
440*5113495bSYour Name 			1'b0: source and destination rings are selected from the
441*5113495bSYour Name 			RxOLE register settings for the packet type
442*5113495bSYour Name 
443*5113495bSYour Name 
444*5113495bSYour Name 
445*5113495bSYour Name 			1'b1: source ring and destination ring is selected from
446*5113495bSYour Name 			the rxdma0_source_ring_selection and
447*5113495bSYour Name 			rxdma0_destination_ring_selection fields in this STRUCT
448*5113495bSYour Name 
449*5113495bSYour Name 			<legal all>
450*5113495bSYour Name */
451*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_1000_OFFSET            0x00000000
452*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_1000_LSB               10
453*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_PKT_SELECTION_FP_1000_MASK              0x00000400
454*5113495bSYour Name 
455*5113495bSYour Name /* Description		RXPT_CLASSIFY_INFO_0_RXDMA0_SOURCE_RING_SELECTION
456*5113495bSYour Name 
457*5113495bSYour Name 			Field only valid when for the received frame type the
458*5113495bSYour Name 			corresponding pkt_selection_fp_... bit is set
459*5113495bSYour Name 
460*5113495bSYour Name 
461*5113495bSYour Name 
462*5113495bSYour Name 			<enum 0 wbm2rxdma_buf_source_ring> The data buffer for
463*5113495bSYour Name 
464*5113495bSYour Name 			<enum 1 fw2rxdma_buf_source_ring> The data buffer for
465*5113495bSYour Name 			this frame shall be sourced by fw2rxdma buffer source ring.
466*5113495bSYour Name 
467*5113495bSYour Name 			<enum 2 sw2rxdma_buf_source_ring> The data buffer for
468*5113495bSYour Name 			this frame shall be sourced by sw2rxdma buffer source ring.
469*5113495bSYour Name 
470*5113495bSYour Name 			<enum 3 no_buffer_ring> The frame shall not be written
471*5113495bSYour Name 			to any data buffer.
472*5113495bSYour Name 
473*5113495bSYour Name 
474*5113495bSYour Name 
475*5113495bSYour Name 			<legal all>
476*5113495bSYour Name */
477*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_RXDMA0_SOURCE_RING_SELECTION_OFFSET     0x00000000
478*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_RXDMA0_SOURCE_RING_SELECTION_LSB        11
479*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_RXDMA0_SOURCE_RING_SELECTION_MASK       0x00001800
480*5113495bSYour Name 
481*5113495bSYour Name /* Description		RXPT_CLASSIFY_INFO_0_RXDMA0_DESTINATION_RING_SELECTION
482*5113495bSYour Name 
483*5113495bSYour Name 			Field only valid when for the received frame type the
484*5113495bSYour Name 			corresponding pkt_selection_fp_... bit is set
485*5113495bSYour Name 
486*5113495bSYour Name 
487*5113495bSYour Name 
488*5113495bSYour Name 			<enum 0  rxdma_release_ring> RXDMA0 shall push the frame
489*5113495bSYour Name 			to the Release ring. Effectively this means the frame needs
490*5113495bSYour Name 			to be dropped.
491*5113495bSYour Name 
492*5113495bSYour Name 			<enum 1  rxdma2fw_ring> RXDMA0 shall push the frame to
493*5113495bSYour Name 			the FW ring.
494*5113495bSYour Name 
495*5113495bSYour Name 			<enum 2  rxdma2sw_ring> RXDMA0 shall push the frame to
496*5113495bSYour Name 			the SW ring.
497*5113495bSYour Name 
498*5113495bSYour Name 			<enum 3  rxdma2reo_ring> RXDMA0 shall push the frame to
499*5113495bSYour Name 			the REO entrance ring.
500*5113495bSYour Name 
501*5113495bSYour Name 
502*5113495bSYour Name 
503*5113495bSYour Name 			<legal all>
504*5113495bSYour Name */
505*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_RXDMA0_DESTINATION_RING_SELECTION_OFFSET 0x00000000
506*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_RXDMA0_DESTINATION_RING_SELECTION_LSB   13
507*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_RXDMA0_DESTINATION_RING_SELECTION_MASK  0x00006000
508*5113495bSYour Name 
509*5113495bSYour Name /* Description		RXPT_CLASSIFY_INFO_0_RESERVED_0B
510*5113495bSYour Name 
511*5113495bSYour Name 			<legal 0>
512*5113495bSYour Name */
513*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_RESERVED_0B_OFFSET                      0x00000000
514*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_RESERVED_0B_LSB                         15
515*5113495bSYour Name #define RXPT_CLASSIFY_INFO_0_RESERVED_0B_MASK                        0xffff8000
516*5113495bSYour Name 
517*5113495bSYour Name 
518*5113495bSYour Name #endif // _RXPT_CLASSIFY_INFO_H_
519