xref: /wlan-driver/fw-api/hw/qca9574/tcl_gse_cmd.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 _TCL_GSE_CMD_H_
24*5113495bSYour Name #define _TCL_GSE_CMD_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	control_buffer_addr_31_0[31:0]
33*5113495bSYour Name //	1	control_buffer_addr_39_32[7:0], gse_ctrl[11:8], gse_sel[12], status_destination_ring_id[13], swap[14], index_search_en[15], cache_set_num[19:16], reserved_1a[31:20]
34*5113495bSYour Name //	2	cmd_meta_data_31_0[31:0]
35*5113495bSYour Name //	3	cmd_meta_data_63_32[31:0]
36*5113495bSYour Name //	4	reserved_4a[31:0]
37*5113495bSYour Name //	5	reserved_5a[31:0]
38*5113495bSYour Name //	6	reserved_6a[19:0], ring_id[27:20], looping_count[31:28]
39*5113495bSYour Name //
40*5113495bSYour Name // ################ END SUMMARY #################
41*5113495bSYour Name 
42*5113495bSYour Name #define NUM_OF_DWORDS_TCL_GSE_CMD 7
43*5113495bSYour Name 
44*5113495bSYour Name struct tcl_gse_cmd {
45*5113495bSYour Name              uint32_t control_buffer_addr_31_0        : 32; //[31:0]
46*5113495bSYour Name              uint32_t control_buffer_addr_39_32       :  8, //[7:0]
47*5113495bSYour Name                       gse_ctrl                        :  4, //[11:8]
48*5113495bSYour Name                       gse_sel                         :  1, //[12]
49*5113495bSYour Name                       status_destination_ring_id      :  1, //[13]
50*5113495bSYour Name                       swap                            :  1, //[14]
51*5113495bSYour Name                       index_search_en                 :  1, //[15]
52*5113495bSYour Name                       cache_set_num                   :  4, //[19:16]
53*5113495bSYour Name                       reserved_1a                     : 12; //[31:20]
54*5113495bSYour Name              uint32_t cmd_meta_data_31_0              : 32; //[31:0]
55*5113495bSYour Name              uint32_t cmd_meta_data_63_32             : 32; //[31:0]
56*5113495bSYour Name              uint32_t reserved_4a                     : 32; //[31:0]
57*5113495bSYour Name              uint32_t reserved_5a                     : 32; //[31:0]
58*5113495bSYour Name              uint32_t reserved_6a                     : 20, //[19:0]
59*5113495bSYour Name                       ring_id                         :  8, //[27:20]
60*5113495bSYour Name                       looping_count                   :  4; //[31:28]
61*5113495bSYour Name };
62*5113495bSYour Name 
63*5113495bSYour Name /*
64*5113495bSYour Name 
65*5113495bSYour Name control_buffer_addr_31_0
66*5113495bSYour Name 
67*5113495bSYour Name 			Address (lower 32 bits) of a control buffer containing
68*5113495bSYour Name 			additional info needed for this command execution.
69*5113495bSYour Name 
70*5113495bSYour Name 			<legal all>
71*5113495bSYour Name 
72*5113495bSYour Name control_buffer_addr_39_32
73*5113495bSYour Name 
74*5113495bSYour Name 			Address (upper 8 bits) of a control buffer containing
75*5113495bSYour Name 			additional info needed for this command execution.
76*5113495bSYour Name 
77*5113495bSYour Name 			<legal all>
78*5113495bSYour Name 
79*5113495bSYour Name gse_ctrl
80*5113495bSYour Name 
81*5113495bSYour Name 			GSE control operations. This includes cache operations
82*5113495bSYour Name 			and table entry statistics read/clear operation.
83*5113495bSYour Name 
84*5113495bSYour Name 			<enum 0 rd_stat> Report or Read statistics
85*5113495bSYour Name 
86*5113495bSYour Name 			<enum 1 srch_dis> Search disable. Report only Hash
87*5113495bSYour Name 
88*5113495bSYour Name 			<enum 2 Wr_bk_single> Write Back single entry
89*5113495bSYour Name 
90*5113495bSYour Name 			<enum 3 wr_bk_all> Write Back entire cache entry
91*5113495bSYour Name 
92*5113495bSYour Name 			<enum 4 inval_single> Invalidate single cache entry
93*5113495bSYour Name 
94*5113495bSYour Name 			<enum 5 inval_all> Invalidate entire cache
95*5113495bSYour Name 
96*5113495bSYour Name 			<enum 6 wr_bk_inval_single> Write back and Invalidate
97*5113495bSYour Name 			single entry in cache
98*5113495bSYour Name 
99*5113495bSYour Name 			<enum 7 wr_bk_inval_all> write back and invalidate
100*5113495bSYour Name 			entire cache
101*5113495bSYour Name 
102*5113495bSYour Name 			<enum 8 clr_stat_single> Clear statistics for single
103*5113495bSYour Name 			entry
104*5113495bSYour Name 
105*5113495bSYour Name 			<legal 0-8>
106*5113495bSYour Name 
107*5113495bSYour Name 			Rest of the values reserved.
108*5113495bSYour Name 
109*5113495bSYour Name 			For all single entry control operations (write back,
110*5113495bSYour Name 			Invalidate or both)Statistics will be reported
111*5113495bSYour Name 
112*5113495bSYour Name gse_sel
113*5113495bSYour Name 
114*5113495bSYour Name 			Bit to select the ASE or FSE to do the operation mention
115*5113495bSYour Name 			by GSE_ctrl bit
116*5113495bSYour Name 
117*5113495bSYour Name 			0: FSE select
118*5113495bSYour Name 
119*5113495bSYour Name 			1: ASE select
120*5113495bSYour Name 
121*5113495bSYour Name status_destination_ring_id
122*5113495bSYour Name 
123*5113495bSYour Name 			The TCL status ring to which the GSE status needs to be
124*5113495bSYour Name 			send.
125*5113495bSYour Name 
126*5113495bSYour Name 
127*5113495bSYour Name 
128*5113495bSYour Name 			<enum 0 tcl_status_0_ring>
129*5113495bSYour Name 
130*5113495bSYour Name 			<enum 1 tcl_status_1_ring>
131*5113495bSYour Name 
132*5113495bSYour Name 
133*5113495bSYour Name 
134*5113495bSYour Name 			<legal all>
135*5113495bSYour Name 
136*5113495bSYour Name swap
137*5113495bSYour Name 
138*5113495bSYour Name 			Bit to enable byte swapping of contents of buffer
139*5113495bSYour Name 
140*5113495bSYour Name 			<enum 0 Byte_swap_disable >
141*5113495bSYour Name 
142*5113495bSYour Name 			<enum 1 byte_swap_enable >
143*5113495bSYour Name 
144*5113495bSYour Name 			<legal all>
145*5113495bSYour Name 
146*5113495bSYour Name index_search_en
147*5113495bSYour Name 
148*5113495bSYour Name 			When this bit is set to 1 control_buffer_addr[19:0] will
149*5113495bSYour Name 			be considered as index of the AST or Flow table and GSE
150*5113495bSYour Name 			commands will be executed accordingly on the entry pointed
151*5113495bSYour Name 			by the index.
152*5113495bSYour Name 
153*5113495bSYour Name 			This feature is disabled by setting this bit to 0.
154*5113495bSYour Name 
155*5113495bSYour Name 			<enum 0 index_based_cmd_disable>
156*5113495bSYour Name 
157*5113495bSYour Name 			<enum 1 index_based_cmd_enable>
158*5113495bSYour Name 
159*5113495bSYour Name 
160*5113495bSYour Name 
161*5113495bSYour Name 			<legal all>
162*5113495bSYour Name 
163*5113495bSYour Name cache_set_num
164*5113495bSYour Name 
165*5113495bSYour Name 			Cache set number that should be used to cache the index
166*5113495bSYour Name 			based search results, for address and flow search. This
167*5113495bSYour Name 			value should be equal to value of cache_set_num for the
168*5113495bSYour Name 			index that is issued in TCL_DATA_CMD during search index
169*5113495bSYour Name 			based ASE or FSE. This field is valid for index based GSE
170*5113495bSYour Name 			commands
171*5113495bSYour Name 
172*5113495bSYour Name 			<legal all>
173*5113495bSYour Name 
174*5113495bSYour Name reserved_1a
175*5113495bSYour Name 
176*5113495bSYour Name 			<legal 0>
177*5113495bSYour Name 
178*5113495bSYour Name cmd_meta_data_31_0
179*5113495bSYour Name 
180*5113495bSYour Name 			Meta data to be returned in the status descriptor
181*5113495bSYour Name 
182*5113495bSYour Name 			<legal all>
183*5113495bSYour Name 
184*5113495bSYour Name cmd_meta_data_63_32
185*5113495bSYour Name 
186*5113495bSYour Name 			Meta data to be returned in the status descriptor
187*5113495bSYour Name 
188*5113495bSYour Name 			<legal all>
189*5113495bSYour Name 
190*5113495bSYour Name reserved_4a
191*5113495bSYour Name 
192*5113495bSYour Name 			<legal 0>
193*5113495bSYour Name 
194*5113495bSYour Name reserved_5a
195*5113495bSYour Name 
196*5113495bSYour Name 			<legal 0>
197*5113495bSYour Name 
198*5113495bSYour Name reserved_6a
199*5113495bSYour Name 
200*5113495bSYour Name 			<legal 0>
201*5113495bSYour Name 
202*5113495bSYour Name ring_id
203*5113495bSYour Name 
204*5113495bSYour Name 			Helps with debugging when dumping ring contents.
205*5113495bSYour Name 
206*5113495bSYour Name 			<legal all>
207*5113495bSYour Name 
208*5113495bSYour Name looping_count
209*5113495bSYour Name 
210*5113495bSYour Name 			A count value that indicates the number of times the
211*5113495bSYour Name 			producer of entries into the Ring has looped around the
212*5113495bSYour Name 			ring.
213*5113495bSYour Name 
214*5113495bSYour Name 			At initialization time, this value is set to 0. On the
215*5113495bSYour Name 			first loop, this value is set to 1. After the max value is
216*5113495bSYour Name 			reached allowed by the number of bits for this field, the
217*5113495bSYour Name 			count value continues with 0 again.
218*5113495bSYour Name 
219*5113495bSYour Name 
220*5113495bSYour Name 
221*5113495bSYour Name 			In case SW is the consumer of the ring entries, it can
222*5113495bSYour Name 			use this field to figure out up to where the producer of
223*5113495bSYour Name 			entries has created new entries. This eliminates the need to
224*5113495bSYour Name 			check where the head pointer' of the ring is located once
225*5113495bSYour Name 			the SW starts processing an interrupt indicating that new
226*5113495bSYour Name 			entries have been put into this ring...
227*5113495bSYour Name 
228*5113495bSYour Name 
229*5113495bSYour Name 
230*5113495bSYour Name 			Also note that SW if it wants only needs to look at the
231*5113495bSYour Name 			LSB bit of this count value.
232*5113495bSYour Name 
233*5113495bSYour Name 			<legal all>
234*5113495bSYour Name */
235*5113495bSYour Name 
236*5113495bSYour Name 
237*5113495bSYour Name /* Description		TCL_GSE_CMD_0_CONTROL_BUFFER_ADDR_31_0
238*5113495bSYour Name 
239*5113495bSYour Name 			Address (lower 32 bits) of a control buffer containing
240*5113495bSYour Name 			additional info needed for this command execution.
241*5113495bSYour Name 
242*5113495bSYour Name 			<legal all>
243*5113495bSYour Name */
244*5113495bSYour Name #define TCL_GSE_CMD_0_CONTROL_BUFFER_ADDR_31_0_OFFSET                0x00000000
245*5113495bSYour Name #define TCL_GSE_CMD_0_CONTROL_BUFFER_ADDR_31_0_LSB                   0
246*5113495bSYour Name #define TCL_GSE_CMD_0_CONTROL_BUFFER_ADDR_31_0_MASK                  0xffffffff
247*5113495bSYour Name 
248*5113495bSYour Name /* Description		TCL_GSE_CMD_1_CONTROL_BUFFER_ADDR_39_32
249*5113495bSYour Name 
250*5113495bSYour Name 			Address (upper 8 bits) of a control buffer containing
251*5113495bSYour Name 			additional info needed for this command execution.
252*5113495bSYour Name 
253*5113495bSYour Name 			<legal all>
254*5113495bSYour Name */
255*5113495bSYour Name #define TCL_GSE_CMD_1_CONTROL_BUFFER_ADDR_39_32_OFFSET               0x00000004
256*5113495bSYour Name #define TCL_GSE_CMD_1_CONTROL_BUFFER_ADDR_39_32_LSB                  0
257*5113495bSYour Name #define TCL_GSE_CMD_1_CONTROL_BUFFER_ADDR_39_32_MASK                 0x000000ff
258*5113495bSYour Name 
259*5113495bSYour Name /* Description		TCL_GSE_CMD_1_GSE_CTRL
260*5113495bSYour Name 
261*5113495bSYour Name 			GSE control operations. This includes cache operations
262*5113495bSYour Name 			and table entry statistics read/clear operation.
263*5113495bSYour Name 
264*5113495bSYour Name 			<enum 0 rd_stat> Report or Read statistics
265*5113495bSYour Name 
266*5113495bSYour Name 			<enum 1 srch_dis> Search disable. Report only Hash
267*5113495bSYour Name 
268*5113495bSYour Name 			<enum 2 Wr_bk_single> Write Back single entry
269*5113495bSYour Name 
270*5113495bSYour Name 			<enum 3 wr_bk_all> Write Back entire cache entry
271*5113495bSYour Name 
272*5113495bSYour Name 			<enum 4 inval_single> Invalidate single cache entry
273*5113495bSYour Name 
274*5113495bSYour Name 			<enum 5 inval_all> Invalidate entire cache
275*5113495bSYour Name 
276*5113495bSYour Name 			<enum 6 wr_bk_inval_single> Write back and Invalidate
277*5113495bSYour Name 			single entry in cache
278*5113495bSYour Name 
279*5113495bSYour Name 			<enum 7 wr_bk_inval_all> write back and invalidate
280*5113495bSYour Name 			entire cache
281*5113495bSYour Name 
282*5113495bSYour Name 			<enum 8 clr_stat_single> Clear statistics for single
283*5113495bSYour Name 			entry
284*5113495bSYour Name 
285*5113495bSYour Name 			<legal 0-8>
286*5113495bSYour Name 
287*5113495bSYour Name 			Rest of the values reserved.
288*5113495bSYour Name 
289*5113495bSYour Name 			For all single entry control operations (write back,
290*5113495bSYour Name 			Invalidate or both)Statistics will be reported
291*5113495bSYour Name */
292*5113495bSYour Name #define TCL_GSE_CMD_1_GSE_CTRL_OFFSET                                0x00000004
293*5113495bSYour Name #define TCL_GSE_CMD_1_GSE_CTRL_LSB                                   8
294*5113495bSYour Name #define TCL_GSE_CMD_1_GSE_CTRL_MASK                                  0x00000f00
295*5113495bSYour Name 
296*5113495bSYour Name /* Description		TCL_GSE_CMD_1_GSE_SEL
297*5113495bSYour Name 
298*5113495bSYour Name 			Bit to select the ASE or FSE to do the operation mention
299*5113495bSYour Name 			by GSE_ctrl bit
300*5113495bSYour Name 
301*5113495bSYour Name 			0: FSE select
302*5113495bSYour Name 
303*5113495bSYour Name 			1: ASE select
304*5113495bSYour Name */
305*5113495bSYour Name #define TCL_GSE_CMD_1_GSE_SEL_OFFSET                                 0x00000004
306*5113495bSYour Name #define TCL_GSE_CMD_1_GSE_SEL_LSB                                    12
307*5113495bSYour Name #define TCL_GSE_CMD_1_GSE_SEL_MASK                                   0x00001000
308*5113495bSYour Name 
309*5113495bSYour Name /* Description		TCL_GSE_CMD_1_STATUS_DESTINATION_RING_ID
310*5113495bSYour Name 
311*5113495bSYour Name 			The TCL status ring to which the GSE status needs to be
312*5113495bSYour Name 			send.
313*5113495bSYour Name 
314*5113495bSYour Name 
315*5113495bSYour Name 
316*5113495bSYour Name 			<enum 0 tcl_status_0_ring>
317*5113495bSYour Name 
318*5113495bSYour Name 			<enum 1 tcl_status_1_ring>
319*5113495bSYour Name 
320*5113495bSYour Name 
321*5113495bSYour Name 
322*5113495bSYour Name 			<legal all>
323*5113495bSYour Name */
324*5113495bSYour Name #define TCL_GSE_CMD_1_STATUS_DESTINATION_RING_ID_OFFSET              0x00000004
325*5113495bSYour Name #define TCL_GSE_CMD_1_STATUS_DESTINATION_RING_ID_LSB                 13
326*5113495bSYour Name #define TCL_GSE_CMD_1_STATUS_DESTINATION_RING_ID_MASK                0x00002000
327*5113495bSYour Name 
328*5113495bSYour Name /* Description		TCL_GSE_CMD_1_SWAP
329*5113495bSYour Name 
330*5113495bSYour Name 			Bit to enable byte swapping of contents of buffer
331*5113495bSYour Name 
332*5113495bSYour Name 			<enum 0 Byte_swap_disable >
333*5113495bSYour Name 
334*5113495bSYour Name 			<enum 1 byte_swap_enable >
335*5113495bSYour Name 
336*5113495bSYour Name 			<legal all>
337*5113495bSYour Name */
338*5113495bSYour Name #define TCL_GSE_CMD_1_SWAP_OFFSET                                    0x00000004
339*5113495bSYour Name #define TCL_GSE_CMD_1_SWAP_LSB                                       14
340*5113495bSYour Name #define TCL_GSE_CMD_1_SWAP_MASK                                      0x00004000
341*5113495bSYour Name 
342*5113495bSYour Name /* Description		TCL_GSE_CMD_1_INDEX_SEARCH_EN
343*5113495bSYour Name 
344*5113495bSYour Name 			When this bit is set to 1 control_buffer_addr[19:0] will
345*5113495bSYour Name 			be considered as index of the AST or Flow table and GSE
346*5113495bSYour Name 			commands will be executed accordingly on the entry pointed
347*5113495bSYour Name 			by the index.
348*5113495bSYour Name 
349*5113495bSYour Name 			This feature is disabled by setting this bit to 0.
350*5113495bSYour Name 
351*5113495bSYour Name 			<enum 0 index_based_cmd_disable>
352*5113495bSYour Name 
353*5113495bSYour Name 			<enum 1 index_based_cmd_enable>
354*5113495bSYour Name 
355*5113495bSYour Name 
356*5113495bSYour Name 
357*5113495bSYour Name 			<legal all>
358*5113495bSYour Name */
359*5113495bSYour Name #define TCL_GSE_CMD_1_INDEX_SEARCH_EN_OFFSET                         0x00000004
360*5113495bSYour Name #define TCL_GSE_CMD_1_INDEX_SEARCH_EN_LSB                            15
361*5113495bSYour Name #define TCL_GSE_CMD_1_INDEX_SEARCH_EN_MASK                           0x00008000
362*5113495bSYour Name 
363*5113495bSYour Name /* Description		TCL_GSE_CMD_1_CACHE_SET_NUM
364*5113495bSYour Name 
365*5113495bSYour Name 			Cache set number that should be used to cache the index
366*5113495bSYour Name 			based search results, for address and flow search. This
367*5113495bSYour Name 			value should be equal to value of cache_set_num for the
368*5113495bSYour Name 			index that is issued in TCL_DATA_CMD during search index
369*5113495bSYour Name 			based ASE or FSE. This field is valid for index based GSE
370*5113495bSYour Name 			commands
371*5113495bSYour Name 
372*5113495bSYour Name 			<legal all>
373*5113495bSYour Name */
374*5113495bSYour Name #define TCL_GSE_CMD_1_CACHE_SET_NUM_OFFSET                           0x00000004
375*5113495bSYour Name #define TCL_GSE_CMD_1_CACHE_SET_NUM_LSB                              16
376*5113495bSYour Name #define TCL_GSE_CMD_1_CACHE_SET_NUM_MASK                             0x000f0000
377*5113495bSYour Name 
378*5113495bSYour Name /* Description		TCL_GSE_CMD_1_RESERVED_1A
379*5113495bSYour Name 
380*5113495bSYour Name 			<legal 0>
381*5113495bSYour Name */
382*5113495bSYour Name #define TCL_GSE_CMD_1_RESERVED_1A_OFFSET                             0x00000004
383*5113495bSYour Name #define TCL_GSE_CMD_1_RESERVED_1A_LSB                                20
384*5113495bSYour Name #define TCL_GSE_CMD_1_RESERVED_1A_MASK                               0xfff00000
385*5113495bSYour Name 
386*5113495bSYour Name /* Description		TCL_GSE_CMD_2_CMD_META_DATA_31_0
387*5113495bSYour Name 
388*5113495bSYour Name 			Meta data to be returned in the status descriptor
389*5113495bSYour Name 
390*5113495bSYour Name 			<legal all>
391*5113495bSYour Name */
392*5113495bSYour Name #define TCL_GSE_CMD_2_CMD_META_DATA_31_0_OFFSET                      0x00000008
393*5113495bSYour Name #define TCL_GSE_CMD_2_CMD_META_DATA_31_0_LSB                         0
394*5113495bSYour Name #define TCL_GSE_CMD_2_CMD_META_DATA_31_0_MASK                        0xffffffff
395*5113495bSYour Name 
396*5113495bSYour Name /* Description		TCL_GSE_CMD_3_CMD_META_DATA_63_32
397*5113495bSYour Name 
398*5113495bSYour Name 			Meta data to be returned in the status descriptor
399*5113495bSYour Name 
400*5113495bSYour Name 			<legal all>
401*5113495bSYour Name */
402*5113495bSYour Name #define TCL_GSE_CMD_3_CMD_META_DATA_63_32_OFFSET                     0x0000000c
403*5113495bSYour Name #define TCL_GSE_CMD_3_CMD_META_DATA_63_32_LSB                        0
404*5113495bSYour Name #define TCL_GSE_CMD_3_CMD_META_DATA_63_32_MASK                       0xffffffff
405*5113495bSYour Name 
406*5113495bSYour Name /* Description		TCL_GSE_CMD_4_RESERVED_4A
407*5113495bSYour Name 
408*5113495bSYour Name 			<legal 0>
409*5113495bSYour Name */
410*5113495bSYour Name #define TCL_GSE_CMD_4_RESERVED_4A_OFFSET                             0x00000010
411*5113495bSYour Name #define TCL_GSE_CMD_4_RESERVED_4A_LSB                                0
412*5113495bSYour Name #define TCL_GSE_CMD_4_RESERVED_4A_MASK                               0xffffffff
413*5113495bSYour Name 
414*5113495bSYour Name /* Description		TCL_GSE_CMD_5_RESERVED_5A
415*5113495bSYour Name 
416*5113495bSYour Name 			<legal 0>
417*5113495bSYour Name */
418*5113495bSYour Name #define TCL_GSE_CMD_5_RESERVED_5A_OFFSET                             0x00000014
419*5113495bSYour Name #define TCL_GSE_CMD_5_RESERVED_5A_LSB                                0
420*5113495bSYour Name #define TCL_GSE_CMD_5_RESERVED_5A_MASK                               0xffffffff
421*5113495bSYour Name 
422*5113495bSYour Name /* Description		TCL_GSE_CMD_6_RESERVED_6A
423*5113495bSYour Name 
424*5113495bSYour Name 			<legal 0>
425*5113495bSYour Name */
426*5113495bSYour Name #define TCL_GSE_CMD_6_RESERVED_6A_OFFSET                             0x00000018
427*5113495bSYour Name #define TCL_GSE_CMD_6_RESERVED_6A_LSB                                0
428*5113495bSYour Name #define TCL_GSE_CMD_6_RESERVED_6A_MASK                               0x000fffff
429*5113495bSYour Name 
430*5113495bSYour Name /* Description		TCL_GSE_CMD_6_RING_ID
431*5113495bSYour Name 
432*5113495bSYour Name 			Helps with debugging when dumping ring contents.
433*5113495bSYour Name 
434*5113495bSYour Name 			<legal all>
435*5113495bSYour Name */
436*5113495bSYour Name #define TCL_GSE_CMD_6_RING_ID_OFFSET                                 0x00000018
437*5113495bSYour Name #define TCL_GSE_CMD_6_RING_ID_LSB                                    20
438*5113495bSYour Name #define TCL_GSE_CMD_6_RING_ID_MASK                                   0x0ff00000
439*5113495bSYour Name 
440*5113495bSYour Name /* Description		TCL_GSE_CMD_6_LOOPING_COUNT
441*5113495bSYour Name 
442*5113495bSYour Name 			A count value that indicates the number of times the
443*5113495bSYour Name 			producer of entries into the Ring has looped around the
444*5113495bSYour Name 			ring.
445*5113495bSYour Name 
446*5113495bSYour Name 			At initialization time, this value is set to 0. On the
447*5113495bSYour Name 			first loop, this value is set to 1. After the max value is
448*5113495bSYour Name 			reached allowed by the number of bits for this field, the
449*5113495bSYour Name 			count value continues with 0 again.
450*5113495bSYour Name 
451*5113495bSYour Name 
452*5113495bSYour Name 
453*5113495bSYour Name 			In case SW is the consumer of the ring entries, it can
454*5113495bSYour Name 			use this field to figure out up to where the producer of
455*5113495bSYour Name 			entries has created new entries. This eliminates the need to
456*5113495bSYour Name 			check where the head pointer' of the ring is located once
457*5113495bSYour Name 			the SW starts processing an interrupt indicating that new
458*5113495bSYour Name 			entries have been put into this ring...
459*5113495bSYour Name 
460*5113495bSYour Name 
461*5113495bSYour Name 
462*5113495bSYour Name 			Also note that SW if it wants only needs to look at the
463*5113495bSYour Name 			LSB bit of this count value.
464*5113495bSYour Name 
465*5113495bSYour Name 			<legal all>
466*5113495bSYour Name */
467*5113495bSYour Name #define TCL_GSE_CMD_6_LOOPING_COUNT_OFFSET                           0x00000018
468*5113495bSYour Name #define TCL_GSE_CMD_6_LOOPING_COUNT_LSB                              28
469*5113495bSYour Name #define TCL_GSE_CMD_6_LOOPING_COUNT_MASK                             0xf0000000
470*5113495bSYour Name 
471*5113495bSYour Name 
472*5113495bSYour Name #endif // _TCL_GSE_CMD_H_
473