xref: /wlan-driver/fw-api/hw/qca9574/rx_flow_search_entry.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2021 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 // $ATH_LICENSE_HW_HDR_C$
18*5113495bSYour Name //
19*5113495bSYour Name // DO NOT EDIT!  This file is automatically generated
20*5113495bSYour Name //               These definitions are tied to a particular hardware layout
21*5113495bSYour Name 
22*5113495bSYour Name 
23*5113495bSYour Name #ifndef _RX_FLOW_SEARCH_ENTRY_H_
24*5113495bSYour Name #define _RX_FLOW_SEARCH_ENTRY_H_
25*5113495bSYour Name #if !defined(__ASSEMBLER__)
26*5113495bSYour Name #endif
27*5113495bSYour Name 
28*5113495bSYour Name 
29*5113495bSYour Name // ################ START SUMMARY #################
30*5113495bSYour Name //
31*5113495bSYour Name //	Dword	Fields
32*5113495bSYour Name //	0	src_ip_127_96[31:0]
33*5113495bSYour Name //	1	src_ip_95_64[31:0]
34*5113495bSYour Name //	2	src_ip_63_32[31:0]
35*5113495bSYour Name //	3	src_ip_31_0[31:0]
36*5113495bSYour Name //	4	dest_ip_127_96[31:0]
37*5113495bSYour Name //	5	dest_ip_95_64[31:0]
38*5113495bSYour Name //	6	dest_ip_63_32[31:0]
39*5113495bSYour Name //	7	dest_ip_31_0[31:0]
40*5113495bSYour Name //	8	src_port[15:0], dest_port[31:16]
41*5113495bSYour Name //	9	l4_protocol[7:0], valid[8], reserved_9[29:9], reo_destination_handler[31:30]
42*5113495bSYour Name //	10	metadata[31:0]
43*5113495bSYour Name //	11	reo_destination_indication[4:0], msdu_drop[5], reserved_11[7:6], msdu_count[31:8]
44*5113495bSYour Name //	12	msdu_byte_count[31:0]
45*5113495bSYour Name //	13	timestamp[31:0]
46*5113495bSYour Name //
47*5113495bSYour Name // ################ END SUMMARY #################
48*5113495bSYour Name 
49*5113495bSYour Name #define NUM_OF_DWORDS_RX_FLOW_SEARCH_ENTRY 14
50*5113495bSYour Name 
51*5113495bSYour Name struct rx_flow_search_entry {
52*5113495bSYour Name              uint32_t src_ip_127_96                   : 32; //[31:0]
53*5113495bSYour Name              uint32_t src_ip_95_64                    : 32; //[31:0]
54*5113495bSYour Name              uint32_t src_ip_63_32                    : 32; //[31:0]
55*5113495bSYour Name              uint32_t src_ip_31_0                     : 32; //[31:0]
56*5113495bSYour Name              uint32_t dest_ip_127_96                  : 32; //[31:0]
57*5113495bSYour Name              uint32_t dest_ip_95_64                   : 32; //[31:0]
58*5113495bSYour Name              uint32_t dest_ip_63_32                   : 32; //[31:0]
59*5113495bSYour Name              uint32_t dest_ip_31_0                    : 32; //[31:0]
60*5113495bSYour Name              uint32_t src_port                        : 16, //[15:0]
61*5113495bSYour Name                       dest_port                       : 16; //[31:16]
62*5113495bSYour Name              uint32_t l4_protocol                     :  8, //[7:0]
63*5113495bSYour Name                       valid                           :  1, //[8]
64*5113495bSYour Name                       reserved_9                      : 21, //[29:9]
65*5113495bSYour Name                       reo_destination_handler         :  2; //[31:30]
66*5113495bSYour Name              uint32_t metadata                        : 32; //[31:0]
67*5113495bSYour Name              uint32_t reo_destination_indication      :  5, //[4:0]
68*5113495bSYour Name                       msdu_drop                       :  1, //[5]
69*5113495bSYour Name                       reserved_11                     :  2, //[7:6]
70*5113495bSYour Name                       msdu_count                      : 24; //[31:8]
71*5113495bSYour Name              uint32_t msdu_byte_count                 : 32; //[31:0]
72*5113495bSYour Name              uint32_t timestamp                       : 32; //[31:0]
73*5113495bSYour Name };
74*5113495bSYour Name 
75*5113495bSYour Name /*
76*5113495bSYour Name 
77*5113495bSYour Name src_ip_127_96
78*5113495bSYour Name 
79*5113495bSYour Name 			Uppermost 32 bits of source IPv6 address or prefix as
80*5113495bSYour Name 			per Common Parser register field IP_DA_SA_PREFIX (with the
81*5113495bSYour Name 			first byte in the MSB and the last byte in the LSB, i.e.
82*5113495bSYour Name 			requiring a byte-swap for little-endian SW w.r.t. the byte
83*5113495bSYour Name 			order in an IPv6 packet)
84*5113495bSYour Name 
85*5113495bSYour Name 			<legal all>
86*5113495bSYour Name 
87*5113495bSYour Name src_ip_95_64
88*5113495bSYour Name 
89*5113495bSYour Name 			Next 32 bits of source IPv6 address or prefix (requiring
90*5113495bSYour Name 			a byte-swap for little-endian SW) <legal all>
91*5113495bSYour Name 
92*5113495bSYour Name src_ip_63_32
93*5113495bSYour Name 
94*5113495bSYour Name 			Next 32 bits of source IPv6 address or lowest 32 bits of
95*5113495bSYour Name 			prefix (requiring a byte-swap for little-endian SW)
96*5113495bSYour Name 
97*5113495bSYour Name 			<legal all>
98*5113495bSYour Name 
99*5113495bSYour Name src_ip_31_0
100*5113495bSYour Name 
101*5113495bSYour Name 			Lowest 32 bits of source IPv6 address, or source IPv4
102*5113495bSYour Name 			address (requiring a byte-swap for little-endian SW w.r.t.
103*5113495bSYour Name 			the byte order in an IPv6 or IPv4 packet)
104*5113495bSYour Name 
105*5113495bSYour Name 			<legal all>
106*5113495bSYour Name 
107*5113495bSYour Name dest_ip_127_96
108*5113495bSYour Name 
109*5113495bSYour Name 			Uppermost 32 bits of destination IPv6 address or prefix
110*5113495bSYour Name 			as per Common Parser register field IP_DA_SA_PREFIX (with
111*5113495bSYour Name 			the first byte in the MSB and the last byte in the LSB, i.e.
112*5113495bSYour Name 			requiring a byte-swap for little-endian SW w.r.t. the byte
113*5113495bSYour Name 			order as in an IPv6 packet)
114*5113495bSYour Name 
115*5113495bSYour Name 			<legal all>
116*5113495bSYour Name 
117*5113495bSYour Name dest_ip_95_64
118*5113495bSYour Name 
119*5113495bSYour Name 			Next 32 bits of destination IPv6 address or prefix
120*5113495bSYour Name 			(requiring a byte-swap for little-endian SW)
121*5113495bSYour Name 
122*5113495bSYour Name 			<legal all>
123*5113495bSYour Name 
124*5113495bSYour Name dest_ip_63_32
125*5113495bSYour Name 
126*5113495bSYour Name 			Next 32 bits of destination IPv6 address or lowest 32
127*5113495bSYour Name 			bits of prefix (requiring a byte-swap for little-endian SW)
128*5113495bSYour Name 
129*5113495bSYour Name 			<legal all>
130*5113495bSYour Name 
131*5113495bSYour Name dest_ip_31_0
132*5113495bSYour Name 
133*5113495bSYour Name 			Lowest 32 bits of destination IPv6 address, or
134*5113495bSYour Name 			destination IPv4 address (requiring a byte-swap for
135*5113495bSYour Name 			little-endian SW w.r.t. the byte order in an IPv6 or IPv4
136*5113495bSYour Name 			packet)
137*5113495bSYour Name 
138*5113495bSYour Name 			<legal all>
139*5113495bSYour Name 
140*5113495bSYour Name src_port
141*5113495bSYour Name 
142*5113495bSYour Name 			LSB of SPI in case of ESP/AH
143*5113495bSYour Name 
144*5113495bSYour Name 			else source port in case of TCP/UDP without IPsec,
145*5113495bSYour Name 
146*5113495bSYour Name 			else zeros in case of ICMP (with the first/third byte in
147*5113495bSYour Name 			the MSB and the second/fourth byte in the LSB, i.e.
148*5113495bSYour Name 			requiring a byte-swap for little-endian SW w.r.t. the byte
149*5113495bSYour Name 			order as in an IPv6 or IPv4 packet)  <legal all>
150*5113495bSYour Name 
151*5113495bSYour Name dest_port
152*5113495bSYour Name 
153*5113495bSYour Name 			MSB of SPI in case of ESP/AH
154*5113495bSYour Name 
155*5113495bSYour Name 			else destination port in case of TCP/UDP without IPsec,
156*5113495bSYour Name 
157*5113495bSYour Name 			else zeros in case of ICMP (with the first byte in the
158*5113495bSYour Name 			MSB and the second byte in the LSB, i.e. requiring a
159*5113495bSYour Name 			byte-swap for little-endian SW w.r.t. the byte order as in
160*5113495bSYour Name 			an IPv6 or IPv4 packet)
161*5113495bSYour Name 
162*5113495bSYour Name 			<legal all>
163*5113495bSYour Name 
164*5113495bSYour Name l4_protocol
165*5113495bSYour Name 
166*5113495bSYour Name 			IPsec or L4 protocol
167*5113495bSYour Name 
168*5113495bSYour Name 
169*5113495bSYour Name 
170*5113495bSYour Name 			<enum 1 ICMPV4>
171*5113495bSYour Name 
172*5113495bSYour Name 			<enum 6 TCP>
173*5113495bSYour Name 
174*5113495bSYour Name 			<enum 17 UDP>
175*5113495bSYour Name 
176*5113495bSYour Name 			<enum 50 ESP>
177*5113495bSYour Name 
178*5113495bSYour Name 			<enum 51 AH>
179*5113495bSYour Name 
180*5113495bSYour Name 			<enum 58 ICMPV6>
181*5113495bSYour Name 
182*5113495bSYour Name 			<legal 1, 6, 17, 50, 51, 58>
183*5113495bSYour Name 
184*5113495bSYour Name valid
185*5113495bSYour Name 
186*5113495bSYour Name 			Indicates validity of entry
187*5113495bSYour Name 
188*5113495bSYour Name 			<legal all>
189*5113495bSYour Name 
190*5113495bSYour Name reserved_9
191*5113495bSYour Name 
192*5113495bSYour Name 			<legal 0>
193*5113495bSYour Name 
194*5113495bSYour Name reo_destination_handler
195*5113495bSYour Name 
196*5113495bSYour Name 			Indicates how to decide the REO destination indication
197*5113495bSYour Name 
198*5113495bSYour Name 			<enum 0 RXFT_USE_FT> Follow this entry
199*5113495bSYour Name 
200*5113495bSYour Name 			<enum 1 RXFT_USE_ASPT> Use address search+peer table
201*5113495bSYour Name 			entry
202*5113495bSYour Name 
203*5113495bSYour Name 			<enum 2 RXFT_USE_FT2> Follow this entry
204*5113495bSYour Name 
205*5113495bSYour Name 			<enum 3 RXFT_USE_CCE> Use CCE super-rule
206*5113495bSYour Name 
207*5113495bSYour Name 			<legal all>
208*5113495bSYour Name 
209*5113495bSYour Name metadata
210*5113495bSYour Name 
211*5113495bSYour Name 			Value to be passed to SW if this flow search entry
212*5113495bSYour Name 			matches
213*5113495bSYour Name 
214*5113495bSYour Name 			<legal all>
215*5113495bSYour Name 
216*5113495bSYour Name reo_destination_indication
217*5113495bSYour Name 
218*5113495bSYour Name 			The ID of the REO exit ring where the MSDU frame shall
219*5113495bSYour Name 			push after (MPDU level) reordering has finished.
220*5113495bSYour Name 
221*5113495bSYour Name 
222*5113495bSYour Name 
223*5113495bSYour Name 			<enum 0 reo_destination_tcl> Reo will push the frame
224*5113495bSYour Name 			into the REO2TCL ring
225*5113495bSYour Name 
226*5113495bSYour Name 			<enum 1 reo_destination_sw1> Reo will push the frame
227*5113495bSYour Name 			into the REO2SW1 ring
228*5113495bSYour Name 
229*5113495bSYour Name 			<enum 2 reo_destination_sw2> Reo will push the frame
230*5113495bSYour Name 			into the REO2SW1 ring
231*5113495bSYour Name 
232*5113495bSYour Name 			<enum 3 reo_destination_sw3> Reo will push the frame
233*5113495bSYour Name 			into the REO2SW1 ring
234*5113495bSYour Name 
235*5113495bSYour Name 			<enum 4 reo_destination_sw4> Reo will push the frame
236*5113495bSYour Name 			into the REO2SW1 ring
237*5113495bSYour Name 
238*5113495bSYour Name 			<enum 5 reo_destination_release> Reo will push the frame
239*5113495bSYour Name 			into the REO_release ring
240*5113495bSYour Name 
241*5113495bSYour Name 			<enum 6 reo_destination_fw> Reo will push the frame into
242*5113495bSYour Name 			the REO2FW ring
243*5113495bSYour Name 
244*5113495bSYour Name 			<enum 7 reo_destination_7> REO remaps this
245*5113495bSYour Name 
246*5113495bSYour Name 			<enum 8 reo_destination_8> REO remaps this <enum 9
247*5113495bSYour Name 			reo_destination_9> REO remaps this <enum 10
248*5113495bSYour Name 			reo_destination_10> REO remaps this
249*5113495bSYour Name 
250*5113495bSYour Name 			<enum 11 reo_destination_11> REO remaps this
251*5113495bSYour Name 
252*5113495bSYour Name 			<enum 12 reo_destination_12> REO remaps this <enum 13
253*5113495bSYour Name 			reo_destination_13> REO remaps this
254*5113495bSYour Name 
255*5113495bSYour Name 			<enum 14 reo_destination_14> REO remaps this
256*5113495bSYour Name 
257*5113495bSYour Name 			<enum 15 reo_destination_15> REO remaps this
258*5113495bSYour Name 
259*5113495bSYour Name 			<enum 16 reo_destination_16> REO remaps this
260*5113495bSYour Name 
261*5113495bSYour Name 			<enum 17 reo_destination_17> REO remaps this
262*5113495bSYour Name 
263*5113495bSYour Name 			<enum 18 reo_destination_18> REO remaps this
264*5113495bSYour Name 
265*5113495bSYour Name 			<enum 19 reo_destination_19> REO remaps this
266*5113495bSYour Name 
267*5113495bSYour Name 			<enum 20 reo_destination_20> REO remaps this
268*5113495bSYour Name 
269*5113495bSYour Name 			<enum 21 reo_destination_21> REO remaps this
270*5113495bSYour Name 
271*5113495bSYour Name 			<enum 22 reo_destination_22> REO remaps this
272*5113495bSYour Name 
273*5113495bSYour Name 			<enum 23 reo_destination_23> REO remaps this
274*5113495bSYour Name 
275*5113495bSYour Name 			<enum 24 reo_destination_24> REO remaps this
276*5113495bSYour Name 
277*5113495bSYour Name 			<enum 25 reo_destination_25> REO remaps this
278*5113495bSYour Name 
279*5113495bSYour Name 			<enum 26 reo_destination_26> REO remaps this
280*5113495bSYour Name 
281*5113495bSYour Name 			<enum 27 reo_destination_27> REO remaps this
282*5113495bSYour Name 
283*5113495bSYour Name 			<enum 28 reo_destination_28> REO remaps this
284*5113495bSYour Name 
285*5113495bSYour Name 			<enum 29 reo_destination_29> REO remaps this
286*5113495bSYour Name 
287*5113495bSYour Name 			<enum 30 reo_destination_30> REO remaps this
288*5113495bSYour Name 
289*5113495bSYour Name 			<enum 31 reo_destination_31> REO remaps this
290*5113495bSYour Name 
291*5113495bSYour Name 
292*5113495bSYour Name 
293*5113495bSYour Name 			<legal all>
294*5113495bSYour Name 
295*5113495bSYour Name msdu_drop
296*5113495bSYour Name 
297*5113495bSYour Name 			Overriding indication to REO to forward to REO release
298*5113495bSYour Name 			ring
299*5113495bSYour Name 
300*5113495bSYour Name 			<legal all>
301*5113495bSYour Name 
302*5113495bSYour Name reserved_11
303*5113495bSYour Name 
304*5113495bSYour Name 			<legal 0>
305*5113495bSYour Name 
306*5113495bSYour Name msdu_count
307*5113495bSYour Name 
308*5113495bSYour Name 			Number of Rx MSDUs matching this flow
309*5113495bSYour Name 
310*5113495bSYour Name 			<legal all>
311*5113495bSYour Name 
312*5113495bSYour Name msdu_byte_count
313*5113495bSYour Name 
314*5113495bSYour Name 			Number of bytes in Rx MSDUs matching this flow
315*5113495bSYour Name 
316*5113495bSYour Name 			<legal all>
317*5113495bSYour Name 
318*5113495bSYour Name timestamp
319*5113495bSYour Name 
320*5113495bSYour Name 			Time of last reception (as measured at Rx OLE) matching
321*5113495bSYour Name 			this flow
322*5113495bSYour Name 
323*5113495bSYour Name 			<legal all>
324*5113495bSYour Name */
325*5113495bSYour Name 
326*5113495bSYour Name 
327*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_0_SRC_IP_127_96
328*5113495bSYour Name 
329*5113495bSYour Name 			Uppermost 32 bits of source IPv6 address or prefix as
330*5113495bSYour Name 			per Common Parser register field IP_DA_SA_PREFIX (with the
331*5113495bSYour Name 			first byte in the MSB and the last byte in the LSB, i.e.
332*5113495bSYour Name 			requiring a byte-swap for little-endian SW w.r.t. the byte
333*5113495bSYour Name 			order in an IPv6 packet)
334*5113495bSYour Name 
335*5113495bSYour Name 			<legal all>
336*5113495bSYour Name */
337*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_0_SRC_IP_127_96_OFFSET                  0x00000000
338*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_0_SRC_IP_127_96_LSB                     0
339*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_0_SRC_IP_127_96_MASK                    0xffffffff
340*5113495bSYour Name 
341*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_1_SRC_IP_95_64
342*5113495bSYour Name 
343*5113495bSYour Name 			Next 32 bits of source IPv6 address or prefix (requiring
344*5113495bSYour Name 			a byte-swap for little-endian SW) <legal all>
345*5113495bSYour Name */
346*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_1_SRC_IP_95_64_OFFSET                   0x00000004
347*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_1_SRC_IP_95_64_LSB                      0
348*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_1_SRC_IP_95_64_MASK                     0xffffffff
349*5113495bSYour Name 
350*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_2_SRC_IP_63_32
351*5113495bSYour Name 
352*5113495bSYour Name 			Next 32 bits of source IPv6 address or lowest 32 bits of
353*5113495bSYour Name 			prefix (requiring a byte-swap for little-endian SW)
354*5113495bSYour Name 
355*5113495bSYour Name 			<legal all>
356*5113495bSYour Name */
357*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_2_SRC_IP_63_32_OFFSET                   0x00000008
358*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_2_SRC_IP_63_32_LSB                      0
359*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_2_SRC_IP_63_32_MASK                     0xffffffff
360*5113495bSYour Name 
361*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_3_SRC_IP_31_0
362*5113495bSYour Name 
363*5113495bSYour Name 			Lowest 32 bits of source IPv6 address, or source IPv4
364*5113495bSYour Name 			address (requiring a byte-swap for little-endian SW w.r.t.
365*5113495bSYour Name 			the byte order in an IPv6 or IPv4 packet)
366*5113495bSYour Name 
367*5113495bSYour Name 			<legal all>
368*5113495bSYour Name */
369*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_3_SRC_IP_31_0_OFFSET                    0x0000000c
370*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_3_SRC_IP_31_0_LSB                       0
371*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_3_SRC_IP_31_0_MASK                      0xffffffff
372*5113495bSYour Name 
373*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_4_DEST_IP_127_96
374*5113495bSYour Name 
375*5113495bSYour Name 			Uppermost 32 bits of destination IPv6 address or prefix
376*5113495bSYour Name 			as per Common Parser register field IP_DA_SA_PREFIX (with
377*5113495bSYour Name 			the first byte in the MSB and the last byte in the LSB, i.e.
378*5113495bSYour Name 			requiring a byte-swap for little-endian SW w.r.t. the byte
379*5113495bSYour Name 			order as in an IPv6 packet)
380*5113495bSYour Name 
381*5113495bSYour Name 			<legal all>
382*5113495bSYour Name */
383*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_4_DEST_IP_127_96_OFFSET                 0x00000010
384*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_4_DEST_IP_127_96_LSB                    0
385*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_4_DEST_IP_127_96_MASK                   0xffffffff
386*5113495bSYour Name 
387*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_5_DEST_IP_95_64
388*5113495bSYour Name 
389*5113495bSYour Name 			Next 32 bits of destination IPv6 address or prefix
390*5113495bSYour Name 			(requiring a byte-swap for little-endian SW)
391*5113495bSYour Name 
392*5113495bSYour Name 			<legal all>
393*5113495bSYour Name */
394*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_5_DEST_IP_95_64_OFFSET                  0x00000014
395*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_5_DEST_IP_95_64_LSB                     0
396*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_5_DEST_IP_95_64_MASK                    0xffffffff
397*5113495bSYour Name 
398*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_6_DEST_IP_63_32
399*5113495bSYour Name 
400*5113495bSYour Name 			Next 32 bits of destination IPv6 address or lowest 32
401*5113495bSYour Name 			bits of prefix (requiring a byte-swap for little-endian SW)
402*5113495bSYour Name 
403*5113495bSYour Name 			<legal all>
404*5113495bSYour Name */
405*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_6_DEST_IP_63_32_OFFSET                  0x00000018
406*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_6_DEST_IP_63_32_LSB                     0
407*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_6_DEST_IP_63_32_MASK                    0xffffffff
408*5113495bSYour Name 
409*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_7_DEST_IP_31_0
410*5113495bSYour Name 
411*5113495bSYour Name 			Lowest 32 bits of destination IPv6 address, or
412*5113495bSYour Name 			destination IPv4 address (requiring a byte-swap for
413*5113495bSYour Name 			little-endian SW w.r.t. the byte order in an IPv6 or IPv4
414*5113495bSYour Name 			packet)
415*5113495bSYour Name 
416*5113495bSYour Name 			<legal all>
417*5113495bSYour Name */
418*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_7_DEST_IP_31_0_OFFSET                   0x0000001c
419*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_7_DEST_IP_31_0_LSB                      0
420*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_7_DEST_IP_31_0_MASK                     0xffffffff
421*5113495bSYour Name 
422*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_8_SRC_PORT
423*5113495bSYour Name 
424*5113495bSYour Name 			LSB of SPI in case of ESP/AH
425*5113495bSYour Name 
426*5113495bSYour Name 			else source port in case of TCP/UDP without IPsec,
427*5113495bSYour Name 
428*5113495bSYour Name 			else zeros in case of ICMP (with the first/third byte in
429*5113495bSYour Name 			the MSB and the second/fourth byte in the LSB, i.e.
430*5113495bSYour Name 			requiring a byte-swap for little-endian SW w.r.t. the byte
431*5113495bSYour Name 			order as in an IPv6 or IPv4 packet)  <legal all>
432*5113495bSYour Name */
433*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_8_SRC_PORT_OFFSET                       0x00000020
434*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_8_SRC_PORT_LSB                          0
435*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_8_SRC_PORT_MASK                         0x0000ffff
436*5113495bSYour Name 
437*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_8_DEST_PORT
438*5113495bSYour Name 
439*5113495bSYour Name 			MSB of SPI in case of ESP/AH
440*5113495bSYour Name 
441*5113495bSYour Name 			else destination port in case of TCP/UDP without IPsec,
442*5113495bSYour Name 
443*5113495bSYour Name 			else zeros in case of ICMP (with the first byte in the
444*5113495bSYour Name 			MSB and the second byte in the LSB, i.e. requiring a
445*5113495bSYour Name 			byte-swap for little-endian SW w.r.t. the byte order as in
446*5113495bSYour Name 			an IPv6 or IPv4 packet)
447*5113495bSYour Name 
448*5113495bSYour Name 			<legal all>
449*5113495bSYour Name */
450*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_8_DEST_PORT_OFFSET                      0x00000020
451*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_8_DEST_PORT_LSB                         16
452*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_8_DEST_PORT_MASK                        0xffff0000
453*5113495bSYour Name 
454*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_9_L4_PROTOCOL
455*5113495bSYour Name 
456*5113495bSYour Name 			IPsec or L4 protocol
457*5113495bSYour Name 
458*5113495bSYour Name 
459*5113495bSYour Name 
460*5113495bSYour Name 			<enum 1 ICMPV4>
461*5113495bSYour Name 
462*5113495bSYour Name 			<enum 6 TCP>
463*5113495bSYour Name 
464*5113495bSYour Name 			<enum 17 UDP>
465*5113495bSYour Name 
466*5113495bSYour Name 			<enum 50 ESP>
467*5113495bSYour Name 
468*5113495bSYour Name 			<enum 51 AH>
469*5113495bSYour Name 
470*5113495bSYour Name 			<enum 58 ICMPV6>
471*5113495bSYour Name 
472*5113495bSYour Name 			<legal 1, 6, 17, 50, 51, 58>
473*5113495bSYour Name */
474*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_L4_PROTOCOL_OFFSET                    0x00000024
475*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_L4_PROTOCOL_LSB                       0
476*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_L4_PROTOCOL_MASK                      0x000000ff
477*5113495bSYour Name 
478*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_9_VALID
479*5113495bSYour Name 
480*5113495bSYour Name 			Indicates validity of entry
481*5113495bSYour Name 
482*5113495bSYour Name 			<legal all>
483*5113495bSYour Name */
484*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_VALID_OFFSET                          0x00000024
485*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_VALID_LSB                             8
486*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_VALID_MASK                            0x00000100
487*5113495bSYour Name 
488*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_9_RESERVED_9
489*5113495bSYour Name 
490*5113495bSYour Name 			<legal 0>
491*5113495bSYour Name */
492*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_RESERVED_9_OFFSET                     0x00000024
493*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_RESERVED_9_LSB                        9
494*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_RESERVED_9_MASK                       0x3ffffe00
495*5113495bSYour Name 
496*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_HANDLER
497*5113495bSYour Name 
498*5113495bSYour Name 			Indicates how to decide the REO destination indication
499*5113495bSYour Name 
500*5113495bSYour Name 			<enum 0 RXFT_USE_FT> Follow this entry
501*5113495bSYour Name 
502*5113495bSYour Name 			<enum 1 RXFT_USE_ASPT> Use address search+peer table
503*5113495bSYour Name 			entry
504*5113495bSYour Name 
505*5113495bSYour Name 			<enum 2 RXFT_USE_FT2> Follow this entry
506*5113495bSYour Name 
507*5113495bSYour Name 			<enum 3 RXFT_USE_CCE> Use CCE super-rule
508*5113495bSYour Name 
509*5113495bSYour Name 			<legal all>
510*5113495bSYour Name */
511*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_HANDLER_OFFSET        0x00000024
512*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_HANDLER_LSB           30
513*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_9_REO_DESTINATION_HANDLER_MASK          0xc0000000
514*5113495bSYour Name 
515*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_10_METADATA
516*5113495bSYour Name 
517*5113495bSYour Name 			Value to be passed to SW if this flow search entry
518*5113495bSYour Name 			matches
519*5113495bSYour Name 
520*5113495bSYour Name 			<legal all>
521*5113495bSYour Name */
522*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_10_METADATA_OFFSET                      0x00000028
523*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_10_METADATA_LSB                         0
524*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_10_METADATA_MASK                        0xffffffff
525*5113495bSYour Name 
526*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_11_REO_DESTINATION_INDICATION
527*5113495bSYour Name 
528*5113495bSYour Name 			The ID of the REO exit ring where the MSDU frame shall
529*5113495bSYour Name 			push after (MPDU level) reordering has finished.
530*5113495bSYour Name 
531*5113495bSYour Name 
532*5113495bSYour Name 
533*5113495bSYour Name 			<enum 0 reo_destination_tcl> Reo will push the frame
534*5113495bSYour Name 			into the REO2TCL ring
535*5113495bSYour Name 
536*5113495bSYour Name 			<enum 1 reo_destination_sw1> Reo will push the frame
537*5113495bSYour Name 			into the REO2SW1 ring
538*5113495bSYour Name 
539*5113495bSYour Name 			<enum 2 reo_destination_sw2> Reo will push the frame
540*5113495bSYour Name 			into the REO2SW1 ring
541*5113495bSYour Name 
542*5113495bSYour Name 			<enum 3 reo_destination_sw3> Reo will push the frame
543*5113495bSYour Name 			into the REO2SW1 ring
544*5113495bSYour Name 
545*5113495bSYour Name 			<enum 4 reo_destination_sw4> Reo will push the frame
546*5113495bSYour Name 			into the REO2SW1 ring
547*5113495bSYour Name 
548*5113495bSYour Name 			<enum 5 reo_destination_release> Reo will push the frame
549*5113495bSYour Name 			into the REO_release ring
550*5113495bSYour Name 
551*5113495bSYour Name 			<enum 6 reo_destination_fw> Reo will push the frame into
552*5113495bSYour Name 			the REO2FW ring
553*5113495bSYour Name 
554*5113495bSYour Name 			<enum 7 reo_destination_7> REO remaps this
555*5113495bSYour Name 
556*5113495bSYour Name 			<enum 8 reo_destination_8> REO remaps this <enum 9
557*5113495bSYour Name 			reo_destination_9> REO remaps this <enum 10
558*5113495bSYour Name 			reo_destination_10> REO remaps this
559*5113495bSYour Name 
560*5113495bSYour Name 			<enum 11 reo_destination_11> REO remaps this
561*5113495bSYour Name 
562*5113495bSYour Name 			<enum 12 reo_destination_12> REO remaps this <enum 13
563*5113495bSYour Name 			reo_destination_13> REO remaps this
564*5113495bSYour Name 
565*5113495bSYour Name 			<enum 14 reo_destination_14> REO remaps this
566*5113495bSYour Name 
567*5113495bSYour Name 			<enum 15 reo_destination_15> REO remaps this
568*5113495bSYour Name 
569*5113495bSYour Name 			<enum 16 reo_destination_16> REO remaps this
570*5113495bSYour Name 
571*5113495bSYour Name 			<enum 17 reo_destination_17> REO remaps this
572*5113495bSYour Name 
573*5113495bSYour Name 			<enum 18 reo_destination_18> REO remaps this
574*5113495bSYour Name 
575*5113495bSYour Name 			<enum 19 reo_destination_19> REO remaps this
576*5113495bSYour Name 
577*5113495bSYour Name 			<enum 20 reo_destination_20> REO remaps this
578*5113495bSYour Name 
579*5113495bSYour Name 			<enum 21 reo_destination_21> REO remaps this
580*5113495bSYour Name 
581*5113495bSYour Name 			<enum 22 reo_destination_22> REO remaps this
582*5113495bSYour Name 
583*5113495bSYour Name 			<enum 23 reo_destination_23> REO remaps this
584*5113495bSYour Name 
585*5113495bSYour Name 			<enum 24 reo_destination_24> REO remaps this
586*5113495bSYour Name 
587*5113495bSYour Name 			<enum 25 reo_destination_25> REO remaps this
588*5113495bSYour Name 
589*5113495bSYour Name 			<enum 26 reo_destination_26> REO remaps this
590*5113495bSYour Name 
591*5113495bSYour Name 			<enum 27 reo_destination_27> REO remaps this
592*5113495bSYour Name 
593*5113495bSYour Name 			<enum 28 reo_destination_28> REO remaps this
594*5113495bSYour Name 
595*5113495bSYour Name 			<enum 29 reo_destination_29> REO remaps this
596*5113495bSYour Name 
597*5113495bSYour Name 			<enum 30 reo_destination_30> REO remaps this
598*5113495bSYour Name 
599*5113495bSYour Name 			<enum 31 reo_destination_31> REO remaps this
600*5113495bSYour Name 
601*5113495bSYour Name 
602*5113495bSYour Name 
603*5113495bSYour Name 			<legal all>
604*5113495bSYour Name */
605*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_REO_DESTINATION_INDICATION_OFFSET    0x0000002c
606*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_REO_DESTINATION_INDICATION_LSB       0
607*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_REO_DESTINATION_INDICATION_MASK      0x0000001f
608*5113495bSYour Name 
609*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_11_MSDU_DROP
610*5113495bSYour Name 
611*5113495bSYour Name 			Overriding indication to REO to forward to REO release
612*5113495bSYour Name 			ring
613*5113495bSYour Name 
614*5113495bSYour Name 			<legal all>
615*5113495bSYour Name */
616*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_MSDU_DROP_OFFSET                     0x0000002c
617*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_MSDU_DROP_LSB                        5
618*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_MSDU_DROP_MASK                       0x00000020
619*5113495bSYour Name 
620*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_11_RESERVED_11
621*5113495bSYour Name 
622*5113495bSYour Name 			<legal 0>
623*5113495bSYour Name */
624*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_RESERVED_11_OFFSET                   0x0000002c
625*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_RESERVED_11_LSB                      6
626*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_RESERVED_11_MASK                     0x000000c0
627*5113495bSYour Name 
628*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_11_MSDU_COUNT
629*5113495bSYour Name 
630*5113495bSYour Name 			Number of Rx MSDUs matching this flow
631*5113495bSYour Name 
632*5113495bSYour Name 			<legal all>
633*5113495bSYour Name */
634*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_MSDU_COUNT_OFFSET                    0x0000002c
635*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_MSDU_COUNT_LSB                       8
636*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_11_MSDU_COUNT_MASK                      0xffffff00
637*5113495bSYour Name 
638*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_12_MSDU_BYTE_COUNT
639*5113495bSYour Name 
640*5113495bSYour Name 			Number of bytes in Rx MSDUs matching this flow
641*5113495bSYour Name 
642*5113495bSYour Name 			<legal all>
643*5113495bSYour Name */
644*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_12_MSDU_BYTE_COUNT_OFFSET               0x00000030
645*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_12_MSDU_BYTE_COUNT_LSB                  0
646*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_12_MSDU_BYTE_COUNT_MASK                 0xffffffff
647*5113495bSYour Name 
648*5113495bSYour Name /* Description		RX_FLOW_SEARCH_ENTRY_13_TIMESTAMP
649*5113495bSYour Name 
650*5113495bSYour Name 			Time of last reception (as measured at Rx OLE) matching
651*5113495bSYour Name 			this flow
652*5113495bSYour Name 
653*5113495bSYour Name 			<legal all>
654*5113495bSYour Name */
655*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_13_TIMESTAMP_OFFSET                     0x00000034
656*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_13_TIMESTAMP_LSB                        0
657*5113495bSYour Name #define RX_FLOW_SEARCH_ENTRY_13_TIMESTAMP_MASK                       0xffffffff
658*5113495bSYour Name 
659*5113495bSYour Name 
660*5113495bSYour Name #endif // _RX_FLOW_SEARCH_ENTRY_H_
661