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