18c2ecf20Sopenharmony_ci#ifndef ADRENO_COMMON_XML
28c2ecf20Sopenharmony_ci#define ADRENO_COMMON_XML
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ci/* Autogenerated file, DO NOT EDIT manually!
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ciThis file was generated by the rules-ng-ng headergen tool in this git repository:
78c2ecf20Sopenharmony_cihttp://github.com/freedreno/envytools/
88c2ecf20Sopenharmony_cigit clone https://github.com/freedreno/envytools.git
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciThe rules-ng-ng source files this header was generated from are:
118c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno.xml                     (    594 bytes, from 2020-07-23 21:58:14)
128c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/freedreno_copyright.xml        (   1572 bytes, from 2020-07-23 21:58:14)
138c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/a2xx.xml                (  90159 bytes, from 2020-07-23 21:58:14)
148c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/adreno_common.xml       (  14386 bytes, from 2020-07-23 21:58:14)
158c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/adreno_pm4.xml          (  65048 bytes, from 2020-07-23 21:58:14)
168c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/a3xx.xml                (  84226 bytes, from 2020-07-23 21:58:14)
178c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/a4xx.xml                ( 112556 bytes, from 2020-07-23 21:58:14)
188c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/a5xx.xml                ( 149461 bytes, from 2020-07-23 21:58:14)
198c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/a6xx.xml                ( 184695 bytes, from 2020-07-23 21:58:14)
208c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/a6xx_gmu.xml            (  11218 bytes, from 2020-07-23 21:58:14)
218c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/ocmem.xml               (   1773 bytes, from 2020-07-23 21:58:14)
228c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/adreno_control_regs.xml (   4559 bytes, from 2020-07-23 21:58:14)
238c2ecf20Sopenharmony_ci- /home/robclark/src/envytools/rnndb/adreno/adreno_pipe_regs.xml    (   2872 bytes, from 2020-07-23 21:58:14)
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciCopyright (C) 2013-2020 by the following authors:
268c2ecf20Sopenharmony_ci- Rob Clark <robdclark@gmail.com> (robclark)
278c2ecf20Sopenharmony_ci- Ilia Mirkin <imirkin@alum.mit.edu> (imirkin)
288c2ecf20Sopenharmony_ci
298c2ecf20Sopenharmony_ciPermission is hereby granted, free of charge, to any person obtaining
308c2ecf20Sopenharmony_cia copy of this software and associated documentation files (the
318c2ecf20Sopenharmony_ci"Software"), to deal in the Software without restriction, including
328c2ecf20Sopenharmony_ciwithout limitation the rights to use, copy, modify, merge, publish,
338c2ecf20Sopenharmony_cidistribute, sublicense, and/or sell copies of the Software, and to
348c2ecf20Sopenharmony_cipermit persons to whom the Software is furnished to do so, subject to
358c2ecf20Sopenharmony_cithe following conditions:
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ciThe above copyright notice and this permission notice (including the
388c2ecf20Sopenharmony_cinext paragraph) shall be included in all copies or substantial
398c2ecf20Sopenharmony_ciportions of the Software.
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ciTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
428c2ecf20Sopenharmony_ciEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
438c2ecf20Sopenharmony_ciMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
448c2ecf20Sopenharmony_ciIN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
458c2ecf20Sopenharmony_ciLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
468c2ecf20Sopenharmony_ciOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
478c2ecf20Sopenharmony_ciWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
488c2ecf20Sopenharmony_ci*/
498c2ecf20Sopenharmony_ci
508c2ecf20Sopenharmony_ci
518c2ecf20Sopenharmony_cienum chip {
528c2ecf20Sopenharmony_ci	A2XX = 0,
538c2ecf20Sopenharmony_ci	A3XX = 0,
548c2ecf20Sopenharmony_ci	A4XX = 0,
558c2ecf20Sopenharmony_ci	A5XX = 0,
568c2ecf20Sopenharmony_ci	A6XX = 0,
578c2ecf20Sopenharmony_ci};
588c2ecf20Sopenharmony_ci
598c2ecf20Sopenharmony_cienum adreno_pa_su_sc_draw {
608c2ecf20Sopenharmony_ci	PC_DRAW_POINTS = 0,
618c2ecf20Sopenharmony_ci	PC_DRAW_LINES = 1,
628c2ecf20Sopenharmony_ci	PC_DRAW_TRIANGLES = 2,
638c2ecf20Sopenharmony_ci};
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_cienum adreno_compare_func {
668c2ecf20Sopenharmony_ci	FUNC_NEVER = 0,
678c2ecf20Sopenharmony_ci	FUNC_LESS = 1,
688c2ecf20Sopenharmony_ci	FUNC_EQUAL = 2,
698c2ecf20Sopenharmony_ci	FUNC_LEQUAL = 3,
708c2ecf20Sopenharmony_ci	FUNC_GREATER = 4,
718c2ecf20Sopenharmony_ci	FUNC_NOTEQUAL = 5,
728c2ecf20Sopenharmony_ci	FUNC_GEQUAL = 6,
738c2ecf20Sopenharmony_ci	FUNC_ALWAYS = 7,
748c2ecf20Sopenharmony_ci};
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_cienum adreno_stencil_op {
778c2ecf20Sopenharmony_ci	STENCIL_KEEP = 0,
788c2ecf20Sopenharmony_ci	STENCIL_ZERO = 1,
798c2ecf20Sopenharmony_ci	STENCIL_REPLACE = 2,
808c2ecf20Sopenharmony_ci	STENCIL_INCR_CLAMP = 3,
818c2ecf20Sopenharmony_ci	STENCIL_DECR_CLAMP = 4,
828c2ecf20Sopenharmony_ci	STENCIL_INVERT = 5,
838c2ecf20Sopenharmony_ci	STENCIL_INCR_WRAP = 6,
848c2ecf20Sopenharmony_ci	STENCIL_DECR_WRAP = 7,
858c2ecf20Sopenharmony_ci};
868c2ecf20Sopenharmony_ci
878c2ecf20Sopenharmony_cienum adreno_rb_blend_factor {
888c2ecf20Sopenharmony_ci	FACTOR_ZERO = 0,
898c2ecf20Sopenharmony_ci	FACTOR_ONE = 1,
908c2ecf20Sopenharmony_ci	FACTOR_SRC_COLOR = 4,
918c2ecf20Sopenharmony_ci	FACTOR_ONE_MINUS_SRC_COLOR = 5,
928c2ecf20Sopenharmony_ci	FACTOR_SRC_ALPHA = 6,
938c2ecf20Sopenharmony_ci	FACTOR_ONE_MINUS_SRC_ALPHA = 7,
948c2ecf20Sopenharmony_ci	FACTOR_DST_COLOR = 8,
958c2ecf20Sopenharmony_ci	FACTOR_ONE_MINUS_DST_COLOR = 9,
968c2ecf20Sopenharmony_ci	FACTOR_DST_ALPHA = 10,
978c2ecf20Sopenharmony_ci	FACTOR_ONE_MINUS_DST_ALPHA = 11,
988c2ecf20Sopenharmony_ci	FACTOR_CONSTANT_COLOR = 12,
998c2ecf20Sopenharmony_ci	FACTOR_ONE_MINUS_CONSTANT_COLOR = 13,
1008c2ecf20Sopenharmony_ci	FACTOR_CONSTANT_ALPHA = 14,
1018c2ecf20Sopenharmony_ci	FACTOR_ONE_MINUS_CONSTANT_ALPHA = 15,
1028c2ecf20Sopenharmony_ci	FACTOR_SRC_ALPHA_SATURATE = 16,
1038c2ecf20Sopenharmony_ci	FACTOR_SRC1_COLOR = 20,
1048c2ecf20Sopenharmony_ci	FACTOR_ONE_MINUS_SRC1_COLOR = 21,
1058c2ecf20Sopenharmony_ci	FACTOR_SRC1_ALPHA = 22,
1068c2ecf20Sopenharmony_ci	FACTOR_ONE_MINUS_SRC1_ALPHA = 23,
1078c2ecf20Sopenharmony_ci};
1088c2ecf20Sopenharmony_ci
1098c2ecf20Sopenharmony_cienum adreno_rb_surface_endian {
1108c2ecf20Sopenharmony_ci	ENDIAN_NONE = 0,
1118c2ecf20Sopenharmony_ci	ENDIAN_8IN16 = 1,
1128c2ecf20Sopenharmony_ci	ENDIAN_8IN32 = 2,
1138c2ecf20Sopenharmony_ci	ENDIAN_16IN32 = 3,
1148c2ecf20Sopenharmony_ci	ENDIAN_8IN64 = 4,
1158c2ecf20Sopenharmony_ci	ENDIAN_8IN128 = 5,
1168c2ecf20Sopenharmony_ci};
1178c2ecf20Sopenharmony_ci
1188c2ecf20Sopenharmony_cienum adreno_rb_dither_mode {
1198c2ecf20Sopenharmony_ci	DITHER_DISABLE = 0,
1208c2ecf20Sopenharmony_ci	DITHER_ALWAYS = 1,
1218c2ecf20Sopenharmony_ci	DITHER_IF_ALPHA_OFF = 2,
1228c2ecf20Sopenharmony_ci};
1238c2ecf20Sopenharmony_ci
1248c2ecf20Sopenharmony_cienum adreno_rb_depth_format {
1258c2ecf20Sopenharmony_ci	DEPTHX_16 = 0,
1268c2ecf20Sopenharmony_ci	DEPTHX_24_8 = 1,
1278c2ecf20Sopenharmony_ci	DEPTHX_32 = 2,
1288c2ecf20Sopenharmony_ci};
1298c2ecf20Sopenharmony_ci
1308c2ecf20Sopenharmony_cienum adreno_rb_copy_control_mode {
1318c2ecf20Sopenharmony_ci	RB_COPY_RESOLVE = 1,
1328c2ecf20Sopenharmony_ci	RB_COPY_CLEAR = 2,
1338c2ecf20Sopenharmony_ci	RB_COPY_DEPTH_STENCIL = 5,
1348c2ecf20Sopenharmony_ci};
1358c2ecf20Sopenharmony_ci
1368c2ecf20Sopenharmony_cienum a3xx_rop_code {
1378c2ecf20Sopenharmony_ci	ROP_CLEAR = 0,
1388c2ecf20Sopenharmony_ci	ROP_NOR = 1,
1398c2ecf20Sopenharmony_ci	ROP_AND_INVERTED = 2,
1408c2ecf20Sopenharmony_ci	ROP_COPY_INVERTED = 3,
1418c2ecf20Sopenharmony_ci	ROP_AND_REVERSE = 4,
1428c2ecf20Sopenharmony_ci	ROP_INVERT = 5,
1438c2ecf20Sopenharmony_ci	ROP_NAND = 7,
1448c2ecf20Sopenharmony_ci	ROP_AND = 8,
1458c2ecf20Sopenharmony_ci	ROP_EQUIV = 9,
1468c2ecf20Sopenharmony_ci	ROP_NOOP = 10,
1478c2ecf20Sopenharmony_ci	ROP_OR_INVERTED = 11,
1488c2ecf20Sopenharmony_ci	ROP_OR_REVERSE = 13,
1498c2ecf20Sopenharmony_ci	ROP_OR = 14,
1508c2ecf20Sopenharmony_ci	ROP_SET = 15,
1518c2ecf20Sopenharmony_ci};
1528c2ecf20Sopenharmony_ci
1538c2ecf20Sopenharmony_cienum a3xx_render_mode {
1548c2ecf20Sopenharmony_ci	RB_RENDERING_PASS = 0,
1558c2ecf20Sopenharmony_ci	RB_TILING_PASS = 1,
1568c2ecf20Sopenharmony_ci	RB_RESOLVE_PASS = 2,
1578c2ecf20Sopenharmony_ci	RB_COMPUTE_PASS = 3,
1588c2ecf20Sopenharmony_ci};
1598c2ecf20Sopenharmony_ci
1608c2ecf20Sopenharmony_cienum a3xx_msaa_samples {
1618c2ecf20Sopenharmony_ci	MSAA_ONE = 0,
1628c2ecf20Sopenharmony_ci	MSAA_TWO = 1,
1638c2ecf20Sopenharmony_ci	MSAA_FOUR = 2,
1648c2ecf20Sopenharmony_ci	MSAA_EIGHT = 3,
1658c2ecf20Sopenharmony_ci};
1668c2ecf20Sopenharmony_ci
1678c2ecf20Sopenharmony_cienum a3xx_threadmode {
1688c2ecf20Sopenharmony_ci	MULTI = 0,
1698c2ecf20Sopenharmony_ci	SINGLE = 1,
1708c2ecf20Sopenharmony_ci};
1718c2ecf20Sopenharmony_ci
1728c2ecf20Sopenharmony_cienum a3xx_instrbuffermode {
1738c2ecf20Sopenharmony_ci	CACHE = 0,
1748c2ecf20Sopenharmony_ci	BUFFER = 1,
1758c2ecf20Sopenharmony_ci};
1768c2ecf20Sopenharmony_ci
1778c2ecf20Sopenharmony_cienum a3xx_threadsize {
1788c2ecf20Sopenharmony_ci	TWO_QUADS = 0,
1798c2ecf20Sopenharmony_ci	FOUR_QUADS = 1,
1808c2ecf20Sopenharmony_ci};
1818c2ecf20Sopenharmony_ci
1828c2ecf20Sopenharmony_cienum a3xx_color_swap {
1838c2ecf20Sopenharmony_ci	WZYX = 0,
1848c2ecf20Sopenharmony_ci	WXYZ = 1,
1858c2ecf20Sopenharmony_ci	ZYXW = 2,
1868c2ecf20Sopenharmony_ci	XYZW = 3,
1878c2ecf20Sopenharmony_ci};
1888c2ecf20Sopenharmony_ci
1898c2ecf20Sopenharmony_cienum a3xx_rb_blend_opcode {
1908c2ecf20Sopenharmony_ci	BLEND_DST_PLUS_SRC = 0,
1918c2ecf20Sopenharmony_ci	BLEND_SRC_MINUS_DST = 1,
1928c2ecf20Sopenharmony_ci	BLEND_DST_MINUS_SRC = 2,
1938c2ecf20Sopenharmony_ci	BLEND_MIN_DST_SRC = 3,
1948c2ecf20Sopenharmony_ci	BLEND_MAX_DST_SRC = 4,
1958c2ecf20Sopenharmony_ci};
1968c2ecf20Sopenharmony_ci
1978c2ecf20Sopenharmony_cienum a4xx_tess_spacing {
1988c2ecf20Sopenharmony_ci	EQUAL_SPACING = 0,
1998c2ecf20Sopenharmony_ci	ODD_SPACING = 2,
2008c2ecf20Sopenharmony_ci	EVEN_SPACING = 3,
2018c2ecf20Sopenharmony_ci};
2028c2ecf20Sopenharmony_ci
2038c2ecf20Sopenharmony_cienum a5xx_address_mode {
2048c2ecf20Sopenharmony_ci	ADDR_32B = 0,
2058c2ecf20Sopenharmony_ci	ADDR_64B = 1,
2068c2ecf20Sopenharmony_ci};
2078c2ecf20Sopenharmony_ci
2088c2ecf20Sopenharmony_ci#define REG_AXXX_CP_RB_BASE					0x000001c0
2098c2ecf20Sopenharmony_ci
2108c2ecf20Sopenharmony_ci#define REG_AXXX_CP_RB_CNTL					0x000001c1
2118c2ecf20Sopenharmony_ci#define AXXX_CP_RB_CNTL_BUFSZ__MASK				0x0000003f
2128c2ecf20Sopenharmony_ci#define AXXX_CP_RB_CNTL_BUFSZ__SHIFT				0
2138c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_RB_CNTL_BUFSZ(uint32_t val)
2148c2ecf20Sopenharmony_ci{
2158c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_RB_CNTL_BUFSZ__SHIFT) & AXXX_CP_RB_CNTL_BUFSZ__MASK;
2168c2ecf20Sopenharmony_ci}
2178c2ecf20Sopenharmony_ci#define AXXX_CP_RB_CNTL_BLKSZ__MASK				0x00003f00
2188c2ecf20Sopenharmony_ci#define AXXX_CP_RB_CNTL_BLKSZ__SHIFT				8
2198c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_RB_CNTL_BLKSZ(uint32_t val)
2208c2ecf20Sopenharmony_ci{
2218c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_RB_CNTL_BLKSZ__SHIFT) & AXXX_CP_RB_CNTL_BLKSZ__MASK;
2228c2ecf20Sopenharmony_ci}
2238c2ecf20Sopenharmony_ci#define AXXX_CP_RB_CNTL_BUF_SWAP__MASK				0x00030000
2248c2ecf20Sopenharmony_ci#define AXXX_CP_RB_CNTL_BUF_SWAP__SHIFT				16
2258c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_RB_CNTL_BUF_SWAP(uint32_t val)
2268c2ecf20Sopenharmony_ci{
2278c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_RB_CNTL_BUF_SWAP__SHIFT) & AXXX_CP_RB_CNTL_BUF_SWAP__MASK;
2288c2ecf20Sopenharmony_ci}
2298c2ecf20Sopenharmony_ci#define AXXX_CP_RB_CNTL_POLL_EN					0x00100000
2308c2ecf20Sopenharmony_ci#define AXXX_CP_RB_CNTL_NO_UPDATE				0x08000000
2318c2ecf20Sopenharmony_ci#define AXXX_CP_RB_CNTL_RPTR_WR_EN				0x80000000
2328c2ecf20Sopenharmony_ci
2338c2ecf20Sopenharmony_ci#define REG_AXXX_CP_RB_RPTR_ADDR				0x000001c3
2348c2ecf20Sopenharmony_ci#define AXXX_CP_RB_RPTR_ADDR_SWAP__MASK				0x00000003
2358c2ecf20Sopenharmony_ci#define AXXX_CP_RB_RPTR_ADDR_SWAP__SHIFT			0
2368c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_RB_RPTR_ADDR_SWAP(uint32_t val)
2378c2ecf20Sopenharmony_ci{
2388c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_RB_RPTR_ADDR_SWAP__SHIFT) & AXXX_CP_RB_RPTR_ADDR_SWAP__MASK;
2398c2ecf20Sopenharmony_ci}
2408c2ecf20Sopenharmony_ci#define AXXX_CP_RB_RPTR_ADDR_ADDR__MASK				0xfffffffc
2418c2ecf20Sopenharmony_ci#define AXXX_CP_RB_RPTR_ADDR_ADDR__SHIFT			2
2428c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_RB_RPTR_ADDR_ADDR(uint32_t val)
2438c2ecf20Sopenharmony_ci{
2448c2ecf20Sopenharmony_ci	return ((val >> 2) << AXXX_CP_RB_RPTR_ADDR_ADDR__SHIFT) & AXXX_CP_RB_RPTR_ADDR_ADDR__MASK;
2458c2ecf20Sopenharmony_ci}
2468c2ecf20Sopenharmony_ci
2478c2ecf20Sopenharmony_ci#define REG_AXXX_CP_RB_RPTR					0x000001c4
2488c2ecf20Sopenharmony_ci
2498c2ecf20Sopenharmony_ci#define REG_AXXX_CP_RB_WPTR					0x000001c5
2508c2ecf20Sopenharmony_ci
2518c2ecf20Sopenharmony_ci#define REG_AXXX_CP_RB_WPTR_DELAY				0x000001c6
2528c2ecf20Sopenharmony_ci
2538c2ecf20Sopenharmony_ci#define REG_AXXX_CP_RB_RPTR_WR					0x000001c7
2548c2ecf20Sopenharmony_ci
2558c2ecf20Sopenharmony_ci#define REG_AXXX_CP_RB_WPTR_BASE				0x000001c8
2568c2ecf20Sopenharmony_ci
2578c2ecf20Sopenharmony_ci#define REG_AXXX_CP_QUEUE_THRESHOLDS				0x000001d5
2588c2ecf20Sopenharmony_ci#define AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB1_START__MASK		0x0000000f
2598c2ecf20Sopenharmony_ci#define AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB1_START__SHIFT		0
2608c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB1_START(uint32_t val)
2618c2ecf20Sopenharmony_ci{
2628c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB1_START__SHIFT) & AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB1_START__MASK;
2638c2ecf20Sopenharmony_ci}
2648c2ecf20Sopenharmony_ci#define AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB2_START__MASK		0x00000f00
2658c2ecf20Sopenharmony_ci#define AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB2_START__SHIFT		8
2668c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB2_START(uint32_t val)
2678c2ecf20Sopenharmony_ci{
2688c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB2_START__SHIFT) & AXXX_CP_QUEUE_THRESHOLDS_CSQ_IB2_START__MASK;
2698c2ecf20Sopenharmony_ci}
2708c2ecf20Sopenharmony_ci#define AXXX_CP_QUEUE_THRESHOLDS_CSQ_ST_START__MASK		0x000f0000
2718c2ecf20Sopenharmony_ci#define AXXX_CP_QUEUE_THRESHOLDS_CSQ_ST_START__SHIFT		16
2728c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_QUEUE_THRESHOLDS_CSQ_ST_START(uint32_t val)
2738c2ecf20Sopenharmony_ci{
2748c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_QUEUE_THRESHOLDS_CSQ_ST_START__SHIFT) & AXXX_CP_QUEUE_THRESHOLDS_CSQ_ST_START__MASK;
2758c2ecf20Sopenharmony_ci}
2768c2ecf20Sopenharmony_ci
2778c2ecf20Sopenharmony_ci#define REG_AXXX_CP_MEQ_THRESHOLDS				0x000001d6
2788c2ecf20Sopenharmony_ci#define AXXX_CP_MEQ_THRESHOLDS_MEQ_END__MASK			0x001f0000
2798c2ecf20Sopenharmony_ci#define AXXX_CP_MEQ_THRESHOLDS_MEQ_END__SHIFT			16
2808c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_MEQ_THRESHOLDS_MEQ_END(uint32_t val)
2818c2ecf20Sopenharmony_ci{
2828c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_MEQ_THRESHOLDS_MEQ_END__SHIFT) & AXXX_CP_MEQ_THRESHOLDS_MEQ_END__MASK;
2838c2ecf20Sopenharmony_ci}
2848c2ecf20Sopenharmony_ci#define AXXX_CP_MEQ_THRESHOLDS_ROQ_END__MASK			0x1f000000
2858c2ecf20Sopenharmony_ci#define AXXX_CP_MEQ_THRESHOLDS_ROQ_END__SHIFT			24
2868c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_MEQ_THRESHOLDS_ROQ_END(uint32_t val)
2878c2ecf20Sopenharmony_ci{
2888c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_MEQ_THRESHOLDS_ROQ_END__SHIFT) & AXXX_CP_MEQ_THRESHOLDS_ROQ_END__MASK;
2898c2ecf20Sopenharmony_ci}
2908c2ecf20Sopenharmony_ci
2918c2ecf20Sopenharmony_ci#define REG_AXXX_CP_CSQ_AVAIL					0x000001d7
2928c2ecf20Sopenharmony_ci#define AXXX_CP_CSQ_AVAIL_RING__MASK				0x0000007f
2938c2ecf20Sopenharmony_ci#define AXXX_CP_CSQ_AVAIL_RING__SHIFT				0
2948c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_CSQ_AVAIL_RING(uint32_t val)
2958c2ecf20Sopenharmony_ci{
2968c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_CSQ_AVAIL_RING__SHIFT) & AXXX_CP_CSQ_AVAIL_RING__MASK;
2978c2ecf20Sopenharmony_ci}
2988c2ecf20Sopenharmony_ci#define AXXX_CP_CSQ_AVAIL_IB1__MASK				0x00007f00
2998c2ecf20Sopenharmony_ci#define AXXX_CP_CSQ_AVAIL_IB1__SHIFT				8
3008c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_CSQ_AVAIL_IB1(uint32_t val)
3018c2ecf20Sopenharmony_ci{
3028c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_CSQ_AVAIL_IB1__SHIFT) & AXXX_CP_CSQ_AVAIL_IB1__MASK;
3038c2ecf20Sopenharmony_ci}
3048c2ecf20Sopenharmony_ci#define AXXX_CP_CSQ_AVAIL_IB2__MASK				0x007f0000
3058c2ecf20Sopenharmony_ci#define AXXX_CP_CSQ_AVAIL_IB2__SHIFT				16
3068c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_CSQ_AVAIL_IB2(uint32_t val)
3078c2ecf20Sopenharmony_ci{
3088c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_CSQ_AVAIL_IB2__SHIFT) & AXXX_CP_CSQ_AVAIL_IB2__MASK;
3098c2ecf20Sopenharmony_ci}
3108c2ecf20Sopenharmony_ci
3118c2ecf20Sopenharmony_ci#define REG_AXXX_CP_STQ_AVAIL					0x000001d8
3128c2ecf20Sopenharmony_ci#define AXXX_CP_STQ_AVAIL_ST__MASK				0x0000007f
3138c2ecf20Sopenharmony_ci#define AXXX_CP_STQ_AVAIL_ST__SHIFT				0
3148c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STQ_AVAIL_ST(uint32_t val)
3158c2ecf20Sopenharmony_ci{
3168c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STQ_AVAIL_ST__SHIFT) & AXXX_CP_STQ_AVAIL_ST__MASK;
3178c2ecf20Sopenharmony_ci}
3188c2ecf20Sopenharmony_ci
3198c2ecf20Sopenharmony_ci#define REG_AXXX_CP_MEQ_AVAIL					0x000001d9
3208c2ecf20Sopenharmony_ci#define AXXX_CP_MEQ_AVAIL_MEQ__MASK				0x0000001f
3218c2ecf20Sopenharmony_ci#define AXXX_CP_MEQ_AVAIL_MEQ__SHIFT				0
3228c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_MEQ_AVAIL_MEQ(uint32_t val)
3238c2ecf20Sopenharmony_ci{
3248c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_MEQ_AVAIL_MEQ__SHIFT) & AXXX_CP_MEQ_AVAIL_MEQ__MASK;
3258c2ecf20Sopenharmony_ci}
3268c2ecf20Sopenharmony_ci
3278c2ecf20Sopenharmony_ci#define REG_AXXX_SCRATCH_UMSK					0x000001dc
3288c2ecf20Sopenharmony_ci#define AXXX_SCRATCH_UMSK_UMSK__MASK				0x000000ff
3298c2ecf20Sopenharmony_ci#define AXXX_SCRATCH_UMSK_UMSK__SHIFT				0
3308c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_SCRATCH_UMSK_UMSK(uint32_t val)
3318c2ecf20Sopenharmony_ci{
3328c2ecf20Sopenharmony_ci	return ((val) << AXXX_SCRATCH_UMSK_UMSK__SHIFT) & AXXX_SCRATCH_UMSK_UMSK__MASK;
3338c2ecf20Sopenharmony_ci}
3348c2ecf20Sopenharmony_ci#define AXXX_SCRATCH_UMSK_SWAP__MASK				0x00030000
3358c2ecf20Sopenharmony_ci#define AXXX_SCRATCH_UMSK_SWAP__SHIFT				16
3368c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_SCRATCH_UMSK_SWAP(uint32_t val)
3378c2ecf20Sopenharmony_ci{
3388c2ecf20Sopenharmony_ci	return ((val) << AXXX_SCRATCH_UMSK_SWAP__SHIFT) & AXXX_SCRATCH_UMSK_SWAP__MASK;
3398c2ecf20Sopenharmony_ci}
3408c2ecf20Sopenharmony_ci
3418c2ecf20Sopenharmony_ci#define REG_AXXX_SCRATCH_ADDR					0x000001dd
3428c2ecf20Sopenharmony_ci
3438c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_RDADDR					0x000001ea
3448c2ecf20Sopenharmony_ci
3458c2ecf20Sopenharmony_ci#define REG_AXXX_CP_STATE_DEBUG_INDEX				0x000001ec
3468c2ecf20Sopenharmony_ci
3478c2ecf20Sopenharmony_ci#define REG_AXXX_CP_STATE_DEBUG_DATA				0x000001ed
3488c2ecf20Sopenharmony_ci
3498c2ecf20Sopenharmony_ci#define REG_AXXX_CP_INT_CNTL					0x000001f2
3508c2ecf20Sopenharmony_ci#define AXXX_CP_INT_CNTL_SW_INT_MASK				0x00080000
3518c2ecf20Sopenharmony_ci#define AXXX_CP_INT_CNTL_T0_PACKET_IN_IB_MASK			0x00800000
3528c2ecf20Sopenharmony_ci#define AXXX_CP_INT_CNTL_OPCODE_ERROR_MASK			0x01000000
3538c2ecf20Sopenharmony_ci#define AXXX_CP_INT_CNTL_PROTECTED_MODE_ERROR_MASK		0x02000000
3548c2ecf20Sopenharmony_ci#define AXXX_CP_INT_CNTL_RESERVED_BIT_ERROR_MASK		0x04000000
3558c2ecf20Sopenharmony_ci#define AXXX_CP_INT_CNTL_IB_ERROR_MASK				0x08000000
3568c2ecf20Sopenharmony_ci#define AXXX_CP_INT_CNTL_IB2_INT_MASK				0x20000000
3578c2ecf20Sopenharmony_ci#define AXXX_CP_INT_CNTL_IB1_INT_MASK				0x40000000
3588c2ecf20Sopenharmony_ci#define AXXX_CP_INT_CNTL_RB_INT_MASK				0x80000000
3598c2ecf20Sopenharmony_ci
3608c2ecf20Sopenharmony_ci#define REG_AXXX_CP_INT_STATUS					0x000001f3
3618c2ecf20Sopenharmony_ci
3628c2ecf20Sopenharmony_ci#define REG_AXXX_CP_INT_ACK					0x000001f4
3638c2ecf20Sopenharmony_ci
3648c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_CNTL					0x000001f6
3658c2ecf20Sopenharmony_ci#define AXXX_CP_ME_CNTL_BUSY					0x20000000
3668c2ecf20Sopenharmony_ci#define AXXX_CP_ME_CNTL_HALT					0x10000000
3678c2ecf20Sopenharmony_ci
3688c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_STATUS					0x000001f7
3698c2ecf20Sopenharmony_ci
3708c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_RAM_WADDR				0x000001f8
3718c2ecf20Sopenharmony_ci
3728c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_RAM_RADDR				0x000001f9
3738c2ecf20Sopenharmony_ci
3748c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_RAM_DATA					0x000001fa
3758c2ecf20Sopenharmony_ci
3768c2ecf20Sopenharmony_ci#define REG_AXXX_CP_DEBUG					0x000001fc
3778c2ecf20Sopenharmony_ci#define AXXX_CP_DEBUG_PREDICATE_DISABLE				0x00800000
3788c2ecf20Sopenharmony_ci#define AXXX_CP_DEBUG_PROG_END_PTR_ENABLE			0x01000000
3798c2ecf20Sopenharmony_ci#define AXXX_CP_DEBUG_MIU_128BIT_WRITE_ENABLE			0x02000000
3808c2ecf20Sopenharmony_ci#define AXXX_CP_DEBUG_PREFETCH_PASS_NOPS			0x04000000
3818c2ecf20Sopenharmony_ci#define AXXX_CP_DEBUG_DYNAMIC_CLK_DISABLE			0x08000000
3828c2ecf20Sopenharmony_ci#define AXXX_CP_DEBUG_PREFETCH_MATCH_DISABLE			0x10000000
3838c2ecf20Sopenharmony_ci#define AXXX_CP_DEBUG_SIMPLE_ME_FLOW_CONTROL			0x40000000
3848c2ecf20Sopenharmony_ci#define AXXX_CP_DEBUG_MIU_WRITE_PACK_DISABLE			0x80000000
3858c2ecf20Sopenharmony_ci
3868c2ecf20Sopenharmony_ci#define REG_AXXX_CP_CSQ_RB_STAT					0x000001fd
3878c2ecf20Sopenharmony_ci#define AXXX_CP_CSQ_RB_STAT_RPTR__MASK				0x0000007f
3888c2ecf20Sopenharmony_ci#define AXXX_CP_CSQ_RB_STAT_RPTR__SHIFT				0
3898c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_CSQ_RB_STAT_RPTR(uint32_t val)
3908c2ecf20Sopenharmony_ci{
3918c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_CSQ_RB_STAT_RPTR__SHIFT) & AXXX_CP_CSQ_RB_STAT_RPTR__MASK;
3928c2ecf20Sopenharmony_ci}
3938c2ecf20Sopenharmony_ci#define AXXX_CP_CSQ_RB_STAT_WPTR__MASK				0x007f0000
3948c2ecf20Sopenharmony_ci#define AXXX_CP_CSQ_RB_STAT_WPTR__SHIFT				16
3958c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_CSQ_RB_STAT_WPTR(uint32_t val)
3968c2ecf20Sopenharmony_ci{
3978c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_CSQ_RB_STAT_WPTR__SHIFT) & AXXX_CP_CSQ_RB_STAT_WPTR__MASK;
3988c2ecf20Sopenharmony_ci}
3998c2ecf20Sopenharmony_ci
4008c2ecf20Sopenharmony_ci#define REG_AXXX_CP_CSQ_IB1_STAT				0x000001fe
4018c2ecf20Sopenharmony_ci#define AXXX_CP_CSQ_IB1_STAT_RPTR__MASK				0x0000007f
4028c2ecf20Sopenharmony_ci#define AXXX_CP_CSQ_IB1_STAT_RPTR__SHIFT			0
4038c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_CSQ_IB1_STAT_RPTR(uint32_t val)
4048c2ecf20Sopenharmony_ci{
4058c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_CSQ_IB1_STAT_RPTR__SHIFT) & AXXX_CP_CSQ_IB1_STAT_RPTR__MASK;
4068c2ecf20Sopenharmony_ci}
4078c2ecf20Sopenharmony_ci#define AXXX_CP_CSQ_IB1_STAT_WPTR__MASK				0x007f0000
4088c2ecf20Sopenharmony_ci#define AXXX_CP_CSQ_IB1_STAT_WPTR__SHIFT			16
4098c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_CSQ_IB1_STAT_WPTR(uint32_t val)
4108c2ecf20Sopenharmony_ci{
4118c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_CSQ_IB1_STAT_WPTR__SHIFT) & AXXX_CP_CSQ_IB1_STAT_WPTR__MASK;
4128c2ecf20Sopenharmony_ci}
4138c2ecf20Sopenharmony_ci
4148c2ecf20Sopenharmony_ci#define REG_AXXX_CP_CSQ_IB2_STAT				0x000001ff
4158c2ecf20Sopenharmony_ci#define AXXX_CP_CSQ_IB2_STAT_RPTR__MASK				0x0000007f
4168c2ecf20Sopenharmony_ci#define AXXX_CP_CSQ_IB2_STAT_RPTR__SHIFT			0
4178c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_CSQ_IB2_STAT_RPTR(uint32_t val)
4188c2ecf20Sopenharmony_ci{
4198c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_CSQ_IB2_STAT_RPTR__SHIFT) & AXXX_CP_CSQ_IB2_STAT_RPTR__MASK;
4208c2ecf20Sopenharmony_ci}
4218c2ecf20Sopenharmony_ci#define AXXX_CP_CSQ_IB2_STAT_WPTR__MASK				0x007f0000
4228c2ecf20Sopenharmony_ci#define AXXX_CP_CSQ_IB2_STAT_WPTR__SHIFT			16
4238c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_CSQ_IB2_STAT_WPTR(uint32_t val)
4248c2ecf20Sopenharmony_ci{
4258c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_CSQ_IB2_STAT_WPTR__SHIFT) & AXXX_CP_CSQ_IB2_STAT_WPTR__MASK;
4268c2ecf20Sopenharmony_ci}
4278c2ecf20Sopenharmony_ci
4288c2ecf20Sopenharmony_ci#define REG_AXXX_CP_NON_PREFETCH_CNTRS				0x00000440
4298c2ecf20Sopenharmony_ci
4308c2ecf20Sopenharmony_ci#define REG_AXXX_CP_STQ_ST_STAT					0x00000443
4318c2ecf20Sopenharmony_ci
4328c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ST_BASE					0x0000044d
4338c2ecf20Sopenharmony_ci
4348c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ST_BUFSZ					0x0000044e
4358c2ecf20Sopenharmony_ci
4368c2ecf20Sopenharmony_ci#define REG_AXXX_CP_MEQ_STAT					0x0000044f
4378c2ecf20Sopenharmony_ci
4388c2ecf20Sopenharmony_ci#define REG_AXXX_CP_MIU_TAG_STAT				0x00000452
4398c2ecf20Sopenharmony_ci
4408c2ecf20Sopenharmony_ci#define REG_AXXX_CP_BIN_MASK_LO					0x00000454
4418c2ecf20Sopenharmony_ci
4428c2ecf20Sopenharmony_ci#define REG_AXXX_CP_BIN_MASK_HI					0x00000455
4438c2ecf20Sopenharmony_ci
4448c2ecf20Sopenharmony_ci#define REG_AXXX_CP_BIN_SELECT_LO				0x00000456
4458c2ecf20Sopenharmony_ci
4468c2ecf20Sopenharmony_ci#define REG_AXXX_CP_BIN_SELECT_HI				0x00000457
4478c2ecf20Sopenharmony_ci
4488c2ecf20Sopenharmony_ci#define REG_AXXX_CP_IB1_BASE					0x00000458
4498c2ecf20Sopenharmony_ci
4508c2ecf20Sopenharmony_ci#define REG_AXXX_CP_IB1_BUFSZ					0x00000459
4518c2ecf20Sopenharmony_ci
4528c2ecf20Sopenharmony_ci#define REG_AXXX_CP_IB2_BASE					0x0000045a
4538c2ecf20Sopenharmony_ci
4548c2ecf20Sopenharmony_ci#define REG_AXXX_CP_IB2_BUFSZ					0x0000045b
4558c2ecf20Sopenharmony_ci
4568c2ecf20Sopenharmony_ci#define REG_AXXX_CP_STAT					0x0000047f
4578c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_CP_BUSY__MASK				0x80000000
4588c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_CP_BUSY__SHIFT				31
4598c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_CP_BUSY(uint32_t val)
4608c2ecf20Sopenharmony_ci{
4618c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_CP_BUSY__SHIFT) & AXXX_CP_STAT_CP_BUSY__MASK;
4628c2ecf20Sopenharmony_ci}
4638c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_VS_EVENT_FIFO_BUSY__MASK			0x40000000
4648c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_VS_EVENT_FIFO_BUSY__SHIFT			30
4658c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_VS_EVENT_FIFO_BUSY(uint32_t val)
4668c2ecf20Sopenharmony_ci{
4678c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_VS_EVENT_FIFO_BUSY__SHIFT) & AXXX_CP_STAT_VS_EVENT_FIFO_BUSY__MASK;
4688c2ecf20Sopenharmony_ci}
4698c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_PS_EVENT_FIFO_BUSY__MASK			0x20000000
4708c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_PS_EVENT_FIFO_BUSY__SHIFT			29
4718c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_PS_EVENT_FIFO_BUSY(uint32_t val)
4728c2ecf20Sopenharmony_ci{
4738c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_PS_EVENT_FIFO_BUSY__SHIFT) & AXXX_CP_STAT_PS_EVENT_FIFO_BUSY__MASK;
4748c2ecf20Sopenharmony_ci}
4758c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_CF_EVENT_FIFO_BUSY__MASK			0x10000000
4768c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_CF_EVENT_FIFO_BUSY__SHIFT			28
4778c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_CF_EVENT_FIFO_BUSY(uint32_t val)
4788c2ecf20Sopenharmony_ci{
4798c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_CF_EVENT_FIFO_BUSY__SHIFT) & AXXX_CP_STAT_CF_EVENT_FIFO_BUSY__MASK;
4808c2ecf20Sopenharmony_ci}
4818c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_RB_EVENT_FIFO_BUSY__MASK			0x08000000
4828c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_RB_EVENT_FIFO_BUSY__SHIFT			27
4838c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_RB_EVENT_FIFO_BUSY(uint32_t val)
4848c2ecf20Sopenharmony_ci{
4858c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_RB_EVENT_FIFO_BUSY__SHIFT) & AXXX_CP_STAT_RB_EVENT_FIFO_BUSY__MASK;
4868c2ecf20Sopenharmony_ci}
4878c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_ME_BUSY__MASK				0x04000000
4888c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_ME_BUSY__SHIFT				26
4898c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_ME_BUSY(uint32_t val)
4908c2ecf20Sopenharmony_ci{
4918c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_ME_BUSY__SHIFT) & AXXX_CP_STAT_ME_BUSY__MASK;
4928c2ecf20Sopenharmony_ci}
4938c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_MIU_WR_C_BUSY__MASK			0x02000000
4948c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_MIU_WR_C_BUSY__SHIFT			25
4958c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_MIU_WR_C_BUSY(uint32_t val)
4968c2ecf20Sopenharmony_ci{
4978c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_MIU_WR_C_BUSY__SHIFT) & AXXX_CP_STAT_MIU_WR_C_BUSY__MASK;
4988c2ecf20Sopenharmony_ci}
4998c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_CP_3D_BUSY__MASK				0x00800000
5008c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_CP_3D_BUSY__SHIFT				23
5018c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_CP_3D_BUSY(uint32_t val)
5028c2ecf20Sopenharmony_ci{
5038c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_CP_3D_BUSY__SHIFT) & AXXX_CP_STAT_CP_3D_BUSY__MASK;
5048c2ecf20Sopenharmony_ci}
5058c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_CP_NRT_BUSY__MASK				0x00400000
5068c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_CP_NRT_BUSY__SHIFT				22
5078c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_CP_NRT_BUSY(uint32_t val)
5088c2ecf20Sopenharmony_ci{
5098c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_CP_NRT_BUSY__SHIFT) & AXXX_CP_STAT_CP_NRT_BUSY__MASK;
5108c2ecf20Sopenharmony_ci}
5118c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_RBIU_SCRATCH_BUSY__MASK			0x00200000
5128c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_RBIU_SCRATCH_BUSY__SHIFT			21
5138c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_RBIU_SCRATCH_BUSY(uint32_t val)
5148c2ecf20Sopenharmony_ci{
5158c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_RBIU_SCRATCH_BUSY__SHIFT) & AXXX_CP_STAT_RBIU_SCRATCH_BUSY__MASK;
5168c2ecf20Sopenharmony_ci}
5178c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_RCIU_ME_BUSY__MASK				0x00100000
5188c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_RCIU_ME_BUSY__SHIFT			20
5198c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_RCIU_ME_BUSY(uint32_t val)
5208c2ecf20Sopenharmony_ci{
5218c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_RCIU_ME_BUSY__SHIFT) & AXXX_CP_STAT_RCIU_ME_BUSY__MASK;
5228c2ecf20Sopenharmony_ci}
5238c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_RCIU_PFP_BUSY__MASK			0x00080000
5248c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_RCIU_PFP_BUSY__SHIFT			19
5258c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_RCIU_PFP_BUSY(uint32_t val)
5268c2ecf20Sopenharmony_ci{
5278c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_RCIU_PFP_BUSY__SHIFT) & AXXX_CP_STAT_RCIU_PFP_BUSY__MASK;
5288c2ecf20Sopenharmony_ci}
5298c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_MEQ_RING_BUSY__MASK			0x00040000
5308c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_MEQ_RING_BUSY__SHIFT			18
5318c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_MEQ_RING_BUSY(uint32_t val)
5328c2ecf20Sopenharmony_ci{
5338c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_MEQ_RING_BUSY__SHIFT) & AXXX_CP_STAT_MEQ_RING_BUSY__MASK;
5348c2ecf20Sopenharmony_ci}
5358c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_PFP_BUSY__MASK				0x00020000
5368c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_PFP_BUSY__SHIFT				17
5378c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_PFP_BUSY(uint32_t val)
5388c2ecf20Sopenharmony_ci{
5398c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_PFP_BUSY__SHIFT) & AXXX_CP_STAT_PFP_BUSY__MASK;
5408c2ecf20Sopenharmony_ci}
5418c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_ST_QUEUE_BUSY__MASK			0x00010000
5428c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_ST_QUEUE_BUSY__SHIFT			16
5438c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_ST_QUEUE_BUSY(uint32_t val)
5448c2ecf20Sopenharmony_ci{
5458c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_ST_QUEUE_BUSY__SHIFT) & AXXX_CP_STAT_ST_QUEUE_BUSY__MASK;
5468c2ecf20Sopenharmony_ci}
5478c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_INDIRECT2_QUEUE_BUSY__MASK			0x00002000
5488c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_INDIRECT2_QUEUE_BUSY__SHIFT		13
5498c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_INDIRECT2_QUEUE_BUSY(uint32_t val)
5508c2ecf20Sopenharmony_ci{
5518c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_INDIRECT2_QUEUE_BUSY__SHIFT) & AXXX_CP_STAT_INDIRECT2_QUEUE_BUSY__MASK;
5528c2ecf20Sopenharmony_ci}
5538c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_INDIRECTS_QUEUE_BUSY__MASK			0x00001000
5548c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_INDIRECTS_QUEUE_BUSY__SHIFT		12
5558c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_INDIRECTS_QUEUE_BUSY(uint32_t val)
5568c2ecf20Sopenharmony_ci{
5578c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_INDIRECTS_QUEUE_BUSY__SHIFT) & AXXX_CP_STAT_INDIRECTS_QUEUE_BUSY__MASK;
5588c2ecf20Sopenharmony_ci}
5598c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_RING_QUEUE_BUSY__MASK			0x00000800
5608c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_RING_QUEUE_BUSY__SHIFT			11
5618c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_RING_QUEUE_BUSY(uint32_t val)
5628c2ecf20Sopenharmony_ci{
5638c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_RING_QUEUE_BUSY__SHIFT) & AXXX_CP_STAT_RING_QUEUE_BUSY__MASK;
5648c2ecf20Sopenharmony_ci}
5658c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_CSF_BUSY__MASK				0x00000400
5668c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_CSF_BUSY__SHIFT				10
5678c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_CSF_BUSY(uint32_t val)
5688c2ecf20Sopenharmony_ci{
5698c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_CSF_BUSY__SHIFT) & AXXX_CP_STAT_CSF_BUSY__MASK;
5708c2ecf20Sopenharmony_ci}
5718c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_CSF_ST_BUSY__MASK				0x00000200
5728c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_CSF_ST_BUSY__SHIFT				9
5738c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_CSF_ST_BUSY(uint32_t val)
5748c2ecf20Sopenharmony_ci{
5758c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_CSF_ST_BUSY__SHIFT) & AXXX_CP_STAT_CSF_ST_BUSY__MASK;
5768c2ecf20Sopenharmony_ci}
5778c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_EVENT_BUSY__MASK				0x00000100
5788c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_EVENT_BUSY__SHIFT				8
5798c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_EVENT_BUSY(uint32_t val)
5808c2ecf20Sopenharmony_ci{
5818c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_EVENT_BUSY__SHIFT) & AXXX_CP_STAT_EVENT_BUSY__MASK;
5828c2ecf20Sopenharmony_ci}
5838c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_CSF_INDIRECT2_BUSY__MASK			0x00000080
5848c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_CSF_INDIRECT2_BUSY__SHIFT			7
5858c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_CSF_INDIRECT2_BUSY(uint32_t val)
5868c2ecf20Sopenharmony_ci{
5878c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_CSF_INDIRECT2_BUSY__SHIFT) & AXXX_CP_STAT_CSF_INDIRECT2_BUSY__MASK;
5888c2ecf20Sopenharmony_ci}
5898c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_CSF_INDIRECTS_BUSY__MASK			0x00000040
5908c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_CSF_INDIRECTS_BUSY__SHIFT			6
5918c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_CSF_INDIRECTS_BUSY(uint32_t val)
5928c2ecf20Sopenharmony_ci{
5938c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_CSF_INDIRECTS_BUSY__SHIFT) & AXXX_CP_STAT_CSF_INDIRECTS_BUSY__MASK;
5948c2ecf20Sopenharmony_ci}
5958c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_CSF_RING_BUSY__MASK			0x00000020
5968c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_CSF_RING_BUSY__SHIFT			5
5978c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_CSF_RING_BUSY(uint32_t val)
5988c2ecf20Sopenharmony_ci{
5998c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_CSF_RING_BUSY__SHIFT) & AXXX_CP_STAT_CSF_RING_BUSY__MASK;
6008c2ecf20Sopenharmony_ci}
6018c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_RCIU_BUSY__MASK				0x00000010
6028c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_RCIU_BUSY__SHIFT				4
6038c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_RCIU_BUSY(uint32_t val)
6048c2ecf20Sopenharmony_ci{
6058c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_RCIU_BUSY__SHIFT) & AXXX_CP_STAT_RCIU_BUSY__MASK;
6068c2ecf20Sopenharmony_ci}
6078c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_RBIU_BUSY__MASK				0x00000008
6088c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_RBIU_BUSY__SHIFT				3
6098c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_RBIU_BUSY(uint32_t val)
6108c2ecf20Sopenharmony_ci{
6118c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_RBIU_BUSY__SHIFT) & AXXX_CP_STAT_RBIU_BUSY__MASK;
6128c2ecf20Sopenharmony_ci}
6138c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_MIU_RD_RETURN_BUSY__MASK			0x00000004
6148c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_MIU_RD_RETURN_BUSY__SHIFT			2
6158c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_MIU_RD_RETURN_BUSY(uint32_t val)
6168c2ecf20Sopenharmony_ci{
6178c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_MIU_RD_RETURN_BUSY__SHIFT) & AXXX_CP_STAT_MIU_RD_RETURN_BUSY__MASK;
6188c2ecf20Sopenharmony_ci}
6198c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_MIU_RD_REQ_BUSY__MASK			0x00000002
6208c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_MIU_RD_REQ_BUSY__SHIFT			1
6218c2ecf20Sopenharmony_cistatic inline uint32_t AXXX_CP_STAT_MIU_RD_REQ_BUSY(uint32_t val)
6228c2ecf20Sopenharmony_ci{
6238c2ecf20Sopenharmony_ci	return ((val) << AXXX_CP_STAT_MIU_RD_REQ_BUSY__SHIFT) & AXXX_CP_STAT_MIU_RD_REQ_BUSY__MASK;
6248c2ecf20Sopenharmony_ci}
6258c2ecf20Sopenharmony_ci#define AXXX_CP_STAT_MIU_WR_BUSY				0x00000001
6268c2ecf20Sopenharmony_ci
6278c2ecf20Sopenharmony_ci#define REG_AXXX_CP_SCRATCH_REG0				0x00000578
6288c2ecf20Sopenharmony_ci
6298c2ecf20Sopenharmony_ci#define REG_AXXX_CP_SCRATCH_REG1				0x00000579
6308c2ecf20Sopenharmony_ci
6318c2ecf20Sopenharmony_ci#define REG_AXXX_CP_SCRATCH_REG2				0x0000057a
6328c2ecf20Sopenharmony_ci
6338c2ecf20Sopenharmony_ci#define REG_AXXX_CP_SCRATCH_REG3				0x0000057b
6348c2ecf20Sopenharmony_ci
6358c2ecf20Sopenharmony_ci#define REG_AXXX_CP_SCRATCH_REG4				0x0000057c
6368c2ecf20Sopenharmony_ci
6378c2ecf20Sopenharmony_ci#define REG_AXXX_CP_SCRATCH_REG5				0x0000057d
6388c2ecf20Sopenharmony_ci
6398c2ecf20Sopenharmony_ci#define REG_AXXX_CP_SCRATCH_REG6				0x0000057e
6408c2ecf20Sopenharmony_ci
6418c2ecf20Sopenharmony_ci#define REG_AXXX_CP_SCRATCH_REG7				0x0000057f
6428c2ecf20Sopenharmony_ci
6438c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_VS_EVENT_SRC				0x00000600
6448c2ecf20Sopenharmony_ci
6458c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_VS_EVENT_ADDR				0x00000601
6468c2ecf20Sopenharmony_ci
6478c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_VS_EVENT_DATA				0x00000602
6488c2ecf20Sopenharmony_ci
6498c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_VS_EVENT_ADDR_SWM			0x00000603
6508c2ecf20Sopenharmony_ci
6518c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_VS_EVENT_DATA_SWM			0x00000604
6528c2ecf20Sopenharmony_ci
6538c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_PS_EVENT_SRC				0x00000605
6548c2ecf20Sopenharmony_ci
6558c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_PS_EVENT_ADDR				0x00000606
6568c2ecf20Sopenharmony_ci
6578c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_PS_EVENT_DATA				0x00000607
6588c2ecf20Sopenharmony_ci
6598c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_PS_EVENT_ADDR_SWM			0x00000608
6608c2ecf20Sopenharmony_ci
6618c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_PS_EVENT_DATA_SWM			0x00000609
6628c2ecf20Sopenharmony_ci
6638c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_CF_EVENT_SRC				0x0000060a
6648c2ecf20Sopenharmony_ci
6658c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_CF_EVENT_ADDR				0x0000060b
6668c2ecf20Sopenharmony_ci
6678c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_CF_EVENT_DATA				0x0000060c
6688c2ecf20Sopenharmony_ci
6698c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_NRT_ADDR					0x0000060d
6708c2ecf20Sopenharmony_ci
6718c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_NRT_DATA					0x0000060e
6728c2ecf20Sopenharmony_ci
6738c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_VS_FETCH_DONE_SRC			0x00000612
6748c2ecf20Sopenharmony_ci
6758c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_VS_FETCH_DONE_ADDR			0x00000613
6768c2ecf20Sopenharmony_ci
6778c2ecf20Sopenharmony_ci#define REG_AXXX_CP_ME_VS_FETCH_DONE_DATA			0x00000614
6788c2ecf20Sopenharmony_ci
6798c2ecf20Sopenharmony_ci
6808c2ecf20Sopenharmony_ci#endif /* ADRENO_COMMON_XML */
681