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