1902e6eb8SRob Clark #ifndef ADRENO_COMMON_XML
2902e6eb8SRob Clark #define ADRENO_COMMON_XML
3902e6eb8SRob Clark
4902e6eb8SRob Clark /* Autogenerated file, DO NOT EDIT manually!
5902e6eb8SRob Clark
6902e6eb8SRob Clark This file was generated by the rules-ng-ng headergen tool in this git repository:
722ba8b6bSRob Clark http://github.com/freedreno/envytools/
822ba8b6bSRob Clark git clone https://github.com/freedreno/envytools.git
9902e6eb8SRob Clark
10902e6eb8SRob Clark The rules-ng-ng source files this header was generated from are:
11*f73343faSRob Clark - /home/robclark/src/mesa/mesa/src/freedreno/registers/adreno.xml ( 594 bytes, from 2023-03-10 18:32:52)
12*f73343faSRob Clark - /home/robclark/src/mesa/mesa/src/freedreno/registers/freedreno_copyright.xml ( 1572 bytes, from 2022-07-23 20:21:46)
13*f73343faSRob Clark - /home/robclark/src/mesa/mesa/src/freedreno/registers/adreno/a2xx.xml ( 91929 bytes, from 2023-02-28 23:52:27)
14*f73343faSRob Clark - /home/robclark/src/mesa/mesa/src/freedreno/registers/adreno/adreno_common.xml ( 15434 bytes, from 2023-03-10 18:32:53)
15*f73343faSRob Clark - /home/robclark/src/mesa/mesa/src/freedreno/registers/adreno/adreno_pm4.xml ( 74995 bytes, from 2023-03-20 18:06:23)
16*f73343faSRob Clark - /home/robclark/src/mesa/mesa/src/freedreno/registers/adreno/a3xx.xml ( 84231 bytes, from 2022-08-02 16:38:43)
17*f73343faSRob Clark - /home/robclark/src/mesa/mesa/src/freedreno/registers/adreno/a4xx.xml ( 113474 bytes, from 2022-08-02 16:38:43)
18*f73343faSRob Clark - /home/robclark/src/mesa/mesa/src/freedreno/registers/adreno/a5xx.xml ( 149590 bytes, from 2023-02-14 19:37:12)
19*f73343faSRob Clark - /home/robclark/src/mesa/mesa/src/freedreno/registers/adreno/a6xx.xml ( 198949 bytes, from 2023-03-20 18:06:23)
20*f73343faSRob Clark - /home/robclark/src/mesa/mesa/src/freedreno/registers/adreno/a6xx_gmu.xml ( 11404 bytes, from 2023-03-10 18:32:53)
21*f73343faSRob Clark - /home/robclark/src/mesa/mesa/src/freedreno/registers/adreno/ocmem.xml ( 1773 bytes, from 2022-08-02 16:38:43)
22*f73343faSRob Clark - /home/robclark/src/mesa/mesa/src/freedreno/registers/adreno/adreno_control_regs.xml ( 9055 bytes, from 2023-03-10 18:32:52)
23*f73343faSRob Clark - /home/robclark/src/mesa/mesa/src/freedreno/registers/adreno/adreno_pipe_regs.xml ( 2976 bytes, from 2023-03-10 18:32:52)
24902e6eb8SRob Clark
25*f73343faSRob Clark Copyright (C) 2013-2023 by the following authors:
26902e6eb8SRob Clark - Rob Clark <robdclark@gmail.com> (robclark)
27a2272e48SRob Clark - Ilia Mirkin <imirkin@alum.mit.edu> (imirkin)
28902e6eb8SRob Clark
29902e6eb8SRob Clark Permission is hereby granted, free of charge, to any person obtaining
30902e6eb8SRob Clark a copy of this software and associated documentation files (the
31902e6eb8SRob Clark "Software"), to deal in the Software without restriction, including
32902e6eb8SRob Clark without limitation the rights to use, copy, modify, merge, publish,
33902e6eb8SRob Clark distribute, sublicense, and/or sell copies of the Software, and to
34902e6eb8SRob Clark permit persons to whom the Software is furnished to do so, subject to
35902e6eb8SRob Clark the following conditions:
36902e6eb8SRob Clark
37902e6eb8SRob Clark The above copyright notice and this permission notice (including the
38902e6eb8SRob Clark next paragraph) shall be included in all copies or substantial
39902e6eb8SRob Clark portions of the Software.
40902e6eb8SRob Clark
41902e6eb8SRob Clark THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
42902e6eb8SRob Clark EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
43902e6eb8SRob Clark MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
44902e6eb8SRob Clark IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
45902e6eb8SRob Clark LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
46902e6eb8SRob Clark OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
47902e6eb8SRob Clark WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
48902e6eb8SRob Clark */
49902e6eb8SRob Clark
50902e6eb8SRob Clark
512d756322SRob Clark enum chip {
52*f73343faSRob Clark A2XX = 2,
53*f73343faSRob Clark A3XX = 3,
54*f73343faSRob Clark A4XX = 4,
55*f73343faSRob Clark A5XX = 5,
56*f73343faSRob Clark A6XX = 6,
57*f73343faSRob Clark A7XX = 7,
582d756322SRob Clark };
592d756322SRob Clark
60902e6eb8SRob Clark enum adreno_pa_su_sc_draw {
61902e6eb8SRob Clark PC_DRAW_POINTS = 0,
62902e6eb8SRob Clark PC_DRAW_LINES = 1,
63902e6eb8SRob Clark PC_DRAW_TRIANGLES = 2,
64902e6eb8SRob Clark };
65902e6eb8SRob Clark
66902e6eb8SRob Clark enum adreno_compare_func {
67902e6eb8SRob Clark FUNC_NEVER = 0,
68902e6eb8SRob Clark FUNC_LESS = 1,
69902e6eb8SRob Clark FUNC_EQUAL = 2,
70902e6eb8SRob Clark FUNC_LEQUAL = 3,
71902e6eb8SRob Clark FUNC_GREATER = 4,
72902e6eb8SRob Clark FUNC_NOTEQUAL = 5,
73902e6eb8SRob Clark FUNC_GEQUAL = 6,
74902e6eb8SRob Clark FUNC_ALWAYS = 7,
75902e6eb8SRob Clark };
76902e6eb8SRob Clark
77902e6eb8SRob Clark enum adreno_stencil_op {
78902e6eb8SRob Clark STENCIL_KEEP = 0,
79902e6eb8SRob Clark STENCIL_ZERO = 1,
80902e6eb8SRob Clark STENCIL_REPLACE = 2,
81902e6eb8SRob Clark STENCIL_INCR_CLAMP = 3,
82902e6eb8SRob Clark STENCIL_DECR_CLAMP = 4,
83902e6eb8SRob Clark STENCIL_INVERT = 5,
84902e6eb8SRob Clark STENCIL_INCR_WRAP = 6,
85902e6eb8SRob Clark STENCIL_DECR_WRAP = 7,
86902e6eb8SRob Clark };
87902e6eb8SRob Clark
88902e6eb8SRob Clark enum adreno_rb_blend_factor {
89902e6eb8SRob Clark FACTOR_ZERO = 0,
90902e6eb8SRob Clark FACTOR_ONE = 1,
91902e6eb8SRob Clark FACTOR_SRC_COLOR = 4,
92902e6eb8SRob Clark FACTOR_ONE_MINUS_SRC_COLOR = 5,
93902e6eb8SRob Clark FACTOR_SRC_ALPHA = 6,
94902e6eb8SRob Clark FACTOR_ONE_MINUS_SRC_ALPHA = 7,
95902e6eb8SRob Clark FACTOR_DST_COLOR = 8,
96902e6eb8SRob Clark FACTOR_ONE_MINUS_DST_COLOR = 9,
97902e6eb8SRob Clark FACTOR_DST_ALPHA = 10,
98902e6eb8SRob Clark FACTOR_ONE_MINUS_DST_ALPHA = 11,
99902e6eb8SRob Clark FACTOR_CONSTANT_COLOR = 12,
100902e6eb8SRob Clark FACTOR_ONE_MINUS_CONSTANT_COLOR = 13,
101902e6eb8SRob Clark FACTOR_CONSTANT_ALPHA = 14,
102902e6eb8SRob Clark FACTOR_ONE_MINUS_CONSTANT_ALPHA = 15,
103902e6eb8SRob Clark FACTOR_SRC_ALPHA_SATURATE = 16,
1048217e97aSRob Clark FACTOR_SRC1_COLOR = 20,
1058217e97aSRob Clark FACTOR_ONE_MINUS_SRC1_COLOR = 21,
1068217e97aSRob Clark FACTOR_SRC1_ALPHA = 22,
1078217e97aSRob Clark FACTOR_ONE_MINUS_SRC1_ALPHA = 23,
108902e6eb8SRob Clark };
109902e6eb8SRob Clark
110902e6eb8SRob Clark enum adreno_rb_surface_endian {
111902e6eb8SRob Clark ENDIAN_NONE = 0,
112902e6eb8SRob Clark ENDIAN_8IN16 = 1,
113902e6eb8SRob Clark ENDIAN_8IN32 = 2,
114902e6eb8SRob Clark ENDIAN_16IN32 = 3,
115902e6eb8SRob Clark ENDIAN_8IN64 = 4,
116902e6eb8SRob Clark ENDIAN_8IN128 = 5,
117902e6eb8SRob Clark };
118902e6eb8SRob Clark
119902e6eb8SRob Clark enum adreno_rb_dither_mode {
120902e6eb8SRob Clark DITHER_DISABLE = 0,
121902e6eb8SRob Clark DITHER_ALWAYS = 1,
122902e6eb8SRob Clark DITHER_IF_ALPHA_OFF = 2,
123902e6eb8SRob Clark };
124902e6eb8SRob Clark
125902e6eb8SRob Clark enum adreno_rb_depth_format {
126902e6eb8SRob Clark DEPTHX_16 = 0,
127902e6eb8SRob Clark DEPTHX_24_8 = 1,
128bc00ae02SRob Clark DEPTHX_32 = 2,
129902e6eb8SRob Clark };
130902e6eb8SRob Clark
13189301471SRob Clark enum adreno_rb_copy_control_mode {
13289301471SRob Clark RB_COPY_RESOLVE = 1,
13389301471SRob Clark RB_COPY_CLEAR = 2,
13489301471SRob Clark RB_COPY_DEPTH_STENCIL = 5,
13589301471SRob Clark };
13689301471SRob Clark
137a2272e48SRob Clark enum a3xx_rop_code {
138a2272e48SRob Clark ROP_CLEAR = 0,
139a2272e48SRob Clark ROP_NOR = 1,
140a2272e48SRob Clark ROP_AND_INVERTED = 2,
141a2272e48SRob Clark ROP_COPY_INVERTED = 3,
142a2272e48SRob Clark ROP_AND_REVERSE = 4,
143a2272e48SRob Clark ROP_INVERT = 5,
144a2272e48SRob Clark ROP_NAND = 7,
145a2272e48SRob Clark ROP_AND = 8,
146a2272e48SRob Clark ROP_EQUIV = 9,
147a2272e48SRob Clark ROP_NOOP = 10,
148a2272e48SRob Clark ROP_OR_INVERTED = 11,
149a2272e48SRob Clark ROP_OR_REVERSE = 13,
150a2272e48SRob Clark ROP_OR = 14,
151a2272e48SRob Clark ROP_SET = 15,
152a2272e48SRob Clark };
153a2272e48SRob Clark
15489301471SRob Clark enum a3xx_render_mode {
15589301471SRob Clark RB_RENDERING_PASS = 0,
15689301471SRob Clark RB_TILING_PASS = 1,
15789301471SRob Clark RB_RESOLVE_PASS = 2,
15889301471SRob Clark RB_COMPUTE_PASS = 3,
15989301471SRob Clark };
16089301471SRob Clark
16189301471SRob Clark enum a3xx_msaa_samples {
16289301471SRob Clark MSAA_ONE = 0,
16389301471SRob Clark MSAA_TWO = 1,
16489301471SRob Clark MSAA_FOUR = 2,
165c28c82e9SRob Clark MSAA_EIGHT = 3,
16689301471SRob Clark };
16789301471SRob Clark
16889301471SRob Clark enum a3xx_threadmode {
16989301471SRob Clark MULTI = 0,
17089301471SRob Clark SINGLE = 1,
17189301471SRob Clark };
17289301471SRob Clark
17389301471SRob Clark enum a3xx_instrbuffermode {
174bc00ae02SRob Clark CACHE = 0,
17589301471SRob Clark BUFFER = 1,
17689301471SRob Clark };
17789301471SRob Clark
17889301471SRob Clark enum a3xx_threadsize {
17989301471SRob Clark TWO_QUADS = 0,
18089301471SRob Clark FOUR_QUADS = 1,
18189301471SRob Clark };
18289301471SRob Clark
183bc00ae02SRob Clark enum a3xx_color_swap {
184bc00ae02SRob Clark WZYX = 0,
185bc00ae02SRob Clark WXYZ = 1,
186bc00ae02SRob Clark ZYXW = 2,
187bc00ae02SRob Clark XYZW = 3,
188bc00ae02SRob Clark };
189bc00ae02SRob Clark
190a26ae754SRob Clark enum a3xx_rb_blend_opcode {
191a26ae754SRob Clark BLEND_DST_PLUS_SRC = 0,
192a26ae754SRob Clark BLEND_SRC_MINUS_DST = 1,
193a26ae754SRob Clark BLEND_DST_MINUS_SRC = 2,
194a26ae754SRob Clark BLEND_MIN_DST_SRC = 3,
195a26ae754SRob Clark BLEND_MAX_DST_SRC = 4,
196a26ae754SRob Clark };
197a26ae754SRob Clark
1982d756322SRob Clark enum a4xx_tess_spacing {
1992d756322SRob Clark EQUAL_SPACING = 0,
2002d756322SRob Clark ODD_SPACING = 2,
2012d756322SRob Clark EVEN_SPACING = 3,
2022d756322SRob Clark };
2032d756322SRob Clark
204c28c82e9SRob Clark enum a5xx_address_mode {
205c28c82e9SRob Clark ADDR_32B = 0,
206c28c82e9SRob Clark ADDR_64B = 1,
207c28c82e9SRob Clark };
208c28c82e9SRob Clark
20957cfe41cSRob Clark enum a5xx_line_mode {
21057cfe41cSRob Clark BRESENHAM = 0,
21157cfe41cSRob Clark RECTANGULAR = 1,
21257cfe41cSRob Clark };
21357cfe41cSRob Clark
214*f73343faSRob Clark enum a6xx_tex_prefetch_cmd {
215*f73343faSRob Clark TEX_PREFETCH_UNK0 = 0,
216*f73343faSRob Clark TEX_PREFETCH_SAM = 1,
217*f73343faSRob Clark TEX_PREFETCH_GATHER4R = 2,
218*f73343faSRob Clark TEX_PREFETCH_GATHER4G = 3,
219*f73343faSRob Clark TEX_PREFETCH_GATHER4B = 4,
220*f73343faSRob Clark TEX_PREFETCH_GATHER4A = 5,
221*f73343faSRob Clark TEX_PREFETCH_UNK6 = 6,
222*f73343faSRob Clark TEX_PREFETCH_UNK7 = 7,
223*f73343faSRob Clark };
224*f73343faSRob Clark
225902e6eb8SRob Clark #define REG_AXXX_CP_RB_BASE 0x000001c0
226902e6eb8SRob Clark
227902e6eb8SRob Clark #define REG_AXXX_CP_RB_CNTL 0x000001c1
228902e6eb8SRob Clark #define AXXX_CP_RB_CNTL_BUFSZ__MASK 0x0000003f
229902e6eb8SRob Clark #define AXXX_CP_RB_CNTL_BUFSZ__SHIFT 0
AXXX_CP_RB_CNTL_BUFSZ(uint32_t val)230902e6eb8SRob Clark static inline uint32_t AXXX_CP_RB_CNTL_BUFSZ(uint32_t val)
231902e6eb8SRob Clark {
232902e6eb8SRob Clark return ((val) << AXXX_CP_RB_CNTL_BUFSZ__SHIFT) & AXXX_CP_RB_CNTL_BUFSZ__MASK;
233902e6eb8SRob Clark }
234902e6eb8SRob Clark #define AXXX_CP_RB_CNTL_BLKSZ__MASK 0x00003f00
235902e6eb8SRob Clark #define AXXX_CP_RB_CNTL_BLKSZ__SHIFT 8
AXXX_CP_RB_CNTL_BLKSZ(uint32_t val)236902e6eb8SRob Clark static inline uint32_t AXXX_CP_RB_CNTL_BLKSZ(uint32_t val)
237902e6eb8SRob Clark {
238902e6eb8SRob Clark return ((val) << AXXX_CP_RB_CNTL_BLKSZ__SHIFT) & AXXX_CP_RB_CNTL_BLKSZ__MASK;
239902e6eb8SRob Clark }
240902e6eb8SRob Clark #define AXXX_CP_RB_CNTL_BUF_SWAP__MASK 0x00030000
241902e6eb8SRob Clark #define AXXX_CP_RB_CNTL_BUF_SWAP__SHIFT 16
AXXX_CP_RB_CNTL_BUF_SWAP(uint32_t val)242902e6eb8SRob Clark static inline uint32_t AXXX_CP_RB_CNTL_BUF_SWAP(uint32_t val)
243902e6eb8SRob Clark {
244902e6eb8SRob Clark return ((val) << AXXX_CP_RB_CNTL_BUF_SWAP__SHIFT) & AXXX_CP_RB_CNTL_BUF_SWAP__MASK;
245902e6eb8SRob Clark }
246902e6eb8SRob Clark #define AXXX_CP_RB_CNTL_POLL_EN 0x00100000
247902e6eb8SRob Clark #define AXXX_CP_RB_CNTL_NO_UPDATE 0x08000000
248902e6eb8SRob Clark #define AXXX_CP_RB_CNTL_RPTR_WR_EN 0x80000000
249902e6eb8SRob Clark
250902e6eb8SRob Clark #define REG_AXXX_CP_RB_RPTR_ADDR 0x000001c3
251902e6eb8SRob Clark #define AXXX_CP_RB_RPTR_ADDR_SWAP__MASK 0x00000003
252902e6eb8SRob Clark #define AXXX_CP_RB_RPTR_ADDR_SWAP__SHIFT 0
AXXX_CP_RB_RPTR_ADDR_SWAP(uint32_t val)253902e6eb8SRob Clark static inline uint32_t AXXX_CP_RB_RPTR_ADDR_SWAP(uint32_t val)
254902e6eb8SRob Clark {
255902e6eb8SRob Clark return ((val) << AXXX_CP_RB_RPTR_ADDR_SWAP__SHIFT) & AXXX_CP_RB_RPTR_ADDR_SWAP__MASK;
256902e6eb8SRob Clark }
257902e6eb8SRob Clark #define AXXX_CP_RB_RPTR_ADDR_ADDR__MASK 0xfffffffc
258902e6eb8SRob Clark #define AXXX_CP_RB_RPTR_ADDR_ADDR__SHIFT 2
AXXX_CP_RB_RPTR_ADDR_ADDR(uint32_t val)259902e6eb8SRob Clark static inline uint32_t AXXX_CP_RB_RPTR_ADDR_ADDR(uint32_t val)
260902e6eb8SRob Clark {
261902e6eb8SRob Clark return ((val >> 2) << AXXX_CP_RB_RPTR_ADDR_ADDR__SHIFT) & AXXX_CP_RB_RPTR_ADDR_ADDR__MASK;
262902e6eb8SRob Clark }
263902e6eb8SRob Clark
264902e6eb8SRob Clark #define REG_AXXX_CP_RB_RPTR 0x000001c4
265902e6eb8SRob Clark
266902e6eb8SRob Clark #define REG_AXXX_CP_RB_WPTR 0x000001c5
267902e6eb8SRob Clark
268902e6eb8SRob Clark #define REG_AXXX_CP_RB_WPTR_DELAY 0x000001c6
269902e6eb8SRob Clark
270902e6eb8SRob Clark #define REG_AXXX_CP_RB_RPTR_WR 0x000001c7
271902e6eb8SRob Clark
272902e6eb8SRob Clark #define REG_AXXX_CP_RB_WPTR_BASE 0x000001c8
273902e6eb8SRob Clark
274902e6eb8SRob Clark #define REG_AXXX_CP_QUEUE_THRESHOLDS 0x000001d5
275902e6eb8SRob Clark #define AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB1_START__MASK 0x0000000f
276902e6eb8SRob Clark #define AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB1_START__SHIFT 0
AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB1_START(uint32_t val)277902e6eb8SRob Clark static inline uint32_t AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB1_START(uint32_t val)
278902e6eb8SRob Clark {
279902e6eb8SRob Clark return ((val) << AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB1_START__SHIFT) & AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB1_START__MASK;
280902e6eb8SRob Clark }
281902e6eb8SRob Clark #define AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB2_START__MASK 0x00000f00
282902e6eb8SRob Clark #define AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB2_START__SHIFT 8
AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB2_START(uint32_t val)283902e6eb8SRob Clark static inline uint32_t AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB2_START(uint32_t val)
284902e6eb8SRob Clark {
285902e6eb8SRob Clark return ((val) << AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB2_START__SHIFT) & AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB2_START__MASK;
286902e6eb8SRob Clark }
287902e6eb8SRob Clark #define AXXX_CP_QUEUE_THRESHOLDS_CSQ_ST_START__MASK 0x000f0000
288902e6eb8SRob Clark #define AXXX_CP_QUEUE_THRESHOLDS_CSQ_ST_START__SHIFT 16
AXXX_CP_QUEUE_THRESHOLDS_CSQ_ST_START(uint32_t val)289902e6eb8SRob Clark static inline uint32_t AXXX_CP_QUEUE_THRESHOLDS_CSQ_ST_START(uint32_t val)
290902e6eb8SRob Clark {
291902e6eb8SRob Clark return ((val) << AXXX_CP_QUEUE_THRESHOLDS_CSQ_ST_START__SHIFT) & AXXX_CP_QUEUE_THRESHOLDS_CSQ_ST_START__MASK;
292902e6eb8SRob Clark }
293902e6eb8SRob Clark
294902e6eb8SRob Clark #define REG_AXXX_CP_MEQ_THRESHOLDS 0x000001d6
295facb4f4eSRob Clark #define AXXX_CP_MEQ_THRESHOLDS_MEQ_END__MASK 0x001f0000
296facb4f4eSRob Clark #define AXXX_CP_MEQ_THRESHOLDS_MEQ_END__SHIFT 16
AXXX_CP_MEQ_THRESHOLDS_MEQ_END(uint32_t val)297facb4f4eSRob Clark static inline uint32_t AXXX_CP_MEQ_THRESHOLDS_MEQ_END(uint32_t val)
298facb4f4eSRob Clark {
299facb4f4eSRob Clark return ((val) << AXXX_CP_MEQ_THRESHOLDS_MEQ_END__SHIFT) & AXXX_CP_MEQ_THRESHOLDS_MEQ_END__MASK;
300facb4f4eSRob Clark }
301facb4f4eSRob Clark #define AXXX_CP_MEQ_THRESHOLDS_ROQ_END__MASK 0x1f000000
302facb4f4eSRob Clark #define AXXX_CP_MEQ_THRESHOLDS_ROQ_END__SHIFT 24
AXXX_CP_MEQ_THRESHOLDS_ROQ_END(uint32_t val)303facb4f4eSRob Clark static inline uint32_t AXXX_CP_MEQ_THRESHOLDS_ROQ_END(uint32_t val)
304facb4f4eSRob Clark {
305facb4f4eSRob Clark return ((val) << AXXX_CP_MEQ_THRESHOLDS_ROQ_END__SHIFT) & AXXX_CP_MEQ_THRESHOLDS_ROQ_END__MASK;
306facb4f4eSRob Clark }
307902e6eb8SRob Clark
308902e6eb8SRob Clark #define REG_AXXX_CP_CSQ_AVAIL 0x000001d7
309902e6eb8SRob Clark #define AXXX_CP_CSQ_AVAIL_RING__MASK 0x0000007f
310902e6eb8SRob Clark #define AXXX_CP_CSQ_AVAIL_RING__SHIFT 0
AXXX_CP_CSQ_AVAIL_RING(uint32_t val)311902e6eb8SRob Clark static inline uint32_t AXXX_CP_CSQ_AVAIL_RING(uint32_t val)
312902e6eb8SRob Clark {
313902e6eb8SRob Clark return ((val) << AXXX_CP_CSQ_AVAIL_RING__SHIFT) & AXXX_CP_CSQ_AVAIL_RING__MASK;
314902e6eb8SRob Clark }
315902e6eb8SRob Clark #define AXXX_CP_CSQ_AVAIL_IB1__MASK 0x00007f00
316902e6eb8SRob Clark #define AXXX_CP_CSQ_AVAIL_IB1__SHIFT 8
AXXX_CP_CSQ_AVAIL_IB1(uint32_t val)317902e6eb8SRob Clark static inline uint32_t AXXX_CP_CSQ_AVAIL_IB1(uint32_t val)
318902e6eb8SRob Clark {
319902e6eb8SRob Clark return ((val) << AXXX_CP_CSQ_AVAIL_IB1__SHIFT) & AXXX_CP_CSQ_AVAIL_IB1__MASK;
320902e6eb8SRob Clark }
321902e6eb8SRob Clark #define AXXX_CP_CSQ_AVAIL_IB2__MASK 0x007f0000
322902e6eb8SRob Clark #define AXXX_CP_CSQ_AVAIL_IB2__SHIFT 16
AXXX_CP_CSQ_AVAIL_IB2(uint32_t val)323902e6eb8SRob Clark static inline uint32_t AXXX_CP_CSQ_AVAIL_IB2(uint32_t val)
324902e6eb8SRob Clark {
325902e6eb8SRob Clark return ((val) << AXXX_CP_CSQ_AVAIL_IB2__SHIFT) & AXXX_CP_CSQ_AVAIL_IB2__MASK;
326902e6eb8SRob Clark }
327902e6eb8SRob Clark
328902e6eb8SRob Clark #define REG_AXXX_CP_STQ_AVAIL 0x000001d8
329902e6eb8SRob Clark #define AXXX_CP_STQ_AVAIL_ST__MASK 0x0000007f
330902e6eb8SRob Clark #define AXXX_CP_STQ_AVAIL_ST__SHIFT 0
AXXX_CP_STQ_AVAIL_ST(uint32_t val)331902e6eb8SRob Clark static inline uint32_t AXXX_CP_STQ_AVAIL_ST(uint32_t val)
332902e6eb8SRob Clark {
333902e6eb8SRob Clark return ((val) << AXXX_CP_STQ_AVAIL_ST__SHIFT) & AXXX_CP_STQ_AVAIL_ST__MASK;
334902e6eb8SRob Clark }
335902e6eb8SRob Clark
336902e6eb8SRob Clark #define REG_AXXX_CP_MEQ_AVAIL 0x000001d9
337902e6eb8SRob Clark #define AXXX_CP_MEQ_AVAIL_MEQ__MASK 0x0000001f
338902e6eb8SRob Clark #define AXXX_CP_MEQ_AVAIL_MEQ__SHIFT 0
AXXX_CP_MEQ_AVAIL_MEQ(uint32_t val)339902e6eb8SRob Clark static inline uint32_t AXXX_CP_MEQ_AVAIL_MEQ(uint32_t val)
340902e6eb8SRob Clark {
341902e6eb8SRob Clark return ((val) << AXXX_CP_MEQ_AVAIL_MEQ__SHIFT) & AXXX_CP_MEQ_AVAIL_MEQ__MASK;
342902e6eb8SRob Clark }
343902e6eb8SRob Clark
344902e6eb8SRob Clark #define REG_AXXX_SCRATCH_UMSK 0x000001dc
345902e6eb8SRob Clark #define AXXX_SCRATCH_UMSK_UMSK__MASK 0x000000ff
346902e6eb8SRob Clark #define AXXX_SCRATCH_UMSK_UMSK__SHIFT 0
AXXX_SCRATCH_UMSK_UMSK(uint32_t val)347902e6eb8SRob Clark static inline uint32_t AXXX_SCRATCH_UMSK_UMSK(uint32_t val)
348902e6eb8SRob Clark {
349902e6eb8SRob Clark return ((val) << AXXX_SCRATCH_UMSK_UMSK__SHIFT) & AXXX_SCRATCH_UMSK_UMSK__MASK;
350902e6eb8SRob Clark }
351902e6eb8SRob Clark #define AXXX_SCRATCH_UMSK_SWAP__MASK 0x00030000
352902e6eb8SRob Clark #define AXXX_SCRATCH_UMSK_SWAP__SHIFT 16
AXXX_SCRATCH_UMSK_SWAP(uint32_t val)353902e6eb8SRob Clark static inline uint32_t AXXX_SCRATCH_UMSK_SWAP(uint32_t val)
354902e6eb8SRob Clark {
355902e6eb8SRob Clark return ((val) << AXXX_SCRATCH_UMSK_SWAP__SHIFT) & AXXX_SCRATCH_UMSK_SWAP__MASK;
356902e6eb8SRob Clark }
357902e6eb8SRob Clark
358902e6eb8SRob Clark #define REG_AXXX_SCRATCH_ADDR 0x000001dd
359902e6eb8SRob Clark
360902e6eb8SRob Clark #define REG_AXXX_CP_ME_RDADDR 0x000001ea
361902e6eb8SRob Clark
362902e6eb8SRob Clark #define REG_AXXX_CP_STATE_DEBUG_INDEX 0x000001ec
363902e6eb8SRob Clark
364902e6eb8SRob Clark #define REG_AXXX_CP_STATE_DEBUG_DATA 0x000001ed
365902e6eb8SRob Clark
366902e6eb8SRob Clark #define REG_AXXX_CP_INT_CNTL 0x000001f2
367ccdf7e28SRob Clark #define AXXX_CP_INT_CNTL_SW_INT_MASK 0x00080000
368ccdf7e28SRob Clark #define AXXX_CP_INT_CNTL_T0_PACKET_IN_IB_MASK 0x00800000
369ccdf7e28SRob Clark #define AXXX_CP_INT_CNTL_OPCODE_ERROR_MASK 0x01000000
370ccdf7e28SRob Clark #define AXXX_CP_INT_CNTL_PROTECTED_MODE_ERROR_MASK 0x02000000
371ccdf7e28SRob Clark #define AXXX_CP_INT_CNTL_RESERVED_BIT_ERROR_MASK 0x04000000
372ccdf7e28SRob Clark #define AXXX_CP_INT_CNTL_IB_ERROR_MASK 0x08000000
373ccdf7e28SRob Clark #define AXXX_CP_INT_CNTL_IB2_INT_MASK 0x20000000
374ccdf7e28SRob Clark #define AXXX_CP_INT_CNTL_IB1_INT_MASK 0x40000000
375ccdf7e28SRob Clark #define AXXX_CP_INT_CNTL_RB_INT_MASK 0x80000000
376902e6eb8SRob Clark
377902e6eb8SRob Clark #define REG_AXXX_CP_INT_STATUS 0x000001f3
378902e6eb8SRob Clark
379902e6eb8SRob Clark #define REG_AXXX_CP_INT_ACK 0x000001f4
380902e6eb8SRob Clark
381902e6eb8SRob Clark #define REG_AXXX_CP_ME_CNTL 0x000001f6
38289301471SRob Clark #define AXXX_CP_ME_CNTL_BUSY 0x20000000
38389301471SRob Clark #define AXXX_CP_ME_CNTL_HALT 0x10000000
384902e6eb8SRob Clark
385902e6eb8SRob Clark #define REG_AXXX_CP_ME_STATUS 0x000001f7
386902e6eb8SRob Clark
387902e6eb8SRob Clark #define REG_AXXX_CP_ME_RAM_WADDR 0x000001f8
388902e6eb8SRob Clark
389902e6eb8SRob Clark #define REG_AXXX_CP_ME_RAM_RADDR 0x000001f9
390902e6eb8SRob Clark
391902e6eb8SRob Clark #define REG_AXXX_CP_ME_RAM_DATA 0x000001fa
392902e6eb8SRob Clark
393902e6eb8SRob Clark #define REG_AXXX_CP_DEBUG 0x000001fc
394902e6eb8SRob Clark #define AXXX_CP_DEBUG_PREDICATE_DISABLE 0x00800000
395902e6eb8SRob Clark #define AXXX_CP_DEBUG_PROG_END_PTR_ENABLE 0x01000000
396902e6eb8SRob Clark #define AXXX_CP_DEBUG_MIU_128BIT_WRITE_ENABLE 0x02000000
397902e6eb8SRob Clark #define AXXX_CP_DEBUG_PREFETCH_PASS_NOPS 0x04000000
398902e6eb8SRob Clark #define AXXX_CP_DEBUG_DYNAMIC_CLK_DISABLE 0x08000000
399902e6eb8SRob Clark #define AXXX_CP_DEBUG_PREFETCH_MATCH_DISABLE 0x10000000
400902e6eb8SRob Clark #define AXXX_CP_DEBUG_SIMPLE_ME_FLOW_CONTROL 0x40000000
401902e6eb8SRob Clark #define AXXX_CP_DEBUG_MIU_WRITE_PACK_DISABLE 0x80000000
402902e6eb8SRob Clark
403902e6eb8SRob Clark #define REG_AXXX_CP_CSQ_RB_STAT 0x000001fd
404902e6eb8SRob Clark #define AXXX_CP_CSQ_RB_STAT_RPTR__MASK 0x0000007f
405902e6eb8SRob Clark #define AXXX_CP_CSQ_RB_STAT_RPTR__SHIFT 0
AXXX_CP_CSQ_RB_STAT_RPTR(uint32_t val)406902e6eb8SRob Clark static inline uint32_t AXXX_CP_CSQ_RB_STAT_RPTR(uint32_t val)
407902e6eb8SRob Clark {
408902e6eb8SRob Clark return ((val) << AXXX_CP_CSQ_RB_STAT_RPTR__SHIFT) & AXXX_CP_CSQ_RB_STAT_RPTR__MASK;
409902e6eb8SRob Clark }
410902e6eb8SRob Clark #define AXXX_CP_CSQ_RB_STAT_WPTR__MASK 0x007f0000
411902e6eb8SRob Clark #define AXXX_CP_CSQ_RB_STAT_WPTR__SHIFT 16
AXXX_CP_CSQ_RB_STAT_WPTR(uint32_t val)412902e6eb8SRob Clark static inline uint32_t AXXX_CP_CSQ_RB_STAT_WPTR(uint32_t val)
413902e6eb8SRob Clark {
414902e6eb8SRob Clark return ((val) << AXXX_CP_CSQ_RB_STAT_WPTR__SHIFT) & AXXX_CP_CSQ_RB_STAT_WPTR__MASK;
415902e6eb8SRob Clark }
416902e6eb8SRob Clark
417902e6eb8SRob Clark #define REG_AXXX_CP_CSQ_IB1_STAT 0x000001fe
418902e6eb8SRob Clark #define AXXX_CP_CSQ_IB1_STAT_RPTR__MASK 0x0000007f
419902e6eb8SRob Clark #define AXXX_CP_CSQ_IB1_STAT_RPTR__SHIFT 0
AXXX_CP_CSQ_IB1_STAT_RPTR(uint32_t val)420902e6eb8SRob Clark static inline uint32_t AXXX_CP_CSQ_IB1_STAT_RPTR(uint32_t val)
421902e6eb8SRob Clark {
422902e6eb8SRob Clark return ((val) << AXXX_CP_CSQ_IB1_STAT_RPTR__SHIFT) & AXXX_CP_CSQ_IB1_STAT_RPTR__MASK;
423902e6eb8SRob Clark }
424902e6eb8SRob Clark #define AXXX_CP_CSQ_IB1_STAT_WPTR__MASK 0x007f0000
425902e6eb8SRob Clark #define AXXX_CP_CSQ_IB1_STAT_WPTR__SHIFT 16
AXXX_CP_CSQ_IB1_STAT_WPTR(uint32_t val)426902e6eb8SRob Clark static inline uint32_t AXXX_CP_CSQ_IB1_STAT_WPTR(uint32_t val)
427902e6eb8SRob Clark {
428902e6eb8SRob Clark return ((val) << AXXX_CP_CSQ_IB1_STAT_WPTR__SHIFT) & AXXX_CP_CSQ_IB1_STAT_WPTR__MASK;
429902e6eb8SRob Clark }
430902e6eb8SRob Clark
431902e6eb8SRob Clark #define REG_AXXX_CP_CSQ_IB2_STAT 0x000001ff
432902e6eb8SRob Clark #define AXXX_CP_CSQ_IB2_STAT_RPTR__MASK 0x0000007f
433902e6eb8SRob Clark #define AXXX_CP_CSQ_IB2_STAT_RPTR__SHIFT 0
AXXX_CP_CSQ_IB2_STAT_RPTR(uint32_t val)434902e6eb8SRob Clark static inline uint32_t AXXX_CP_CSQ_IB2_STAT_RPTR(uint32_t val)
435902e6eb8SRob Clark {
436902e6eb8SRob Clark return ((val) << AXXX_CP_CSQ_IB2_STAT_RPTR__SHIFT) & AXXX_CP_CSQ_IB2_STAT_RPTR__MASK;
437902e6eb8SRob Clark }
438902e6eb8SRob Clark #define AXXX_CP_CSQ_IB2_STAT_WPTR__MASK 0x007f0000
439902e6eb8SRob Clark #define AXXX_CP_CSQ_IB2_STAT_WPTR__SHIFT 16
AXXX_CP_CSQ_IB2_STAT_WPTR(uint32_t val)440902e6eb8SRob Clark static inline uint32_t AXXX_CP_CSQ_IB2_STAT_WPTR(uint32_t val)
441902e6eb8SRob Clark {
442902e6eb8SRob Clark return ((val) << AXXX_CP_CSQ_IB2_STAT_WPTR__SHIFT) & AXXX_CP_CSQ_IB2_STAT_WPTR__MASK;
443902e6eb8SRob Clark }
444902e6eb8SRob Clark
445facb4f4eSRob Clark #define REG_AXXX_CP_NON_PREFETCH_CNTRS 0x00000440
446facb4f4eSRob Clark
447facb4f4eSRob Clark #define REG_AXXX_CP_STQ_ST_STAT 0x00000443
448facb4f4eSRob Clark
449facb4f4eSRob Clark #define REG_AXXX_CP_ST_BASE 0x0000044d
450facb4f4eSRob Clark
451facb4f4eSRob Clark #define REG_AXXX_CP_ST_BUFSZ 0x0000044e
452facb4f4eSRob Clark
453facb4f4eSRob Clark #define REG_AXXX_CP_MEQ_STAT 0x0000044f
454facb4f4eSRob Clark
455facb4f4eSRob Clark #define REG_AXXX_CP_MIU_TAG_STAT 0x00000452
456facb4f4eSRob Clark
457facb4f4eSRob Clark #define REG_AXXX_CP_BIN_MASK_LO 0x00000454
458facb4f4eSRob Clark
459facb4f4eSRob Clark #define REG_AXXX_CP_BIN_MASK_HI 0x00000455
460facb4f4eSRob Clark
461facb4f4eSRob Clark #define REG_AXXX_CP_BIN_SELECT_LO 0x00000456
462facb4f4eSRob Clark
463facb4f4eSRob Clark #define REG_AXXX_CP_BIN_SELECT_HI 0x00000457
464facb4f4eSRob Clark
465facb4f4eSRob Clark #define REG_AXXX_CP_IB1_BASE 0x00000458
466facb4f4eSRob Clark
467facb4f4eSRob Clark #define REG_AXXX_CP_IB1_BUFSZ 0x00000459
468facb4f4eSRob Clark
469facb4f4eSRob Clark #define REG_AXXX_CP_IB2_BASE 0x0000045a
470facb4f4eSRob Clark
471facb4f4eSRob Clark #define REG_AXXX_CP_IB2_BUFSZ 0x0000045b
472facb4f4eSRob Clark
473facb4f4eSRob Clark #define REG_AXXX_CP_STAT 0x0000047f
474c28c82e9SRob Clark #define AXXX_CP_STAT_CP_BUSY__MASK 0x80000000
475c28c82e9SRob Clark #define AXXX_CP_STAT_CP_BUSY__SHIFT 31
AXXX_CP_STAT_CP_BUSY(uint32_t val)476c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_CP_BUSY(uint32_t val)
477c28c82e9SRob Clark {
478c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_CP_BUSY__SHIFT) & AXXX_CP_STAT_CP_BUSY__MASK;
479c28c82e9SRob Clark }
480c28c82e9SRob Clark #define AXXX_CP_STAT_VS_EVENT_FIFO_BUSY__MASK 0x40000000
481c28c82e9SRob Clark #define AXXX_CP_STAT_VS_EVENT_FIFO_BUSY__SHIFT 30
AXXX_CP_STAT_VS_EVENT_FIFO_BUSY(uint32_t val)482c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_VS_EVENT_FIFO_BUSY(uint32_t val)
483c28c82e9SRob Clark {
484c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_VS_EVENT_FIFO_BUSY__SHIFT) & AXXX_CP_STAT_VS_EVENT_FIFO_BUSY__MASK;
485c28c82e9SRob Clark }
486c28c82e9SRob Clark #define AXXX_CP_STAT_PS_EVENT_FIFO_BUSY__MASK 0x20000000
487c28c82e9SRob Clark #define AXXX_CP_STAT_PS_EVENT_FIFO_BUSY__SHIFT 29
AXXX_CP_STAT_PS_EVENT_FIFO_BUSY(uint32_t val)488c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_PS_EVENT_FIFO_BUSY(uint32_t val)
489c28c82e9SRob Clark {
490c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_PS_EVENT_FIFO_BUSY__SHIFT) & AXXX_CP_STAT_PS_EVENT_FIFO_BUSY__MASK;
491c28c82e9SRob Clark }
492c28c82e9SRob Clark #define AXXX_CP_STAT_CF_EVENT_FIFO_BUSY__MASK 0x10000000
493c28c82e9SRob Clark #define AXXX_CP_STAT_CF_EVENT_FIFO_BUSY__SHIFT 28
AXXX_CP_STAT_CF_EVENT_FIFO_BUSY(uint32_t val)494c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_CF_EVENT_FIFO_BUSY(uint32_t val)
495c28c82e9SRob Clark {
496c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_CF_EVENT_FIFO_BUSY__SHIFT) & AXXX_CP_STAT_CF_EVENT_FIFO_BUSY__MASK;
497c28c82e9SRob Clark }
498c28c82e9SRob Clark #define AXXX_CP_STAT_RB_EVENT_FIFO_BUSY__MASK 0x08000000
499c28c82e9SRob Clark #define AXXX_CP_STAT_RB_EVENT_FIFO_BUSY__SHIFT 27
AXXX_CP_STAT_RB_EVENT_FIFO_BUSY(uint32_t val)500c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_RB_EVENT_FIFO_BUSY(uint32_t val)
501c28c82e9SRob Clark {
502c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_RB_EVENT_FIFO_BUSY__SHIFT) & AXXX_CP_STAT_RB_EVENT_FIFO_BUSY__MASK;
503c28c82e9SRob Clark }
504c28c82e9SRob Clark #define AXXX_CP_STAT_ME_BUSY__MASK 0x04000000
505c28c82e9SRob Clark #define AXXX_CP_STAT_ME_BUSY__SHIFT 26
AXXX_CP_STAT_ME_BUSY(uint32_t val)506c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_ME_BUSY(uint32_t val)
507c28c82e9SRob Clark {
508c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_ME_BUSY__SHIFT) & AXXX_CP_STAT_ME_BUSY__MASK;
509c28c82e9SRob Clark }
510c28c82e9SRob Clark #define AXXX_CP_STAT_MIU_WR_C_BUSY__MASK 0x02000000
511c28c82e9SRob Clark #define AXXX_CP_STAT_MIU_WR_C_BUSY__SHIFT 25
AXXX_CP_STAT_MIU_WR_C_BUSY(uint32_t val)512c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_MIU_WR_C_BUSY(uint32_t val)
513c28c82e9SRob Clark {
514c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_MIU_WR_C_BUSY__SHIFT) & AXXX_CP_STAT_MIU_WR_C_BUSY__MASK;
515c28c82e9SRob Clark }
516c28c82e9SRob Clark #define AXXX_CP_STAT_CP_3D_BUSY__MASK 0x00800000
517c28c82e9SRob Clark #define AXXX_CP_STAT_CP_3D_BUSY__SHIFT 23
AXXX_CP_STAT_CP_3D_BUSY(uint32_t val)518c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_CP_3D_BUSY(uint32_t val)
519c28c82e9SRob Clark {
520c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_CP_3D_BUSY__SHIFT) & AXXX_CP_STAT_CP_3D_BUSY__MASK;
521c28c82e9SRob Clark }
522c28c82e9SRob Clark #define AXXX_CP_STAT_CP_NRT_BUSY__MASK 0x00400000
523c28c82e9SRob Clark #define AXXX_CP_STAT_CP_NRT_BUSY__SHIFT 22
AXXX_CP_STAT_CP_NRT_BUSY(uint32_t val)524c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_CP_NRT_BUSY(uint32_t val)
525c28c82e9SRob Clark {
526c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_CP_NRT_BUSY__SHIFT) & AXXX_CP_STAT_CP_NRT_BUSY__MASK;
527c28c82e9SRob Clark }
528c28c82e9SRob Clark #define AXXX_CP_STAT_RBIU_SCRATCH_BUSY__MASK 0x00200000
529c28c82e9SRob Clark #define AXXX_CP_STAT_RBIU_SCRATCH_BUSY__SHIFT 21
AXXX_CP_STAT_RBIU_SCRATCH_BUSY(uint32_t val)530c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_RBIU_SCRATCH_BUSY(uint32_t val)
531c28c82e9SRob Clark {
532c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_RBIU_SCRATCH_BUSY__SHIFT) & AXXX_CP_STAT_RBIU_SCRATCH_BUSY__MASK;
533c28c82e9SRob Clark }
534c28c82e9SRob Clark #define AXXX_CP_STAT_RCIU_ME_BUSY__MASK 0x00100000
535c28c82e9SRob Clark #define AXXX_CP_STAT_RCIU_ME_BUSY__SHIFT 20
AXXX_CP_STAT_RCIU_ME_BUSY(uint32_t val)536c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_RCIU_ME_BUSY(uint32_t val)
537c28c82e9SRob Clark {
538c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_RCIU_ME_BUSY__SHIFT) & AXXX_CP_STAT_RCIU_ME_BUSY__MASK;
539c28c82e9SRob Clark }
540c28c82e9SRob Clark #define AXXX_CP_STAT_RCIU_PFP_BUSY__MASK 0x00080000
541c28c82e9SRob Clark #define AXXX_CP_STAT_RCIU_PFP_BUSY__SHIFT 19
AXXX_CP_STAT_RCIU_PFP_BUSY(uint32_t val)542c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_RCIU_PFP_BUSY(uint32_t val)
543c28c82e9SRob Clark {
544c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_RCIU_PFP_BUSY__SHIFT) & AXXX_CP_STAT_RCIU_PFP_BUSY__MASK;
545c28c82e9SRob Clark }
546c28c82e9SRob Clark #define AXXX_CP_STAT_MEQ_RING_BUSY__MASK 0x00040000
547c28c82e9SRob Clark #define AXXX_CP_STAT_MEQ_RING_BUSY__SHIFT 18
AXXX_CP_STAT_MEQ_RING_BUSY(uint32_t val)548c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_MEQ_RING_BUSY(uint32_t val)
549c28c82e9SRob Clark {
550c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_MEQ_RING_BUSY__SHIFT) & AXXX_CP_STAT_MEQ_RING_BUSY__MASK;
551c28c82e9SRob Clark }
552c28c82e9SRob Clark #define AXXX_CP_STAT_PFP_BUSY__MASK 0x00020000
553c28c82e9SRob Clark #define AXXX_CP_STAT_PFP_BUSY__SHIFT 17
AXXX_CP_STAT_PFP_BUSY(uint32_t val)554c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_PFP_BUSY(uint32_t val)
555c28c82e9SRob Clark {
556c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_PFP_BUSY__SHIFT) & AXXX_CP_STAT_PFP_BUSY__MASK;
557c28c82e9SRob Clark }
558c28c82e9SRob Clark #define AXXX_CP_STAT_ST_QUEUE_BUSY__MASK 0x00010000
559c28c82e9SRob Clark #define AXXX_CP_STAT_ST_QUEUE_BUSY__SHIFT 16
AXXX_CP_STAT_ST_QUEUE_BUSY(uint32_t val)560c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_ST_QUEUE_BUSY(uint32_t val)
561c28c82e9SRob Clark {
562c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_ST_QUEUE_BUSY__SHIFT) & AXXX_CP_STAT_ST_QUEUE_BUSY__MASK;
563c28c82e9SRob Clark }
564c28c82e9SRob Clark #define AXXX_CP_STAT_INDIRECT2_QUEUE_BUSY__MASK 0x00002000
565c28c82e9SRob Clark #define AXXX_CP_STAT_INDIRECT2_QUEUE_BUSY__SHIFT 13
AXXX_CP_STAT_INDIRECT2_QUEUE_BUSY(uint32_t val)566c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_INDIRECT2_QUEUE_BUSY(uint32_t val)
567c28c82e9SRob Clark {
568c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_INDIRECT2_QUEUE_BUSY__SHIFT) & AXXX_CP_STAT_INDIRECT2_QUEUE_BUSY__MASK;
569c28c82e9SRob Clark }
570c28c82e9SRob Clark #define AXXX_CP_STAT_INDIRECTS_QUEUE_BUSY__MASK 0x00001000
571c28c82e9SRob Clark #define AXXX_CP_STAT_INDIRECTS_QUEUE_BUSY__SHIFT 12
AXXX_CP_STAT_INDIRECTS_QUEUE_BUSY(uint32_t val)572c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_INDIRECTS_QUEUE_BUSY(uint32_t val)
573c28c82e9SRob Clark {
574c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_INDIRECTS_QUEUE_BUSY__SHIFT) & AXXX_CP_STAT_INDIRECTS_QUEUE_BUSY__MASK;
575c28c82e9SRob Clark }
576c28c82e9SRob Clark #define AXXX_CP_STAT_RING_QUEUE_BUSY__MASK 0x00000800
577c28c82e9SRob Clark #define AXXX_CP_STAT_RING_QUEUE_BUSY__SHIFT 11
AXXX_CP_STAT_RING_QUEUE_BUSY(uint32_t val)578c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_RING_QUEUE_BUSY(uint32_t val)
579c28c82e9SRob Clark {
580c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_RING_QUEUE_BUSY__SHIFT) & AXXX_CP_STAT_RING_QUEUE_BUSY__MASK;
581c28c82e9SRob Clark }
582c28c82e9SRob Clark #define AXXX_CP_STAT_CSF_BUSY__MASK 0x00000400
583c28c82e9SRob Clark #define AXXX_CP_STAT_CSF_BUSY__SHIFT 10
AXXX_CP_STAT_CSF_BUSY(uint32_t val)584c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_CSF_BUSY(uint32_t val)
585c28c82e9SRob Clark {
586c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_CSF_BUSY__SHIFT) & AXXX_CP_STAT_CSF_BUSY__MASK;
587c28c82e9SRob Clark }
588c28c82e9SRob Clark #define AXXX_CP_STAT_CSF_ST_BUSY__MASK 0x00000200
589c28c82e9SRob Clark #define AXXX_CP_STAT_CSF_ST_BUSY__SHIFT 9
AXXX_CP_STAT_CSF_ST_BUSY(uint32_t val)590c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_CSF_ST_BUSY(uint32_t val)
591c28c82e9SRob Clark {
592c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_CSF_ST_BUSY__SHIFT) & AXXX_CP_STAT_CSF_ST_BUSY__MASK;
593c28c82e9SRob Clark }
594c28c82e9SRob Clark #define AXXX_CP_STAT_EVENT_BUSY__MASK 0x00000100
595c28c82e9SRob Clark #define AXXX_CP_STAT_EVENT_BUSY__SHIFT 8
AXXX_CP_STAT_EVENT_BUSY(uint32_t val)596c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_EVENT_BUSY(uint32_t val)
597c28c82e9SRob Clark {
598c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_EVENT_BUSY__SHIFT) & AXXX_CP_STAT_EVENT_BUSY__MASK;
599c28c82e9SRob Clark }
600c28c82e9SRob Clark #define AXXX_CP_STAT_CSF_INDIRECT2_BUSY__MASK 0x00000080
601c28c82e9SRob Clark #define AXXX_CP_STAT_CSF_INDIRECT2_BUSY__SHIFT 7
AXXX_CP_STAT_CSF_INDIRECT2_BUSY(uint32_t val)602c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_CSF_INDIRECT2_BUSY(uint32_t val)
603c28c82e9SRob Clark {
604c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_CSF_INDIRECT2_BUSY__SHIFT) & AXXX_CP_STAT_CSF_INDIRECT2_BUSY__MASK;
605c28c82e9SRob Clark }
606c28c82e9SRob Clark #define AXXX_CP_STAT_CSF_INDIRECTS_BUSY__MASK 0x00000040
607c28c82e9SRob Clark #define AXXX_CP_STAT_CSF_INDIRECTS_BUSY__SHIFT 6
AXXX_CP_STAT_CSF_INDIRECTS_BUSY(uint32_t val)608c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_CSF_INDIRECTS_BUSY(uint32_t val)
609c28c82e9SRob Clark {
610c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_CSF_INDIRECTS_BUSY__SHIFT) & AXXX_CP_STAT_CSF_INDIRECTS_BUSY__MASK;
611c28c82e9SRob Clark }
612c28c82e9SRob Clark #define AXXX_CP_STAT_CSF_RING_BUSY__MASK 0x00000020
613c28c82e9SRob Clark #define AXXX_CP_STAT_CSF_RING_BUSY__SHIFT 5
AXXX_CP_STAT_CSF_RING_BUSY(uint32_t val)614c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_CSF_RING_BUSY(uint32_t val)
615c28c82e9SRob Clark {
616c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_CSF_RING_BUSY__SHIFT) & AXXX_CP_STAT_CSF_RING_BUSY__MASK;
617c28c82e9SRob Clark }
618c28c82e9SRob Clark #define AXXX_CP_STAT_RCIU_BUSY__MASK 0x00000010
619c28c82e9SRob Clark #define AXXX_CP_STAT_RCIU_BUSY__SHIFT 4
AXXX_CP_STAT_RCIU_BUSY(uint32_t val)620c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_RCIU_BUSY(uint32_t val)
621c28c82e9SRob Clark {
622c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_RCIU_BUSY__SHIFT) & AXXX_CP_STAT_RCIU_BUSY__MASK;
623c28c82e9SRob Clark }
624c28c82e9SRob Clark #define AXXX_CP_STAT_RBIU_BUSY__MASK 0x00000008
625c28c82e9SRob Clark #define AXXX_CP_STAT_RBIU_BUSY__SHIFT 3
AXXX_CP_STAT_RBIU_BUSY(uint32_t val)626c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_RBIU_BUSY(uint32_t val)
627c28c82e9SRob Clark {
628c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_RBIU_BUSY__SHIFT) & AXXX_CP_STAT_RBIU_BUSY__MASK;
629c28c82e9SRob Clark }
630c28c82e9SRob Clark #define AXXX_CP_STAT_MIU_RD_RETURN_BUSY__MASK 0x00000004
631c28c82e9SRob Clark #define AXXX_CP_STAT_MIU_RD_RETURN_BUSY__SHIFT 2
AXXX_CP_STAT_MIU_RD_RETURN_BUSY(uint32_t val)632c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_MIU_RD_RETURN_BUSY(uint32_t val)
633c28c82e9SRob Clark {
634c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_MIU_RD_RETURN_BUSY__SHIFT) & AXXX_CP_STAT_MIU_RD_RETURN_BUSY__MASK;
635c28c82e9SRob Clark }
636c28c82e9SRob Clark #define AXXX_CP_STAT_MIU_RD_REQ_BUSY__MASK 0x00000002
637c28c82e9SRob Clark #define AXXX_CP_STAT_MIU_RD_REQ_BUSY__SHIFT 1
AXXX_CP_STAT_MIU_RD_REQ_BUSY(uint32_t val)638c28c82e9SRob Clark static inline uint32_t AXXX_CP_STAT_MIU_RD_REQ_BUSY(uint32_t val)
639c28c82e9SRob Clark {
640c28c82e9SRob Clark return ((val) << AXXX_CP_STAT_MIU_RD_REQ_BUSY__SHIFT) & AXXX_CP_STAT_MIU_RD_REQ_BUSY__MASK;
641c28c82e9SRob Clark }
64252260ae4SRob Clark #define AXXX_CP_STAT_MIU_WR_BUSY 0x00000001
643facb4f4eSRob Clark
644902e6eb8SRob Clark #define REG_AXXX_CP_SCRATCH_REG0 0x00000578
645902e6eb8SRob Clark
646902e6eb8SRob Clark #define REG_AXXX_CP_SCRATCH_REG1 0x00000579
647902e6eb8SRob Clark
648902e6eb8SRob Clark #define REG_AXXX_CP_SCRATCH_REG2 0x0000057a
649902e6eb8SRob Clark
650902e6eb8SRob Clark #define REG_AXXX_CP_SCRATCH_REG3 0x0000057b
651902e6eb8SRob Clark
652902e6eb8SRob Clark #define REG_AXXX_CP_SCRATCH_REG4 0x0000057c
653902e6eb8SRob Clark
654902e6eb8SRob Clark #define REG_AXXX_CP_SCRATCH_REG5 0x0000057d
655902e6eb8SRob Clark
656902e6eb8SRob Clark #define REG_AXXX_CP_SCRATCH_REG6 0x0000057e
657902e6eb8SRob Clark
658902e6eb8SRob Clark #define REG_AXXX_CP_SCRATCH_REG7 0x0000057f
659902e6eb8SRob Clark
660facb4f4eSRob Clark #define REG_AXXX_CP_ME_VS_EVENT_SRC 0x00000600
661facb4f4eSRob Clark
662facb4f4eSRob Clark #define REG_AXXX_CP_ME_VS_EVENT_ADDR 0x00000601
663facb4f4eSRob Clark
664facb4f4eSRob Clark #define REG_AXXX_CP_ME_VS_EVENT_DATA 0x00000602
665facb4f4eSRob Clark
666facb4f4eSRob Clark #define REG_AXXX_CP_ME_VS_EVENT_ADDR_SWM 0x00000603
667facb4f4eSRob Clark
668facb4f4eSRob Clark #define REG_AXXX_CP_ME_VS_EVENT_DATA_SWM 0x00000604
669facb4f4eSRob Clark
670facb4f4eSRob Clark #define REG_AXXX_CP_ME_PS_EVENT_SRC 0x00000605
671facb4f4eSRob Clark
672facb4f4eSRob Clark #define REG_AXXX_CP_ME_PS_EVENT_ADDR 0x00000606
673facb4f4eSRob Clark
674facb4f4eSRob Clark #define REG_AXXX_CP_ME_PS_EVENT_DATA 0x00000607
675facb4f4eSRob Clark
676facb4f4eSRob Clark #define REG_AXXX_CP_ME_PS_EVENT_ADDR_SWM 0x00000608
677facb4f4eSRob Clark
678facb4f4eSRob Clark #define REG_AXXX_CP_ME_PS_EVENT_DATA_SWM 0x00000609
679facb4f4eSRob Clark
680902e6eb8SRob Clark #define REG_AXXX_CP_ME_CF_EVENT_SRC 0x0000060a
681902e6eb8SRob Clark
682902e6eb8SRob Clark #define REG_AXXX_CP_ME_CF_EVENT_ADDR 0x0000060b
683902e6eb8SRob Clark
684902e6eb8SRob Clark #define REG_AXXX_CP_ME_CF_EVENT_DATA 0x0000060c
685902e6eb8SRob Clark
686902e6eb8SRob Clark #define REG_AXXX_CP_ME_NRT_ADDR 0x0000060d
687902e6eb8SRob Clark
688902e6eb8SRob Clark #define REG_AXXX_CP_ME_NRT_DATA 0x0000060e
689902e6eb8SRob Clark
690facb4f4eSRob Clark #define REG_AXXX_CP_ME_VS_FETCH_DONE_SRC 0x00000612
691facb4f4eSRob Clark
692facb4f4eSRob Clark #define REG_AXXX_CP_ME_VS_FETCH_DONE_ADDR 0x00000613
693facb4f4eSRob Clark
694facb4f4eSRob Clark #define REG_AXXX_CP_ME_VS_FETCH_DONE_DATA 0x00000614
695facb4f4eSRob Clark
696902e6eb8SRob Clark
697902e6eb8SRob Clark #endif /* ADRENO_COMMON_XML */
698