xref: /wlan-driver/fw-api/hw/qca5332/reo_flush_cache_status.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name 
2*5113495bSYour Name /* Copyright (c) 2022, Qualcomm Innovation Center, Inc. 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 
18*5113495bSYour Name 
19*5113495bSYour Name 
20*5113495bSYour Name 
21*5113495bSYour Name 
22*5113495bSYour Name 
23*5113495bSYour Name 
24*5113495bSYour Name 
25*5113495bSYour Name 
26*5113495bSYour Name #ifndef _REO_FLUSH_CACHE_STATUS_H_
27*5113495bSYour Name #define _REO_FLUSH_CACHE_STATUS_H_
28*5113495bSYour Name #if !defined(__ASSEMBLER__)
29*5113495bSYour Name #endif
30*5113495bSYour Name 
31*5113495bSYour Name #include "uniform_reo_status_header.h"
32*5113495bSYour Name #define NUM_OF_DWORDS_REO_FLUSH_CACHE_STATUS 26
33*5113495bSYour Name 
34*5113495bSYour Name #define NUM_OF_QWORDS_REO_FLUSH_CACHE_STATUS 13
35*5113495bSYour Name 
36*5113495bSYour Name 
37*5113495bSYour Name struct reo_flush_cache_status {
38*5113495bSYour Name #ifndef WIFI_BIT_ORDER_BIG_ENDIAN
39*5113495bSYour Name              struct   uniform_reo_status_header                                 status_header;
40*5113495bSYour Name              uint32_t error_detected                                          :  1, // [0:0]
41*5113495bSYour Name                       block_error_details                                     :  2, // [2:1]
42*5113495bSYour Name                       reserved_2a                                             :  5, // [7:3]
43*5113495bSYour Name                       cache_controller_flush_status_hit                       :  1, // [8:8]
44*5113495bSYour Name                       cache_controller_flush_status_desc_type                 :  3, // [11:9]
45*5113495bSYour Name                       cache_controller_flush_status_client_id                 :  4, // [15:12]
46*5113495bSYour Name                       cache_controller_flush_status_error                     :  2, // [17:16]
47*5113495bSYour Name                       cache_controller_flush_count                            :  8, // [25:18]
48*5113495bSYour Name                       flush_queue_1k_desc                                     :  1, // [26:26]
49*5113495bSYour Name                       reserved_2b                                             :  5; // [31:27]
50*5113495bSYour Name              uint32_t reserved_3a                                             : 32; // [31:0]
51*5113495bSYour Name              uint32_t reserved_4a                                             : 32; // [31:0]
52*5113495bSYour Name              uint32_t reserved_5a                                             : 32; // [31:0]
53*5113495bSYour Name              uint32_t reserved_6a                                             : 32; // [31:0]
54*5113495bSYour Name              uint32_t reserved_7a                                             : 32; // [31:0]
55*5113495bSYour Name              uint32_t reserved_8a                                             : 32; // [31:0]
56*5113495bSYour Name              uint32_t reserved_9a                                             : 32; // [31:0]
57*5113495bSYour Name              uint32_t reserved_10a                                            : 32; // [31:0]
58*5113495bSYour Name              uint32_t reserved_11a                                            : 32; // [31:0]
59*5113495bSYour Name              uint32_t reserved_12a                                            : 32; // [31:0]
60*5113495bSYour Name              uint32_t reserved_13a                                            : 32; // [31:0]
61*5113495bSYour Name              uint32_t reserved_14a                                            : 32; // [31:0]
62*5113495bSYour Name              uint32_t reserved_15a                                            : 32; // [31:0]
63*5113495bSYour Name              uint32_t reserved_16a                                            : 32; // [31:0]
64*5113495bSYour Name              uint32_t reserved_17a                                            : 32; // [31:0]
65*5113495bSYour Name              uint32_t reserved_18a                                            : 32; // [31:0]
66*5113495bSYour Name              uint32_t reserved_19a                                            : 32; // [31:0]
67*5113495bSYour Name              uint32_t reserved_20a                                            : 32; // [31:0]
68*5113495bSYour Name              uint32_t reserved_21a                                            : 32; // [31:0]
69*5113495bSYour Name              uint32_t reserved_22a                                            : 32; // [31:0]
70*5113495bSYour Name              uint32_t reserved_23a                                            : 32; // [31:0]
71*5113495bSYour Name              uint32_t reserved_24a                                            : 32; // [31:0]
72*5113495bSYour Name              uint32_t reserved_25a                                            : 28, // [27:0]
73*5113495bSYour Name                       looping_count                                           :  4; // [31:28]
74*5113495bSYour Name #else
75*5113495bSYour Name              struct   uniform_reo_status_header                                 status_header;
76*5113495bSYour Name              uint32_t reserved_2b                                             :  5, // [31:27]
77*5113495bSYour Name                       flush_queue_1k_desc                                     :  1, // [26:26]
78*5113495bSYour Name                       cache_controller_flush_count                            :  8, // [25:18]
79*5113495bSYour Name                       cache_controller_flush_status_error                     :  2, // [17:16]
80*5113495bSYour Name                       cache_controller_flush_status_client_id                 :  4, // [15:12]
81*5113495bSYour Name                       cache_controller_flush_status_desc_type                 :  3, // [11:9]
82*5113495bSYour Name                       cache_controller_flush_status_hit                       :  1, // [8:8]
83*5113495bSYour Name                       reserved_2a                                             :  5, // [7:3]
84*5113495bSYour Name                       block_error_details                                     :  2, // [2:1]
85*5113495bSYour Name                       error_detected                                          :  1; // [0:0]
86*5113495bSYour Name              uint32_t reserved_3a                                             : 32; // [31:0]
87*5113495bSYour Name              uint32_t reserved_4a                                             : 32; // [31:0]
88*5113495bSYour Name              uint32_t reserved_5a                                             : 32; // [31:0]
89*5113495bSYour Name              uint32_t reserved_6a                                             : 32; // [31:0]
90*5113495bSYour Name              uint32_t reserved_7a                                             : 32; // [31:0]
91*5113495bSYour Name              uint32_t reserved_8a                                             : 32; // [31:0]
92*5113495bSYour Name              uint32_t reserved_9a                                             : 32; // [31:0]
93*5113495bSYour Name              uint32_t reserved_10a                                            : 32; // [31:0]
94*5113495bSYour Name              uint32_t reserved_11a                                            : 32; // [31:0]
95*5113495bSYour Name              uint32_t reserved_12a                                            : 32; // [31:0]
96*5113495bSYour Name              uint32_t reserved_13a                                            : 32; // [31:0]
97*5113495bSYour Name              uint32_t reserved_14a                                            : 32; // [31:0]
98*5113495bSYour Name              uint32_t reserved_15a                                            : 32; // [31:0]
99*5113495bSYour Name              uint32_t reserved_16a                                            : 32; // [31:0]
100*5113495bSYour Name              uint32_t reserved_17a                                            : 32; // [31:0]
101*5113495bSYour Name              uint32_t reserved_18a                                            : 32; // [31:0]
102*5113495bSYour Name              uint32_t reserved_19a                                            : 32; // [31:0]
103*5113495bSYour Name              uint32_t reserved_20a                                            : 32; // [31:0]
104*5113495bSYour Name              uint32_t reserved_21a                                            : 32; // [31:0]
105*5113495bSYour Name              uint32_t reserved_22a                                            : 32; // [31:0]
106*5113495bSYour Name              uint32_t reserved_23a                                            : 32; // [31:0]
107*5113495bSYour Name              uint32_t reserved_24a                                            : 32; // [31:0]
108*5113495bSYour Name              uint32_t looping_count                                           :  4, // [31:28]
109*5113495bSYour Name                       reserved_25a                                            : 28; // [27:0]
110*5113495bSYour Name #endif
111*5113495bSYour Name };
112*5113495bSYour Name 
113*5113495bSYour Name 
114*5113495bSYour Name /* Description		STATUS_HEADER
115*5113495bSYour Name 
116*5113495bSYour Name 			Consumer: SW
117*5113495bSYour Name 			Producer: REO
118*5113495bSYour Name 
119*5113495bSYour Name 			Details that can link this status with the original command.
120*5113495bSYour Name 			It also contains info on how long REO took to execute this
121*5113495bSYour Name 			 command.
122*5113495bSYour Name */
123*5113495bSYour Name 
124*5113495bSYour Name 
125*5113495bSYour Name /* Description		REO_STATUS_NUMBER
126*5113495bSYour Name 
127*5113495bSYour Name 			Consumer: SW , DEBUG
128*5113495bSYour Name 			Producer: REO
129*5113495bSYour Name 
130*5113495bSYour Name 			The value in this field is equal to value of the 'REO_CMD_Number'
131*5113495bSYour Name 			field the REO command
132*5113495bSYour Name 
133*5113495bSYour Name 			This field helps to correlate the statuses with the REO
134*5113495bSYour Name 			commands.
135*5113495bSYour Name 
136*5113495bSYour Name 			<legal all>
137*5113495bSYour Name */
138*5113495bSYour Name 
139*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_REO_STATUS_NUMBER_OFFSET               0x0000000000000000
140*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_REO_STATUS_NUMBER_LSB                  0
141*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_REO_STATUS_NUMBER_MSB                  15
142*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_REO_STATUS_NUMBER_MASK                 0x000000000000ffff
143*5113495bSYour Name 
144*5113495bSYour Name 
145*5113495bSYour Name /* Description		CMD_EXECUTION_TIME
146*5113495bSYour Name 
147*5113495bSYour Name 			Consumer: DEBUG
148*5113495bSYour Name 			Producer: REO
149*5113495bSYour Name 
150*5113495bSYour Name 			The amount of time REO took to excecute the command. Note
151*5113495bSYour Name 			 that this time does not include the duration of the command
152*5113495bSYour Name 			 waiting in the command ring, before the execution started.
153*5113495bSYour Name 
154*5113495bSYour Name 
155*5113495bSYour Name 			In us.
156*5113495bSYour Name 
157*5113495bSYour Name 			<legal all>
158*5113495bSYour Name */
159*5113495bSYour Name 
160*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_CMD_EXECUTION_TIME_OFFSET              0x0000000000000000
161*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_CMD_EXECUTION_TIME_LSB                 16
162*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_CMD_EXECUTION_TIME_MSB                 25
163*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_CMD_EXECUTION_TIME_MASK                0x0000000003ff0000
164*5113495bSYour Name 
165*5113495bSYour Name 
166*5113495bSYour Name /* Description		REO_CMD_EXECUTION_STATUS
167*5113495bSYour Name 
168*5113495bSYour Name 			Consumer: DEBUG
169*5113495bSYour Name 			Producer: REO
170*5113495bSYour Name 
171*5113495bSYour Name 			Execution status of the command.
172*5113495bSYour Name 
173*5113495bSYour Name 			<enum 0 reo_successful_execution> Command has successfully
174*5113495bSYour Name 			 be executed
175*5113495bSYour Name 			<enum 1 reo_blocked_execution> Command could not be executed
176*5113495bSYour Name 			 as the queue or cache was blocked
177*5113495bSYour Name 			<enum 2 reo_failed_execution> Command has encountered problems
178*5113495bSYour Name 			 when executing, like the queue descriptor not being valid.
179*5113495bSYour Name 			None of the status fields in the entire STATUS TLV are valid.
180*5113495bSYour Name 
181*5113495bSYour Name 			<enum 3 reo_resource_blocked> Command is NOT  executed because
182*5113495bSYour Name 			 one or more descriptors were blocked. This is SW programming
183*5113495bSYour Name 			 mistake.
184*5113495bSYour Name 			None of the status fields in the entire STATUS TLV are valid.
185*5113495bSYour Name 
186*5113495bSYour Name 
187*5113495bSYour Name 			<legal  0-3>
188*5113495bSYour Name */
189*5113495bSYour Name 
190*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_OFFSET        0x0000000000000000
191*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_LSB           26
192*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_MSB           27
193*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_REO_CMD_EXECUTION_STATUS_MASK          0x000000000c000000
194*5113495bSYour Name 
195*5113495bSYour Name 
196*5113495bSYour Name /* Description		RESERVED_0A
197*5113495bSYour Name 
198*5113495bSYour Name 			<legal 0>
199*5113495bSYour Name */
200*5113495bSYour Name 
201*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_RESERVED_0A_OFFSET                     0x0000000000000000
202*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_RESERVED_0A_LSB                        28
203*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_RESERVED_0A_MSB                        31
204*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_RESERVED_0A_MASK                       0x00000000f0000000
205*5113495bSYour Name 
206*5113495bSYour Name 
207*5113495bSYour Name /* Description		TIMESTAMP
208*5113495bSYour Name 
209*5113495bSYour Name 			Timestamp at the moment that this status report is written.
210*5113495bSYour Name 
211*5113495bSYour Name 
212*5113495bSYour Name 			<legal all>
213*5113495bSYour Name */
214*5113495bSYour Name 
215*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_TIMESTAMP_OFFSET                       0x0000000000000000
216*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_TIMESTAMP_LSB                          32
217*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_TIMESTAMP_MSB                          63
218*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_STATUS_HEADER_TIMESTAMP_MASK                         0xffffffff00000000
219*5113495bSYour Name 
220*5113495bSYour Name 
221*5113495bSYour Name /* Description		ERROR_DETECTED
222*5113495bSYour Name 
223*5113495bSYour Name 			Status for blocking resource handling
224*5113495bSYour Name 
225*5113495bSYour Name 			0: No error has been detected while executing this command
226*5113495bSYour Name 
227*5113495bSYour Name 			1: an error in the blocking resource management was detected
228*5113495bSYour Name 
229*5113495bSYour Name 			See field 'Block_error_details'
230*5113495bSYour Name */
231*5113495bSYour Name 
232*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_ERROR_DETECTED_OFFSET                                0x0000000000000008
233*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_ERROR_DETECTED_LSB                                   0
234*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_ERROR_DETECTED_MSB                                   0
235*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_ERROR_DETECTED_MASK                                  0x0000000000000001
236*5113495bSYour Name 
237*5113495bSYour Name 
238*5113495bSYour Name /* Description		BLOCK_ERROR_DETAILS
239*5113495bSYour Name 
240*5113495bSYour Name 			Field only valid when 'Error_detected' is set.
241*5113495bSYour Name 			0: no blocking related error found
242*5113495bSYour Name 			1: blocking resource was already in use
243*5113495bSYour Name 			2: resource that was asked to be unblocked, was not blocked
244*5113495bSYour Name 
245*5113495bSYour Name 			<legal 0-2>
246*5113495bSYour Name */
247*5113495bSYour Name 
248*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_BLOCK_ERROR_DETAILS_OFFSET                           0x0000000000000008
249*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_BLOCK_ERROR_DETAILS_LSB                              1
250*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_BLOCK_ERROR_DETAILS_MSB                              2
251*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_BLOCK_ERROR_DETAILS_MASK                             0x0000000000000006
252*5113495bSYour Name 
253*5113495bSYour Name 
254*5113495bSYour Name /* Description		RESERVED_2A
255*5113495bSYour Name 
256*5113495bSYour Name 			<legal 0>
257*5113495bSYour Name */
258*5113495bSYour Name 
259*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_2A_OFFSET                                   0x0000000000000008
260*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_2A_LSB                                      3
261*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_2A_MSB                                      7
262*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_2A_MASK                                     0x00000000000000f8
263*5113495bSYour Name 
264*5113495bSYour Name 
265*5113495bSYour Name /* Description		CACHE_CONTROLLER_FLUSH_STATUS_HIT
266*5113495bSYour Name 
267*5113495bSYour Name 			The status that the cache controller returned for executing
268*5113495bSYour Name 			 the flush command
269*5113495bSYour Name 
270*5113495bSYour Name 			descriptor hit
271*5113495bSYour Name 			1 = hit
272*5113495bSYour Name 			0 = miss
273*5113495bSYour Name 			<legal all>
274*5113495bSYour Name */
275*5113495bSYour Name 
276*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_HIT_OFFSET             0x0000000000000008
277*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_HIT_LSB                8
278*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_HIT_MSB                8
279*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_HIT_MASK               0x0000000000000100
280*5113495bSYour Name 
281*5113495bSYour Name 
282*5113495bSYour Name /* Description		CACHE_CONTROLLER_FLUSH_STATUS_DESC_TYPE
283*5113495bSYour Name 
284*5113495bSYour Name 			The status that the cache controller returned for executing
285*5113495bSYour Name 			 the flush command
286*5113495bSYour Name 			Descriptor type
287*5113495bSYour Name 			FLOW_QUEUE_DESCRIPTOR                 3'd0
288*5113495bSYour Name 			MPDU_LINK_DESCRIPTOR                      3'd4
289*5113495bSYour Name 			 <legal all>
290*5113495bSYour Name */
291*5113495bSYour Name 
292*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_DESC_TYPE_OFFSET       0x0000000000000008
293*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_DESC_TYPE_LSB          9
294*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_DESC_TYPE_MSB          11
295*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_DESC_TYPE_MASK         0x0000000000000e00
296*5113495bSYour Name 
297*5113495bSYour Name 
298*5113495bSYour Name /* Description		CACHE_CONTROLLER_FLUSH_STATUS_CLIENT_ID
299*5113495bSYour Name 
300*5113495bSYour Name 			The status that the cache controller returned for executing
301*5113495bSYour Name 			 the flush command
302*5113495bSYour Name 
303*5113495bSYour Name 			client ID
304*5113495bSYour Name 			Module who made flush the request
305*5113495bSYour Name 
306*5113495bSYour Name 			In REO, this is always set to 0
307*5113495bSYour Name 			<legal 0>
308*5113495bSYour Name */
309*5113495bSYour Name 
310*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_CLIENT_ID_OFFSET       0x0000000000000008
311*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_CLIENT_ID_LSB          12
312*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_CLIENT_ID_MSB          15
313*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_CLIENT_ID_MASK         0x000000000000f000
314*5113495bSYour Name 
315*5113495bSYour Name 
316*5113495bSYour Name /* Description		CACHE_CONTROLLER_FLUSH_STATUS_ERROR
317*5113495bSYour Name 
318*5113495bSYour Name 			The status that the cache controller returned for executing
319*5113495bSYour Name 			 the flush command
320*5113495bSYour Name 
321*5113495bSYour Name 			Error condition
322*5113495bSYour Name 			2'b00: No error found
323*5113495bSYour Name 			2'b01: HW IF still busy
324*5113495bSYour Name 			2'b10: Line is currently locked. Used for the one line flush
325*5113495bSYour Name 			 command.
326*5113495bSYour Name 			2'b11: At least one line is currently still locked. Used
327*5113495bSYour Name 			 for the cache flush command.
328*5113495bSYour Name 
329*5113495bSYour Name 			<legal all>
330*5113495bSYour Name */
331*5113495bSYour Name 
332*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_ERROR_OFFSET           0x0000000000000008
333*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_ERROR_LSB              16
334*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_ERROR_MSB              17
335*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_STATUS_ERROR_MASK             0x0000000000030000
336*5113495bSYour Name 
337*5113495bSYour Name 
338*5113495bSYour Name /* Description		CACHE_CONTROLLER_FLUSH_COUNT
339*5113495bSYour Name 
340*5113495bSYour Name 			The number of lines that were actually flushed out.
341*5113495bSYour Name 			<legal all>
342*5113495bSYour Name */
343*5113495bSYour Name 
344*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_COUNT_OFFSET                  0x0000000000000008
345*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_COUNT_LSB                     18
346*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_COUNT_MSB                     25
347*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_CACHE_CONTROLLER_FLUSH_COUNT_MASK                    0x0000000003fc0000
348*5113495bSYour Name 
349*5113495bSYour Name 
350*5113495bSYour Name /* Description		FLUSH_QUEUE_1K_DESC
351*5113495bSYour Name 
352*5113495bSYour Name 			When set, REO has flushed the 'RX_REO_QUEUE_1K' descriptor
353*5113495bSYour Name 			 after flushing the 'RX_REO_QUEUE' descriptor.
354*5113495bSYour Name 			<legal all>
355*5113495bSYour Name */
356*5113495bSYour Name 
357*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_FLUSH_QUEUE_1K_DESC_OFFSET                           0x0000000000000008
358*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_FLUSH_QUEUE_1K_DESC_LSB                              26
359*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_FLUSH_QUEUE_1K_DESC_MSB                              26
360*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_FLUSH_QUEUE_1K_DESC_MASK                             0x0000000004000000
361*5113495bSYour Name 
362*5113495bSYour Name 
363*5113495bSYour Name /* Description		RESERVED_2B
364*5113495bSYour Name 
365*5113495bSYour Name 			<legal 0>
366*5113495bSYour Name */
367*5113495bSYour Name 
368*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_2B_OFFSET                                   0x0000000000000008
369*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_2B_LSB                                      27
370*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_2B_MSB                                      31
371*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_2B_MASK                                     0x00000000f8000000
372*5113495bSYour Name 
373*5113495bSYour Name 
374*5113495bSYour Name /* Description		RESERVED_3A
375*5113495bSYour Name 
376*5113495bSYour Name 			<legal 0>
377*5113495bSYour Name */
378*5113495bSYour Name 
379*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_3A_OFFSET                                   0x0000000000000008
380*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_3A_LSB                                      32
381*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_3A_MSB                                      63
382*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_3A_MASK                                     0xffffffff00000000
383*5113495bSYour Name 
384*5113495bSYour Name 
385*5113495bSYour Name /* Description		RESERVED_4A
386*5113495bSYour Name 
387*5113495bSYour Name 			<legal 0>
388*5113495bSYour Name */
389*5113495bSYour Name 
390*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_4A_OFFSET                                   0x0000000000000010
391*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_4A_LSB                                      0
392*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_4A_MSB                                      31
393*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_4A_MASK                                     0x00000000ffffffff
394*5113495bSYour Name 
395*5113495bSYour Name 
396*5113495bSYour Name /* Description		RESERVED_5A
397*5113495bSYour Name 
398*5113495bSYour Name 			<legal 0>
399*5113495bSYour Name */
400*5113495bSYour Name 
401*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_5A_OFFSET                                   0x0000000000000010
402*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_5A_LSB                                      32
403*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_5A_MSB                                      63
404*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_5A_MASK                                     0xffffffff00000000
405*5113495bSYour Name 
406*5113495bSYour Name 
407*5113495bSYour Name /* Description		RESERVED_6A
408*5113495bSYour Name 
409*5113495bSYour Name 			<legal 0>
410*5113495bSYour Name */
411*5113495bSYour Name 
412*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_6A_OFFSET                                   0x0000000000000018
413*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_6A_LSB                                      0
414*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_6A_MSB                                      31
415*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_6A_MASK                                     0x00000000ffffffff
416*5113495bSYour Name 
417*5113495bSYour Name 
418*5113495bSYour Name /* Description		RESERVED_7A
419*5113495bSYour Name 
420*5113495bSYour Name 			<legal 0>
421*5113495bSYour Name */
422*5113495bSYour Name 
423*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_7A_OFFSET                                   0x0000000000000018
424*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_7A_LSB                                      32
425*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_7A_MSB                                      63
426*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_7A_MASK                                     0xffffffff00000000
427*5113495bSYour Name 
428*5113495bSYour Name 
429*5113495bSYour Name /* Description		RESERVED_8A
430*5113495bSYour Name 
431*5113495bSYour Name 			<legal 0>
432*5113495bSYour Name */
433*5113495bSYour Name 
434*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_8A_OFFSET                                   0x0000000000000020
435*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_8A_LSB                                      0
436*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_8A_MSB                                      31
437*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_8A_MASK                                     0x00000000ffffffff
438*5113495bSYour Name 
439*5113495bSYour Name 
440*5113495bSYour Name /* Description		RESERVED_9A
441*5113495bSYour Name 
442*5113495bSYour Name 			<legal 0>
443*5113495bSYour Name */
444*5113495bSYour Name 
445*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_9A_OFFSET                                   0x0000000000000020
446*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_9A_LSB                                      32
447*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_9A_MSB                                      63
448*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_9A_MASK                                     0xffffffff00000000
449*5113495bSYour Name 
450*5113495bSYour Name 
451*5113495bSYour Name /* Description		RESERVED_10A
452*5113495bSYour Name 
453*5113495bSYour Name 			<legal 0>
454*5113495bSYour Name */
455*5113495bSYour Name 
456*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_10A_OFFSET                                  0x0000000000000028
457*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_10A_LSB                                     0
458*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_10A_MSB                                     31
459*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_10A_MASK                                    0x00000000ffffffff
460*5113495bSYour Name 
461*5113495bSYour Name 
462*5113495bSYour Name /* Description		RESERVED_11A
463*5113495bSYour Name 
464*5113495bSYour Name 			<legal 0>
465*5113495bSYour Name */
466*5113495bSYour Name 
467*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_11A_OFFSET                                  0x0000000000000028
468*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_11A_LSB                                     32
469*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_11A_MSB                                     63
470*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_11A_MASK                                    0xffffffff00000000
471*5113495bSYour Name 
472*5113495bSYour Name 
473*5113495bSYour Name /* Description		RESERVED_12A
474*5113495bSYour Name 
475*5113495bSYour Name 			<legal 0>
476*5113495bSYour Name */
477*5113495bSYour Name 
478*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_12A_OFFSET                                  0x0000000000000030
479*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_12A_LSB                                     0
480*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_12A_MSB                                     31
481*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_12A_MASK                                    0x00000000ffffffff
482*5113495bSYour Name 
483*5113495bSYour Name 
484*5113495bSYour Name /* Description		RESERVED_13A
485*5113495bSYour Name 
486*5113495bSYour Name 			<legal 0>
487*5113495bSYour Name */
488*5113495bSYour Name 
489*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_13A_OFFSET                                  0x0000000000000030
490*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_13A_LSB                                     32
491*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_13A_MSB                                     63
492*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_13A_MASK                                    0xffffffff00000000
493*5113495bSYour Name 
494*5113495bSYour Name 
495*5113495bSYour Name /* Description		RESERVED_14A
496*5113495bSYour Name 
497*5113495bSYour Name 			<legal 0>
498*5113495bSYour Name */
499*5113495bSYour Name 
500*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_14A_OFFSET                                  0x0000000000000038
501*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_14A_LSB                                     0
502*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_14A_MSB                                     31
503*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_14A_MASK                                    0x00000000ffffffff
504*5113495bSYour Name 
505*5113495bSYour Name 
506*5113495bSYour Name /* Description		RESERVED_15A
507*5113495bSYour Name 
508*5113495bSYour Name 			<legal 0>
509*5113495bSYour Name */
510*5113495bSYour Name 
511*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_15A_OFFSET                                  0x0000000000000038
512*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_15A_LSB                                     32
513*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_15A_MSB                                     63
514*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_15A_MASK                                    0xffffffff00000000
515*5113495bSYour Name 
516*5113495bSYour Name 
517*5113495bSYour Name /* Description		RESERVED_16A
518*5113495bSYour Name 
519*5113495bSYour Name 			<legal 0>
520*5113495bSYour Name */
521*5113495bSYour Name 
522*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_16A_OFFSET                                  0x0000000000000040
523*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_16A_LSB                                     0
524*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_16A_MSB                                     31
525*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_16A_MASK                                    0x00000000ffffffff
526*5113495bSYour Name 
527*5113495bSYour Name 
528*5113495bSYour Name /* Description		RESERVED_17A
529*5113495bSYour Name 
530*5113495bSYour Name 			<legal 0>
531*5113495bSYour Name */
532*5113495bSYour Name 
533*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_17A_OFFSET                                  0x0000000000000040
534*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_17A_LSB                                     32
535*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_17A_MSB                                     63
536*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_17A_MASK                                    0xffffffff00000000
537*5113495bSYour Name 
538*5113495bSYour Name 
539*5113495bSYour Name /* Description		RESERVED_18A
540*5113495bSYour Name 
541*5113495bSYour Name 			<legal 0>
542*5113495bSYour Name */
543*5113495bSYour Name 
544*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_18A_OFFSET                                  0x0000000000000048
545*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_18A_LSB                                     0
546*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_18A_MSB                                     31
547*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_18A_MASK                                    0x00000000ffffffff
548*5113495bSYour Name 
549*5113495bSYour Name 
550*5113495bSYour Name /* Description		RESERVED_19A
551*5113495bSYour Name 
552*5113495bSYour Name 			<legal 0>
553*5113495bSYour Name */
554*5113495bSYour Name 
555*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_19A_OFFSET                                  0x0000000000000048
556*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_19A_LSB                                     32
557*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_19A_MSB                                     63
558*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_19A_MASK                                    0xffffffff00000000
559*5113495bSYour Name 
560*5113495bSYour Name 
561*5113495bSYour Name /* Description		RESERVED_20A
562*5113495bSYour Name 
563*5113495bSYour Name 			<legal 0>
564*5113495bSYour Name */
565*5113495bSYour Name 
566*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_20A_OFFSET                                  0x0000000000000050
567*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_20A_LSB                                     0
568*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_20A_MSB                                     31
569*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_20A_MASK                                    0x00000000ffffffff
570*5113495bSYour Name 
571*5113495bSYour Name 
572*5113495bSYour Name /* Description		RESERVED_21A
573*5113495bSYour Name 
574*5113495bSYour Name 			<legal 0>
575*5113495bSYour Name */
576*5113495bSYour Name 
577*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_21A_OFFSET                                  0x0000000000000050
578*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_21A_LSB                                     32
579*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_21A_MSB                                     63
580*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_21A_MASK                                    0xffffffff00000000
581*5113495bSYour Name 
582*5113495bSYour Name 
583*5113495bSYour Name /* Description		RESERVED_22A
584*5113495bSYour Name 
585*5113495bSYour Name 			<legal 0>
586*5113495bSYour Name */
587*5113495bSYour Name 
588*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_22A_OFFSET                                  0x0000000000000058
589*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_22A_LSB                                     0
590*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_22A_MSB                                     31
591*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_22A_MASK                                    0x00000000ffffffff
592*5113495bSYour Name 
593*5113495bSYour Name 
594*5113495bSYour Name /* Description		RESERVED_23A
595*5113495bSYour Name 
596*5113495bSYour Name 			<legal 0>
597*5113495bSYour Name */
598*5113495bSYour Name 
599*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_23A_OFFSET                                  0x0000000000000058
600*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_23A_LSB                                     32
601*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_23A_MSB                                     63
602*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_23A_MASK                                    0xffffffff00000000
603*5113495bSYour Name 
604*5113495bSYour Name 
605*5113495bSYour Name /* Description		RESERVED_24A
606*5113495bSYour Name 
607*5113495bSYour Name 			<legal 0>
608*5113495bSYour Name */
609*5113495bSYour Name 
610*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_24A_OFFSET                                  0x0000000000000060
611*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_24A_LSB                                     0
612*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_24A_MSB                                     31
613*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_24A_MASK                                    0x00000000ffffffff
614*5113495bSYour Name 
615*5113495bSYour Name 
616*5113495bSYour Name /* Description		RESERVED_25A
617*5113495bSYour Name 
618*5113495bSYour Name 			<legal 0>
619*5113495bSYour Name */
620*5113495bSYour Name 
621*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_25A_OFFSET                                  0x0000000000000060
622*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_25A_LSB                                     32
623*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_25A_MSB                                     59
624*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_RESERVED_25A_MASK                                    0x0fffffff00000000
625*5113495bSYour Name 
626*5113495bSYour Name 
627*5113495bSYour Name /* Description		LOOPING_COUNT
628*5113495bSYour Name 
629*5113495bSYour Name 			A count value that indicates the number of times the producer
630*5113495bSYour Name 			 of entries into this Ring has looped around the ring.
631*5113495bSYour Name 			At initialization time, this value is set to 0. On the first
632*5113495bSYour Name 			 loop, this value is set to 1. After the max value is reached
633*5113495bSYour Name 			 allowed by the number of bits for this field, the count
634*5113495bSYour Name 			 value continues with 0 again.
635*5113495bSYour Name 
636*5113495bSYour Name 			In case SW is the consumer of the ring entries, it can use
637*5113495bSYour Name 			 this field to figure out up to where the producer of entries
638*5113495bSYour Name 			 has created new entries. This eliminates the need to check
639*5113495bSYour Name 			 where the "head pointer' of the ring is located once the
640*5113495bSYour Name 			 SW starts processing an interrupt indicating that new entries
641*5113495bSYour Name 			 have been put into this ring...
642*5113495bSYour Name 
643*5113495bSYour Name 			Also note that SW if it wants only needs to look at the
644*5113495bSYour Name 			LSB bit of this count value.
645*5113495bSYour Name 			<legal all>
646*5113495bSYour Name */
647*5113495bSYour Name 
648*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_LOOPING_COUNT_OFFSET                                 0x0000000000000060
649*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_LOOPING_COUNT_LSB                                    60
650*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_LOOPING_COUNT_MSB                                    63
651*5113495bSYour Name #define REO_FLUSH_CACHE_STATUS_LOOPING_COUNT_MASK                                   0xf000000000000000
652*5113495bSYour Name 
653*5113495bSYour Name 
654*5113495bSYour Name 
655*5113495bSYour Name #endif   // REO_FLUSH_CACHE_STATUS
656