xref: /wlan-driver/fw-api/hw/qca8074/v1/reo_unblock_cache.h (revision 5113495b16420b49004c444715d2daae2066e7dc)
1*5113495bSYour Name /*
2*5113495bSYour Name  * Copyright (c) 2016-2017 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 // 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 _REO_UNBLOCK_CACHE_H_
24*5113495bSYour Name #define _REO_UNBLOCK_CACHE_H_
25*5113495bSYour Name #if !defined(__ASSEMBLER__)
26*5113495bSYour Name #endif
27*5113495bSYour Name 
28*5113495bSYour Name #include "uniform_reo_cmd_header.h"
29*5113495bSYour Name 
30*5113495bSYour Name // ################ START SUMMARY #################
31*5113495bSYour Name //
32*5113495bSYour Name //	Dword	Fields
33*5113495bSYour Name //	0	struct uniform_reo_cmd_header cmd_header;
34*5113495bSYour Name //	1	unblock_type[0], cache_block_resource_index[2:1], reserved_1a[31:3]
35*5113495bSYour Name //	2	reserved_2a[31:0]
36*5113495bSYour Name //	3	reserved_3a[31:0]
37*5113495bSYour Name //	4	reserved_4a[31:0]
38*5113495bSYour Name //	5	reserved_5a[31:0]
39*5113495bSYour Name //	6	reserved_6a[31:0]
40*5113495bSYour Name //	7	reserved_7a[31:0]
41*5113495bSYour Name //	8	reserved_8a[31:0]
42*5113495bSYour Name //
43*5113495bSYour Name // ################ END SUMMARY #################
44*5113495bSYour Name 
45*5113495bSYour Name #define NUM_OF_DWORDS_REO_UNBLOCK_CACHE 9
46*5113495bSYour Name 
47*5113495bSYour Name struct reo_unblock_cache {
48*5113495bSYour Name     struct            uniform_reo_cmd_header                       cmd_header;
49*5113495bSYour Name              uint32_t unblock_type                    :  1, //[0]
50*5113495bSYour Name                       cache_block_resource_index      :  2, //[2:1]
51*5113495bSYour Name                       reserved_1a                     : 29; //[31:3]
52*5113495bSYour Name              uint32_t reserved_2a                     : 32; //[31:0]
53*5113495bSYour Name              uint32_t reserved_3a                     : 32; //[31:0]
54*5113495bSYour Name              uint32_t reserved_4a                     : 32; //[31:0]
55*5113495bSYour Name              uint32_t reserved_5a                     : 32; //[31:0]
56*5113495bSYour Name              uint32_t reserved_6a                     : 32; //[31:0]
57*5113495bSYour Name              uint32_t reserved_7a                     : 32; //[31:0]
58*5113495bSYour Name              uint32_t reserved_8a                     : 32; //[31:0]
59*5113495bSYour Name };
60*5113495bSYour Name 
61*5113495bSYour Name /*
62*5113495bSYour Name 
63*5113495bSYour Name struct uniform_reo_cmd_header cmd_header
64*5113495bSYour Name 
65*5113495bSYour Name 			Consumer: REO
66*5113495bSYour Name 
67*5113495bSYour Name 			Producer: SW
68*5113495bSYour Name 
69*5113495bSYour Name 
70*5113495bSYour Name 
71*5113495bSYour Name 			Details for command execution tracking purposes.
72*5113495bSYour Name 
73*5113495bSYour Name unblock_type
74*5113495bSYour Name 
75*5113495bSYour Name 			Unblock type
76*5113495bSYour Name 
77*5113495bSYour Name 
78*5113495bSYour Name 
79*5113495bSYour Name 			<enum 0 unblock_resource_index> Unblock a block
80*5113495bSYour Name 			resource, whose index is given in field
81*5113495bSYour Name 			'cache_block_resource_index'.
82*5113495bSYour Name 
83*5113495bSYour Name 			If the indicated blocking resource is not in use (=> not
84*5113495bSYour Name 			blocking an address at the moment), the command status will
85*5113495bSYour Name 			indicate an error.
86*5113495bSYour Name 
87*5113495bSYour Name 
88*5113495bSYour Name 
89*5113495bSYour Name 			<enum 1 unblock_cache> The entire cache usage is
90*5113495bSYour Name 			unblocked.
91*5113495bSYour Name 
92*5113495bSYour Name 			If the entire cache is not in a blocked mode at the
93*5113495bSYour Name 			moment this command is received, the command status will
94*5113495bSYour Name 			indicate an error.
95*5113495bSYour Name 
96*5113495bSYour Name 			Note that unlocking the entire cache has no changes to
97*5113495bSYour Name 			the current settings of the blocking resource settings
98*5113495bSYour Name 
99*5113495bSYour Name 
100*5113495bSYour Name 
101*5113495bSYour Name 			<legal all>
102*5113495bSYour Name 
103*5113495bSYour Name cache_block_resource_index
104*5113495bSYour Name 
105*5113495bSYour Name 			Field not valid when field Unblock_type is set to
106*5113495bSYour Name 			unblock_cache.
107*5113495bSYour Name 
108*5113495bSYour Name 
109*5113495bSYour Name 
110*5113495bSYour Name 			Indicates which of the four blocking resources in REO
111*5113495bSYour Name 			should be released from blocking a (descriptor) address.
112*5113495bSYour Name 
113*5113495bSYour Name 			<legal all>
114*5113495bSYour Name 
115*5113495bSYour Name reserved_1a
116*5113495bSYour Name 
117*5113495bSYour Name 			<legal 0>
118*5113495bSYour Name 
119*5113495bSYour Name reserved_2a
120*5113495bSYour Name 
121*5113495bSYour Name 			<legal 0>
122*5113495bSYour Name 
123*5113495bSYour Name reserved_3a
124*5113495bSYour Name 
125*5113495bSYour Name 			<legal 0>
126*5113495bSYour Name 
127*5113495bSYour Name reserved_4a
128*5113495bSYour Name 
129*5113495bSYour Name 			<legal 0>
130*5113495bSYour Name 
131*5113495bSYour Name reserved_5a
132*5113495bSYour Name 
133*5113495bSYour Name 			<legal 0>
134*5113495bSYour Name 
135*5113495bSYour Name reserved_6a
136*5113495bSYour Name 
137*5113495bSYour Name 			<legal 0>
138*5113495bSYour Name 
139*5113495bSYour Name reserved_7a
140*5113495bSYour Name 
141*5113495bSYour Name 			<legal 0>
142*5113495bSYour Name 
143*5113495bSYour Name reserved_8a
144*5113495bSYour Name 
145*5113495bSYour Name 			<legal 0>
146*5113495bSYour Name */
147*5113495bSYour Name 
148*5113495bSYour Name #define REO_UNBLOCK_CACHE_0_UNIFORM_REO_CMD_HEADER_CMD_HEADER_OFFSET 0x00000000
149*5113495bSYour Name #define REO_UNBLOCK_CACHE_0_UNIFORM_REO_CMD_HEADER_CMD_HEADER_LSB    0
150*5113495bSYour Name #define REO_UNBLOCK_CACHE_0_UNIFORM_REO_CMD_HEADER_CMD_HEADER_MASK   0xffffffff
151*5113495bSYour Name 
152*5113495bSYour Name /* Description		REO_UNBLOCK_CACHE_1_UNBLOCK_TYPE
153*5113495bSYour Name 
154*5113495bSYour Name 			Unblock type
155*5113495bSYour Name 
156*5113495bSYour Name 
157*5113495bSYour Name 
158*5113495bSYour Name 			<enum 0 unblock_resource_index> Unblock a block
159*5113495bSYour Name 			resource, whose index is given in field
160*5113495bSYour Name 			'cache_block_resource_index'.
161*5113495bSYour Name 
162*5113495bSYour Name 			If the indicated blocking resource is not in use (=> not
163*5113495bSYour Name 			blocking an address at the moment), the command status will
164*5113495bSYour Name 			indicate an error.
165*5113495bSYour Name 
166*5113495bSYour Name 
167*5113495bSYour Name 
168*5113495bSYour Name 			<enum 1 unblock_cache> The entire cache usage is
169*5113495bSYour Name 			unblocked.
170*5113495bSYour Name 
171*5113495bSYour Name 			If the entire cache is not in a blocked mode at the
172*5113495bSYour Name 			moment this command is received, the command status will
173*5113495bSYour Name 			indicate an error.
174*5113495bSYour Name 
175*5113495bSYour Name 			Note that unlocking the entire cache has no changes to
176*5113495bSYour Name 			the current settings of the blocking resource settings
177*5113495bSYour Name 
178*5113495bSYour Name 
179*5113495bSYour Name 
180*5113495bSYour Name 			<legal all>
181*5113495bSYour Name */
182*5113495bSYour Name #define REO_UNBLOCK_CACHE_1_UNBLOCK_TYPE_OFFSET                      0x00000004
183*5113495bSYour Name #define REO_UNBLOCK_CACHE_1_UNBLOCK_TYPE_LSB                         0
184*5113495bSYour Name #define REO_UNBLOCK_CACHE_1_UNBLOCK_TYPE_MASK                        0x00000001
185*5113495bSYour Name 
186*5113495bSYour Name /* Description		REO_UNBLOCK_CACHE_1_CACHE_BLOCK_RESOURCE_INDEX
187*5113495bSYour Name 
188*5113495bSYour Name 			Field not valid when field Unblock_type is set to
189*5113495bSYour Name 			unblock_cache.
190*5113495bSYour Name 
191*5113495bSYour Name 
192*5113495bSYour Name 
193*5113495bSYour Name 			Indicates which of the four blocking resources in REO
194*5113495bSYour Name 			should be released from blocking a (descriptor) address.
195*5113495bSYour Name 
196*5113495bSYour Name 			<legal all>
197*5113495bSYour Name */
198*5113495bSYour Name #define REO_UNBLOCK_CACHE_1_CACHE_BLOCK_RESOURCE_INDEX_OFFSET        0x00000004
199*5113495bSYour Name #define REO_UNBLOCK_CACHE_1_CACHE_BLOCK_RESOURCE_INDEX_LSB           1
200*5113495bSYour Name #define REO_UNBLOCK_CACHE_1_CACHE_BLOCK_RESOURCE_INDEX_MASK          0x00000006
201*5113495bSYour Name 
202*5113495bSYour Name /* Description		REO_UNBLOCK_CACHE_1_RESERVED_1A
203*5113495bSYour Name 
204*5113495bSYour Name 			<legal 0>
205*5113495bSYour Name */
206*5113495bSYour Name #define REO_UNBLOCK_CACHE_1_RESERVED_1A_OFFSET                       0x00000004
207*5113495bSYour Name #define REO_UNBLOCK_CACHE_1_RESERVED_1A_LSB                          3
208*5113495bSYour Name #define REO_UNBLOCK_CACHE_1_RESERVED_1A_MASK                         0xfffffff8
209*5113495bSYour Name 
210*5113495bSYour Name /* Description		REO_UNBLOCK_CACHE_2_RESERVED_2A
211*5113495bSYour Name 
212*5113495bSYour Name 			<legal 0>
213*5113495bSYour Name */
214*5113495bSYour Name #define REO_UNBLOCK_CACHE_2_RESERVED_2A_OFFSET                       0x00000008
215*5113495bSYour Name #define REO_UNBLOCK_CACHE_2_RESERVED_2A_LSB                          0
216*5113495bSYour Name #define REO_UNBLOCK_CACHE_2_RESERVED_2A_MASK                         0xffffffff
217*5113495bSYour Name 
218*5113495bSYour Name /* Description		REO_UNBLOCK_CACHE_3_RESERVED_3A
219*5113495bSYour Name 
220*5113495bSYour Name 			<legal 0>
221*5113495bSYour Name */
222*5113495bSYour Name #define REO_UNBLOCK_CACHE_3_RESERVED_3A_OFFSET                       0x0000000c
223*5113495bSYour Name #define REO_UNBLOCK_CACHE_3_RESERVED_3A_LSB                          0
224*5113495bSYour Name #define REO_UNBLOCK_CACHE_3_RESERVED_3A_MASK                         0xffffffff
225*5113495bSYour Name 
226*5113495bSYour Name /* Description		REO_UNBLOCK_CACHE_4_RESERVED_4A
227*5113495bSYour Name 
228*5113495bSYour Name 			<legal 0>
229*5113495bSYour Name */
230*5113495bSYour Name #define REO_UNBLOCK_CACHE_4_RESERVED_4A_OFFSET                       0x00000010
231*5113495bSYour Name #define REO_UNBLOCK_CACHE_4_RESERVED_4A_LSB                          0
232*5113495bSYour Name #define REO_UNBLOCK_CACHE_4_RESERVED_4A_MASK                         0xffffffff
233*5113495bSYour Name 
234*5113495bSYour Name /* Description		REO_UNBLOCK_CACHE_5_RESERVED_5A
235*5113495bSYour Name 
236*5113495bSYour Name 			<legal 0>
237*5113495bSYour Name */
238*5113495bSYour Name #define REO_UNBLOCK_CACHE_5_RESERVED_5A_OFFSET                       0x00000014
239*5113495bSYour Name #define REO_UNBLOCK_CACHE_5_RESERVED_5A_LSB                          0
240*5113495bSYour Name #define REO_UNBLOCK_CACHE_5_RESERVED_5A_MASK                         0xffffffff
241*5113495bSYour Name 
242*5113495bSYour Name /* Description		REO_UNBLOCK_CACHE_6_RESERVED_6A
243*5113495bSYour Name 
244*5113495bSYour Name 			<legal 0>
245*5113495bSYour Name */
246*5113495bSYour Name #define REO_UNBLOCK_CACHE_6_RESERVED_6A_OFFSET                       0x00000018
247*5113495bSYour Name #define REO_UNBLOCK_CACHE_6_RESERVED_6A_LSB                          0
248*5113495bSYour Name #define REO_UNBLOCK_CACHE_6_RESERVED_6A_MASK                         0xffffffff
249*5113495bSYour Name 
250*5113495bSYour Name /* Description		REO_UNBLOCK_CACHE_7_RESERVED_7A
251*5113495bSYour Name 
252*5113495bSYour Name 			<legal 0>
253*5113495bSYour Name */
254*5113495bSYour Name #define REO_UNBLOCK_CACHE_7_RESERVED_7A_OFFSET                       0x0000001c
255*5113495bSYour Name #define REO_UNBLOCK_CACHE_7_RESERVED_7A_LSB                          0
256*5113495bSYour Name #define REO_UNBLOCK_CACHE_7_RESERVED_7A_MASK                         0xffffffff
257*5113495bSYour Name 
258*5113495bSYour Name /* Description		REO_UNBLOCK_CACHE_8_RESERVED_8A
259*5113495bSYour Name 
260*5113495bSYour Name 			<legal 0>
261*5113495bSYour Name */
262*5113495bSYour Name #define REO_UNBLOCK_CACHE_8_RESERVED_8A_OFFSET                       0x00000020
263*5113495bSYour Name #define REO_UNBLOCK_CACHE_8_RESERVED_8A_LSB                          0
264*5113495bSYour Name #define REO_UNBLOCK_CACHE_8_RESERVED_8A_MASK                         0xffffffff
265*5113495bSYour Name 
266*5113495bSYour Name 
267*5113495bSYour Name #endif // _REO_UNBLOCK_CACHE_H_
268