18c2ecf20Sopenharmony_ci#ifndef ADRENO_PM4_XML
28c2ecf20Sopenharmony_ci#define ADRENO_PM4_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 vgt_event_type {
528c2ecf20Sopenharmony_ci	VS_DEALLOC = 0,
538c2ecf20Sopenharmony_ci	PS_DEALLOC = 1,
548c2ecf20Sopenharmony_ci	VS_DONE_TS = 2,
558c2ecf20Sopenharmony_ci	PS_DONE_TS = 3,
568c2ecf20Sopenharmony_ci	CACHE_FLUSH_TS = 4,
578c2ecf20Sopenharmony_ci	CONTEXT_DONE = 5,
588c2ecf20Sopenharmony_ci	CACHE_FLUSH = 6,
598c2ecf20Sopenharmony_ci	VIZQUERY_START = 7,
608c2ecf20Sopenharmony_ci	HLSQ_FLUSH = 7,
618c2ecf20Sopenharmony_ci	VIZQUERY_END = 8,
628c2ecf20Sopenharmony_ci	SC_WAIT_WC = 9,
638c2ecf20Sopenharmony_ci	WRITE_PRIMITIVE_COUNTS = 9,
648c2ecf20Sopenharmony_ci	START_PRIMITIVE_CTRS = 11,
658c2ecf20Sopenharmony_ci	STOP_PRIMITIVE_CTRS = 12,
668c2ecf20Sopenharmony_ci	RST_PIX_CNT = 13,
678c2ecf20Sopenharmony_ci	RST_VTX_CNT = 14,
688c2ecf20Sopenharmony_ci	TILE_FLUSH = 15,
698c2ecf20Sopenharmony_ci	STAT_EVENT = 16,
708c2ecf20Sopenharmony_ci	CACHE_FLUSH_AND_INV_TS_EVENT = 20,
718c2ecf20Sopenharmony_ci	ZPASS_DONE = 21,
728c2ecf20Sopenharmony_ci	CACHE_FLUSH_AND_INV_EVENT = 22,
738c2ecf20Sopenharmony_ci	RB_DONE_TS = 22,
748c2ecf20Sopenharmony_ci	PERFCOUNTER_START = 23,
758c2ecf20Sopenharmony_ci	PERFCOUNTER_STOP = 24,
768c2ecf20Sopenharmony_ci	VS_FETCH_DONE = 27,
778c2ecf20Sopenharmony_ci	FACENESS_FLUSH = 28,
788c2ecf20Sopenharmony_ci	WT_DONE_TS = 8,
798c2ecf20Sopenharmony_ci	FLUSH_SO_0 = 17,
808c2ecf20Sopenharmony_ci	FLUSH_SO_1 = 18,
818c2ecf20Sopenharmony_ci	FLUSH_SO_2 = 19,
828c2ecf20Sopenharmony_ci	FLUSH_SO_3 = 20,
838c2ecf20Sopenharmony_ci	PC_CCU_INVALIDATE_DEPTH = 24,
848c2ecf20Sopenharmony_ci	PC_CCU_INVALIDATE_COLOR = 25,
858c2ecf20Sopenharmony_ci	PC_CCU_RESOLVE_TS = 26,
868c2ecf20Sopenharmony_ci	PC_CCU_FLUSH_DEPTH_TS = 28,
878c2ecf20Sopenharmony_ci	PC_CCU_FLUSH_COLOR_TS = 29,
888c2ecf20Sopenharmony_ci	BLIT = 30,
898c2ecf20Sopenharmony_ci	UNK_25 = 37,
908c2ecf20Sopenharmony_ci	LRZ_FLUSH = 38,
918c2ecf20Sopenharmony_ci	BLIT_OP_FILL_2D = 39,
928c2ecf20Sopenharmony_ci	BLIT_OP_COPY_2D = 40,
938c2ecf20Sopenharmony_ci	BLIT_OP_SCALE_2D = 42,
948c2ecf20Sopenharmony_ci	CONTEXT_DONE_2D = 43,
958c2ecf20Sopenharmony_ci	UNK_2C = 44,
968c2ecf20Sopenharmony_ci	UNK_2D = 45,
978c2ecf20Sopenharmony_ci	CACHE_INVALIDATE = 49,
988c2ecf20Sopenharmony_ci};
998c2ecf20Sopenharmony_ci
1008c2ecf20Sopenharmony_cienum pc_di_primtype {
1018c2ecf20Sopenharmony_ci	DI_PT_NONE = 0,
1028c2ecf20Sopenharmony_ci	DI_PT_POINTLIST_PSIZE = 1,
1038c2ecf20Sopenharmony_ci	DI_PT_LINELIST = 2,
1048c2ecf20Sopenharmony_ci	DI_PT_LINESTRIP = 3,
1058c2ecf20Sopenharmony_ci	DI_PT_TRILIST = 4,
1068c2ecf20Sopenharmony_ci	DI_PT_TRIFAN = 5,
1078c2ecf20Sopenharmony_ci	DI_PT_TRISTRIP = 6,
1088c2ecf20Sopenharmony_ci	DI_PT_LINELOOP = 7,
1098c2ecf20Sopenharmony_ci	DI_PT_RECTLIST = 8,
1108c2ecf20Sopenharmony_ci	DI_PT_POINTLIST = 9,
1118c2ecf20Sopenharmony_ci	DI_PT_LINE_ADJ = 10,
1128c2ecf20Sopenharmony_ci	DI_PT_LINESTRIP_ADJ = 11,
1138c2ecf20Sopenharmony_ci	DI_PT_TRI_ADJ = 12,
1148c2ecf20Sopenharmony_ci	DI_PT_TRISTRIP_ADJ = 13,
1158c2ecf20Sopenharmony_ci	DI_PT_PATCHES0 = 31,
1168c2ecf20Sopenharmony_ci	DI_PT_PATCHES1 = 32,
1178c2ecf20Sopenharmony_ci	DI_PT_PATCHES2 = 33,
1188c2ecf20Sopenharmony_ci	DI_PT_PATCHES3 = 34,
1198c2ecf20Sopenharmony_ci	DI_PT_PATCHES4 = 35,
1208c2ecf20Sopenharmony_ci	DI_PT_PATCHES5 = 36,
1218c2ecf20Sopenharmony_ci	DI_PT_PATCHES6 = 37,
1228c2ecf20Sopenharmony_ci	DI_PT_PATCHES7 = 38,
1238c2ecf20Sopenharmony_ci	DI_PT_PATCHES8 = 39,
1248c2ecf20Sopenharmony_ci	DI_PT_PATCHES9 = 40,
1258c2ecf20Sopenharmony_ci	DI_PT_PATCHES10 = 41,
1268c2ecf20Sopenharmony_ci	DI_PT_PATCHES11 = 42,
1278c2ecf20Sopenharmony_ci	DI_PT_PATCHES12 = 43,
1288c2ecf20Sopenharmony_ci	DI_PT_PATCHES13 = 44,
1298c2ecf20Sopenharmony_ci	DI_PT_PATCHES14 = 45,
1308c2ecf20Sopenharmony_ci	DI_PT_PATCHES15 = 46,
1318c2ecf20Sopenharmony_ci	DI_PT_PATCHES16 = 47,
1328c2ecf20Sopenharmony_ci	DI_PT_PATCHES17 = 48,
1338c2ecf20Sopenharmony_ci	DI_PT_PATCHES18 = 49,
1348c2ecf20Sopenharmony_ci	DI_PT_PATCHES19 = 50,
1358c2ecf20Sopenharmony_ci	DI_PT_PATCHES20 = 51,
1368c2ecf20Sopenharmony_ci	DI_PT_PATCHES21 = 52,
1378c2ecf20Sopenharmony_ci	DI_PT_PATCHES22 = 53,
1388c2ecf20Sopenharmony_ci	DI_PT_PATCHES23 = 54,
1398c2ecf20Sopenharmony_ci	DI_PT_PATCHES24 = 55,
1408c2ecf20Sopenharmony_ci	DI_PT_PATCHES25 = 56,
1418c2ecf20Sopenharmony_ci	DI_PT_PATCHES26 = 57,
1428c2ecf20Sopenharmony_ci	DI_PT_PATCHES27 = 58,
1438c2ecf20Sopenharmony_ci	DI_PT_PATCHES28 = 59,
1448c2ecf20Sopenharmony_ci	DI_PT_PATCHES29 = 60,
1458c2ecf20Sopenharmony_ci	DI_PT_PATCHES30 = 61,
1468c2ecf20Sopenharmony_ci	DI_PT_PATCHES31 = 62,
1478c2ecf20Sopenharmony_ci};
1488c2ecf20Sopenharmony_ci
1498c2ecf20Sopenharmony_cienum pc_di_src_sel {
1508c2ecf20Sopenharmony_ci	DI_SRC_SEL_DMA = 0,
1518c2ecf20Sopenharmony_ci	DI_SRC_SEL_IMMEDIATE = 1,
1528c2ecf20Sopenharmony_ci	DI_SRC_SEL_AUTO_INDEX = 2,
1538c2ecf20Sopenharmony_ci	DI_SRC_SEL_AUTO_XFB = 3,
1548c2ecf20Sopenharmony_ci};
1558c2ecf20Sopenharmony_ci
1568c2ecf20Sopenharmony_cienum pc_di_face_cull_sel {
1578c2ecf20Sopenharmony_ci	DI_FACE_CULL_NONE = 0,
1588c2ecf20Sopenharmony_ci	DI_FACE_CULL_FETCH = 1,
1598c2ecf20Sopenharmony_ci	DI_FACE_BACKFACE_CULL = 2,
1608c2ecf20Sopenharmony_ci	DI_FACE_FRONTFACE_CULL = 3,
1618c2ecf20Sopenharmony_ci};
1628c2ecf20Sopenharmony_ci
1638c2ecf20Sopenharmony_cienum pc_di_index_size {
1648c2ecf20Sopenharmony_ci	INDEX_SIZE_IGN = 0,
1658c2ecf20Sopenharmony_ci	INDEX_SIZE_16_BIT = 0,
1668c2ecf20Sopenharmony_ci	INDEX_SIZE_32_BIT = 1,
1678c2ecf20Sopenharmony_ci	INDEX_SIZE_8_BIT = 2,
1688c2ecf20Sopenharmony_ci	INDEX_SIZE_INVALID = 0,
1698c2ecf20Sopenharmony_ci};
1708c2ecf20Sopenharmony_ci
1718c2ecf20Sopenharmony_cienum pc_di_vis_cull_mode {
1728c2ecf20Sopenharmony_ci	IGNORE_VISIBILITY = 0,
1738c2ecf20Sopenharmony_ci	USE_VISIBILITY = 1,
1748c2ecf20Sopenharmony_ci};
1758c2ecf20Sopenharmony_ci
1768c2ecf20Sopenharmony_cienum adreno_pm4_packet_type {
1778c2ecf20Sopenharmony_ci	CP_TYPE0_PKT = 0,
1788c2ecf20Sopenharmony_ci	CP_TYPE1_PKT = 0x40000000,
1798c2ecf20Sopenharmony_ci	CP_TYPE2_PKT = 0x80000000,
1808c2ecf20Sopenharmony_ci	CP_TYPE3_PKT = 0xc0000000,
1818c2ecf20Sopenharmony_ci	CP_TYPE4_PKT = 0x40000000,
1828c2ecf20Sopenharmony_ci	CP_TYPE7_PKT = 0x70000000,
1838c2ecf20Sopenharmony_ci};
1848c2ecf20Sopenharmony_ci
1858c2ecf20Sopenharmony_cienum adreno_pm4_type3_packets {
1868c2ecf20Sopenharmony_ci	CP_ME_INIT = 72,
1878c2ecf20Sopenharmony_ci	CP_NOP = 16,
1888c2ecf20Sopenharmony_ci	CP_PREEMPT_ENABLE = 28,
1898c2ecf20Sopenharmony_ci	CP_PREEMPT_TOKEN = 30,
1908c2ecf20Sopenharmony_ci	CP_INDIRECT_BUFFER = 63,
1918c2ecf20Sopenharmony_ci	CP_INDIRECT_BUFFER_CHAIN = 87,
1928c2ecf20Sopenharmony_ci	CP_INDIRECT_BUFFER_PFD = 55,
1938c2ecf20Sopenharmony_ci	CP_WAIT_FOR_IDLE = 38,
1948c2ecf20Sopenharmony_ci	CP_WAIT_REG_MEM = 60,
1958c2ecf20Sopenharmony_ci	CP_WAIT_REG_EQ = 82,
1968c2ecf20Sopenharmony_ci	CP_WAIT_REG_GTE = 83,
1978c2ecf20Sopenharmony_ci	CP_WAIT_UNTIL_READ = 92,
1988c2ecf20Sopenharmony_ci	CP_WAIT_IB_PFD_COMPLETE = 93,
1998c2ecf20Sopenharmony_ci	CP_REG_RMW = 33,
2008c2ecf20Sopenharmony_ci	CP_SET_BIN_DATA = 47,
2018c2ecf20Sopenharmony_ci	CP_SET_BIN_DATA5 = 47,
2028c2ecf20Sopenharmony_ci	CP_REG_TO_MEM = 62,
2038c2ecf20Sopenharmony_ci	CP_MEM_WRITE = 61,
2048c2ecf20Sopenharmony_ci	CP_MEM_WRITE_CNTR = 79,
2058c2ecf20Sopenharmony_ci	CP_COND_EXEC = 68,
2068c2ecf20Sopenharmony_ci	CP_COND_WRITE = 69,
2078c2ecf20Sopenharmony_ci	CP_COND_WRITE5 = 69,
2088c2ecf20Sopenharmony_ci	CP_EVENT_WRITE = 70,
2098c2ecf20Sopenharmony_ci	CP_EVENT_WRITE_SHD = 88,
2108c2ecf20Sopenharmony_ci	CP_EVENT_WRITE_CFL = 89,
2118c2ecf20Sopenharmony_ci	CP_EVENT_WRITE_ZPD = 91,
2128c2ecf20Sopenharmony_ci	CP_RUN_OPENCL = 49,
2138c2ecf20Sopenharmony_ci	CP_DRAW_INDX = 34,
2148c2ecf20Sopenharmony_ci	CP_DRAW_INDX_2 = 54,
2158c2ecf20Sopenharmony_ci	CP_DRAW_INDX_BIN = 52,
2168c2ecf20Sopenharmony_ci	CP_DRAW_INDX_2_BIN = 53,
2178c2ecf20Sopenharmony_ci	CP_VIZ_QUERY = 35,
2188c2ecf20Sopenharmony_ci	CP_SET_STATE = 37,
2198c2ecf20Sopenharmony_ci	CP_SET_CONSTANT = 45,
2208c2ecf20Sopenharmony_ci	CP_IM_LOAD = 39,
2218c2ecf20Sopenharmony_ci	CP_IM_LOAD_IMMEDIATE = 43,
2228c2ecf20Sopenharmony_ci	CP_LOAD_CONSTANT_CONTEXT = 46,
2238c2ecf20Sopenharmony_ci	CP_INVALIDATE_STATE = 59,
2248c2ecf20Sopenharmony_ci	CP_SET_SHADER_BASES = 74,
2258c2ecf20Sopenharmony_ci	CP_SET_BIN_MASK = 80,
2268c2ecf20Sopenharmony_ci	CP_SET_BIN_SELECT = 81,
2278c2ecf20Sopenharmony_ci	CP_CONTEXT_UPDATE = 94,
2288c2ecf20Sopenharmony_ci	CP_INTERRUPT = 64,
2298c2ecf20Sopenharmony_ci	CP_IM_STORE = 44,
2308c2ecf20Sopenharmony_ci	CP_SET_DRAW_INIT_FLAGS = 75,
2318c2ecf20Sopenharmony_ci	CP_SET_PROTECTED_MODE = 95,
2328c2ecf20Sopenharmony_ci	CP_BOOTSTRAP_UCODE = 111,
2338c2ecf20Sopenharmony_ci	CP_LOAD_STATE = 48,
2348c2ecf20Sopenharmony_ci	CP_LOAD_STATE4 = 48,
2358c2ecf20Sopenharmony_ci	CP_COND_INDIRECT_BUFFER_PFE = 58,
2368c2ecf20Sopenharmony_ci	CP_COND_INDIRECT_BUFFER_PFD = 50,
2378c2ecf20Sopenharmony_ci	CP_INDIRECT_BUFFER_PFE = 63,
2388c2ecf20Sopenharmony_ci	CP_SET_BIN = 76,
2398c2ecf20Sopenharmony_ci	CP_TEST_TWO_MEMS = 113,
2408c2ecf20Sopenharmony_ci	CP_REG_WR_NO_CTXT = 120,
2418c2ecf20Sopenharmony_ci	CP_RECORD_PFP_TIMESTAMP = 17,
2428c2ecf20Sopenharmony_ci	CP_SET_SECURE_MODE = 102,
2438c2ecf20Sopenharmony_ci	CP_WAIT_FOR_ME = 19,
2448c2ecf20Sopenharmony_ci	CP_SET_DRAW_STATE = 67,
2458c2ecf20Sopenharmony_ci	CP_DRAW_INDX_OFFSET = 56,
2468c2ecf20Sopenharmony_ci	CP_DRAW_INDIRECT = 40,
2478c2ecf20Sopenharmony_ci	CP_DRAW_INDX_INDIRECT = 41,
2488c2ecf20Sopenharmony_ci	CP_DRAW_INDIRECT_MULTI = 42,
2498c2ecf20Sopenharmony_ci	CP_DRAW_AUTO = 36,
2508c2ecf20Sopenharmony_ci	CP_UNKNOWN_19 = 25,
2518c2ecf20Sopenharmony_ci	CP_UNKNOWN_1A = 26,
2528c2ecf20Sopenharmony_ci	CP_UNKNOWN_4E = 78,
2538c2ecf20Sopenharmony_ci	CP_WIDE_REG_WRITE = 116,
2548c2ecf20Sopenharmony_ci	CP_SCRATCH_TO_REG = 77,
2558c2ecf20Sopenharmony_ci	CP_REG_TO_SCRATCH = 74,
2568c2ecf20Sopenharmony_ci	CP_WAIT_MEM_WRITES = 18,
2578c2ecf20Sopenharmony_ci	CP_COND_REG_EXEC = 71,
2588c2ecf20Sopenharmony_ci	CP_MEM_TO_REG = 66,
2598c2ecf20Sopenharmony_ci	CP_EXEC_CS_INDIRECT = 65,
2608c2ecf20Sopenharmony_ci	CP_EXEC_CS = 51,
2618c2ecf20Sopenharmony_ci	CP_PERFCOUNTER_ACTION = 80,
2628c2ecf20Sopenharmony_ci	CP_SMMU_TABLE_UPDATE = 83,
2638c2ecf20Sopenharmony_ci	CP_SET_MARKER = 101,
2648c2ecf20Sopenharmony_ci	CP_SET_PSEUDO_REG = 86,
2658c2ecf20Sopenharmony_ci	CP_CONTEXT_REG_BUNCH = 92,
2668c2ecf20Sopenharmony_ci	CP_YIELD_ENABLE = 28,
2678c2ecf20Sopenharmony_ci	CP_SKIP_IB2_ENABLE_GLOBAL = 29,
2688c2ecf20Sopenharmony_ci	CP_SKIP_IB2_ENABLE_LOCAL = 35,
2698c2ecf20Sopenharmony_ci	CP_SET_SUBDRAW_SIZE = 53,
2708c2ecf20Sopenharmony_ci	CP_SET_VISIBILITY_OVERRIDE = 100,
2718c2ecf20Sopenharmony_ci	CP_PREEMPT_ENABLE_GLOBAL = 105,
2728c2ecf20Sopenharmony_ci	CP_PREEMPT_ENABLE_LOCAL = 106,
2738c2ecf20Sopenharmony_ci	CP_CONTEXT_SWITCH_YIELD = 107,
2748c2ecf20Sopenharmony_ci	CP_SET_RENDER_MODE = 108,
2758c2ecf20Sopenharmony_ci	CP_COMPUTE_CHECKPOINT = 110,
2768c2ecf20Sopenharmony_ci	CP_MEM_TO_MEM = 115,
2778c2ecf20Sopenharmony_ci	CP_BLIT = 44,
2788c2ecf20Sopenharmony_ci	CP_REG_TEST = 57,
2798c2ecf20Sopenharmony_ci	CP_SET_MODE = 99,
2808c2ecf20Sopenharmony_ci	CP_LOAD_STATE6_GEOM = 50,
2818c2ecf20Sopenharmony_ci	CP_LOAD_STATE6_FRAG = 52,
2828c2ecf20Sopenharmony_ci	CP_LOAD_STATE6 = 54,
2838c2ecf20Sopenharmony_ci	IN_IB_PREFETCH_END = 23,
2848c2ecf20Sopenharmony_ci	IN_SUBBLK_PREFETCH = 31,
2858c2ecf20Sopenharmony_ci	IN_INSTR_PREFETCH = 32,
2868c2ecf20Sopenharmony_ci	IN_INSTR_MATCH = 71,
2878c2ecf20Sopenharmony_ci	IN_CONST_PREFETCH = 73,
2888c2ecf20Sopenharmony_ci	IN_INCR_UPDT_STATE = 85,
2898c2ecf20Sopenharmony_ci	IN_INCR_UPDT_CONST = 86,
2908c2ecf20Sopenharmony_ci	IN_INCR_UPDT_INSTR = 87,
2918c2ecf20Sopenharmony_ci	PKT4 = 4,
2928c2ecf20Sopenharmony_ci	CP_SCRATCH_WRITE = 76,
2938c2ecf20Sopenharmony_ci	CP_REG_TO_MEM_OFFSET_MEM = 116,
2948c2ecf20Sopenharmony_ci	CP_REG_TO_MEM_OFFSET_REG = 114,
2958c2ecf20Sopenharmony_ci	CP_WAIT_MEM_GTE = 20,
2968c2ecf20Sopenharmony_ci	CP_WAIT_TWO_REGS = 112,
2978c2ecf20Sopenharmony_ci	CP_MEMCPY = 117,
2988c2ecf20Sopenharmony_ci	CP_SET_BIN_DATA5_OFFSET = 46,
2998c2ecf20Sopenharmony_ci	CP_SET_CTXSWITCH_IB = 85,
3008c2ecf20Sopenharmony_ci	CP_REG_WRITE = 109,
3018c2ecf20Sopenharmony_ci	CP_WHERE_AM_I = 98,
3028c2ecf20Sopenharmony_ci};
3038c2ecf20Sopenharmony_ci
3048c2ecf20Sopenharmony_cienum adreno_state_block {
3058c2ecf20Sopenharmony_ci	SB_VERT_TEX = 0,
3068c2ecf20Sopenharmony_ci	SB_VERT_MIPADDR = 1,
3078c2ecf20Sopenharmony_ci	SB_FRAG_TEX = 2,
3088c2ecf20Sopenharmony_ci	SB_FRAG_MIPADDR = 3,
3098c2ecf20Sopenharmony_ci	SB_VERT_SHADER = 4,
3108c2ecf20Sopenharmony_ci	SB_GEOM_SHADER = 5,
3118c2ecf20Sopenharmony_ci	SB_FRAG_SHADER = 6,
3128c2ecf20Sopenharmony_ci	SB_COMPUTE_SHADER = 7,
3138c2ecf20Sopenharmony_ci};
3148c2ecf20Sopenharmony_ci
3158c2ecf20Sopenharmony_cienum adreno_state_type {
3168c2ecf20Sopenharmony_ci	ST_SHADER = 0,
3178c2ecf20Sopenharmony_ci	ST_CONSTANTS = 1,
3188c2ecf20Sopenharmony_ci};
3198c2ecf20Sopenharmony_ci
3208c2ecf20Sopenharmony_cienum adreno_state_src {
3218c2ecf20Sopenharmony_ci	SS_DIRECT = 0,
3228c2ecf20Sopenharmony_ci	SS_INVALID_ALL_IC = 2,
3238c2ecf20Sopenharmony_ci	SS_INVALID_PART_IC = 3,
3248c2ecf20Sopenharmony_ci	SS_INDIRECT = 4,
3258c2ecf20Sopenharmony_ci	SS_INDIRECT_TCM = 5,
3268c2ecf20Sopenharmony_ci	SS_INDIRECT_STM = 6,
3278c2ecf20Sopenharmony_ci};
3288c2ecf20Sopenharmony_ci
3298c2ecf20Sopenharmony_cienum a4xx_state_block {
3308c2ecf20Sopenharmony_ci	SB4_VS_TEX = 0,
3318c2ecf20Sopenharmony_ci	SB4_HS_TEX = 1,
3328c2ecf20Sopenharmony_ci	SB4_DS_TEX = 2,
3338c2ecf20Sopenharmony_ci	SB4_GS_TEX = 3,
3348c2ecf20Sopenharmony_ci	SB4_FS_TEX = 4,
3358c2ecf20Sopenharmony_ci	SB4_CS_TEX = 5,
3368c2ecf20Sopenharmony_ci	SB4_VS_SHADER = 8,
3378c2ecf20Sopenharmony_ci	SB4_HS_SHADER = 9,
3388c2ecf20Sopenharmony_ci	SB4_DS_SHADER = 10,
3398c2ecf20Sopenharmony_ci	SB4_GS_SHADER = 11,
3408c2ecf20Sopenharmony_ci	SB4_FS_SHADER = 12,
3418c2ecf20Sopenharmony_ci	SB4_CS_SHADER = 13,
3428c2ecf20Sopenharmony_ci	SB4_SSBO = 14,
3438c2ecf20Sopenharmony_ci	SB4_CS_SSBO = 15,
3448c2ecf20Sopenharmony_ci};
3458c2ecf20Sopenharmony_ci
3468c2ecf20Sopenharmony_cienum a4xx_state_type {
3478c2ecf20Sopenharmony_ci	ST4_SHADER = 0,
3488c2ecf20Sopenharmony_ci	ST4_CONSTANTS = 1,
3498c2ecf20Sopenharmony_ci	ST4_UBO = 2,
3508c2ecf20Sopenharmony_ci};
3518c2ecf20Sopenharmony_ci
3528c2ecf20Sopenharmony_cienum a4xx_state_src {
3538c2ecf20Sopenharmony_ci	SS4_DIRECT = 0,
3548c2ecf20Sopenharmony_ci	SS4_INDIRECT = 2,
3558c2ecf20Sopenharmony_ci};
3568c2ecf20Sopenharmony_ci
3578c2ecf20Sopenharmony_cienum a6xx_state_block {
3588c2ecf20Sopenharmony_ci	SB6_VS_TEX = 0,
3598c2ecf20Sopenharmony_ci	SB6_HS_TEX = 1,
3608c2ecf20Sopenharmony_ci	SB6_DS_TEX = 2,
3618c2ecf20Sopenharmony_ci	SB6_GS_TEX = 3,
3628c2ecf20Sopenharmony_ci	SB6_FS_TEX = 4,
3638c2ecf20Sopenharmony_ci	SB6_CS_TEX = 5,
3648c2ecf20Sopenharmony_ci	SB6_VS_SHADER = 8,
3658c2ecf20Sopenharmony_ci	SB6_HS_SHADER = 9,
3668c2ecf20Sopenharmony_ci	SB6_DS_SHADER = 10,
3678c2ecf20Sopenharmony_ci	SB6_GS_SHADER = 11,
3688c2ecf20Sopenharmony_ci	SB6_FS_SHADER = 12,
3698c2ecf20Sopenharmony_ci	SB6_CS_SHADER = 13,
3708c2ecf20Sopenharmony_ci	SB6_IBO = 14,
3718c2ecf20Sopenharmony_ci	SB6_CS_IBO = 15,
3728c2ecf20Sopenharmony_ci};
3738c2ecf20Sopenharmony_ci
3748c2ecf20Sopenharmony_cienum a6xx_state_type {
3758c2ecf20Sopenharmony_ci	ST6_SHADER = 0,
3768c2ecf20Sopenharmony_ci	ST6_CONSTANTS = 1,
3778c2ecf20Sopenharmony_ci	ST6_UBO = 2,
3788c2ecf20Sopenharmony_ci	ST6_IBO = 3,
3798c2ecf20Sopenharmony_ci};
3808c2ecf20Sopenharmony_ci
3818c2ecf20Sopenharmony_cienum a6xx_state_src {
3828c2ecf20Sopenharmony_ci	SS6_DIRECT = 0,
3838c2ecf20Sopenharmony_ci	SS6_BINDLESS = 1,
3848c2ecf20Sopenharmony_ci	SS6_INDIRECT = 2,
3858c2ecf20Sopenharmony_ci	SS6_UBO = 3,
3868c2ecf20Sopenharmony_ci};
3878c2ecf20Sopenharmony_ci
3888c2ecf20Sopenharmony_cienum a4xx_index_size {
3898c2ecf20Sopenharmony_ci	INDEX4_SIZE_8_BIT = 0,
3908c2ecf20Sopenharmony_ci	INDEX4_SIZE_16_BIT = 1,
3918c2ecf20Sopenharmony_ci	INDEX4_SIZE_32_BIT = 2,
3928c2ecf20Sopenharmony_ci};
3938c2ecf20Sopenharmony_ci
3948c2ecf20Sopenharmony_cienum a6xx_patch_type {
3958c2ecf20Sopenharmony_ci	TESS_QUADS = 0,
3968c2ecf20Sopenharmony_ci	TESS_TRIANGLES = 1,
3978c2ecf20Sopenharmony_ci	TESS_ISOLINES = 2,
3988c2ecf20Sopenharmony_ci};
3998c2ecf20Sopenharmony_ci
4008c2ecf20Sopenharmony_cienum a6xx_draw_indirect_opcode {
4018c2ecf20Sopenharmony_ci	INDIRECT_OP_NORMAL = 2,
4028c2ecf20Sopenharmony_ci	INDIRECT_OP_INDEXED = 4,
4038c2ecf20Sopenharmony_ci};
4048c2ecf20Sopenharmony_ci
4058c2ecf20Sopenharmony_cienum cp_cond_function {
4068c2ecf20Sopenharmony_ci	WRITE_ALWAYS = 0,
4078c2ecf20Sopenharmony_ci	WRITE_LT = 1,
4088c2ecf20Sopenharmony_ci	WRITE_LE = 2,
4098c2ecf20Sopenharmony_ci	WRITE_EQ = 3,
4108c2ecf20Sopenharmony_ci	WRITE_NE = 4,
4118c2ecf20Sopenharmony_ci	WRITE_GE = 5,
4128c2ecf20Sopenharmony_ci	WRITE_GT = 6,
4138c2ecf20Sopenharmony_ci};
4148c2ecf20Sopenharmony_ci
4158c2ecf20Sopenharmony_cienum render_mode_cmd {
4168c2ecf20Sopenharmony_ci	BYPASS = 1,
4178c2ecf20Sopenharmony_ci	BINNING = 2,
4188c2ecf20Sopenharmony_ci	GMEM = 3,
4198c2ecf20Sopenharmony_ci	BLIT2D = 5,
4208c2ecf20Sopenharmony_ci	BLIT2DSCALE = 7,
4218c2ecf20Sopenharmony_ci	END2D = 8,
4228c2ecf20Sopenharmony_ci};
4238c2ecf20Sopenharmony_ci
4248c2ecf20Sopenharmony_cienum cp_blit_cmd {
4258c2ecf20Sopenharmony_ci	BLIT_OP_FILL = 0,
4268c2ecf20Sopenharmony_ci	BLIT_OP_COPY = 1,
4278c2ecf20Sopenharmony_ci	BLIT_OP_SCALE = 3,
4288c2ecf20Sopenharmony_ci};
4298c2ecf20Sopenharmony_ci
4308c2ecf20Sopenharmony_cienum a6xx_render_mode {
4318c2ecf20Sopenharmony_ci	RM6_BYPASS = 1,
4328c2ecf20Sopenharmony_ci	RM6_BINNING = 2,
4338c2ecf20Sopenharmony_ci	RM6_GMEM = 4,
4348c2ecf20Sopenharmony_ci	RM6_ENDVIS = 5,
4358c2ecf20Sopenharmony_ci	RM6_RESOLVE = 6,
4368c2ecf20Sopenharmony_ci	RM6_YIELD = 7,
4378c2ecf20Sopenharmony_ci	RM6_COMPUTE = 8,
4388c2ecf20Sopenharmony_ci	RM6_BLIT2DSCALE = 12,
4398c2ecf20Sopenharmony_ci	RM6_IB1LIST_START = 13,
4408c2ecf20Sopenharmony_ci	RM6_IB1LIST_END = 14,
4418c2ecf20Sopenharmony_ci	RM6_IFPC_ENABLE = 256,
4428c2ecf20Sopenharmony_ci	RM6_IFPC_DISABLE = 257,
4438c2ecf20Sopenharmony_ci};
4448c2ecf20Sopenharmony_ci
4458c2ecf20Sopenharmony_cienum pseudo_reg {
4468c2ecf20Sopenharmony_ci	SMMU_INFO = 0,
4478c2ecf20Sopenharmony_ci	NON_SECURE_SAVE_ADDR = 1,
4488c2ecf20Sopenharmony_ci	SECURE_SAVE_ADDR = 2,
4498c2ecf20Sopenharmony_ci	NON_PRIV_SAVE_ADDR = 3,
4508c2ecf20Sopenharmony_ci	COUNTER = 4,
4518c2ecf20Sopenharmony_ci};
4528c2ecf20Sopenharmony_ci
4538c2ecf20Sopenharmony_cienum compare_mode {
4548c2ecf20Sopenharmony_ci	PRED_TEST = 1,
4558c2ecf20Sopenharmony_ci	REG_COMPARE = 2,
4568c2ecf20Sopenharmony_ci	RENDER_MODE = 3,
4578c2ecf20Sopenharmony_ci};
4588c2ecf20Sopenharmony_ci
4598c2ecf20Sopenharmony_cienum ctxswitch_ib {
4608c2ecf20Sopenharmony_ci	RESTORE_IB = 0,
4618c2ecf20Sopenharmony_ci	YIELD_RESTORE_IB = 1,
4628c2ecf20Sopenharmony_ci	SAVE_IB = 2,
4638c2ecf20Sopenharmony_ci	RB_SAVE_IB = 3,
4648c2ecf20Sopenharmony_ci};
4658c2ecf20Sopenharmony_ci
4668c2ecf20Sopenharmony_cienum reg_tracker {
4678c2ecf20Sopenharmony_ci	TRACK_CNTL_REG = 1,
4688c2ecf20Sopenharmony_ci	TRACK_RENDER_CNTL = 2,
4698c2ecf20Sopenharmony_ci	UNK_EVENT_WRITE = 4,
4708c2ecf20Sopenharmony_ci};
4718c2ecf20Sopenharmony_ci
4728c2ecf20Sopenharmony_ci#define REG_CP_LOAD_STATE_0					0x00000000
4738c2ecf20Sopenharmony_ci#define CP_LOAD_STATE_0_DST_OFF__MASK				0x0000ffff
4748c2ecf20Sopenharmony_ci#define CP_LOAD_STATE_0_DST_OFF__SHIFT				0
4758c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE_0_DST_OFF(uint32_t val)
4768c2ecf20Sopenharmony_ci{
4778c2ecf20Sopenharmony_ci	return ((val) << CP_LOAD_STATE_0_DST_OFF__SHIFT) & CP_LOAD_STATE_0_DST_OFF__MASK;
4788c2ecf20Sopenharmony_ci}
4798c2ecf20Sopenharmony_ci#define CP_LOAD_STATE_0_STATE_SRC__MASK				0x00070000
4808c2ecf20Sopenharmony_ci#define CP_LOAD_STATE_0_STATE_SRC__SHIFT			16
4818c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE_0_STATE_SRC(enum adreno_state_src val)
4828c2ecf20Sopenharmony_ci{
4838c2ecf20Sopenharmony_ci	return ((val) << CP_LOAD_STATE_0_STATE_SRC__SHIFT) & CP_LOAD_STATE_0_STATE_SRC__MASK;
4848c2ecf20Sopenharmony_ci}
4858c2ecf20Sopenharmony_ci#define CP_LOAD_STATE_0_STATE_BLOCK__MASK			0x00380000
4868c2ecf20Sopenharmony_ci#define CP_LOAD_STATE_0_STATE_BLOCK__SHIFT			19
4878c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE_0_STATE_BLOCK(enum adreno_state_block val)
4888c2ecf20Sopenharmony_ci{
4898c2ecf20Sopenharmony_ci	return ((val) << CP_LOAD_STATE_0_STATE_BLOCK__SHIFT) & CP_LOAD_STATE_0_STATE_BLOCK__MASK;
4908c2ecf20Sopenharmony_ci}
4918c2ecf20Sopenharmony_ci#define CP_LOAD_STATE_0_NUM_UNIT__MASK				0xffc00000
4928c2ecf20Sopenharmony_ci#define CP_LOAD_STATE_0_NUM_UNIT__SHIFT				22
4938c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE_0_NUM_UNIT(uint32_t val)
4948c2ecf20Sopenharmony_ci{
4958c2ecf20Sopenharmony_ci	return ((val) << CP_LOAD_STATE_0_NUM_UNIT__SHIFT) & CP_LOAD_STATE_0_NUM_UNIT__MASK;
4968c2ecf20Sopenharmony_ci}
4978c2ecf20Sopenharmony_ci
4988c2ecf20Sopenharmony_ci#define REG_CP_LOAD_STATE_1					0x00000001
4998c2ecf20Sopenharmony_ci#define CP_LOAD_STATE_1_STATE_TYPE__MASK			0x00000003
5008c2ecf20Sopenharmony_ci#define CP_LOAD_STATE_1_STATE_TYPE__SHIFT			0
5018c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE_1_STATE_TYPE(enum adreno_state_type val)
5028c2ecf20Sopenharmony_ci{
5038c2ecf20Sopenharmony_ci	return ((val) << CP_LOAD_STATE_1_STATE_TYPE__SHIFT) & CP_LOAD_STATE_1_STATE_TYPE__MASK;
5048c2ecf20Sopenharmony_ci}
5058c2ecf20Sopenharmony_ci#define CP_LOAD_STATE_1_EXT_SRC_ADDR__MASK			0xfffffffc
5068c2ecf20Sopenharmony_ci#define CP_LOAD_STATE_1_EXT_SRC_ADDR__SHIFT			2
5078c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE_1_EXT_SRC_ADDR(uint32_t val)
5088c2ecf20Sopenharmony_ci{
5098c2ecf20Sopenharmony_ci	return ((val >> 2) << CP_LOAD_STATE_1_EXT_SRC_ADDR__SHIFT) & CP_LOAD_STATE_1_EXT_SRC_ADDR__MASK;
5108c2ecf20Sopenharmony_ci}
5118c2ecf20Sopenharmony_ci
5128c2ecf20Sopenharmony_ci#define REG_CP_LOAD_STATE4_0					0x00000000
5138c2ecf20Sopenharmony_ci#define CP_LOAD_STATE4_0_DST_OFF__MASK				0x00003fff
5148c2ecf20Sopenharmony_ci#define CP_LOAD_STATE4_0_DST_OFF__SHIFT				0
5158c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE4_0_DST_OFF(uint32_t val)
5168c2ecf20Sopenharmony_ci{
5178c2ecf20Sopenharmony_ci	return ((val) << CP_LOAD_STATE4_0_DST_OFF__SHIFT) & CP_LOAD_STATE4_0_DST_OFF__MASK;
5188c2ecf20Sopenharmony_ci}
5198c2ecf20Sopenharmony_ci#define CP_LOAD_STATE4_0_STATE_SRC__MASK			0x00030000
5208c2ecf20Sopenharmony_ci#define CP_LOAD_STATE4_0_STATE_SRC__SHIFT			16
5218c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE4_0_STATE_SRC(enum a4xx_state_src val)
5228c2ecf20Sopenharmony_ci{
5238c2ecf20Sopenharmony_ci	return ((val) << CP_LOAD_STATE4_0_STATE_SRC__SHIFT) & CP_LOAD_STATE4_0_STATE_SRC__MASK;
5248c2ecf20Sopenharmony_ci}
5258c2ecf20Sopenharmony_ci#define CP_LOAD_STATE4_0_STATE_BLOCK__MASK			0x003c0000
5268c2ecf20Sopenharmony_ci#define CP_LOAD_STATE4_0_STATE_BLOCK__SHIFT			18
5278c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE4_0_STATE_BLOCK(enum a4xx_state_block val)
5288c2ecf20Sopenharmony_ci{
5298c2ecf20Sopenharmony_ci	return ((val) << CP_LOAD_STATE4_0_STATE_BLOCK__SHIFT) & CP_LOAD_STATE4_0_STATE_BLOCK__MASK;
5308c2ecf20Sopenharmony_ci}
5318c2ecf20Sopenharmony_ci#define CP_LOAD_STATE4_0_NUM_UNIT__MASK				0xffc00000
5328c2ecf20Sopenharmony_ci#define CP_LOAD_STATE4_0_NUM_UNIT__SHIFT			22
5338c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE4_0_NUM_UNIT(uint32_t val)
5348c2ecf20Sopenharmony_ci{
5358c2ecf20Sopenharmony_ci	return ((val) << CP_LOAD_STATE4_0_NUM_UNIT__SHIFT) & CP_LOAD_STATE4_0_NUM_UNIT__MASK;
5368c2ecf20Sopenharmony_ci}
5378c2ecf20Sopenharmony_ci
5388c2ecf20Sopenharmony_ci#define REG_CP_LOAD_STATE4_1					0x00000001
5398c2ecf20Sopenharmony_ci#define CP_LOAD_STATE4_1_STATE_TYPE__MASK			0x00000003
5408c2ecf20Sopenharmony_ci#define CP_LOAD_STATE4_1_STATE_TYPE__SHIFT			0
5418c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE4_1_STATE_TYPE(enum a4xx_state_type val)
5428c2ecf20Sopenharmony_ci{
5438c2ecf20Sopenharmony_ci	return ((val) << CP_LOAD_STATE4_1_STATE_TYPE__SHIFT) & CP_LOAD_STATE4_1_STATE_TYPE__MASK;
5448c2ecf20Sopenharmony_ci}
5458c2ecf20Sopenharmony_ci#define CP_LOAD_STATE4_1_EXT_SRC_ADDR__MASK			0xfffffffc
5468c2ecf20Sopenharmony_ci#define CP_LOAD_STATE4_1_EXT_SRC_ADDR__SHIFT			2
5478c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE4_1_EXT_SRC_ADDR(uint32_t val)
5488c2ecf20Sopenharmony_ci{
5498c2ecf20Sopenharmony_ci	return ((val >> 2) << CP_LOAD_STATE4_1_EXT_SRC_ADDR__SHIFT) & CP_LOAD_STATE4_1_EXT_SRC_ADDR__MASK;
5508c2ecf20Sopenharmony_ci}
5518c2ecf20Sopenharmony_ci
5528c2ecf20Sopenharmony_ci#define REG_CP_LOAD_STATE4_2					0x00000002
5538c2ecf20Sopenharmony_ci#define CP_LOAD_STATE4_2_EXT_SRC_ADDR_HI__MASK			0xffffffff
5548c2ecf20Sopenharmony_ci#define CP_LOAD_STATE4_2_EXT_SRC_ADDR_HI__SHIFT			0
5558c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE4_2_EXT_SRC_ADDR_HI(uint32_t val)
5568c2ecf20Sopenharmony_ci{
5578c2ecf20Sopenharmony_ci	return ((val) << CP_LOAD_STATE4_2_EXT_SRC_ADDR_HI__SHIFT) & CP_LOAD_STATE4_2_EXT_SRC_ADDR_HI__MASK;
5588c2ecf20Sopenharmony_ci}
5598c2ecf20Sopenharmony_ci
5608c2ecf20Sopenharmony_ci#define REG_CP_LOAD_STATE6_0					0x00000000
5618c2ecf20Sopenharmony_ci#define CP_LOAD_STATE6_0_DST_OFF__MASK				0x00003fff
5628c2ecf20Sopenharmony_ci#define CP_LOAD_STATE6_0_DST_OFF__SHIFT				0
5638c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE6_0_DST_OFF(uint32_t val)
5648c2ecf20Sopenharmony_ci{
5658c2ecf20Sopenharmony_ci	return ((val) << CP_LOAD_STATE6_0_DST_OFF__SHIFT) & CP_LOAD_STATE6_0_DST_OFF__MASK;
5668c2ecf20Sopenharmony_ci}
5678c2ecf20Sopenharmony_ci#define CP_LOAD_STATE6_0_STATE_TYPE__MASK			0x0000c000
5688c2ecf20Sopenharmony_ci#define CP_LOAD_STATE6_0_STATE_TYPE__SHIFT			14
5698c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE6_0_STATE_TYPE(enum a6xx_state_type val)
5708c2ecf20Sopenharmony_ci{
5718c2ecf20Sopenharmony_ci	return ((val) << CP_LOAD_STATE6_0_STATE_TYPE__SHIFT) & CP_LOAD_STATE6_0_STATE_TYPE__MASK;
5728c2ecf20Sopenharmony_ci}
5738c2ecf20Sopenharmony_ci#define CP_LOAD_STATE6_0_STATE_SRC__MASK			0x00030000
5748c2ecf20Sopenharmony_ci#define CP_LOAD_STATE6_0_STATE_SRC__SHIFT			16
5758c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE6_0_STATE_SRC(enum a6xx_state_src val)
5768c2ecf20Sopenharmony_ci{
5778c2ecf20Sopenharmony_ci	return ((val) << CP_LOAD_STATE6_0_STATE_SRC__SHIFT) & CP_LOAD_STATE6_0_STATE_SRC__MASK;
5788c2ecf20Sopenharmony_ci}
5798c2ecf20Sopenharmony_ci#define CP_LOAD_STATE6_0_STATE_BLOCK__MASK			0x003c0000
5808c2ecf20Sopenharmony_ci#define CP_LOAD_STATE6_0_STATE_BLOCK__SHIFT			18
5818c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE6_0_STATE_BLOCK(enum a6xx_state_block val)
5828c2ecf20Sopenharmony_ci{
5838c2ecf20Sopenharmony_ci	return ((val) << CP_LOAD_STATE6_0_STATE_BLOCK__SHIFT) & CP_LOAD_STATE6_0_STATE_BLOCK__MASK;
5848c2ecf20Sopenharmony_ci}
5858c2ecf20Sopenharmony_ci#define CP_LOAD_STATE6_0_NUM_UNIT__MASK				0xffc00000
5868c2ecf20Sopenharmony_ci#define CP_LOAD_STATE6_0_NUM_UNIT__SHIFT			22
5878c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE6_0_NUM_UNIT(uint32_t val)
5888c2ecf20Sopenharmony_ci{
5898c2ecf20Sopenharmony_ci	return ((val) << CP_LOAD_STATE6_0_NUM_UNIT__SHIFT) & CP_LOAD_STATE6_0_NUM_UNIT__MASK;
5908c2ecf20Sopenharmony_ci}
5918c2ecf20Sopenharmony_ci
5928c2ecf20Sopenharmony_ci#define REG_CP_LOAD_STATE6_1					0x00000001
5938c2ecf20Sopenharmony_ci#define CP_LOAD_STATE6_1_EXT_SRC_ADDR__MASK			0xfffffffc
5948c2ecf20Sopenharmony_ci#define CP_LOAD_STATE6_1_EXT_SRC_ADDR__SHIFT			2
5958c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE6_1_EXT_SRC_ADDR(uint32_t val)
5968c2ecf20Sopenharmony_ci{
5978c2ecf20Sopenharmony_ci	return ((val >> 2) << CP_LOAD_STATE6_1_EXT_SRC_ADDR__SHIFT) & CP_LOAD_STATE6_1_EXT_SRC_ADDR__MASK;
5988c2ecf20Sopenharmony_ci}
5998c2ecf20Sopenharmony_ci
6008c2ecf20Sopenharmony_ci#define REG_CP_LOAD_STATE6_2					0x00000002
6018c2ecf20Sopenharmony_ci#define CP_LOAD_STATE6_2_EXT_SRC_ADDR_HI__MASK			0xffffffff
6028c2ecf20Sopenharmony_ci#define CP_LOAD_STATE6_2_EXT_SRC_ADDR_HI__SHIFT			0
6038c2ecf20Sopenharmony_cistatic inline uint32_t CP_LOAD_STATE6_2_EXT_SRC_ADDR_HI(uint32_t val)
6048c2ecf20Sopenharmony_ci{
6058c2ecf20Sopenharmony_ci	return ((val) << CP_LOAD_STATE6_2_EXT_SRC_ADDR_HI__SHIFT) & CP_LOAD_STATE6_2_EXT_SRC_ADDR_HI__MASK;
6068c2ecf20Sopenharmony_ci}
6078c2ecf20Sopenharmony_ci
6088c2ecf20Sopenharmony_ci#define REG_CP_LOAD_STATE6_EXT_SRC_ADDR				0x00000001
6098c2ecf20Sopenharmony_ci
6108c2ecf20Sopenharmony_ci#define REG_CP_DRAW_INDX_0					0x00000000
6118c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_0_VIZ_QUERY__MASK				0xffffffff
6128c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_0_VIZ_QUERY__SHIFT				0
6138c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_0_VIZ_QUERY(uint32_t val)
6148c2ecf20Sopenharmony_ci{
6158c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_0_VIZ_QUERY__SHIFT) & CP_DRAW_INDX_0_VIZ_QUERY__MASK;
6168c2ecf20Sopenharmony_ci}
6178c2ecf20Sopenharmony_ci
6188c2ecf20Sopenharmony_ci#define REG_CP_DRAW_INDX_1					0x00000001
6198c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_1_PRIM_TYPE__MASK				0x0000003f
6208c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_1_PRIM_TYPE__SHIFT				0
6218c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_1_PRIM_TYPE(enum pc_di_primtype val)
6228c2ecf20Sopenharmony_ci{
6238c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_1_PRIM_TYPE__SHIFT) & CP_DRAW_INDX_1_PRIM_TYPE__MASK;
6248c2ecf20Sopenharmony_ci}
6258c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_1_SOURCE_SELECT__MASK			0x000000c0
6268c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_1_SOURCE_SELECT__SHIFT			6
6278c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_1_SOURCE_SELECT(enum pc_di_src_sel val)
6288c2ecf20Sopenharmony_ci{
6298c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_1_SOURCE_SELECT__SHIFT) & CP_DRAW_INDX_1_SOURCE_SELECT__MASK;
6308c2ecf20Sopenharmony_ci}
6318c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_1_VIS_CULL__MASK				0x00000600
6328c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_1_VIS_CULL__SHIFT				9
6338c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_1_VIS_CULL(enum pc_di_vis_cull_mode val)
6348c2ecf20Sopenharmony_ci{
6358c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_1_VIS_CULL__SHIFT) & CP_DRAW_INDX_1_VIS_CULL__MASK;
6368c2ecf20Sopenharmony_ci}
6378c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_1_INDEX_SIZE__MASK				0x00000800
6388c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_1_INDEX_SIZE__SHIFT			11
6398c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_1_INDEX_SIZE(enum pc_di_index_size val)
6408c2ecf20Sopenharmony_ci{
6418c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_1_INDEX_SIZE__SHIFT) & CP_DRAW_INDX_1_INDEX_SIZE__MASK;
6428c2ecf20Sopenharmony_ci}
6438c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_1_NOT_EOP					0x00001000
6448c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_1_SMALL_INDEX				0x00002000
6458c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_1_PRE_DRAW_INITIATOR_ENABLE		0x00004000
6468c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_1_NUM_INSTANCES__MASK			0xff000000
6478c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_1_NUM_INSTANCES__SHIFT			24
6488c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_1_NUM_INSTANCES(uint32_t val)
6498c2ecf20Sopenharmony_ci{
6508c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_1_NUM_INSTANCES__SHIFT) & CP_DRAW_INDX_1_NUM_INSTANCES__MASK;
6518c2ecf20Sopenharmony_ci}
6528c2ecf20Sopenharmony_ci
6538c2ecf20Sopenharmony_ci#define REG_CP_DRAW_INDX_2					0x00000002
6548c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_NUM_INDICES__MASK			0xffffffff
6558c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_NUM_INDICES__SHIFT			0
6568c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_2_NUM_INDICES(uint32_t val)
6578c2ecf20Sopenharmony_ci{
6588c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_2_NUM_INDICES__SHIFT) & CP_DRAW_INDX_2_NUM_INDICES__MASK;
6598c2ecf20Sopenharmony_ci}
6608c2ecf20Sopenharmony_ci
6618c2ecf20Sopenharmony_ci#define REG_CP_DRAW_INDX_3					0x00000003
6628c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_3_INDX_BASE__MASK				0xffffffff
6638c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_3_INDX_BASE__SHIFT				0
6648c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_3_INDX_BASE(uint32_t val)
6658c2ecf20Sopenharmony_ci{
6668c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_3_INDX_BASE__SHIFT) & CP_DRAW_INDX_3_INDX_BASE__MASK;
6678c2ecf20Sopenharmony_ci}
6688c2ecf20Sopenharmony_ci
6698c2ecf20Sopenharmony_ci#define REG_CP_DRAW_INDX_4					0x00000004
6708c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_4_INDX_SIZE__MASK				0xffffffff
6718c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_4_INDX_SIZE__SHIFT				0
6728c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_4_INDX_SIZE(uint32_t val)
6738c2ecf20Sopenharmony_ci{
6748c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_4_INDX_SIZE__SHIFT) & CP_DRAW_INDX_4_INDX_SIZE__MASK;
6758c2ecf20Sopenharmony_ci}
6768c2ecf20Sopenharmony_ci
6778c2ecf20Sopenharmony_ci#define REG_CP_DRAW_INDX_2_0					0x00000000
6788c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_0_VIZ_QUERY__MASK			0xffffffff
6798c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_0_VIZ_QUERY__SHIFT			0
6808c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_2_0_VIZ_QUERY(uint32_t val)
6818c2ecf20Sopenharmony_ci{
6828c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_2_0_VIZ_QUERY__SHIFT) & CP_DRAW_INDX_2_0_VIZ_QUERY__MASK;
6838c2ecf20Sopenharmony_ci}
6848c2ecf20Sopenharmony_ci
6858c2ecf20Sopenharmony_ci#define REG_CP_DRAW_INDX_2_1					0x00000001
6868c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_1_PRIM_TYPE__MASK			0x0000003f
6878c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_1_PRIM_TYPE__SHIFT			0
6888c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_2_1_PRIM_TYPE(enum pc_di_primtype val)
6898c2ecf20Sopenharmony_ci{
6908c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_2_1_PRIM_TYPE__SHIFT) & CP_DRAW_INDX_2_1_PRIM_TYPE__MASK;
6918c2ecf20Sopenharmony_ci}
6928c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_1_SOURCE_SELECT__MASK			0x000000c0
6938c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_1_SOURCE_SELECT__SHIFT			6
6948c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_2_1_SOURCE_SELECT(enum pc_di_src_sel val)
6958c2ecf20Sopenharmony_ci{
6968c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_2_1_SOURCE_SELECT__SHIFT) & CP_DRAW_INDX_2_1_SOURCE_SELECT__MASK;
6978c2ecf20Sopenharmony_ci}
6988c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_1_VIS_CULL__MASK				0x00000600
6998c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_1_VIS_CULL__SHIFT			9
7008c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_2_1_VIS_CULL(enum pc_di_vis_cull_mode val)
7018c2ecf20Sopenharmony_ci{
7028c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_2_1_VIS_CULL__SHIFT) & CP_DRAW_INDX_2_1_VIS_CULL__MASK;
7038c2ecf20Sopenharmony_ci}
7048c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_1_INDEX_SIZE__MASK			0x00000800
7058c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_1_INDEX_SIZE__SHIFT			11
7068c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_2_1_INDEX_SIZE(enum pc_di_index_size val)
7078c2ecf20Sopenharmony_ci{
7088c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_2_1_INDEX_SIZE__SHIFT) & CP_DRAW_INDX_2_1_INDEX_SIZE__MASK;
7098c2ecf20Sopenharmony_ci}
7108c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_1_NOT_EOP				0x00001000
7118c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_1_SMALL_INDEX				0x00002000
7128c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_1_PRE_DRAW_INITIATOR_ENABLE		0x00004000
7138c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_1_NUM_INSTANCES__MASK			0xff000000
7148c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_1_NUM_INSTANCES__SHIFT			24
7158c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_2_1_NUM_INSTANCES(uint32_t val)
7168c2ecf20Sopenharmony_ci{
7178c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_2_1_NUM_INSTANCES__SHIFT) & CP_DRAW_INDX_2_1_NUM_INSTANCES__MASK;
7188c2ecf20Sopenharmony_ci}
7198c2ecf20Sopenharmony_ci
7208c2ecf20Sopenharmony_ci#define REG_CP_DRAW_INDX_2_2					0x00000002
7218c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_2_NUM_INDICES__MASK			0xffffffff
7228c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_2_2_NUM_INDICES__SHIFT			0
7238c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_2_2_NUM_INDICES(uint32_t val)
7248c2ecf20Sopenharmony_ci{
7258c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_2_2_NUM_INDICES__SHIFT) & CP_DRAW_INDX_2_2_NUM_INDICES__MASK;
7268c2ecf20Sopenharmony_ci}
7278c2ecf20Sopenharmony_ci
7288c2ecf20Sopenharmony_ci#define REG_CP_DRAW_INDX_OFFSET_0				0x00000000
7298c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_0_PRIM_TYPE__MASK			0x0000003f
7308c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_0_PRIM_TYPE__SHIFT			0
7318c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_OFFSET_0_PRIM_TYPE(enum pc_di_primtype val)
7328c2ecf20Sopenharmony_ci{
7338c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_OFFSET_0_PRIM_TYPE__SHIFT) & CP_DRAW_INDX_OFFSET_0_PRIM_TYPE__MASK;
7348c2ecf20Sopenharmony_ci}
7358c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_0_SOURCE_SELECT__MASK		0x000000c0
7368c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_0_SOURCE_SELECT__SHIFT		6
7378c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_OFFSET_0_SOURCE_SELECT(enum pc_di_src_sel val)
7388c2ecf20Sopenharmony_ci{
7398c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_OFFSET_0_SOURCE_SELECT__SHIFT) & CP_DRAW_INDX_OFFSET_0_SOURCE_SELECT__MASK;
7408c2ecf20Sopenharmony_ci}
7418c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_0_VIS_CULL__MASK			0x00000300
7428c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_0_VIS_CULL__SHIFT			8
7438c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_OFFSET_0_VIS_CULL(enum pc_di_vis_cull_mode val)
7448c2ecf20Sopenharmony_ci{
7458c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_OFFSET_0_VIS_CULL__SHIFT) & CP_DRAW_INDX_OFFSET_0_VIS_CULL__MASK;
7468c2ecf20Sopenharmony_ci}
7478c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_0_INDEX_SIZE__MASK			0x00000c00
7488c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_0_INDEX_SIZE__SHIFT			10
7498c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_OFFSET_0_INDEX_SIZE(enum a4xx_index_size val)
7508c2ecf20Sopenharmony_ci{
7518c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_OFFSET_0_INDEX_SIZE__SHIFT) & CP_DRAW_INDX_OFFSET_0_INDEX_SIZE__MASK;
7528c2ecf20Sopenharmony_ci}
7538c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_0_PATCH_TYPE__MASK			0x00003000
7548c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_0_PATCH_TYPE__SHIFT			12
7558c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_OFFSET_0_PATCH_TYPE(enum a6xx_patch_type val)
7568c2ecf20Sopenharmony_ci{
7578c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_OFFSET_0_PATCH_TYPE__SHIFT) & CP_DRAW_INDX_OFFSET_0_PATCH_TYPE__MASK;
7588c2ecf20Sopenharmony_ci}
7598c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_0_GS_ENABLE				0x00010000
7608c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_0_TESS_ENABLE			0x00020000
7618c2ecf20Sopenharmony_ci
7628c2ecf20Sopenharmony_ci#define REG_CP_DRAW_INDX_OFFSET_1				0x00000001
7638c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_1_NUM_INSTANCES__MASK		0xffffffff
7648c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_1_NUM_INSTANCES__SHIFT		0
7658c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_OFFSET_1_NUM_INSTANCES(uint32_t val)
7668c2ecf20Sopenharmony_ci{
7678c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_OFFSET_1_NUM_INSTANCES__SHIFT) & CP_DRAW_INDX_OFFSET_1_NUM_INSTANCES__MASK;
7688c2ecf20Sopenharmony_ci}
7698c2ecf20Sopenharmony_ci
7708c2ecf20Sopenharmony_ci#define REG_CP_DRAW_INDX_OFFSET_2				0x00000002
7718c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_2_NUM_INDICES__MASK			0xffffffff
7728c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_2_NUM_INDICES__SHIFT		0
7738c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_OFFSET_2_NUM_INDICES(uint32_t val)
7748c2ecf20Sopenharmony_ci{
7758c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_OFFSET_2_NUM_INDICES__SHIFT) & CP_DRAW_INDX_OFFSET_2_NUM_INDICES__MASK;
7768c2ecf20Sopenharmony_ci}
7778c2ecf20Sopenharmony_ci
7788c2ecf20Sopenharmony_ci#define REG_CP_DRAW_INDX_OFFSET_3				0x00000003
7798c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_3_FIRST_INDX__MASK			0xffffffff
7808c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_3_FIRST_INDX__SHIFT			0
7818c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_OFFSET_3_FIRST_INDX(uint32_t val)
7828c2ecf20Sopenharmony_ci{
7838c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_OFFSET_3_FIRST_INDX__SHIFT) & CP_DRAW_INDX_OFFSET_3_FIRST_INDX__MASK;
7848c2ecf20Sopenharmony_ci}
7858c2ecf20Sopenharmony_ci
7868c2ecf20Sopenharmony_ci
7878c2ecf20Sopenharmony_ci#define REG_CP_DRAW_INDX_OFFSET_4				0x00000004
7888c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_4_INDX_BASE_LO__MASK		0xffffffff
7898c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_4_INDX_BASE_LO__SHIFT		0
7908c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_OFFSET_4_INDX_BASE_LO(uint32_t val)
7918c2ecf20Sopenharmony_ci{
7928c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_OFFSET_4_INDX_BASE_LO__SHIFT) & CP_DRAW_INDX_OFFSET_4_INDX_BASE_LO__MASK;
7938c2ecf20Sopenharmony_ci}
7948c2ecf20Sopenharmony_ci
7958c2ecf20Sopenharmony_ci#define REG_CP_DRAW_INDX_OFFSET_5				0x00000005
7968c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_5_INDX_BASE_HI__MASK		0xffffffff
7978c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_5_INDX_BASE_HI__SHIFT		0
7988c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_OFFSET_5_INDX_BASE_HI(uint32_t val)
7998c2ecf20Sopenharmony_ci{
8008c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_OFFSET_5_INDX_BASE_HI__SHIFT) & CP_DRAW_INDX_OFFSET_5_INDX_BASE_HI__MASK;
8018c2ecf20Sopenharmony_ci}
8028c2ecf20Sopenharmony_ci
8038c2ecf20Sopenharmony_ci#define REG_CP_DRAW_INDX_OFFSET_INDX_BASE			0x00000004
8048c2ecf20Sopenharmony_ci
8058c2ecf20Sopenharmony_ci#define REG_CP_DRAW_INDX_OFFSET_6				0x00000006
8068c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_6_MAX_INDICES__MASK			0xffffffff
8078c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_6_MAX_INDICES__SHIFT		0
8088c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_OFFSET_6_MAX_INDICES(uint32_t val)
8098c2ecf20Sopenharmony_ci{
8108c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_OFFSET_6_MAX_INDICES__SHIFT) & CP_DRAW_INDX_OFFSET_6_MAX_INDICES__MASK;
8118c2ecf20Sopenharmony_ci}
8128c2ecf20Sopenharmony_ci
8138c2ecf20Sopenharmony_ci#define REG_CP_DRAW_INDX_OFFSET_4				0x00000004
8148c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_4_INDX_BASE__MASK			0xffffffff
8158c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_4_INDX_BASE__SHIFT			0
8168c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_OFFSET_4_INDX_BASE(uint32_t val)
8178c2ecf20Sopenharmony_ci{
8188c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_OFFSET_4_INDX_BASE__SHIFT) & CP_DRAW_INDX_OFFSET_4_INDX_BASE__MASK;
8198c2ecf20Sopenharmony_ci}
8208c2ecf20Sopenharmony_ci
8218c2ecf20Sopenharmony_ci#define REG_CP_DRAW_INDX_OFFSET_5				0x00000005
8228c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_5_INDX_SIZE__MASK			0xffffffff
8238c2ecf20Sopenharmony_ci#define CP_DRAW_INDX_OFFSET_5_INDX_SIZE__SHIFT			0
8248c2ecf20Sopenharmony_cistatic inline uint32_t CP_DRAW_INDX_OFFSET_5_INDX_SIZE(uint32_t val)
8258c2ecf20Sopenharmony_ci{
8268c2ecf20Sopenharmony_ci	return ((val) << CP_DRAW_INDX_OFFSET_5_INDX_SIZE__SHIFT) & CP_DRAW_INDX_OFFSET_5_INDX_SIZE__MASK;
8278c2ecf20Sopenharmony_ci}
8288c2ecf20Sopenharmony_ci
8298c2ecf20Sopenharmony_ci#define REG_A4XX_CP_DRAW_INDIRECT_0				0x00000000
8308c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDIRECT_0_PRIM_TYPE__MASK			0x0000003f
8318c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDIRECT_0_PRIM_TYPE__SHIFT		0
8328c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_DRAW_INDIRECT_0_PRIM_TYPE(enum pc_di_primtype val)
8338c2ecf20Sopenharmony_ci{
8348c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_DRAW_INDIRECT_0_PRIM_TYPE__SHIFT) & A4XX_CP_DRAW_INDIRECT_0_PRIM_TYPE__MASK;
8358c2ecf20Sopenharmony_ci}
8368c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDIRECT_0_SOURCE_SELECT__MASK		0x000000c0
8378c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDIRECT_0_SOURCE_SELECT__SHIFT		6
8388c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_DRAW_INDIRECT_0_SOURCE_SELECT(enum pc_di_src_sel val)
8398c2ecf20Sopenharmony_ci{
8408c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_DRAW_INDIRECT_0_SOURCE_SELECT__SHIFT) & A4XX_CP_DRAW_INDIRECT_0_SOURCE_SELECT__MASK;
8418c2ecf20Sopenharmony_ci}
8428c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDIRECT_0_VIS_CULL__MASK			0x00000300
8438c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDIRECT_0_VIS_CULL__SHIFT			8
8448c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_DRAW_INDIRECT_0_VIS_CULL(enum pc_di_vis_cull_mode val)
8458c2ecf20Sopenharmony_ci{
8468c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_DRAW_INDIRECT_0_VIS_CULL__SHIFT) & A4XX_CP_DRAW_INDIRECT_0_VIS_CULL__MASK;
8478c2ecf20Sopenharmony_ci}
8488c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDIRECT_0_INDEX_SIZE__MASK		0x00000c00
8498c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDIRECT_0_INDEX_SIZE__SHIFT		10
8508c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_DRAW_INDIRECT_0_INDEX_SIZE(enum a4xx_index_size val)
8518c2ecf20Sopenharmony_ci{
8528c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_DRAW_INDIRECT_0_INDEX_SIZE__SHIFT) & A4XX_CP_DRAW_INDIRECT_0_INDEX_SIZE__MASK;
8538c2ecf20Sopenharmony_ci}
8548c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDIRECT_0_PATCH_TYPE__MASK		0x00003000
8558c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDIRECT_0_PATCH_TYPE__SHIFT		12
8568c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_DRAW_INDIRECT_0_PATCH_TYPE(enum a6xx_patch_type val)
8578c2ecf20Sopenharmony_ci{
8588c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_DRAW_INDIRECT_0_PATCH_TYPE__SHIFT) & A4XX_CP_DRAW_INDIRECT_0_PATCH_TYPE__MASK;
8598c2ecf20Sopenharmony_ci}
8608c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDIRECT_0_GS_ENABLE			0x00010000
8618c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDIRECT_0_TESS_ENABLE			0x00020000
8628c2ecf20Sopenharmony_ci
8638c2ecf20Sopenharmony_ci
8648c2ecf20Sopenharmony_ci#define REG_A4XX_CP_DRAW_INDIRECT_1				0x00000001
8658c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDIRECT_1_INDIRECT__MASK			0xffffffff
8668c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDIRECT_1_INDIRECT__SHIFT			0
8678c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_DRAW_INDIRECT_1_INDIRECT(uint32_t val)
8688c2ecf20Sopenharmony_ci{
8698c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_DRAW_INDIRECT_1_INDIRECT__SHIFT) & A4XX_CP_DRAW_INDIRECT_1_INDIRECT__MASK;
8708c2ecf20Sopenharmony_ci}
8718c2ecf20Sopenharmony_ci
8728c2ecf20Sopenharmony_ci
8738c2ecf20Sopenharmony_ci#define REG_A5XX_CP_DRAW_INDIRECT_1				0x00000001
8748c2ecf20Sopenharmony_ci#define A5XX_CP_DRAW_INDIRECT_1_INDIRECT_LO__MASK		0xffffffff
8758c2ecf20Sopenharmony_ci#define A5XX_CP_DRAW_INDIRECT_1_INDIRECT_LO__SHIFT		0
8768c2ecf20Sopenharmony_cistatic inline uint32_t A5XX_CP_DRAW_INDIRECT_1_INDIRECT_LO(uint32_t val)
8778c2ecf20Sopenharmony_ci{
8788c2ecf20Sopenharmony_ci	return ((val) << A5XX_CP_DRAW_INDIRECT_1_INDIRECT_LO__SHIFT) & A5XX_CP_DRAW_INDIRECT_1_INDIRECT_LO__MASK;
8798c2ecf20Sopenharmony_ci}
8808c2ecf20Sopenharmony_ci
8818c2ecf20Sopenharmony_ci#define REG_A5XX_CP_DRAW_INDIRECT_2				0x00000002
8828c2ecf20Sopenharmony_ci#define A5XX_CP_DRAW_INDIRECT_2_INDIRECT_HI__MASK		0xffffffff
8838c2ecf20Sopenharmony_ci#define A5XX_CP_DRAW_INDIRECT_2_INDIRECT_HI__SHIFT		0
8848c2ecf20Sopenharmony_cistatic inline uint32_t A5XX_CP_DRAW_INDIRECT_2_INDIRECT_HI(uint32_t val)
8858c2ecf20Sopenharmony_ci{
8868c2ecf20Sopenharmony_ci	return ((val) << A5XX_CP_DRAW_INDIRECT_2_INDIRECT_HI__SHIFT) & A5XX_CP_DRAW_INDIRECT_2_INDIRECT_HI__MASK;
8878c2ecf20Sopenharmony_ci}
8888c2ecf20Sopenharmony_ci
8898c2ecf20Sopenharmony_ci#define REG_A5XX_CP_DRAW_INDIRECT_INDIRECT			0x00000001
8908c2ecf20Sopenharmony_ci
8918c2ecf20Sopenharmony_ci#define REG_A4XX_CP_DRAW_INDX_INDIRECT_0			0x00000000
8928c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDX_INDIRECT_0_PRIM_TYPE__MASK		0x0000003f
8938c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDX_INDIRECT_0_PRIM_TYPE__SHIFT		0
8948c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_DRAW_INDX_INDIRECT_0_PRIM_TYPE(enum pc_di_primtype val)
8958c2ecf20Sopenharmony_ci{
8968c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_DRAW_INDX_INDIRECT_0_PRIM_TYPE__SHIFT) & A4XX_CP_DRAW_INDX_INDIRECT_0_PRIM_TYPE__MASK;
8978c2ecf20Sopenharmony_ci}
8988c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDX_INDIRECT_0_SOURCE_SELECT__MASK	0x000000c0
8998c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDX_INDIRECT_0_SOURCE_SELECT__SHIFT	6
9008c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_DRAW_INDX_INDIRECT_0_SOURCE_SELECT(enum pc_di_src_sel val)
9018c2ecf20Sopenharmony_ci{
9028c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_DRAW_INDX_INDIRECT_0_SOURCE_SELECT__SHIFT) & A4XX_CP_DRAW_INDX_INDIRECT_0_SOURCE_SELECT__MASK;
9038c2ecf20Sopenharmony_ci}
9048c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDX_INDIRECT_0_VIS_CULL__MASK		0x00000300
9058c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDX_INDIRECT_0_VIS_CULL__SHIFT		8
9068c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_DRAW_INDX_INDIRECT_0_VIS_CULL(enum pc_di_vis_cull_mode val)
9078c2ecf20Sopenharmony_ci{
9088c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_DRAW_INDX_INDIRECT_0_VIS_CULL__SHIFT) & A4XX_CP_DRAW_INDX_INDIRECT_0_VIS_CULL__MASK;
9098c2ecf20Sopenharmony_ci}
9108c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDX_INDIRECT_0_INDEX_SIZE__MASK		0x00000c00
9118c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDX_INDIRECT_0_INDEX_SIZE__SHIFT		10
9128c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_DRAW_INDX_INDIRECT_0_INDEX_SIZE(enum a4xx_index_size val)
9138c2ecf20Sopenharmony_ci{
9148c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_DRAW_INDX_INDIRECT_0_INDEX_SIZE__SHIFT) & A4XX_CP_DRAW_INDX_INDIRECT_0_INDEX_SIZE__MASK;
9158c2ecf20Sopenharmony_ci}
9168c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDX_INDIRECT_0_PATCH_TYPE__MASK		0x00003000
9178c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDX_INDIRECT_0_PATCH_TYPE__SHIFT		12
9188c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_DRAW_INDX_INDIRECT_0_PATCH_TYPE(enum a6xx_patch_type val)
9198c2ecf20Sopenharmony_ci{
9208c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_DRAW_INDX_INDIRECT_0_PATCH_TYPE__SHIFT) & A4XX_CP_DRAW_INDX_INDIRECT_0_PATCH_TYPE__MASK;
9218c2ecf20Sopenharmony_ci}
9228c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDX_INDIRECT_0_GS_ENABLE			0x00010000
9238c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDX_INDIRECT_0_TESS_ENABLE		0x00020000
9248c2ecf20Sopenharmony_ci
9258c2ecf20Sopenharmony_ci
9268c2ecf20Sopenharmony_ci#define REG_A4XX_CP_DRAW_INDX_INDIRECT_1			0x00000001
9278c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDX_INDIRECT_1_INDX_BASE__MASK		0xffffffff
9288c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDX_INDIRECT_1_INDX_BASE__SHIFT		0
9298c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_DRAW_INDX_INDIRECT_1_INDX_BASE(uint32_t val)
9308c2ecf20Sopenharmony_ci{
9318c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_DRAW_INDX_INDIRECT_1_INDX_BASE__SHIFT) & A4XX_CP_DRAW_INDX_INDIRECT_1_INDX_BASE__MASK;
9328c2ecf20Sopenharmony_ci}
9338c2ecf20Sopenharmony_ci
9348c2ecf20Sopenharmony_ci#define REG_A4XX_CP_DRAW_INDX_INDIRECT_2			0x00000002
9358c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDX_INDIRECT_2_INDX_SIZE__MASK		0xffffffff
9368c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDX_INDIRECT_2_INDX_SIZE__SHIFT		0
9378c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_DRAW_INDX_INDIRECT_2_INDX_SIZE(uint32_t val)
9388c2ecf20Sopenharmony_ci{
9398c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_DRAW_INDX_INDIRECT_2_INDX_SIZE__SHIFT) & A4XX_CP_DRAW_INDX_INDIRECT_2_INDX_SIZE__MASK;
9408c2ecf20Sopenharmony_ci}
9418c2ecf20Sopenharmony_ci
9428c2ecf20Sopenharmony_ci#define REG_A4XX_CP_DRAW_INDX_INDIRECT_3			0x00000003
9438c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDX_INDIRECT_3_INDIRECT__MASK		0xffffffff
9448c2ecf20Sopenharmony_ci#define A4XX_CP_DRAW_INDX_INDIRECT_3_INDIRECT__SHIFT		0
9458c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_DRAW_INDX_INDIRECT_3_INDIRECT(uint32_t val)
9468c2ecf20Sopenharmony_ci{
9478c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_DRAW_INDX_INDIRECT_3_INDIRECT__SHIFT) & A4XX_CP_DRAW_INDX_INDIRECT_3_INDIRECT__MASK;
9488c2ecf20Sopenharmony_ci}
9498c2ecf20Sopenharmony_ci
9508c2ecf20Sopenharmony_ci
9518c2ecf20Sopenharmony_ci#define REG_A5XX_CP_DRAW_INDX_INDIRECT_1			0x00000001
9528c2ecf20Sopenharmony_ci#define A5XX_CP_DRAW_INDX_INDIRECT_1_INDX_BASE_LO__MASK		0xffffffff
9538c2ecf20Sopenharmony_ci#define A5XX_CP_DRAW_INDX_INDIRECT_1_INDX_BASE_LO__SHIFT	0
9548c2ecf20Sopenharmony_cistatic inline uint32_t A5XX_CP_DRAW_INDX_INDIRECT_1_INDX_BASE_LO(uint32_t val)
9558c2ecf20Sopenharmony_ci{
9568c2ecf20Sopenharmony_ci	return ((val) << A5XX_CP_DRAW_INDX_INDIRECT_1_INDX_BASE_LO__SHIFT) & A5XX_CP_DRAW_INDX_INDIRECT_1_INDX_BASE_LO__MASK;
9578c2ecf20Sopenharmony_ci}
9588c2ecf20Sopenharmony_ci
9598c2ecf20Sopenharmony_ci#define REG_A5XX_CP_DRAW_INDX_INDIRECT_2			0x00000002
9608c2ecf20Sopenharmony_ci#define A5XX_CP_DRAW_INDX_INDIRECT_2_INDX_BASE_HI__MASK		0xffffffff
9618c2ecf20Sopenharmony_ci#define A5XX_CP_DRAW_INDX_INDIRECT_2_INDX_BASE_HI__SHIFT	0
9628c2ecf20Sopenharmony_cistatic inline uint32_t A5XX_CP_DRAW_INDX_INDIRECT_2_INDX_BASE_HI(uint32_t val)
9638c2ecf20Sopenharmony_ci{
9648c2ecf20Sopenharmony_ci	return ((val) << A5XX_CP_DRAW_INDX_INDIRECT_2_INDX_BASE_HI__SHIFT) & A5XX_CP_DRAW_INDX_INDIRECT_2_INDX_BASE_HI__MASK;
9658c2ecf20Sopenharmony_ci}
9668c2ecf20Sopenharmony_ci
9678c2ecf20Sopenharmony_ci#define REG_A5XX_CP_DRAW_INDX_INDIRECT_INDX_BASE		0x00000001
9688c2ecf20Sopenharmony_ci
9698c2ecf20Sopenharmony_ci#define REG_A5XX_CP_DRAW_INDX_INDIRECT_3			0x00000003
9708c2ecf20Sopenharmony_ci#define A5XX_CP_DRAW_INDX_INDIRECT_3_MAX_INDICES__MASK		0xffffffff
9718c2ecf20Sopenharmony_ci#define A5XX_CP_DRAW_INDX_INDIRECT_3_MAX_INDICES__SHIFT		0
9728c2ecf20Sopenharmony_cistatic inline uint32_t A5XX_CP_DRAW_INDX_INDIRECT_3_MAX_INDICES(uint32_t val)
9738c2ecf20Sopenharmony_ci{
9748c2ecf20Sopenharmony_ci	return ((val) << A5XX_CP_DRAW_INDX_INDIRECT_3_MAX_INDICES__SHIFT) & A5XX_CP_DRAW_INDX_INDIRECT_3_MAX_INDICES__MASK;
9758c2ecf20Sopenharmony_ci}
9768c2ecf20Sopenharmony_ci
9778c2ecf20Sopenharmony_ci#define REG_A5XX_CP_DRAW_INDX_INDIRECT_4			0x00000004
9788c2ecf20Sopenharmony_ci#define A5XX_CP_DRAW_INDX_INDIRECT_4_INDIRECT_LO__MASK		0xffffffff
9798c2ecf20Sopenharmony_ci#define A5XX_CP_DRAW_INDX_INDIRECT_4_INDIRECT_LO__SHIFT		0
9808c2ecf20Sopenharmony_cistatic inline uint32_t A5XX_CP_DRAW_INDX_INDIRECT_4_INDIRECT_LO(uint32_t val)
9818c2ecf20Sopenharmony_ci{
9828c2ecf20Sopenharmony_ci	return ((val) << A5XX_CP_DRAW_INDX_INDIRECT_4_INDIRECT_LO__SHIFT) & A5XX_CP_DRAW_INDX_INDIRECT_4_INDIRECT_LO__MASK;
9838c2ecf20Sopenharmony_ci}
9848c2ecf20Sopenharmony_ci
9858c2ecf20Sopenharmony_ci#define REG_A5XX_CP_DRAW_INDX_INDIRECT_5			0x00000005
9868c2ecf20Sopenharmony_ci#define A5XX_CP_DRAW_INDX_INDIRECT_5_INDIRECT_HI__MASK		0xffffffff
9878c2ecf20Sopenharmony_ci#define A5XX_CP_DRAW_INDX_INDIRECT_5_INDIRECT_HI__SHIFT		0
9888c2ecf20Sopenharmony_cistatic inline uint32_t A5XX_CP_DRAW_INDX_INDIRECT_5_INDIRECT_HI(uint32_t val)
9898c2ecf20Sopenharmony_ci{
9908c2ecf20Sopenharmony_ci	return ((val) << A5XX_CP_DRAW_INDX_INDIRECT_5_INDIRECT_HI__SHIFT) & A5XX_CP_DRAW_INDX_INDIRECT_5_INDIRECT_HI__MASK;
9918c2ecf20Sopenharmony_ci}
9928c2ecf20Sopenharmony_ci
9938c2ecf20Sopenharmony_ci#define REG_A5XX_CP_DRAW_INDX_INDIRECT_INDIRECT			0x00000004
9948c2ecf20Sopenharmony_ci
9958c2ecf20Sopenharmony_ci#define REG_A6XX_CP_DRAW_INDIRECT_MULTI_0			0x00000000
9968c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_0_PRIM_TYPE__MASK		0x0000003f
9978c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_0_PRIM_TYPE__SHIFT		0
9988c2ecf20Sopenharmony_cistatic inline uint32_t A6XX_CP_DRAW_INDIRECT_MULTI_0_PRIM_TYPE(enum pc_di_primtype val)
9998c2ecf20Sopenharmony_ci{
10008c2ecf20Sopenharmony_ci	return ((val) << A6XX_CP_DRAW_INDIRECT_MULTI_0_PRIM_TYPE__SHIFT) & A6XX_CP_DRAW_INDIRECT_MULTI_0_PRIM_TYPE__MASK;
10018c2ecf20Sopenharmony_ci}
10028c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_0_SOURCE_SELECT__MASK	0x000000c0
10038c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_0_SOURCE_SELECT__SHIFT	6
10048c2ecf20Sopenharmony_cistatic inline uint32_t A6XX_CP_DRAW_INDIRECT_MULTI_0_SOURCE_SELECT(enum pc_di_src_sel val)
10058c2ecf20Sopenharmony_ci{
10068c2ecf20Sopenharmony_ci	return ((val) << A6XX_CP_DRAW_INDIRECT_MULTI_0_SOURCE_SELECT__SHIFT) & A6XX_CP_DRAW_INDIRECT_MULTI_0_SOURCE_SELECT__MASK;
10078c2ecf20Sopenharmony_ci}
10088c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_0_VIS_CULL__MASK		0x00000300
10098c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_0_VIS_CULL__SHIFT		8
10108c2ecf20Sopenharmony_cistatic inline uint32_t A6XX_CP_DRAW_INDIRECT_MULTI_0_VIS_CULL(enum pc_di_vis_cull_mode val)
10118c2ecf20Sopenharmony_ci{
10128c2ecf20Sopenharmony_ci	return ((val) << A6XX_CP_DRAW_INDIRECT_MULTI_0_VIS_CULL__SHIFT) & A6XX_CP_DRAW_INDIRECT_MULTI_0_VIS_CULL__MASK;
10138c2ecf20Sopenharmony_ci}
10148c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_0_INDEX_SIZE__MASK		0x00000c00
10158c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_0_INDEX_SIZE__SHIFT		10
10168c2ecf20Sopenharmony_cistatic inline uint32_t A6XX_CP_DRAW_INDIRECT_MULTI_0_INDEX_SIZE(enum a4xx_index_size val)
10178c2ecf20Sopenharmony_ci{
10188c2ecf20Sopenharmony_ci	return ((val) << A6XX_CP_DRAW_INDIRECT_MULTI_0_INDEX_SIZE__SHIFT) & A6XX_CP_DRAW_INDIRECT_MULTI_0_INDEX_SIZE__MASK;
10198c2ecf20Sopenharmony_ci}
10208c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_0_PATCH_TYPE__MASK		0x00003000
10218c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_0_PATCH_TYPE__SHIFT		12
10228c2ecf20Sopenharmony_cistatic inline uint32_t A6XX_CP_DRAW_INDIRECT_MULTI_0_PATCH_TYPE(enum a6xx_patch_type val)
10238c2ecf20Sopenharmony_ci{
10248c2ecf20Sopenharmony_ci	return ((val) << A6XX_CP_DRAW_INDIRECT_MULTI_0_PATCH_TYPE__SHIFT) & A6XX_CP_DRAW_INDIRECT_MULTI_0_PATCH_TYPE__MASK;
10258c2ecf20Sopenharmony_ci}
10268c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_0_GS_ENABLE			0x00010000
10278c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_0_TESS_ENABLE		0x00020000
10288c2ecf20Sopenharmony_ci
10298c2ecf20Sopenharmony_ci#define REG_A6XX_CP_DRAW_INDIRECT_MULTI_1			0x00000001
10308c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_1_OPCODE__MASK		0x0000000f
10318c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_1_OPCODE__SHIFT		0
10328c2ecf20Sopenharmony_cistatic inline uint32_t A6XX_CP_DRAW_INDIRECT_MULTI_1_OPCODE(enum a6xx_draw_indirect_opcode val)
10338c2ecf20Sopenharmony_ci{
10348c2ecf20Sopenharmony_ci	return ((val) << A6XX_CP_DRAW_INDIRECT_MULTI_1_OPCODE__SHIFT) & A6XX_CP_DRAW_INDIRECT_MULTI_1_OPCODE__MASK;
10358c2ecf20Sopenharmony_ci}
10368c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_1_DST_OFF__MASK		0x003fff00
10378c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_1_DST_OFF__SHIFT		8
10388c2ecf20Sopenharmony_cistatic inline uint32_t A6XX_CP_DRAW_INDIRECT_MULTI_1_DST_OFF(uint32_t val)
10398c2ecf20Sopenharmony_ci{
10408c2ecf20Sopenharmony_ci	return ((val) << A6XX_CP_DRAW_INDIRECT_MULTI_1_DST_OFF__SHIFT) & A6XX_CP_DRAW_INDIRECT_MULTI_1_DST_OFF__MASK;
10418c2ecf20Sopenharmony_ci}
10428c2ecf20Sopenharmony_ci
10438c2ecf20Sopenharmony_ci#define REG_A6XX_CP_DRAW_INDIRECT_MULTI_2			0x00000002
10448c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_2_DRAW_COUNT__MASK		0xffffffff
10458c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_2_DRAW_COUNT__SHIFT		0
10468c2ecf20Sopenharmony_cistatic inline uint32_t A6XX_CP_DRAW_INDIRECT_MULTI_2_DRAW_COUNT(uint32_t val)
10478c2ecf20Sopenharmony_ci{
10488c2ecf20Sopenharmony_ci	return ((val) << A6XX_CP_DRAW_INDIRECT_MULTI_2_DRAW_COUNT__SHIFT) & A6XX_CP_DRAW_INDIRECT_MULTI_2_DRAW_COUNT__MASK;
10498c2ecf20Sopenharmony_ci}
10508c2ecf20Sopenharmony_ci
10518c2ecf20Sopenharmony_ci#define REG_A6XX_CP_DRAW_INDIRECT_MULTI_ADDRESS_0		0x00000003
10528c2ecf20Sopenharmony_ci
10538c2ecf20Sopenharmony_ci#define REG_A6XX_CP_DRAW_INDIRECT_MULTI_5			0x00000005
10548c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_5_PARAM_0__MASK		0xffffffff
10558c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_5_PARAM_0__SHIFT		0
10568c2ecf20Sopenharmony_cistatic inline uint32_t A6XX_CP_DRAW_INDIRECT_MULTI_5_PARAM_0(uint32_t val)
10578c2ecf20Sopenharmony_ci{
10588c2ecf20Sopenharmony_ci	return ((val) << A6XX_CP_DRAW_INDIRECT_MULTI_5_PARAM_0__SHIFT) & A6XX_CP_DRAW_INDIRECT_MULTI_5_PARAM_0__MASK;
10598c2ecf20Sopenharmony_ci}
10608c2ecf20Sopenharmony_ci
10618c2ecf20Sopenharmony_ci#define REG_A6XX_CP_DRAW_INDIRECT_MULTI_INDIRECT		0x00000006
10628c2ecf20Sopenharmony_ci
10638c2ecf20Sopenharmony_ci#define REG_A6XX_CP_DRAW_INDIRECT_MULTI_8			0x00000008
10648c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_8_STRIDE__MASK		0xffffffff
10658c2ecf20Sopenharmony_ci#define A6XX_CP_DRAW_INDIRECT_MULTI_8_STRIDE__SHIFT		0
10668c2ecf20Sopenharmony_cistatic inline uint32_t A6XX_CP_DRAW_INDIRECT_MULTI_8_STRIDE(uint32_t val)
10678c2ecf20Sopenharmony_ci{
10688c2ecf20Sopenharmony_ci	return ((val) << A6XX_CP_DRAW_INDIRECT_MULTI_8_STRIDE__SHIFT) & A6XX_CP_DRAW_INDIRECT_MULTI_8_STRIDE__MASK;
10698c2ecf20Sopenharmony_ci}
10708c2ecf20Sopenharmony_ci
10718c2ecf20Sopenharmony_cistatic inline uint32_t REG_CP_SET_DRAW_STATE_(uint32_t i0) { return 0x00000000 + 0x3*i0; }
10728c2ecf20Sopenharmony_ci
10738c2ecf20Sopenharmony_cistatic inline uint32_t REG_CP_SET_DRAW_STATE__0(uint32_t i0) { return 0x00000000 + 0x3*i0; }
10748c2ecf20Sopenharmony_ci#define CP_SET_DRAW_STATE__0_COUNT__MASK			0x0000ffff
10758c2ecf20Sopenharmony_ci#define CP_SET_DRAW_STATE__0_COUNT__SHIFT			0
10768c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_DRAW_STATE__0_COUNT(uint32_t val)
10778c2ecf20Sopenharmony_ci{
10788c2ecf20Sopenharmony_ci	return ((val) << CP_SET_DRAW_STATE__0_COUNT__SHIFT) & CP_SET_DRAW_STATE__0_COUNT__MASK;
10798c2ecf20Sopenharmony_ci}
10808c2ecf20Sopenharmony_ci#define CP_SET_DRAW_STATE__0_DIRTY				0x00010000
10818c2ecf20Sopenharmony_ci#define CP_SET_DRAW_STATE__0_DISABLE				0x00020000
10828c2ecf20Sopenharmony_ci#define CP_SET_DRAW_STATE__0_DISABLE_ALL_GROUPS			0x00040000
10838c2ecf20Sopenharmony_ci#define CP_SET_DRAW_STATE__0_LOAD_IMMED				0x00080000
10848c2ecf20Sopenharmony_ci#define CP_SET_DRAW_STATE__0_BINNING				0x00100000
10858c2ecf20Sopenharmony_ci#define CP_SET_DRAW_STATE__0_GMEM				0x00200000
10868c2ecf20Sopenharmony_ci#define CP_SET_DRAW_STATE__0_SYSMEM				0x00400000
10878c2ecf20Sopenharmony_ci#define CP_SET_DRAW_STATE__0_GROUP_ID__MASK			0x1f000000
10888c2ecf20Sopenharmony_ci#define CP_SET_DRAW_STATE__0_GROUP_ID__SHIFT			24
10898c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_DRAW_STATE__0_GROUP_ID(uint32_t val)
10908c2ecf20Sopenharmony_ci{
10918c2ecf20Sopenharmony_ci	return ((val) << CP_SET_DRAW_STATE__0_GROUP_ID__SHIFT) & CP_SET_DRAW_STATE__0_GROUP_ID__MASK;
10928c2ecf20Sopenharmony_ci}
10938c2ecf20Sopenharmony_ci
10948c2ecf20Sopenharmony_cistatic inline uint32_t REG_CP_SET_DRAW_STATE__1(uint32_t i0) { return 0x00000001 + 0x3*i0; }
10958c2ecf20Sopenharmony_ci#define CP_SET_DRAW_STATE__1_ADDR_LO__MASK			0xffffffff
10968c2ecf20Sopenharmony_ci#define CP_SET_DRAW_STATE__1_ADDR_LO__SHIFT			0
10978c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_DRAW_STATE__1_ADDR_LO(uint32_t val)
10988c2ecf20Sopenharmony_ci{
10998c2ecf20Sopenharmony_ci	return ((val) << CP_SET_DRAW_STATE__1_ADDR_LO__SHIFT) & CP_SET_DRAW_STATE__1_ADDR_LO__MASK;
11008c2ecf20Sopenharmony_ci}
11018c2ecf20Sopenharmony_ci
11028c2ecf20Sopenharmony_cistatic inline uint32_t REG_CP_SET_DRAW_STATE__2(uint32_t i0) { return 0x00000002 + 0x3*i0; }
11038c2ecf20Sopenharmony_ci#define CP_SET_DRAW_STATE__2_ADDR_HI__MASK			0xffffffff
11048c2ecf20Sopenharmony_ci#define CP_SET_DRAW_STATE__2_ADDR_HI__SHIFT			0
11058c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_DRAW_STATE__2_ADDR_HI(uint32_t val)
11068c2ecf20Sopenharmony_ci{
11078c2ecf20Sopenharmony_ci	return ((val) << CP_SET_DRAW_STATE__2_ADDR_HI__SHIFT) & CP_SET_DRAW_STATE__2_ADDR_HI__MASK;
11088c2ecf20Sopenharmony_ci}
11098c2ecf20Sopenharmony_ci
11108c2ecf20Sopenharmony_ci#define REG_CP_SET_BIN_0					0x00000000
11118c2ecf20Sopenharmony_ci
11128c2ecf20Sopenharmony_ci#define REG_CP_SET_BIN_1					0x00000001
11138c2ecf20Sopenharmony_ci#define CP_SET_BIN_1_X1__MASK					0x0000ffff
11148c2ecf20Sopenharmony_ci#define CP_SET_BIN_1_X1__SHIFT					0
11158c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_1_X1(uint32_t val)
11168c2ecf20Sopenharmony_ci{
11178c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_1_X1__SHIFT) & CP_SET_BIN_1_X1__MASK;
11188c2ecf20Sopenharmony_ci}
11198c2ecf20Sopenharmony_ci#define CP_SET_BIN_1_Y1__MASK					0xffff0000
11208c2ecf20Sopenharmony_ci#define CP_SET_BIN_1_Y1__SHIFT					16
11218c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_1_Y1(uint32_t val)
11228c2ecf20Sopenharmony_ci{
11238c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_1_Y1__SHIFT) & CP_SET_BIN_1_Y1__MASK;
11248c2ecf20Sopenharmony_ci}
11258c2ecf20Sopenharmony_ci
11268c2ecf20Sopenharmony_ci#define REG_CP_SET_BIN_2					0x00000002
11278c2ecf20Sopenharmony_ci#define CP_SET_BIN_2_X2__MASK					0x0000ffff
11288c2ecf20Sopenharmony_ci#define CP_SET_BIN_2_X2__SHIFT					0
11298c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_2_X2(uint32_t val)
11308c2ecf20Sopenharmony_ci{
11318c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_2_X2__SHIFT) & CP_SET_BIN_2_X2__MASK;
11328c2ecf20Sopenharmony_ci}
11338c2ecf20Sopenharmony_ci#define CP_SET_BIN_2_Y2__MASK					0xffff0000
11348c2ecf20Sopenharmony_ci#define CP_SET_BIN_2_Y2__SHIFT					16
11358c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_2_Y2(uint32_t val)
11368c2ecf20Sopenharmony_ci{
11378c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_2_Y2__SHIFT) & CP_SET_BIN_2_Y2__MASK;
11388c2ecf20Sopenharmony_ci}
11398c2ecf20Sopenharmony_ci
11408c2ecf20Sopenharmony_ci#define REG_CP_SET_BIN_DATA_0					0x00000000
11418c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA_0_BIN_DATA_ADDR__MASK			0xffffffff
11428c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA_0_BIN_DATA_ADDR__SHIFT			0
11438c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_DATA_0_BIN_DATA_ADDR(uint32_t val)
11448c2ecf20Sopenharmony_ci{
11458c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_DATA_0_BIN_DATA_ADDR__SHIFT) & CP_SET_BIN_DATA_0_BIN_DATA_ADDR__MASK;
11468c2ecf20Sopenharmony_ci}
11478c2ecf20Sopenharmony_ci
11488c2ecf20Sopenharmony_ci#define REG_CP_SET_BIN_DATA_1					0x00000001
11498c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA_1_BIN_SIZE_ADDRESS__MASK		0xffffffff
11508c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA_1_BIN_SIZE_ADDRESS__SHIFT		0
11518c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_DATA_1_BIN_SIZE_ADDRESS(uint32_t val)
11528c2ecf20Sopenharmony_ci{
11538c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_DATA_1_BIN_SIZE_ADDRESS__SHIFT) & CP_SET_BIN_DATA_1_BIN_SIZE_ADDRESS__MASK;
11548c2ecf20Sopenharmony_ci}
11558c2ecf20Sopenharmony_ci
11568c2ecf20Sopenharmony_ci#define REG_CP_SET_BIN_DATA5_0					0x00000000
11578c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_0_VSC_SIZE__MASK			0x003f0000
11588c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_0_VSC_SIZE__SHIFT			16
11598c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_DATA5_0_VSC_SIZE(uint32_t val)
11608c2ecf20Sopenharmony_ci{
11618c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_DATA5_0_VSC_SIZE__SHIFT) & CP_SET_BIN_DATA5_0_VSC_SIZE__MASK;
11628c2ecf20Sopenharmony_ci}
11638c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_0_VSC_N__MASK				0x07c00000
11648c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_0_VSC_N__SHIFT				22
11658c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_DATA5_0_VSC_N(uint32_t val)
11668c2ecf20Sopenharmony_ci{
11678c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_DATA5_0_VSC_N__SHIFT) & CP_SET_BIN_DATA5_0_VSC_N__MASK;
11688c2ecf20Sopenharmony_ci}
11698c2ecf20Sopenharmony_ci
11708c2ecf20Sopenharmony_ci#define REG_CP_SET_BIN_DATA5_1					0x00000001
11718c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_1_BIN_DATA_ADDR_LO__MASK		0xffffffff
11728c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_1_BIN_DATA_ADDR_LO__SHIFT		0
11738c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_DATA5_1_BIN_DATA_ADDR_LO(uint32_t val)
11748c2ecf20Sopenharmony_ci{
11758c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_DATA5_1_BIN_DATA_ADDR_LO__SHIFT) & CP_SET_BIN_DATA5_1_BIN_DATA_ADDR_LO__MASK;
11768c2ecf20Sopenharmony_ci}
11778c2ecf20Sopenharmony_ci
11788c2ecf20Sopenharmony_ci#define REG_CP_SET_BIN_DATA5_2					0x00000002
11798c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_2_BIN_DATA_ADDR_HI__MASK		0xffffffff
11808c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_2_BIN_DATA_ADDR_HI__SHIFT		0
11818c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_DATA5_2_BIN_DATA_ADDR_HI(uint32_t val)
11828c2ecf20Sopenharmony_ci{
11838c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_DATA5_2_BIN_DATA_ADDR_HI__SHIFT) & CP_SET_BIN_DATA5_2_BIN_DATA_ADDR_HI__MASK;
11848c2ecf20Sopenharmony_ci}
11858c2ecf20Sopenharmony_ci
11868c2ecf20Sopenharmony_ci#define REG_CP_SET_BIN_DATA5_3					0x00000003
11878c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_3_BIN_SIZE_ADDRESS_LO__MASK		0xffffffff
11888c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_3_BIN_SIZE_ADDRESS_LO__SHIFT		0
11898c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_DATA5_3_BIN_SIZE_ADDRESS_LO(uint32_t val)
11908c2ecf20Sopenharmony_ci{
11918c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_DATA5_3_BIN_SIZE_ADDRESS_LO__SHIFT) & CP_SET_BIN_DATA5_3_BIN_SIZE_ADDRESS_LO__MASK;
11928c2ecf20Sopenharmony_ci}
11938c2ecf20Sopenharmony_ci
11948c2ecf20Sopenharmony_ci#define REG_CP_SET_BIN_DATA5_4					0x00000004
11958c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_4_BIN_SIZE_ADDRESS_HI__MASK		0xffffffff
11968c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_4_BIN_SIZE_ADDRESS_HI__SHIFT		0
11978c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_DATA5_4_BIN_SIZE_ADDRESS_HI(uint32_t val)
11988c2ecf20Sopenharmony_ci{
11998c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_DATA5_4_BIN_SIZE_ADDRESS_HI__SHIFT) & CP_SET_BIN_DATA5_4_BIN_SIZE_ADDRESS_HI__MASK;
12008c2ecf20Sopenharmony_ci}
12018c2ecf20Sopenharmony_ci
12028c2ecf20Sopenharmony_ci#define REG_CP_SET_BIN_DATA5_5					0x00000005
12038c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_5_BIN_PRIM_STRM_LO__MASK		0xffffffff
12048c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_5_BIN_PRIM_STRM_LO__SHIFT		0
12058c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_DATA5_5_BIN_PRIM_STRM_LO(uint32_t val)
12068c2ecf20Sopenharmony_ci{
12078c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_DATA5_5_BIN_PRIM_STRM_LO__SHIFT) & CP_SET_BIN_DATA5_5_BIN_PRIM_STRM_LO__MASK;
12088c2ecf20Sopenharmony_ci}
12098c2ecf20Sopenharmony_ci
12108c2ecf20Sopenharmony_ci#define REG_CP_SET_BIN_DATA5_6					0x00000006
12118c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_6_BIN_PRIM_STRM_HI__MASK		0xffffffff
12128c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_6_BIN_PRIM_STRM_HI__SHIFT		0
12138c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_DATA5_6_BIN_PRIM_STRM_HI(uint32_t val)
12148c2ecf20Sopenharmony_ci{
12158c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_DATA5_6_BIN_PRIM_STRM_HI__SHIFT) & CP_SET_BIN_DATA5_6_BIN_PRIM_STRM_HI__MASK;
12168c2ecf20Sopenharmony_ci}
12178c2ecf20Sopenharmony_ci
12188c2ecf20Sopenharmony_ci#define REG_CP_SET_BIN_DATA5_OFFSET_0				0x00000000
12198c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_OFFSET_0_VSC_SIZE__MASK		0x003f0000
12208c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_OFFSET_0_VSC_SIZE__SHIFT		16
12218c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_DATA5_OFFSET_0_VSC_SIZE(uint32_t val)
12228c2ecf20Sopenharmony_ci{
12238c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_DATA5_OFFSET_0_VSC_SIZE__SHIFT) & CP_SET_BIN_DATA5_OFFSET_0_VSC_SIZE__MASK;
12248c2ecf20Sopenharmony_ci}
12258c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_OFFSET_0_VSC_N__MASK			0x07c00000
12268c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_OFFSET_0_VSC_N__SHIFT			22
12278c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_DATA5_OFFSET_0_VSC_N(uint32_t val)
12288c2ecf20Sopenharmony_ci{
12298c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_DATA5_OFFSET_0_VSC_N__SHIFT) & CP_SET_BIN_DATA5_OFFSET_0_VSC_N__MASK;
12308c2ecf20Sopenharmony_ci}
12318c2ecf20Sopenharmony_ci
12328c2ecf20Sopenharmony_ci#define REG_CP_SET_BIN_DATA5_OFFSET_1				0x00000001
12338c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_OFFSET_1_BIN_DATA_OFFSET__MASK		0xffffffff
12348c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_OFFSET_1_BIN_DATA_OFFSET__SHIFT	0
12358c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_DATA5_OFFSET_1_BIN_DATA_OFFSET(uint32_t val)
12368c2ecf20Sopenharmony_ci{
12378c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_DATA5_OFFSET_1_BIN_DATA_OFFSET__SHIFT) & CP_SET_BIN_DATA5_OFFSET_1_BIN_DATA_OFFSET__MASK;
12388c2ecf20Sopenharmony_ci}
12398c2ecf20Sopenharmony_ci
12408c2ecf20Sopenharmony_ci#define REG_CP_SET_BIN_DATA5_OFFSET_2				0x00000002
12418c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_OFFSET_2_BIN_SIZE_OFFSET__MASK		0xffffffff
12428c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_OFFSET_2_BIN_SIZE_OFFSET__SHIFT	0
12438c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_DATA5_OFFSET_2_BIN_SIZE_OFFSET(uint32_t val)
12448c2ecf20Sopenharmony_ci{
12458c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_DATA5_OFFSET_2_BIN_SIZE_OFFSET__SHIFT) & CP_SET_BIN_DATA5_OFFSET_2_BIN_SIZE_OFFSET__MASK;
12468c2ecf20Sopenharmony_ci}
12478c2ecf20Sopenharmony_ci
12488c2ecf20Sopenharmony_ci#define REG_CP_SET_BIN_DATA5_OFFSET_3				0x00000003
12498c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_OFFSET_3_BIN_DATA2_OFFSET__MASK	0xffffffff
12508c2ecf20Sopenharmony_ci#define CP_SET_BIN_DATA5_OFFSET_3_BIN_DATA2_OFFSET__SHIFT	0
12518c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_BIN_DATA5_OFFSET_3_BIN_DATA2_OFFSET(uint32_t val)
12528c2ecf20Sopenharmony_ci{
12538c2ecf20Sopenharmony_ci	return ((val) << CP_SET_BIN_DATA5_OFFSET_3_BIN_DATA2_OFFSET__SHIFT) & CP_SET_BIN_DATA5_OFFSET_3_BIN_DATA2_OFFSET__MASK;
12548c2ecf20Sopenharmony_ci}
12558c2ecf20Sopenharmony_ci
12568c2ecf20Sopenharmony_ci#define REG_CP_REG_RMW_0					0x00000000
12578c2ecf20Sopenharmony_ci#define CP_REG_RMW_0_DST_REG__MASK				0x0003ffff
12588c2ecf20Sopenharmony_ci#define CP_REG_RMW_0_DST_REG__SHIFT				0
12598c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_RMW_0_DST_REG(uint32_t val)
12608c2ecf20Sopenharmony_ci{
12618c2ecf20Sopenharmony_ci	return ((val) << CP_REG_RMW_0_DST_REG__SHIFT) & CP_REG_RMW_0_DST_REG__MASK;
12628c2ecf20Sopenharmony_ci}
12638c2ecf20Sopenharmony_ci#define CP_REG_RMW_0_ROTATE__MASK				0x1f000000
12648c2ecf20Sopenharmony_ci#define CP_REG_RMW_0_ROTATE__SHIFT				24
12658c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_RMW_0_ROTATE(uint32_t val)
12668c2ecf20Sopenharmony_ci{
12678c2ecf20Sopenharmony_ci	return ((val) << CP_REG_RMW_0_ROTATE__SHIFT) & CP_REG_RMW_0_ROTATE__MASK;
12688c2ecf20Sopenharmony_ci}
12698c2ecf20Sopenharmony_ci#define CP_REG_RMW_0_SRC1_ADD					0x20000000
12708c2ecf20Sopenharmony_ci#define CP_REG_RMW_0_SRC1_IS_REG				0x40000000
12718c2ecf20Sopenharmony_ci#define CP_REG_RMW_0_SRC0_IS_REG				0x80000000
12728c2ecf20Sopenharmony_ci
12738c2ecf20Sopenharmony_ci#define REG_CP_REG_RMW_1					0x00000001
12748c2ecf20Sopenharmony_ci#define CP_REG_RMW_1_SRC0__MASK					0xffffffff
12758c2ecf20Sopenharmony_ci#define CP_REG_RMW_1_SRC0__SHIFT				0
12768c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_RMW_1_SRC0(uint32_t val)
12778c2ecf20Sopenharmony_ci{
12788c2ecf20Sopenharmony_ci	return ((val) << CP_REG_RMW_1_SRC0__SHIFT) & CP_REG_RMW_1_SRC0__MASK;
12798c2ecf20Sopenharmony_ci}
12808c2ecf20Sopenharmony_ci
12818c2ecf20Sopenharmony_ci#define REG_CP_REG_RMW_2					0x00000002
12828c2ecf20Sopenharmony_ci#define CP_REG_RMW_2_SRC1__MASK					0xffffffff
12838c2ecf20Sopenharmony_ci#define CP_REG_RMW_2_SRC1__SHIFT				0
12848c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_RMW_2_SRC1(uint32_t val)
12858c2ecf20Sopenharmony_ci{
12868c2ecf20Sopenharmony_ci	return ((val) << CP_REG_RMW_2_SRC1__SHIFT) & CP_REG_RMW_2_SRC1__MASK;
12878c2ecf20Sopenharmony_ci}
12888c2ecf20Sopenharmony_ci
12898c2ecf20Sopenharmony_ci#define REG_CP_REG_TO_MEM_0					0x00000000
12908c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_0_REG__MASK				0x0003ffff
12918c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_0_REG__SHIFT				0
12928c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_TO_MEM_0_REG(uint32_t val)
12938c2ecf20Sopenharmony_ci{
12948c2ecf20Sopenharmony_ci	return ((val) << CP_REG_TO_MEM_0_REG__SHIFT) & CP_REG_TO_MEM_0_REG__MASK;
12958c2ecf20Sopenharmony_ci}
12968c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_0_CNT__MASK				0x3ffc0000
12978c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_0_CNT__SHIFT				18
12988c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_TO_MEM_0_CNT(uint32_t val)
12998c2ecf20Sopenharmony_ci{
13008c2ecf20Sopenharmony_ci	return ((val) << CP_REG_TO_MEM_0_CNT__SHIFT) & CP_REG_TO_MEM_0_CNT__MASK;
13018c2ecf20Sopenharmony_ci}
13028c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_0_64B					0x40000000
13038c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_0_ACCUMULATE				0x80000000
13048c2ecf20Sopenharmony_ci
13058c2ecf20Sopenharmony_ci#define REG_CP_REG_TO_MEM_1					0x00000001
13068c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_1_DEST__MASK				0xffffffff
13078c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_1_DEST__SHIFT				0
13088c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_TO_MEM_1_DEST(uint32_t val)
13098c2ecf20Sopenharmony_ci{
13108c2ecf20Sopenharmony_ci	return ((val) << CP_REG_TO_MEM_1_DEST__SHIFT) & CP_REG_TO_MEM_1_DEST__MASK;
13118c2ecf20Sopenharmony_ci}
13128c2ecf20Sopenharmony_ci
13138c2ecf20Sopenharmony_ci#define REG_CP_REG_TO_MEM_2					0x00000002
13148c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_2_DEST_HI__MASK				0xffffffff
13158c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_2_DEST_HI__SHIFT				0
13168c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_TO_MEM_2_DEST_HI(uint32_t val)
13178c2ecf20Sopenharmony_ci{
13188c2ecf20Sopenharmony_ci	return ((val) << CP_REG_TO_MEM_2_DEST_HI__SHIFT) & CP_REG_TO_MEM_2_DEST_HI__MASK;
13198c2ecf20Sopenharmony_ci}
13208c2ecf20Sopenharmony_ci
13218c2ecf20Sopenharmony_ci#define REG_CP_REG_TO_MEM_OFFSET_REG_0				0x00000000
13228c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_REG_0_REG__MASK			0x0003ffff
13238c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_REG_0_REG__SHIFT			0
13248c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_TO_MEM_OFFSET_REG_0_REG(uint32_t val)
13258c2ecf20Sopenharmony_ci{
13268c2ecf20Sopenharmony_ci	return ((val) << CP_REG_TO_MEM_OFFSET_REG_0_REG__SHIFT) & CP_REG_TO_MEM_OFFSET_REG_0_REG__MASK;
13278c2ecf20Sopenharmony_ci}
13288c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_REG_0_CNT__MASK			0x3ffc0000
13298c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_REG_0_CNT__SHIFT			18
13308c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_TO_MEM_OFFSET_REG_0_CNT(uint32_t val)
13318c2ecf20Sopenharmony_ci{
13328c2ecf20Sopenharmony_ci	return ((val) << CP_REG_TO_MEM_OFFSET_REG_0_CNT__SHIFT) & CP_REG_TO_MEM_OFFSET_REG_0_CNT__MASK;
13338c2ecf20Sopenharmony_ci}
13348c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_REG_0_64B				0x40000000
13358c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_REG_0_ACCUMULATE			0x80000000
13368c2ecf20Sopenharmony_ci
13378c2ecf20Sopenharmony_ci#define REG_CP_REG_TO_MEM_OFFSET_REG_1				0x00000001
13388c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_REG_1_DEST__MASK			0xffffffff
13398c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_REG_1_DEST__SHIFT			0
13408c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_TO_MEM_OFFSET_REG_1_DEST(uint32_t val)
13418c2ecf20Sopenharmony_ci{
13428c2ecf20Sopenharmony_ci	return ((val) << CP_REG_TO_MEM_OFFSET_REG_1_DEST__SHIFT) & CP_REG_TO_MEM_OFFSET_REG_1_DEST__MASK;
13438c2ecf20Sopenharmony_ci}
13448c2ecf20Sopenharmony_ci
13458c2ecf20Sopenharmony_ci#define REG_CP_REG_TO_MEM_OFFSET_REG_2				0x00000002
13468c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_REG_2_DEST_HI__MASK		0xffffffff
13478c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_REG_2_DEST_HI__SHIFT		0
13488c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_TO_MEM_OFFSET_REG_2_DEST_HI(uint32_t val)
13498c2ecf20Sopenharmony_ci{
13508c2ecf20Sopenharmony_ci	return ((val) << CP_REG_TO_MEM_OFFSET_REG_2_DEST_HI__SHIFT) & CP_REG_TO_MEM_OFFSET_REG_2_DEST_HI__MASK;
13518c2ecf20Sopenharmony_ci}
13528c2ecf20Sopenharmony_ci
13538c2ecf20Sopenharmony_ci#define REG_CP_REG_TO_MEM_OFFSET_REG_3				0x00000003
13548c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_REG_3_OFFSET0__MASK		0x0003ffff
13558c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_REG_3_OFFSET0__SHIFT		0
13568c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_TO_MEM_OFFSET_REG_3_OFFSET0(uint32_t val)
13578c2ecf20Sopenharmony_ci{
13588c2ecf20Sopenharmony_ci	return ((val) << CP_REG_TO_MEM_OFFSET_REG_3_OFFSET0__SHIFT) & CP_REG_TO_MEM_OFFSET_REG_3_OFFSET0__MASK;
13598c2ecf20Sopenharmony_ci}
13608c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_REG_3_OFFSET0_SCRATCH		0x00080000
13618c2ecf20Sopenharmony_ci
13628c2ecf20Sopenharmony_ci#define REG_CP_REG_TO_MEM_OFFSET_MEM_0				0x00000000
13638c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_MEM_0_REG__MASK			0x0003ffff
13648c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_MEM_0_REG__SHIFT			0
13658c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_TO_MEM_OFFSET_MEM_0_REG(uint32_t val)
13668c2ecf20Sopenharmony_ci{
13678c2ecf20Sopenharmony_ci	return ((val) << CP_REG_TO_MEM_OFFSET_MEM_0_REG__SHIFT) & CP_REG_TO_MEM_OFFSET_MEM_0_REG__MASK;
13688c2ecf20Sopenharmony_ci}
13698c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_MEM_0_CNT__MASK			0x3ffc0000
13708c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_MEM_0_CNT__SHIFT			18
13718c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_TO_MEM_OFFSET_MEM_0_CNT(uint32_t val)
13728c2ecf20Sopenharmony_ci{
13738c2ecf20Sopenharmony_ci	return ((val) << CP_REG_TO_MEM_OFFSET_MEM_0_CNT__SHIFT) & CP_REG_TO_MEM_OFFSET_MEM_0_CNT__MASK;
13748c2ecf20Sopenharmony_ci}
13758c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_MEM_0_64B				0x40000000
13768c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_MEM_0_ACCUMULATE			0x80000000
13778c2ecf20Sopenharmony_ci
13788c2ecf20Sopenharmony_ci#define REG_CP_REG_TO_MEM_OFFSET_MEM_1				0x00000001
13798c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_MEM_1_DEST__MASK			0xffffffff
13808c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_MEM_1_DEST__SHIFT			0
13818c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_TO_MEM_OFFSET_MEM_1_DEST(uint32_t val)
13828c2ecf20Sopenharmony_ci{
13838c2ecf20Sopenharmony_ci	return ((val) << CP_REG_TO_MEM_OFFSET_MEM_1_DEST__SHIFT) & CP_REG_TO_MEM_OFFSET_MEM_1_DEST__MASK;
13848c2ecf20Sopenharmony_ci}
13858c2ecf20Sopenharmony_ci
13868c2ecf20Sopenharmony_ci#define REG_CP_REG_TO_MEM_OFFSET_MEM_2				0x00000002
13878c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_MEM_2_DEST_HI__MASK		0xffffffff
13888c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_MEM_2_DEST_HI__SHIFT		0
13898c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_TO_MEM_OFFSET_MEM_2_DEST_HI(uint32_t val)
13908c2ecf20Sopenharmony_ci{
13918c2ecf20Sopenharmony_ci	return ((val) << CP_REG_TO_MEM_OFFSET_MEM_2_DEST_HI__SHIFT) & CP_REG_TO_MEM_OFFSET_MEM_2_DEST_HI__MASK;
13928c2ecf20Sopenharmony_ci}
13938c2ecf20Sopenharmony_ci
13948c2ecf20Sopenharmony_ci#define REG_CP_REG_TO_MEM_OFFSET_MEM_3				0x00000003
13958c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_MEM_3_OFFSET_LO__MASK		0xffffffff
13968c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_MEM_3_OFFSET_LO__SHIFT		0
13978c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_TO_MEM_OFFSET_MEM_3_OFFSET_LO(uint32_t val)
13988c2ecf20Sopenharmony_ci{
13998c2ecf20Sopenharmony_ci	return ((val) << CP_REG_TO_MEM_OFFSET_MEM_3_OFFSET_LO__SHIFT) & CP_REG_TO_MEM_OFFSET_MEM_3_OFFSET_LO__MASK;
14008c2ecf20Sopenharmony_ci}
14018c2ecf20Sopenharmony_ci
14028c2ecf20Sopenharmony_ci#define REG_CP_REG_TO_MEM_OFFSET_MEM_4				0x00000004
14038c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_MEM_4_OFFSET_HI__MASK		0xffffffff
14048c2ecf20Sopenharmony_ci#define CP_REG_TO_MEM_OFFSET_MEM_4_OFFSET_HI__SHIFT		0
14058c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_TO_MEM_OFFSET_MEM_4_OFFSET_HI(uint32_t val)
14068c2ecf20Sopenharmony_ci{
14078c2ecf20Sopenharmony_ci	return ((val) << CP_REG_TO_MEM_OFFSET_MEM_4_OFFSET_HI__SHIFT) & CP_REG_TO_MEM_OFFSET_MEM_4_OFFSET_HI__MASK;
14088c2ecf20Sopenharmony_ci}
14098c2ecf20Sopenharmony_ci
14108c2ecf20Sopenharmony_ci#define REG_CP_MEM_TO_REG_0					0x00000000
14118c2ecf20Sopenharmony_ci#define CP_MEM_TO_REG_0_REG__MASK				0x0003ffff
14128c2ecf20Sopenharmony_ci#define CP_MEM_TO_REG_0_REG__SHIFT				0
14138c2ecf20Sopenharmony_cistatic inline uint32_t CP_MEM_TO_REG_0_REG(uint32_t val)
14148c2ecf20Sopenharmony_ci{
14158c2ecf20Sopenharmony_ci	return ((val) << CP_MEM_TO_REG_0_REG__SHIFT) & CP_MEM_TO_REG_0_REG__MASK;
14168c2ecf20Sopenharmony_ci}
14178c2ecf20Sopenharmony_ci#define CP_MEM_TO_REG_0_CNT__MASK				0x3ff80000
14188c2ecf20Sopenharmony_ci#define CP_MEM_TO_REG_0_CNT__SHIFT				19
14198c2ecf20Sopenharmony_cistatic inline uint32_t CP_MEM_TO_REG_0_CNT(uint32_t val)
14208c2ecf20Sopenharmony_ci{
14218c2ecf20Sopenharmony_ci	return ((val) << CP_MEM_TO_REG_0_CNT__SHIFT) & CP_MEM_TO_REG_0_CNT__MASK;
14228c2ecf20Sopenharmony_ci}
14238c2ecf20Sopenharmony_ci#define CP_MEM_TO_REG_0_SHIFT_BY_2				0x40000000
14248c2ecf20Sopenharmony_ci#define CP_MEM_TO_REG_0_UNK31					0x80000000
14258c2ecf20Sopenharmony_ci
14268c2ecf20Sopenharmony_ci#define REG_CP_MEM_TO_REG_1					0x00000001
14278c2ecf20Sopenharmony_ci#define CP_MEM_TO_REG_1_SRC__MASK				0xffffffff
14288c2ecf20Sopenharmony_ci#define CP_MEM_TO_REG_1_SRC__SHIFT				0
14298c2ecf20Sopenharmony_cistatic inline uint32_t CP_MEM_TO_REG_1_SRC(uint32_t val)
14308c2ecf20Sopenharmony_ci{
14318c2ecf20Sopenharmony_ci	return ((val) << CP_MEM_TO_REG_1_SRC__SHIFT) & CP_MEM_TO_REG_1_SRC__MASK;
14328c2ecf20Sopenharmony_ci}
14338c2ecf20Sopenharmony_ci
14348c2ecf20Sopenharmony_ci#define REG_CP_MEM_TO_REG_2					0x00000002
14358c2ecf20Sopenharmony_ci#define CP_MEM_TO_REG_2_SRC_HI__MASK				0xffffffff
14368c2ecf20Sopenharmony_ci#define CP_MEM_TO_REG_2_SRC_HI__SHIFT				0
14378c2ecf20Sopenharmony_cistatic inline uint32_t CP_MEM_TO_REG_2_SRC_HI(uint32_t val)
14388c2ecf20Sopenharmony_ci{
14398c2ecf20Sopenharmony_ci	return ((val) << CP_MEM_TO_REG_2_SRC_HI__SHIFT) & CP_MEM_TO_REG_2_SRC_HI__MASK;
14408c2ecf20Sopenharmony_ci}
14418c2ecf20Sopenharmony_ci
14428c2ecf20Sopenharmony_ci#define REG_CP_MEM_TO_MEM_0					0x00000000
14438c2ecf20Sopenharmony_ci#define CP_MEM_TO_MEM_0_NEG_A					0x00000001
14448c2ecf20Sopenharmony_ci#define CP_MEM_TO_MEM_0_NEG_B					0x00000002
14458c2ecf20Sopenharmony_ci#define CP_MEM_TO_MEM_0_NEG_C					0x00000004
14468c2ecf20Sopenharmony_ci#define CP_MEM_TO_MEM_0_DOUBLE					0x20000000
14478c2ecf20Sopenharmony_ci#define CP_MEM_TO_MEM_0_WAIT_FOR_MEM_WRITES			0x40000000
14488c2ecf20Sopenharmony_ci#define CP_MEM_TO_MEM_0_UNK31					0x80000000
14498c2ecf20Sopenharmony_ci
14508c2ecf20Sopenharmony_ci#define REG_CP_MEMCPY_0						0x00000000
14518c2ecf20Sopenharmony_ci#define CP_MEMCPY_0_DWORDS__MASK				0xffffffff
14528c2ecf20Sopenharmony_ci#define CP_MEMCPY_0_DWORDS__SHIFT				0
14538c2ecf20Sopenharmony_cistatic inline uint32_t CP_MEMCPY_0_DWORDS(uint32_t val)
14548c2ecf20Sopenharmony_ci{
14558c2ecf20Sopenharmony_ci	return ((val) << CP_MEMCPY_0_DWORDS__SHIFT) & CP_MEMCPY_0_DWORDS__MASK;
14568c2ecf20Sopenharmony_ci}
14578c2ecf20Sopenharmony_ci
14588c2ecf20Sopenharmony_ci#define REG_CP_MEMCPY_1						0x00000001
14598c2ecf20Sopenharmony_ci#define CP_MEMCPY_1_SRC_LO__MASK				0xffffffff
14608c2ecf20Sopenharmony_ci#define CP_MEMCPY_1_SRC_LO__SHIFT				0
14618c2ecf20Sopenharmony_cistatic inline uint32_t CP_MEMCPY_1_SRC_LO(uint32_t val)
14628c2ecf20Sopenharmony_ci{
14638c2ecf20Sopenharmony_ci	return ((val) << CP_MEMCPY_1_SRC_LO__SHIFT) & CP_MEMCPY_1_SRC_LO__MASK;
14648c2ecf20Sopenharmony_ci}
14658c2ecf20Sopenharmony_ci
14668c2ecf20Sopenharmony_ci#define REG_CP_MEMCPY_2						0x00000002
14678c2ecf20Sopenharmony_ci#define CP_MEMCPY_2_SRC_HI__MASK				0xffffffff
14688c2ecf20Sopenharmony_ci#define CP_MEMCPY_2_SRC_HI__SHIFT				0
14698c2ecf20Sopenharmony_cistatic inline uint32_t CP_MEMCPY_2_SRC_HI(uint32_t val)
14708c2ecf20Sopenharmony_ci{
14718c2ecf20Sopenharmony_ci	return ((val) << CP_MEMCPY_2_SRC_HI__SHIFT) & CP_MEMCPY_2_SRC_HI__MASK;
14728c2ecf20Sopenharmony_ci}
14738c2ecf20Sopenharmony_ci
14748c2ecf20Sopenharmony_ci#define REG_CP_MEMCPY_3						0x00000003
14758c2ecf20Sopenharmony_ci#define CP_MEMCPY_3_DST_LO__MASK				0xffffffff
14768c2ecf20Sopenharmony_ci#define CP_MEMCPY_3_DST_LO__SHIFT				0
14778c2ecf20Sopenharmony_cistatic inline uint32_t CP_MEMCPY_3_DST_LO(uint32_t val)
14788c2ecf20Sopenharmony_ci{
14798c2ecf20Sopenharmony_ci	return ((val) << CP_MEMCPY_3_DST_LO__SHIFT) & CP_MEMCPY_3_DST_LO__MASK;
14808c2ecf20Sopenharmony_ci}
14818c2ecf20Sopenharmony_ci
14828c2ecf20Sopenharmony_ci#define REG_CP_MEMCPY_4						0x00000004
14838c2ecf20Sopenharmony_ci#define CP_MEMCPY_4_DST_HI__MASK				0xffffffff
14848c2ecf20Sopenharmony_ci#define CP_MEMCPY_4_DST_HI__SHIFT				0
14858c2ecf20Sopenharmony_cistatic inline uint32_t CP_MEMCPY_4_DST_HI(uint32_t val)
14868c2ecf20Sopenharmony_ci{
14878c2ecf20Sopenharmony_ci	return ((val) << CP_MEMCPY_4_DST_HI__SHIFT) & CP_MEMCPY_4_DST_HI__MASK;
14888c2ecf20Sopenharmony_ci}
14898c2ecf20Sopenharmony_ci
14908c2ecf20Sopenharmony_ci#define REG_CP_REG_TO_SCRATCH_0					0x00000000
14918c2ecf20Sopenharmony_ci#define CP_REG_TO_SCRATCH_0_REG__MASK				0x0003ffff
14928c2ecf20Sopenharmony_ci#define CP_REG_TO_SCRATCH_0_REG__SHIFT				0
14938c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_TO_SCRATCH_0_REG(uint32_t val)
14948c2ecf20Sopenharmony_ci{
14958c2ecf20Sopenharmony_ci	return ((val) << CP_REG_TO_SCRATCH_0_REG__SHIFT) & CP_REG_TO_SCRATCH_0_REG__MASK;
14968c2ecf20Sopenharmony_ci}
14978c2ecf20Sopenharmony_ci#define CP_REG_TO_SCRATCH_0_SCRATCH__MASK			0x00700000
14988c2ecf20Sopenharmony_ci#define CP_REG_TO_SCRATCH_0_SCRATCH__SHIFT			20
14998c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_TO_SCRATCH_0_SCRATCH(uint32_t val)
15008c2ecf20Sopenharmony_ci{
15018c2ecf20Sopenharmony_ci	return ((val) << CP_REG_TO_SCRATCH_0_SCRATCH__SHIFT) & CP_REG_TO_SCRATCH_0_SCRATCH__MASK;
15028c2ecf20Sopenharmony_ci}
15038c2ecf20Sopenharmony_ci#define CP_REG_TO_SCRATCH_0_CNT__MASK				0x07000000
15048c2ecf20Sopenharmony_ci#define CP_REG_TO_SCRATCH_0_CNT__SHIFT				24
15058c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_TO_SCRATCH_0_CNT(uint32_t val)
15068c2ecf20Sopenharmony_ci{
15078c2ecf20Sopenharmony_ci	return ((val) << CP_REG_TO_SCRATCH_0_CNT__SHIFT) & CP_REG_TO_SCRATCH_0_CNT__MASK;
15088c2ecf20Sopenharmony_ci}
15098c2ecf20Sopenharmony_ci
15108c2ecf20Sopenharmony_ci#define REG_CP_SCRATCH_TO_REG_0					0x00000000
15118c2ecf20Sopenharmony_ci#define CP_SCRATCH_TO_REG_0_REG__MASK				0x0003ffff
15128c2ecf20Sopenharmony_ci#define CP_SCRATCH_TO_REG_0_REG__SHIFT				0
15138c2ecf20Sopenharmony_cistatic inline uint32_t CP_SCRATCH_TO_REG_0_REG(uint32_t val)
15148c2ecf20Sopenharmony_ci{
15158c2ecf20Sopenharmony_ci	return ((val) << CP_SCRATCH_TO_REG_0_REG__SHIFT) & CP_SCRATCH_TO_REG_0_REG__MASK;
15168c2ecf20Sopenharmony_ci}
15178c2ecf20Sopenharmony_ci#define CP_SCRATCH_TO_REG_0_UNK18				0x00040000
15188c2ecf20Sopenharmony_ci#define CP_SCRATCH_TO_REG_0_SCRATCH__MASK			0x00700000
15198c2ecf20Sopenharmony_ci#define CP_SCRATCH_TO_REG_0_SCRATCH__SHIFT			20
15208c2ecf20Sopenharmony_cistatic inline uint32_t CP_SCRATCH_TO_REG_0_SCRATCH(uint32_t val)
15218c2ecf20Sopenharmony_ci{
15228c2ecf20Sopenharmony_ci	return ((val) << CP_SCRATCH_TO_REG_0_SCRATCH__SHIFT) & CP_SCRATCH_TO_REG_0_SCRATCH__MASK;
15238c2ecf20Sopenharmony_ci}
15248c2ecf20Sopenharmony_ci#define CP_SCRATCH_TO_REG_0_CNT__MASK				0x07000000
15258c2ecf20Sopenharmony_ci#define CP_SCRATCH_TO_REG_0_CNT__SHIFT				24
15268c2ecf20Sopenharmony_cistatic inline uint32_t CP_SCRATCH_TO_REG_0_CNT(uint32_t val)
15278c2ecf20Sopenharmony_ci{
15288c2ecf20Sopenharmony_ci	return ((val) << CP_SCRATCH_TO_REG_0_CNT__SHIFT) & CP_SCRATCH_TO_REG_0_CNT__MASK;
15298c2ecf20Sopenharmony_ci}
15308c2ecf20Sopenharmony_ci
15318c2ecf20Sopenharmony_ci#define REG_CP_SCRATCH_WRITE_0					0x00000000
15328c2ecf20Sopenharmony_ci#define CP_SCRATCH_WRITE_0_SCRATCH__MASK			0x00700000
15338c2ecf20Sopenharmony_ci#define CP_SCRATCH_WRITE_0_SCRATCH__SHIFT			20
15348c2ecf20Sopenharmony_cistatic inline uint32_t CP_SCRATCH_WRITE_0_SCRATCH(uint32_t val)
15358c2ecf20Sopenharmony_ci{
15368c2ecf20Sopenharmony_ci	return ((val) << CP_SCRATCH_WRITE_0_SCRATCH__SHIFT) & CP_SCRATCH_WRITE_0_SCRATCH__MASK;
15378c2ecf20Sopenharmony_ci}
15388c2ecf20Sopenharmony_ci
15398c2ecf20Sopenharmony_ci#define REG_CP_MEM_WRITE_0					0x00000000
15408c2ecf20Sopenharmony_ci#define CP_MEM_WRITE_0_ADDR_LO__MASK				0xffffffff
15418c2ecf20Sopenharmony_ci#define CP_MEM_WRITE_0_ADDR_LO__SHIFT				0
15428c2ecf20Sopenharmony_cistatic inline uint32_t CP_MEM_WRITE_0_ADDR_LO(uint32_t val)
15438c2ecf20Sopenharmony_ci{
15448c2ecf20Sopenharmony_ci	return ((val) << CP_MEM_WRITE_0_ADDR_LO__SHIFT) & CP_MEM_WRITE_0_ADDR_LO__MASK;
15458c2ecf20Sopenharmony_ci}
15468c2ecf20Sopenharmony_ci
15478c2ecf20Sopenharmony_ci#define REG_CP_MEM_WRITE_1					0x00000001
15488c2ecf20Sopenharmony_ci#define CP_MEM_WRITE_1_ADDR_HI__MASK				0xffffffff
15498c2ecf20Sopenharmony_ci#define CP_MEM_WRITE_1_ADDR_HI__SHIFT				0
15508c2ecf20Sopenharmony_cistatic inline uint32_t CP_MEM_WRITE_1_ADDR_HI(uint32_t val)
15518c2ecf20Sopenharmony_ci{
15528c2ecf20Sopenharmony_ci	return ((val) << CP_MEM_WRITE_1_ADDR_HI__SHIFT) & CP_MEM_WRITE_1_ADDR_HI__MASK;
15538c2ecf20Sopenharmony_ci}
15548c2ecf20Sopenharmony_ci
15558c2ecf20Sopenharmony_ci#define REG_CP_COND_WRITE_0					0x00000000
15568c2ecf20Sopenharmony_ci#define CP_COND_WRITE_0_FUNCTION__MASK				0x00000007
15578c2ecf20Sopenharmony_ci#define CP_COND_WRITE_0_FUNCTION__SHIFT				0
15588c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_WRITE_0_FUNCTION(enum cp_cond_function val)
15598c2ecf20Sopenharmony_ci{
15608c2ecf20Sopenharmony_ci	return ((val) << CP_COND_WRITE_0_FUNCTION__SHIFT) & CP_COND_WRITE_0_FUNCTION__MASK;
15618c2ecf20Sopenharmony_ci}
15628c2ecf20Sopenharmony_ci#define CP_COND_WRITE_0_POLL_MEMORY				0x00000010
15638c2ecf20Sopenharmony_ci#define CP_COND_WRITE_0_WRITE_MEMORY				0x00000100
15648c2ecf20Sopenharmony_ci
15658c2ecf20Sopenharmony_ci#define REG_CP_COND_WRITE_1					0x00000001
15668c2ecf20Sopenharmony_ci#define CP_COND_WRITE_1_POLL_ADDR__MASK				0xffffffff
15678c2ecf20Sopenharmony_ci#define CP_COND_WRITE_1_POLL_ADDR__SHIFT			0
15688c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_WRITE_1_POLL_ADDR(uint32_t val)
15698c2ecf20Sopenharmony_ci{
15708c2ecf20Sopenharmony_ci	return ((val) << CP_COND_WRITE_1_POLL_ADDR__SHIFT) & CP_COND_WRITE_1_POLL_ADDR__MASK;
15718c2ecf20Sopenharmony_ci}
15728c2ecf20Sopenharmony_ci
15738c2ecf20Sopenharmony_ci#define REG_CP_COND_WRITE_2					0x00000002
15748c2ecf20Sopenharmony_ci#define CP_COND_WRITE_2_REF__MASK				0xffffffff
15758c2ecf20Sopenharmony_ci#define CP_COND_WRITE_2_REF__SHIFT				0
15768c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_WRITE_2_REF(uint32_t val)
15778c2ecf20Sopenharmony_ci{
15788c2ecf20Sopenharmony_ci	return ((val) << CP_COND_WRITE_2_REF__SHIFT) & CP_COND_WRITE_2_REF__MASK;
15798c2ecf20Sopenharmony_ci}
15808c2ecf20Sopenharmony_ci
15818c2ecf20Sopenharmony_ci#define REG_CP_COND_WRITE_3					0x00000003
15828c2ecf20Sopenharmony_ci#define CP_COND_WRITE_3_MASK__MASK				0xffffffff
15838c2ecf20Sopenharmony_ci#define CP_COND_WRITE_3_MASK__SHIFT				0
15848c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_WRITE_3_MASK(uint32_t val)
15858c2ecf20Sopenharmony_ci{
15868c2ecf20Sopenharmony_ci	return ((val) << CP_COND_WRITE_3_MASK__SHIFT) & CP_COND_WRITE_3_MASK__MASK;
15878c2ecf20Sopenharmony_ci}
15888c2ecf20Sopenharmony_ci
15898c2ecf20Sopenharmony_ci#define REG_CP_COND_WRITE_4					0x00000004
15908c2ecf20Sopenharmony_ci#define CP_COND_WRITE_4_WRITE_ADDR__MASK			0xffffffff
15918c2ecf20Sopenharmony_ci#define CP_COND_WRITE_4_WRITE_ADDR__SHIFT			0
15928c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_WRITE_4_WRITE_ADDR(uint32_t val)
15938c2ecf20Sopenharmony_ci{
15948c2ecf20Sopenharmony_ci	return ((val) << CP_COND_WRITE_4_WRITE_ADDR__SHIFT) & CP_COND_WRITE_4_WRITE_ADDR__MASK;
15958c2ecf20Sopenharmony_ci}
15968c2ecf20Sopenharmony_ci
15978c2ecf20Sopenharmony_ci#define REG_CP_COND_WRITE_5					0x00000005
15988c2ecf20Sopenharmony_ci#define CP_COND_WRITE_5_WRITE_DATA__MASK			0xffffffff
15998c2ecf20Sopenharmony_ci#define CP_COND_WRITE_5_WRITE_DATA__SHIFT			0
16008c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_WRITE_5_WRITE_DATA(uint32_t val)
16018c2ecf20Sopenharmony_ci{
16028c2ecf20Sopenharmony_ci	return ((val) << CP_COND_WRITE_5_WRITE_DATA__SHIFT) & CP_COND_WRITE_5_WRITE_DATA__MASK;
16038c2ecf20Sopenharmony_ci}
16048c2ecf20Sopenharmony_ci
16058c2ecf20Sopenharmony_ci#define REG_CP_COND_WRITE5_0					0x00000000
16068c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_0_FUNCTION__MASK				0x00000007
16078c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_0_FUNCTION__SHIFT			0
16088c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_WRITE5_0_FUNCTION(enum cp_cond_function val)
16098c2ecf20Sopenharmony_ci{
16108c2ecf20Sopenharmony_ci	return ((val) << CP_COND_WRITE5_0_FUNCTION__SHIFT) & CP_COND_WRITE5_0_FUNCTION__MASK;
16118c2ecf20Sopenharmony_ci}
16128c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_0_SIGNED_COMPARE				0x00000008
16138c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_0_POLL_MEMORY				0x00000010
16148c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_0_POLL_SCRATCH				0x00000020
16158c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_0_WRITE_MEMORY				0x00000100
16168c2ecf20Sopenharmony_ci
16178c2ecf20Sopenharmony_ci#define REG_CP_COND_WRITE5_1					0x00000001
16188c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_1_POLL_ADDR_LO__MASK			0xffffffff
16198c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_1_POLL_ADDR_LO__SHIFT			0
16208c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_WRITE5_1_POLL_ADDR_LO(uint32_t val)
16218c2ecf20Sopenharmony_ci{
16228c2ecf20Sopenharmony_ci	return ((val) << CP_COND_WRITE5_1_POLL_ADDR_LO__SHIFT) & CP_COND_WRITE5_1_POLL_ADDR_LO__MASK;
16238c2ecf20Sopenharmony_ci}
16248c2ecf20Sopenharmony_ci
16258c2ecf20Sopenharmony_ci#define REG_CP_COND_WRITE5_2					0x00000002
16268c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_2_POLL_ADDR_HI__MASK			0xffffffff
16278c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_2_POLL_ADDR_HI__SHIFT			0
16288c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_WRITE5_2_POLL_ADDR_HI(uint32_t val)
16298c2ecf20Sopenharmony_ci{
16308c2ecf20Sopenharmony_ci	return ((val) << CP_COND_WRITE5_2_POLL_ADDR_HI__SHIFT) & CP_COND_WRITE5_2_POLL_ADDR_HI__MASK;
16318c2ecf20Sopenharmony_ci}
16328c2ecf20Sopenharmony_ci
16338c2ecf20Sopenharmony_ci#define REG_CP_COND_WRITE5_3					0x00000003
16348c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_3_REF__MASK				0xffffffff
16358c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_3_REF__SHIFT				0
16368c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_WRITE5_3_REF(uint32_t val)
16378c2ecf20Sopenharmony_ci{
16388c2ecf20Sopenharmony_ci	return ((val) << CP_COND_WRITE5_3_REF__SHIFT) & CP_COND_WRITE5_3_REF__MASK;
16398c2ecf20Sopenharmony_ci}
16408c2ecf20Sopenharmony_ci
16418c2ecf20Sopenharmony_ci#define REG_CP_COND_WRITE5_4					0x00000004
16428c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_4_MASK__MASK				0xffffffff
16438c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_4_MASK__SHIFT				0
16448c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_WRITE5_4_MASK(uint32_t val)
16458c2ecf20Sopenharmony_ci{
16468c2ecf20Sopenharmony_ci	return ((val) << CP_COND_WRITE5_4_MASK__SHIFT) & CP_COND_WRITE5_4_MASK__MASK;
16478c2ecf20Sopenharmony_ci}
16488c2ecf20Sopenharmony_ci
16498c2ecf20Sopenharmony_ci#define REG_CP_COND_WRITE5_5					0x00000005
16508c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_5_WRITE_ADDR_LO__MASK			0xffffffff
16518c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_5_WRITE_ADDR_LO__SHIFT			0
16528c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_WRITE5_5_WRITE_ADDR_LO(uint32_t val)
16538c2ecf20Sopenharmony_ci{
16548c2ecf20Sopenharmony_ci	return ((val) << CP_COND_WRITE5_5_WRITE_ADDR_LO__SHIFT) & CP_COND_WRITE5_5_WRITE_ADDR_LO__MASK;
16558c2ecf20Sopenharmony_ci}
16568c2ecf20Sopenharmony_ci
16578c2ecf20Sopenharmony_ci#define REG_CP_COND_WRITE5_6					0x00000006
16588c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_6_WRITE_ADDR_HI__MASK			0xffffffff
16598c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_6_WRITE_ADDR_HI__SHIFT			0
16608c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_WRITE5_6_WRITE_ADDR_HI(uint32_t val)
16618c2ecf20Sopenharmony_ci{
16628c2ecf20Sopenharmony_ci	return ((val) << CP_COND_WRITE5_6_WRITE_ADDR_HI__SHIFT) & CP_COND_WRITE5_6_WRITE_ADDR_HI__MASK;
16638c2ecf20Sopenharmony_ci}
16648c2ecf20Sopenharmony_ci
16658c2ecf20Sopenharmony_ci#define REG_CP_COND_WRITE5_7					0x00000007
16668c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_7_WRITE_DATA__MASK			0xffffffff
16678c2ecf20Sopenharmony_ci#define CP_COND_WRITE5_7_WRITE_DATA__SHIFT			0
16688c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_WRITE5_7_WRITE_DATA(uint32_t val)
16698c2ecf20Sopenharmony_ci{
16708c2ecf20Sopenharmony_ci	return ((val) << CP_COND_WRITE5_7_WRITE_DATA__SHIFT) & CP_COND_WRITE5_7_WRITE_DATA__MASK;
16718c2ecf20Sopenharmony_ci}
16728c2ecf20Sopenharmony_ci
16738c2ecf20Sopenharmony_ci#define REG_CP_WAIT_MEM_GTE_0					0x00000000
16748c2ecf20Sopenharmony_ci#define CP_WAIT_MEM_GTE_0_RESERVED__MASK			0xffffffff
16758c2ecf20Sopenharmony_ci#define CP_WAIT_MEM_GTE_0_RESERVED__SHIFT			0
16768c2ecf20Sopenharmony_cistatic inline uint32_t CP_WAIT_MEM_GTE_0_RESERVED(uint32_t val)
16778c2ecf20Sopenharmony_ci{
16788c2ecf20Sopenharmony_ci	return ((val) << CP_WAIT_MEM_GTE_0_RESERVED__SHIFT) & CP_WAIT_MEM_GTE_0_RESERVED__MASK;
16798c2ecf20Sopenharmony_ci}
16808c2ecf20Sopenharmony_ci
16818c2ecf20Sopenharmony_ci#define REG_CP_WAIT_MEM_GTE_1					0x00000001
16828c2ecf20Sopenharmony_ci#define CP_WAIT_MEM_GTE_1_POLL_ADDR_LO__MASK			0xffffffff
16838c2ecf20Sopenharmony_ci#define CP_WAIT_MEM_GTE_1_POLL_ADDR_LO__SHIFT			0
16848c2ecf20Sopenharmony_cistatic inline uint32_t CP_WAIT_MEM_GTE_1_POLL_ADDR_LO(uint32_t val)
16858c2ecf20Sopenharmony_ci{
16868c2ecf20Sopenharmony_ci	return ((val) << CP_WAIT_MEM_GTE_1_POLL_ADDR_LO__SHIFT) & CP_WAIT_MEM_GTE_1_POLL_ADDR_LO__MASK;
16878c2ecf20Sopenharmony_ci}
16888c2ecf20Sopenharmony_ci
16898c2ecf20Sopenharmony_ci#define REG_CP_WAIT_MEM_GTE_2					0x00000002
16908c2ecf20Sopenharmony_ci#define CP_WAIT_MEM_GTE_2_POLL_ADDR_HI__MASK			0xffffffff
16918c2ecf20Sopenharmony_ci#define CP_WAIT_MEM_GTE_2_POLL_ADDR_HI__SHIFT			0
16928c2ecf20Sopenharmony_cistatic inline uint32_t CP_WAIT_MEM_GTE_2_POLL_ADDR_HI(uint32_t val)
16938c2ecf20Sopenharmony_ci{
16948c2ecf20Sopenharmony_ci	return ((val) << CP_WAIT_MEM_GTE_2_POLL_ADDR_HI__SHIFT) & CP_WAIT_MEM_GTE_2_POLL_ADDR_HI__MASK;
16958c2ecf20Sopenharmony_ci}
16968c2ecf20Sopenharmony_ci
16978c2ecf20Sopenharmony_ci#define REG_CP_WAIT_MEM_GTE_3					0x00000003
16988c2ecf20Sopenharmony_ci#define CP_WAIT_MEM_GTE_3_REF__MASK				0xffffffff
16998c2ecf20Sopenharmony_ci#define CP_WAIT_MEM_GTE_3_REF__SHIFT				0
17008c2ecf20Sopenharmony_cistatic inline uint32_t CP_WAIT_MEM_GTE_3_REF(uint32_t val)
17018c2ecf20Sopenharmony_ci{
17028c2ecf20Sopenharmony_ci	return ((val) << CP_WAIT_MEM_GTE_3_REF__SHIFT) & CP_WAIT_MEM_GTE_3_REF__MASK;
17038c2ecf20Sopenharmony_ci}
17048c2ecf20Sopenharmony_ci
17058c2ecf20Sopenharmony_ci#define REG_CP_WAIT_REG_MEM_0					0x00000000
17068c2ecf20Sopenharmony_ci#define CP_WAIT_REG_MEM_0_FUNCTION__MASK			0x00000007
17078c2ecf20Sopenharmony_ci#define CP_WAIT_REG_MEM_0_FUNCTION__SHIFT			0
17088c2ecf20Sopenharmony_cistatic inline uint32_t CP_WAIT_REG_MEM_0_FUNCTION(enum cp_cond_function val)
17098c2ecf20Sopenharmony_ci{
17108c2ecf20Sopenharmony_ci	return ((val) << CP_WAIT_REG_MEM_0_FUNCTION__SHIFT) & CP_WAIT_REG_MEM_0_FUNCTION__MASK;
17118c2ecf20Sopenharmony_ci}
17128c2ecf20Sopenharmony_ci#define CP_WAIT_REG_MEM_0_SIGNED_COMPARE			0x00000008
17138c2ecf20Sopenharmony_ci#define CP_WAIT_REG_MEM_0_POLL_MEMORY				0x00000010
17148c2ecf20Sopenharmony_ci#define CP_WAIT_REG_MEM_0_POLL_SCRATCH				0x00000020
17158c2ecf20Sopenharmony_ci#define CP_WAIT_REG_MEM_0_WRITE_MEMORY				0x00000100
17168c2ecf20Sopenharmony_ci
17178c2ecf20Sopenharmony_ci#define REG_CP_WAIT_REG_MEM_1					0x00000001
17188c2ecf20Sopenharmony_ci#define CP_WAIT_REG_MEM_1_POLL_ADDR_LO__MASK			0xffffffff
17198c2ecf20Sopenharmony_ci#define CP_WAIT_REG_MEM_1_POLL_ADDR_LO__SHIFT			0
17208c2ecf20Sopenharmony_cistatic inline uint32_t CP_WAIT_REG_MEM_1_POLL_ADDR_LO(uint32_t val)
17218c2ecf20Sopenharmony_ci{
17228c2ecf20Sopenharmony_ci	return ((val) << CP_WAIT_REG_MEM_1_POLL_ADDR_LO__SHIFT) & CP_WAIT_REG_MEM_1_POLL_ADDR_LO__MASK;
17238c2ecf20Sopenharmony_ci}
17248c2ecf20Sopenharmony_ci
17258c2ecf20Sopenharmony_ci#define REG_CP_WAIT_REG_MEM_2					0x00000002
17268c2ecf20Sopenharmony_ci#define CP_WAIT_REG_MEM_2_POLL_ADDR_HI__MASK			0xffffffff
17278c2ecf20Sopenharmony_ci#define CP_WAIT_REG_MEM_2_POLL_ADDR_HI__SHIFT			0
17288c2ecf20Sopenharmony_cistatic inline uint32_t CP_WAIT_REG_MEM_2_POLL_ADDR_HI(uint32_t val)
17298c2ecf20Sopenharmony_ci{
17308c2ecf20Sopenharmony_ci	return ((val) << CP_WAIT_REG_MEM_2_POLL_ADDR_HI__SHIFT) & CP_WAIT_REG_MEM_2_POLL_ADDR_HI__MASK;
17318c2ecf20Sopenharmony_ci}
17328c2ecf20Sopenharmony_ci
17338c2ecf20Sopenharmony_ci#define REG_CP_WAIT_REG_MEM_3					0x00000003
17348c2ecf20Sopenharmony_ci#define CP_WAIT_REG_MEM_3_REF__MASK				0xffffffff
17358c2ecf20Sopenharmony_ci#define CP_WAIT_REG_MEM_3_REF__SHIFT				0
17368c2ecf20Sopenharmony_cistatic inline uint32_t CP_WAIT_REG_MEM_3_REF(uint32_t val)
17378c2ecf20Sopenharmony_ci{
17388c2ecf20Sopenharmony_ci	return ((val) << CP_WAIT_REG_MEM_3_REF__SHIFT) & CP_WAIT_REG_MEM_3_REF__MASK;
17398c2ecf20Sopenharmony_ci}
17408c2ecf20Sopenharmony_ci
17418c2ecf20Sopenharmony_ci#define REG_CP_WAIT_REG_MEM_4					0x00000004
17428c2ecf20Sopenharmony_ci#define CP_WAIT_REG_MEM_4_MASK__MASK				0xffffffff
17438c2ecf20Sopenharmony_ci#define CP_WAIT_REG_MEM_4_MASK__SHIFT				0
17448c2ecf20Sopenharmony_cistatic inline uint32_t CP_WAIT_REG_MEM_4_MASK(uint32_t val)
17458c2ecf20Sopenharmony_ci{
17468c2ecf20Sopenharmony_ci	return ((val) << CP_WAIT_REG_MEM_4_MASK__SHIFT) & CP_WAIT_REG_MEM_4_MASK__MASK;
17478c2ecf20Sopenharmony_ci}
17488c2ecf20Sopenharmony_ci
17498c2ecf20Sopenharmony_ci#define REG_CP_WAIT_REG_MEM_5					0x00000005
17508c2ecf20Sopenharmony_ci#define CP_WAIT_REG_MEM_5_DELAY_LOOP_CYCLES__MASK		0xffffffff
17518c2ecf20Sopenharmony_ci#define CP_WAIT_REG_MEM_5_DELAY_LOOP_CYCLES__SHIFT		0
17528c2ecf20Sopenharmony_cistatic inline uint32_t CP_WAIT_REG_MEM_5_DELAY_LOOP_CYCLES(uint32_t val)
17538c2ecf20Sopenharmony_ci{
17548c2ecf20Sopenharmony_ci	return ((val) << CP_WAIT_REG_MEM_5_DELAY_LOOP_CYCLES__SHIFT) & CP_WAIT_REG_MEM_5_DELAY_LOOP_CYCLES__MASK;
17558c2ecf20Sopenharmony_ci}
17568c2ecf20Sopenharmony_ci
17578c2ecf20Sopenharmony_ci#define REG_CP_WAIT_TWO_REGS_0					0x00000000
17588c2ecf20Sopenharmony_ci#define CP_WAIT_TWO_REGS_0_REG0__MASK				0x0003ffff
17598c2ecf20Sopenharmony_ci#define CP_WAIT_TWO_REGS_0_REG0__SHIFT				0
17608c2ecf20Sopenharmony_cistatic inline uint32_t CP_WAIT_TWO_REGS_0_REG0(uint32_t val)
17618c2ecf20Sopenharmony_ci{
17628c2ecf20Sopenharmony_ci	return ((val) << CP_WAIT_TWO_REGS_0_REG0__SHIFT) & CP_WAIT_TWO_REGS_0_REG0__MASK;
17638c2ecf20Sopenharmony_ci}
17648c2ecf20Sopenharmony_ci
17658c2ecf20Sopenharmony_ci#define REG_CP_WAIT_TWO_REGS_1					0x00000001
17668c2ecf20Sopenharmony_ci#define CP_WAIT_TWO_REGS_1_REG1__MASK				0x0003ffff
17678c2ecf20Sopenharmony_ci#define CP_WAIT_TWO_REGS_1_REG1__SHIFT				0
17688c2ecf20Sopenharmony_cistatic inline uint32_t CP_WAIT_TWO_REGS_1_REG1(uint32_t val)
17698c2ecf20Sopenharmony_ci{
17708c2ecf20Sopenharmony_ci	return ((val) << CP_WAIT_TWO_REGS_1_REG1__SHIFT) & CP_WAIT_TWO_REGS_1_REG1__MASK;
17718c2ecf20Sopenharmony_ci}
17728c2ecf20Sopenharmony_ci
17738c2ecf20Sopenharmony_ci#define REG_CP_WAIT_TWO_REGS_2					0x00000002
17748c2ecf20Sopenharmony_ci#define CP_WAIT_TWO_REGS_2_REF__MASK				0xffffffff
17758c2ecf20Sopenharmony_ci#define CP_WAIT_TWO_REGS_2_REF__SHIFT				0
17768c2ecf20Sopenharmony_cistatic inline uint32_t CP_WAIT_TWO_REGS_2_REF(uint32_t val)
17778c2ecf20Sopenharmony_ci{
17788c2ecf20Sopenharmony_ci	return ((val) << CP_WAIT_TWO_REGS_2_REF__SHIFT) & CP_WAIT_TWO_REGS_2_REF__MASK;
17798c2ecf20Sopenharmony_ci}
17808c2ecf20Sopenharmony_ci
17818c2ecf20Sopenharmony_ci#define REG_CP_DISPATCH_COMPUTE_0				0x00000000
17828c2ecf20Sopenharmony_ci
17838c2ecf20Sopenharmony_ci#define REG_CP_DISPATCH_COMPUTE_1				0x00000001
17848c2ecf20Sopenharmony_ci#define CP_DISPATCH_COMPUTE_1_X__MASK				0xffffffff
17858c2ecf20Sopenharmony_ci#define CP_DISPATCH_COMPUTE_1_X__SHIFT				0
17868c2ecf20Sopenharmony_cistatic inline uint32_t CP_DISPATCH_COMPUTE_1_X(uint32_t val)
17878c2ecf20Sopenharmony_ci{
17888c2ecf20Sopenharmony_ci	return ((val) << CP_DISPATCH_COMPUTE_1_X__SHIFT) & CP_DISPATCH_COMPUTE_1_X__MASK;
17898c2ecf20Sopenharmony_ci}
17908c2ecf20Sopenharmony_ci
17918c2ecf20Sopenharmony_ci#define REG_CP_DISPATCH_COMPUTE_2				0x00000002
17928c2ecf20Sopenharmony_ci#define CP_DISPATCH_COMPUTE_2_Y__MASK				0xffffffff
17938c2ecf20Sopenharmony_ci#define CP_DISPATCH_COMPUTE_2_Y__SHIFT				0
17948c2ecf20Sopenharmony_cistatic inline uint32_t CP_DISPATCH_COMPUTE_2_Y(uint32_t val)
17958c2ecf20Sopenharmony_ci{
17968c2ecf20Sopenharmony_ci	return ((val) << CP_DISPATCH_COMPUTE_2_Y__SHIFT) & CP_DISPATCH_COMPUTE_2_Y__MASK;
17978c2ecf20Sopenharmony_ci}
17988c2ecf20Sopenharmony_ci
17998c2ecf20Sopenharmony_ci#define REG_CP_DISPATCH_COMPUTE_3				0x00000003
18008c2ecf20Sopenharmony_ci#define CP_DISPATCH_COMPUTE_3_Z__MASK				0xffffffff
18018c2ecf20Sopenharmony_ci#define CP_DISPATCH_COMPUTE_3_Z__SHIFT				0
18028c2ecf20Sopenharmony_cistatic inline uint32_t CP_DISPATCH_COMPUTE_3_Z(uint32_t val)
18038c2ecf20Sopenharmony_ci{
18048c2ecf20Sopenharmony_ci	return ((val) << CP_DISPATCH_COMPUTE_3_Z__SHIFT) & CP_DISPATCH_COMPUTE_3_Z__MASK;
18058c2ecf20Sopenharmony_ci}
18068c2ecf20Sopenharmony_ci
18078c2ecf20Sopenharmony_ci#define REG_CP_SET_RENDER_MODE_0				0x00000000
18088c2ecf20Sopenharmony_ci#define CP_SET_RENDER_MODE_0_MODE__MASK				0x000001ff
18098c2ecf20Sopenharmony_ci#define CP_SET_RENDER_MODE_0_MODE__SHIFT			0
18108c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_RENDER_MODE_0_MODE(enum render_mode_cmd val)
18118c2ecf20Sopenharmony_ci{
18128c2ecf20Sopenharmony_ci	return ((val) << CP_SET_RENDER_MODE_0_MODE__SHIFT) & CP_SET_RENDER_MODE_0_MODE__MASK;
18138c2ecf20Sopenharmony_ci}
18148c2ecf20Sopenharmony_ci
18158c2ecf20Sopenharmony_ci#define REG_CP_SET_RENDER_MODE_1				0x00000001
18168c2ecf20Sopenharmony_ci#define CP_SET_RENDER_MODE_1_ADDR_0_LO__MASK			0xffffffff
18178c2ecf20Sopenharmony_ci#define CP_SET_RENDER_MODE_1_ADDR_0_LO__SHIFT			0
18188c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_RENDER_MODE_1_ADDR_0_LO(uint32_t val)
18198c2ecf20Sopenharmony_ci{
18208c2ecf20Sopenharmony_ci	return ((val) << CP_SET_RENDER_MODE_1_ADDR_0_LO__SHIFT) & CP_SET_RENDER_MODE_1_ADDR_0_LO__MASK;
18218c2ecf20Sopenharmony_ci}
18228c2ecf20Sopenharmony_ci
18238c2ecf20Sopenharmony_ci#define REG_CP_SET_RENDER_MODE_2				0x00000002
18248c2ecf20Sopenharmony_ci#define CP_SET_RENDER_MODE_2_ADDR_0_HI__MASK			0xffffffff
18258c2ecf20Sopenharmony_ci#define CP_SET_RENDER_MODE_2_ADDR_0_HI__SHIFT			0
18268c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_RENDER_MODE_2_ADDR_0_HI(uint32_t val)
18278c2ecf20Sopenharmony_ci{
18288c2ecf20Sopenharmony_ci	return ((val) << CP_SET_RENDER_MODE_2_ADDR_0_HI__SHIFT) & CP_SET_RENDER_MODE_2_ADDR_0_HI__MASK;
18298c2ecf20Sopenharmony_ci}
18308c2ecf20Sopenharmony_ci
18318c2ecf20Sopenharmony_ci#define REG_CP_SET_RENDER_MODE_3				0x00000003
18328c2ecf20Sopenharmony_ci#define CP_SET_RENDER_MODE_3_VSC_ENABLE				0x00000008
18338c2ecf20Sopenharmony_ci#define CP_SET_RENDER_MODE_3_GMEM_ENABLE			0x00000010
18348c2ecf20Sopenharmony_ci
18358c2ecf20Sopenharmony_ci#define REG_CP_SET_RENDER_MODE_4				0x00000004
18368c2ecf20Sopenharmony_ci
18378c2ecf20Sopenharmony_ci#define REG_CP_SET_RENDER_MODE_5				0x00000005
18388c2ecf20Sopenharmony_ci#define CP_SET_RENDER_MODE_5_ADDR_1_LEN__MASK			0xffffffff
18398c2ecf20Sopenharmony_ci#define CP_SET_RENDER_MODE_5_ADDR_1_LEN__SHIFT			0
18408c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_RENDER_MODE_5_ADDR_1_LEN(uint32_t val)
18418c2ecf20Sopenharmony_ci{
18428c2ecf20Sopenharmony_ci	return ((val) << CP_SET_RENDER_MODE_5_ADDR_1_LEN__SHIFT) & CP_SET_RENDER_MODE_5_ADDR_1_LEN__MASK;
18438c2ecf20Sopenharmony_ci}
18448c2ecf20Sopenharmony_ci
18458c2ecf20Sopenharmony_ci#define REG_CP_SET_RENDER_MODE_6				0x00000006
18468c2ecf20Sopenharmony_ci#define CP_SET_RENDER_MODE_6_ADDR_1_LO__MASK			0xffffffff
18478c2ecf20Sopenharmony_ci#define CP_SET_RENDER_MODE_6_ADDR_1_LO__SHIFT			0
18488c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_RENDER_MODE_6_ADDR_1_LO(uint32_t val)
18498c2ecf20Sopenharmony_ci{
18508c2ecf20Sopenharmony_ci	return ((val) << CP_SET_RENDER_MODE_6_ADDR_1_LO__SHIFT) & CP_SET_RENDER_MODE_6_ADDR_1_LO__MASK;
18518c2ecf20Sopenharmony_ci}
18528c2ecf20Sopenharmony_ci
18538c2ecf20Sopenharmony_ci#define REG_CP_SET_RENDER_MODE_7				0x00000007
18548c2ecf20Sopenharmony_ci#define CP_SET_RENDER_MODE_7_ADDR_1_HI__MASK			0xffffffff
18558c2ecf20Sopenharmony_ci#define CP_SET_RENDER_MODE_7_ADDR_1_HI__SHIFT			0
18568c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_RENDER_MODE_7_ADDR_1_HI(uint32_t val)
18578c2ecf20Sopenharmony_ci{
18588c2ecf20Sopenharmony_ci	return ((val) << CP_SET_RENDER_MODE_7_ADDR_1_HI__SHIFT) & CP_SET_RENDER_MODE_7_ADDR_1_HI__MASK;
18598c2ecf20Sopenharmony_ci}
18608c2ecf20Sopenharmony_ci
18618c2ecf20Sopenharmony_ci#define REG_CP_COMPUTE_CHECKPOINT_0				0x00000000
18628c2ecf20Sopenharmony_ci#define CP_COMPUTE_CHECKPOINT_0_ADDR_0_LO__MASK			0xffffffff
18638c2ecf20Sopenharmony_ci#define CP_COMPUTE_CHECKPOINT_0_ADDR_0_LO__SHIFT		0
18648c2ecf20Sopenharmony_cistatic inline uint32_t CP_COMPUTE_CHECKPOINT_0_ADDR_0_LO(uint32_t val)
18658c2ecf20Sopenharmony_ci{
18668c2ecf20Sopenharmony_ci	return ((val) << CP_COMPUTE_CHECKPOINT_0_ADDR_0_LO__SHIFT) & CP_COMPUTE_CHECKPOINT_0_ADDR_0_LO__MASK;
18678c2ecf20Sopenharmony_ci}
18688c2ecf20Sopenharmony_ci
18698c2ecf20Sopenharmony_ci#define REG_CP_COMPUTE_CHECKPOINT_1				0x00000001
18708c2ecf20Sopenharmony_ci#define CP_COMPUTE_CHECKPOINT_1_ADDR_0_HI__MASK			0xffffffff
18718c2ecf20Sopenharmony_ci#define CP_COMPUTE_CHECKPOINT_1_ADDR_0_HI__SHIFT		0
18728c2ecf20Sopenharmony_cistatic inline uint32_t CP_COMPUTE_CHECKPOINT_1_ADDR_0_HI(uint32_t val)
18738c2ecf20Sopenharmony_ci{
18748c2ecf20Sopenharmony_ci	return ((val) << CP_COMPUTE_CHECKPOINT_1_ADDR_0_HI__SHIFT) & CP_COMPUTE_CHECKPOINT_1_ADDR_0_HI__MASK;
18758c2ecf20Sopenharmony_ci}
18768c2ecf20Sopenharmony_ci
18778c2ecf20Sopenharmony_ci#define REG_CP_COMPUTE_CHECKPOINT_2				0x00000002
18788c2ecf20Sopenharmony_ci
18798c2ecf20Sopenharmony_ci#define REG_CP_COMPUTE_CHECKPOINT_3				0x00000003
18808c2ecf20Sopenharmony_ci#define CP_COMPUTE_CHECKPOINT_3_ADDR_1_LEN__MASK		0xffffffff
18818c2ecf20Sopenharmony_ci#define CP_COMPUTE_CHECKPOINT_3_ADDR_1_LEN__SHIFT		0
18828c2ecf20Sopenharmony_cistatic inline uint32_t CP_COMPUTE_CHECKPOINT_3_ADDR_1_LEN(uint32_t val)
18838c2ecf20Sopenharmony_ci{
18848c2ecf20Sopenharmony_ci	return ((val) << CP_COMPUTE_CHECKPOINT_3_ADDR_1_LEN__SHIFT) & CP_COMPUTE_CHECKPOINT_3_ADDR_1_LEN__MASK;
18858c2ecf20Sopenharmony_ci}
18868c2ecf20Sopenharmony_ci
18878c2ecf20Sopenharmony_ci#define REG_CP_COMPUTE_CHECKPOINT_4				0x00000004
18888c2ecf20Sopenharmony_ci
18898c2ecf20Sopenharmony_ci#define REG_CP_COMPUTE_CHECKPOINT_5				0x00000005
18908c2ecf20Sopenharmony_ci#define CP_COMPUTE_CHECKPOINT_5_ADDR_1_LO__MASK			0xffffffff
18918c2ecf20Sopenharmony_ci#define CP_COMPUTE_CHECKPOINT_5_ADDR_1_LO__SHIFT		0
18928c2ecf20Sopenharmony_cistatic inline uint32_t CP_COMPUTE_CHECKPOINT_5_ADDR_1_LO(uint32_t val)
18938c2ecf20Sopenharmony_ci{
18948c2ecf20Sopenharmony_ci	return ((val) << CP_COMPUTE_CHECKPOINT_5_ADDR_1_LO__SHIFT) & CP_COMPUTE_CHECKPOINT_5_ADDR_1_LO__MASK;
18958c2ecf20Sopenharmony_ci}
18968c2ecf20Sopenharmony_ci
18978c2ecf20Sopenharmony_ci#define REG_CP_COMPUTE_CHECKPOINT_6				0x00000006
18988c2ecf20Sopenharmony_ci#define CP_COMPUTE_CHECKPOINT_6_ADDR_1_HI__MASK			0xffffffff
18998c2ecf20Sopenharmony_ci#define CP_COMPUTE_CHECKPOINT_6_ADDR_1_HI__SHIFT		0
19008c2ecf20Sopenharmony_cistatic inline uint32_t CP_COMPUTE_CHECKPOINT_6_ADDR_1_HI(uint32_t val)
19018c2ecf20Sopenharmony_ci{
19028c2ecf20Sopenharmony_ci	return ((val) << CP_COMPUTE_CHECKPOINT_6_ADDR_1_HI__SHIFT) & CP_COMPUTE_CHECKPOINT_6_ADDR_1_HI__MASK;
19038c2ecf20Sopenharmony_ci}
19048c2ecf20Sopenharmony_ci
19058c2ecf20Sopenharmony_ci#define REG_CP_COMPUTE_CHECKPOINT_7				0x00000007
19068c2ecf20Sopenharmony_ci
19078c2ecf20Sopenharmony_ci#define REG_CP_PERFCOUNTER_ACTION_0				0x00000000
19088c2ecf20Sopenharmony_ci
19098c2ecf20Sopenharmony_ci#define REG_CP_PERFCOUNTER_ACTION_1				0x00000001
19108c2ecf20Sopenharmony_ci#define CP_PERFCOUNTER_ACTION_1_ADDR_0_LO__MASK			0xffffffff
19118c2ecf20Sopenharmony_ci#define CP_PERFCOUNTER_ACTION_1_ADDR_0_LO__SHIFT		0
19128c2ecf20Sopenharmony_cistatic inline uint32_t CP_PERFCOUNTER_ACTION_1_ADDR_0_LO(uint32_t val)
19138c2ecf20Sopenharmony_ci{
19148c2ecf20Sopenharmony_ci	return ((val) << CP_PERFCOUNTER_ACTION_1_ADDR_0_LO__SHIFT) & CP_PERFCOUNTER_ACTION_1_ADDR_0_LO__MASK;
19158c2ecf20Sopenharmony_ci}
19168c2ecf20Sopenharmony_ci
19178c2ecf20Sopenharmony_ci#define REG_CP_PERFCOUNTER_ACTION_2				0x00000002
19188c2ecf20Sopenharmony_ci#define CP_PERFCOUNTER_ACTION_2_ADDR_0_HI__MASK			0xffffffff
19198c2ecf20Sopenharmony_ci#define CP_PERFCOUNTER_ACTION_2_ADDR_0_HI__SHIFT		0
19208c2ecf20Sopenharmony_cistatic inline uint32_t CP_PERFCOUNTER_ACTION_2_ADDR_0_HI(uint32_t val)
19218c2ecf20Sopenharmony_ci{
19228c2ecf20Sopenharmony_ci	return ((val) << CP_PERFCOUNTER_ACTION_2_ADDR_0_HI__SHIFT) & CP_PERFCOUNTER_ACTION_2_ADDR_0_HI__MASK;
19238c2ecf20Sopenharmony_ci}
19248c2ecf20Sopenharmony_ci
19258c2ecf20Sopenharmony_ci#define REG_CP_EVENT_WRITE_0					0x00000000
19268c2ecf20Sopenharmony_ci#define CP_EVENT_WRITE_0_EVENT__MASK				0x000000ff
19278c2ecf20Sopenharmony_ci#define CP_EVENT_WRITE_0_EVENT__SHIFT				0
19288c2ecf20Sopenharmony_cistatic inline uint32_t CP_EVENT_WRITE_0_EVENT(enum vgt_event_type val)
19298c2ecf20Sopenharmony_ci{
19308c2ecf20Sopenharmony_ci	return ((val) << CP_EVENT_WRITE_0_EVENT__SHIFT) & CP_EVENT_WRITE_0_EVENT__MASK;
19318c2ecf20Sopenharmony_ci}
19328c2ecf20Sopenharmony_ci#define CP_EVENT_WRITE_0_TIMESTAMP				0x40000000
19338c2ecf20Sopenharmony_ci#define CP_EVENT_WRITE_0_IRQ					0x80000000
19348c2ecf20Sopenharmony_ci
19358c2ecf20Sopenharmony_ci#define REG_CP_EVENT_WRITE_1					0x00000001
19368c2ecf20Sopenharmony_ci#define CP_EVENT_WRITE_1_ADDR_0_LO__MASK			0xffffffff
19378c2ecf20Sopenharmony_ci#define CP_EVENT_WRITE_1_ADDR_0_LO__SHIFT			0
19388c2ecf20Sopenharmony_cistatic inline uint32_t CP_EVENT_WRITE_1_ADDR_0_LO(uint32_t val)
19398c2ecf20Sopenharmony_ci{
19408c2ecf20Sopenharmony_ci	return ((val) << CP_EVENT_WRITE_1_ADDR_0_LO__SHIFT) & CP_EVENT_WRITE_1_ADDR_0_LO__MASK;
19418c2ecf20Sopenharmony_ci}
19428c2ecf20Sopenharmony_ci
19438c2ecf20Sopenharmony_ci#define REG_CP_EVENT_WRITE_2					0x00000002
19448c2ecf20Sopenharmony_ci#define CP_EVENT_WRITE_2_ADDR_0_HI__MASK			0xffffffff
19458c2ecf20Sopenharmony_ci#define CP_EVENT_WRITE_2_ADDR_0_HI__SHIFT			0
19468c2ecf20Sopenharmony_cistatic inline uint32_t CP_EVENT_WRITE_2_ADDR_0_HI(uint32_t val)
19478c2ecf20Sopenharmony_ci{
19488c2ecf20Sopenharmony_ci	return ((val) << CP_EVENT_WRITE_2_ADDR_0_HI__SHIFT) & CP_EVENT_WRITE_2_ADDR_0_HI__MASK;
19498c2ecf20Sopenharmony_ci}
19508c2ecf20Sopenharmony_ci
19518c2ecf20Sopenharmony_ci#define REG_CP_EVENT_WRITE_3					0x00000003
19528c2ecf20Sopenharmony_ci
19538c2ecf20Sopenharmony_ci#define REG_CP_BLIT_0						0x00000000
19548c2ecf20Sopenharmony_ci#define CP_BLIT_0_OP__MASK					0x0000000f
19558c2ecf20Sopenharmony_ci#define CP_BLIT_0_OP__SHIFT					0
19568c2ecf20Sopenharmony_cistatic inline uint32_t CP_BLIT_0_OP(enum cp_blit_cmd val)
19578c2ecf20Sopenharmony_ci{
19588c2ecf20Sopenharmony_ci	return ((val) << CP_BLIT_0_OP__SHIFT) & CP_BLIT_0_OP__MASK;
19598c2ecf20Sopenharmony_ci}
19608c2ecf20Sopenharmony_ci
19618c2ecf20Sopenharmony_ci#define REG_CP_BLIT_1						0x00000001
19628c2ecf20Sopenharmony_ci#define CP_BLIT_1_SRC_X1__MASK					0x00003fff
19638c2ecf20Sopenharmony_ci#define CP_BLIT_1_SRC_X1__SHIFT					0
19648c2ecf20Sopenharmony_cistatic inline uint32_t CP_BLIT_1_SRC_X1(uint32_t val)
19658c2ecf20Sopenharmony_ci{
19668c2ecf20Sopenharmony_ci	return ((val) << CP_BLIT_1_SRC_X1__SHIFT) & CP_BLIT_1_SRC_X1__MASK;
19678c2ecf20Sopenharmony_ci}
19688c2ecf20Sopenharmony_ci#define CP_BLIT_1_SRC_Y1__MASK					0x3fff0000
19698c2ecf20Sopenharmony_ci#define CP_BLIT_1_SRC_Y1__SHIFT					16
19708c2ecf20Sopenharmony_cistatic inline uint32_t CP_BLIT_1_SRC_Y1(uint32_t val)
19718c2ecf20Sopenharmony_ci{
19728c2ecf20Sopenharmony_ci	return ((val) << CP_BLIT_1_SRC_Y1__SHIFT) & CP_BLIT_1_SRC_Y1__MASK;
19738c2ecf20Sopenharmony_ci}
19748c2ecf20Sopenharmony_ci
19758c2ecf20Sopenharmony_ci#define REG_CP_BLIT_2						0x00000002
19768c2ecf20Sopenharmony_ci#define CP_BLIT_2_SRC_X2__MASK					0x00003fff
19778c2ecf20Sopenharmony_ci#define CP_BLIT_2_SRC_X2__SHIFT					0
19788c2ecf20Sopenharmony_cistatic inline uint32_t CP_BLIT_2_SRC_X2(uint32_t val)
19798c2ecf20Sopenharmony_ci{
19808c2ecf20Sopenharmony_ci	return ((val) << CP_BLIT_2_SRC_X2__SHIFT) & CP_BLIT_2_SRC_X2__MASK;
19818c2ecf20Sopenharmony_ci}
19828c2ecf20Sopenharmony_ci#define CP_BLIT_2_SRC_Y2__MASK					0x3fff0000
19838c2ecf20Sopenharmony_ci#define CP_BLIT_2_SRC_Y2__SHIFT					16
19848c2ecf20Sopenharmony_cistatic inline uint32_t CP_BLIT_2_SRC_Y2(uint32_t val)
19858c2ecf20Sopenharmony_ci{
19868c2ecf20Sopenharmony_ci	return ((val) << CP_BLIT_2_SRC_Y2__SHIFT) & CP_BLIT_2_SRC_Y2__MASK;
19878c2ecf20Sopenharmony_ci}
19888c2ecf20Sopenharmony_ci
19898c2ecf20Sopenharmony_ci#define REG_CP_BLIT_3						0x00000003
19908c2ecf20Sopenharmony_ci#define CP_BLIT_3_DST_X1__MASK					0x00003fff
19918c2ecf20Sopenharmony_ci#define CP_BLIT_3_DST_X1__SHIFT					0
19928c2ecf20Sopenharmony_cistatic inline uint32_t CP_BLIT_3_DST_X1(uint32_t val)
19938c2ecf20Sopenharmony_ci{
19948c2ecf20Sopenharmony_ci	return ((val) << CP_BLIT_3_DST_X1__SHIFT) & CP_BLIT_3_DST_X1__MASK;
19958c2ecf20Sopenharmony_ci}
19968c2ecf20Sopenharmony_ci#define CP_BLIT_3_DST_Y1__MASK					0x3fff0000
19978c2ecf20Sopenharmony_ci#define CP_BLIT_3_DST_Y1__SHIFT					16
19988c2ecf20Sopenharmony_cistatic inline uint32_t CP_BLIT_3_DST_Y1(uint32_t val)
19998c2ecf20Sopenharmony_ci{
20008c2ecf20Sopenharmony_ci	return ((val) << CP_BLIT_3_DST_Y1__SHIFT) & CP_BLIT_3_DST_Y1__MASK;
20018c2ecf20Sopenharmony_ci}
20028c2ecf20Sopenharmony_ci
20038c2ecf20Sopenharmony_ci#define REG_CP_BLIT_4						0x00000004
20048c2ecf20Sopenharmony_ci#define CP_BLIT_4_DST_X2__MASK					0x00003fff
20058c2ecf20Sopenharmony_ci#define CP_BLIT_4_DST_X2__SHIFT					0
20068c2ecf20Sopenharmony_cistatic inline uint32_t CP_BLIT_4_DST_X2(uint32_t val)
20078c2ecf20Sopenharmony_ci{
20088c2ecf20Sopenharmony_ci	return ((val) << CP_BLIT_4_DST_X2__SHIFT) & CP_BLIT_4_DST_X2__MASK;
20098c2ecf20Sopenharmony_ci}
20108c2ecf20Sopenharmony_ci#define CP_BLIT_4_DST_Y2__MASK					0x3fff0000
20118c2ecf20Sopenharmony_ci#define CP_BLIT_4_DST_Y2__SHIFT					16
20128c2ecf20Sopenharmony_cistatic inline uint32_t CP_BLIT_4_DST_Y2(uint32_t val)
20138c2ecf20Sopenharmony_ci{
20148c2ecf20Sopenharmony_ci	return ((val) << CP_BLIT_4_DST_Y2__SHIFT) & CP_BLIT_4_DST_Y2__MASK;
20158c2ecf20Sopenharmony_ci}
20168c2ecf20Sopenharmony_ci
20178c2ecf20Sopenharmony_ci#define REG_CP_EXEC_CS_0					0x00000000
20188c2ecf20Sopenharmony_ci
20198c2ecf20Sopenharmony_ci#define REG_CP_EXEC_CS_1					0x00000001
20208c2ecf20Sopenharmony_ci#define CP_EXEC_CS_1_NGROUPS_X__MASK				0xffffffff
20218c2ecf20Sopenharmony_ci#define CP_EXEC_CS_1_NGROUPS_X__SHIFT				0
20228c2ecf20Sopenharmony_cistatic inline uint32_t CP_EXEC_CS_1_NGROUPS_X(uint32_t val)
20238c2ecf20Sopenharmony_ci{
20248c2ecf20Sopenharmony_ci	return ((val) << CP_EXEC_CS_1_NGROUPS_X__SHIFT) & CP_EXEC_CS_1_NGROUPS_X__MASK;
20258c2ecf20Sopenharmony_ci}
20268c2ecf20Sopenharmony_ci
20278c2ecf20Sopenharmony_ci#define REG_CP_EXEC_CS_2					0x00000002
20288c2ecf20Sopenharmony_ci#define CP_EXEC_CS_2_NGROUPS_Y__MASK				0xffffffff
20298c2ecf20Sopenharmony_ci#define CP_EXEC_CS_2_NGROUPS_Y__SHIFT				0
20308c2ecf20Sopenharmony_cistatic inline uint32_t CP_EXEC_CS_2_NGROUPS_Y(uint32_t val)
20318c2ecf20Sopenharmony_ci{
20328c2ecf20Sopenharmony_ci	return ((val) << CP_EXEC_CS_2_NGROUPS_Y__SHIFT) & CP_EXEC_CS_2_NGROUPS_Y__MASK;
20338c2ecf20Sopenharmony_ci}
20348c2ecf20Sopenharmony_ci
20358c2ecf20Sopenharmony_ci#define REG_CP_EXEC_CS_3					0x00000003
20368c2ecf20Sopenharmony_ci#define CP_EXEC_CS_3_NGROUPS_Z__MASK				0xffffffff
20378c2ecf20Sopenharmony_ci#define CP_EXEC_CS_3_NGROUPS_Z__SHIFT				0
20388c2ecf20Sopenharmony_cistatic inline uint32_t CP_EXEC_CS_3_NGROUPS_Z(uint32_t val)
20398c2ecf20Sopenharmony_ci{
20408c2ecf20Sopenharmony_ci	return ((val) << CP_EXEC_CS_3_NGROUPS_Z__SHIFT) & CP_EXEC_CS_3_NGROUPS_Z__MASK;
20418c2ecf20Sopenharmony_ci}
20428c2ecf20Sopenharmony_ci
20438c2ecf20Sopenharmony_ci#define REG_A4XX_CP_EXEC_CS_INDIRECT_0				0x00000000
20448c2ecf20Sopenharmony_ci
20458c2ecf20Sopenharmony_ci
20468c2ecf20Sopenharmony_ci#define REG_A4XX_CP_EXEC_CS_INDIRECT_1				0x00000001
20478c2ecf20Sopenharmony_ci#define A4XX_CP_EXEC_CS_INDIRECT_1_ADDR__MASK			0xffffffff
20488c2ecf20Sopenharmony_ci#define A4XX_CP_EXEC_CS_INDIRECT_1_ADDR__SHIFT			0
20498c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_EXEC_CS_INDIRECT_1_ADDR(uint32_t val)
20508c2ecf20Sopenharmony_ci{
20518c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_EXEC_CS_INDIRECT_1_ADDR__SHIFT) & A4XX_CP_EXEC_CS_INDIRECT_1_ADDR__MASK;
20528c2ecf20Sopenharmony_ci}
20538c2ecf20Sopenharmony_ci
20548c2ecf20Sopenharmony_ci#define REG_A4XX_CP_EXEC_CS_INDIRECT_2				0x00000002
20558c2ecf20Sopenharmony_ci#define A4XX_CP_EXEC_CS_INDIRECT_2_LOCALSIZEX__MASK		0x00000ffc
20568c2ecf20Sopenharmony_ci#define A4XX_CP_EXEC_CS_INDIRECT_2_LOCALSIZEX__SHIFT		2
20578c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_EXEC_CS_INDIRECT_2_LOCALSIZEX(uint32_t val)
20588c2ecf20Sopenharmony_ci{
20598c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_EXEC_CS_INDIRECT_2_LOCALSIZEX__SHIFT) & A4XX_CP_EXEC_CS_INDIRECT_2_LOCALSIZEX__MASK;
20608c2ecf20Sopenharmony_ci}
20618c2ecf20Sopenharmony_ci#define A4XX_CP_EXEC_CS_INDIRECT_2_LOCALSIZEY__MASK		0x003ff000
20628c2ecf20Sopenharmony_ci#define A4XX_CP_EXEC_CS_INDIRECT_2_LOCALSIZEY__SHIFT		12
20638c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_EXEC_CS_INDIRECT_2_LOCALSIZEY(uint32_t val)
20648c2ecf20Sopenharmony_ci{
20658c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_EXEC_CS_INDIRECT_2_LOCALSIZEY__SHIFT) & A4XX_CP_EXEC_CS_INDIRECT_2_LOCALSIZEY__MASK;
20668c2ecf20Sopenharmony_ci}
20678c2ecf20Sopenharmony_ci#define A4XX_CP_EXEC_CS_INDIRECT_2_LOCALSIZEZ__MASK		0xffc00000
20688c2ecf20Sopenharmony_ci#define A4XX_CP_EXEC_CS_INDIRECT_2_LOCALSIZEZ__SHIFT		22
20698c2ecf20Sopenharmony_cistatic inline uint32_t A4XX_CP_EXEC_CS_INDIRECT_2_LOCALSIZEZ(uint32_t val)
20708c2ecf20Sopenharmony_ci{
20718c2ecf20Sopenharmony_ci	return ((val) << A4XX_CP_EXEC_CS_INDIRECT_2_LOCALSIZEZ__SHIFT) & A4XX_CP_EXEC_CS_INDIRECT_2_LOCALSIZEZ__MASK;
20728c2ecf20Sopenharmony_ci}
20738c2ecf20Sopenharmony_ci
20748c2ecf20Sopenharmony_ci
20758c2ecf20Sopenharmony_ci#define REG_A5XX_CP_EXEC_CS_INDIRECT_1				0x00000001
20768c2ecf20Sopenharmony_ci#define A5XX_CP_EXEC_CS_INDIRECT_1_ADDR_LO__MASK		0xffffffff
20778c2ecf20Sopenharmony_ci#define A5XX_CP_EXEC_CS_INDIRECT_1_ADDR_LO__SHIFT		0
20788c2ecf20Sopenharmony_cistatic inline uint32_t A5XX_CP_EXEC_CS_INDIRECT_1_ADDR_LO(uint32_t val)
20798c2ecf20Sopenharmony_ci{
20808c2ecf20Sopenharmony_ci	return ((val) << A5XX_CP_EXEC_CS_INDIRECT_1_ADDR_LO__SHIFT) & A5XX_CP_EXEC_CS_INDIRECT_1_ADDR_LO__MASK;
20818c2ecf20Sopenharmony_ci}
20828c2ecf20Sopenharmony_ci
20838c2ecf20Sopenharmony_ci#define REG_A5XX_CP_EXEC_CS_INDIRECT_2				0x00000002
20848c2ecf20Sopenharmony_ci#define A5XX_CP_EXEC_CS_INDIRECT_2_ADDR_HI__MASK		0xffffffff
20858c2ecf20Sopenharmony_ci#define A5XX_CP_EXEC_CS_INDIRECT_2_ADDR_HI__SHIFT		0
20868c2ecf20Sopenharmony_cistatic inline uint32_t A5XX_CP_EXEC_CS_INDIRECT_2_ADDR_HI(uint32_t val)
20878c2ecf20Sopenharmony_ci{
20888c2ecf20Sopenharmony_ci	return ((val) << A5XX_CP_EXEC_CS_INDIRECT_2_ADDR_HI__SHIFT) & A5XX_CP_EXEC_CS_INDIRECT_2_ADDR_HI__MASK;
20898c2ecf20Sopenharmony_ci}
20908c2ecf20Sopenharmony_ci
20918c2ecf20Sopenharmony_ci#define REG_A5XX_CP_EXEC_CS_INDIRECT_3				0x00000003
20928c2ecf20Sopenharmony_ci#define A5XX_CP_EXEC_CS_INDIRECT_3_LOCALSIZEX__MASK		0x00000ffc
20938c2ecf20Sopenharmony_ci#define A5XX_CP_EXEC_CS_INDIRECT_3_LOCALSIZEX__SHIFT		2
20948c2ecf20Sopenharmony_cistatic inline uint32_t A5XX_CP_EXEC_CS_INDIRECT_3_LOCALSIZEX(uint32_t val)
20958c2ecf20Sopenharmony_ci{
20968c2ecf20Sopenharmony_ci	return ((val) << A5XX_CP_EXEC_CS_INDIRECT_3_LOCALSIZEX__SHIFT) & A5XX_CP_EXEC_CS_INDIRECT_3_LOCALSIZEX__MASK;
20978c2ecf20Sopenharmony_ci}
20988c2ecf20Sopenharmony_ci#define A5XX_CP_EXEC_CS_INDIRECT_3_LOCALSIZEY__MASK		0x003ff000
20998c2ecf20Sopenharmony_ci#define A5XX_CP_EXEC_CS_INDIRECT_3_LOCALSIZEY__SHIFT		12
21008c2ecf20Sopenharmony_cistatic inline uint32_t A5XX_CP_EXEC_CS_INDIRECT_3_LOCALSIZEY(uint32_t val)
21018c2ecf20Sopenharmony_ci{
21028c2ecf20Sopenharmony_ci	return ((val) << A5XX_CP_EXEC_CS_INDIRECT_3_LOCALSIZEY__SHIFT) & A5XX_CP_EXEC_CS_INDIRECT_3_LOCALSIZEY__MASK;
21038c2ecf20Sopenharmony_ci}
21048c2ecf20Sopenharmony_ci#define A5XX_CP_EXEC_CS_INDIRECT_3_LOCALSIZEZ__MASK		0xffc00000
21058c2ecf20Sopenharmony_ci#define A5XX_CP_EXEC_CS_INDIRECT_3_LOCALSIZEZ__SHIFT		22
21068c2ecf20Sopenharmony_cistatic inline uint32_t A5XX_CP_EXEC_CS_INDIRECT_3_LOCALSIZEZ(uint32_t val)
21078c2ecf20Sopenharmony_ci{
21088c2ecf20Sopenharmony_ci	return ((val) << A5XX_CP_EXEC_CS_INDIRECT_3_LOCALSIZEZ__SHIFT) & A5XX_CP_EXEC_CS_INDIRECT_3_LOCALSIZEZ__MASK;
21098c2ecf20Sopenharmony_ci}
21108c2ecf20Sopenharmony_ci
21118c2ecf20Sopenharmony_ci#define REG_A6XX_CP_SET_MARKER_0				0x00000000
21128c2ecf20Sopenharmony_ci#define A6XX_CP_SET_MARKER_0_MODE__MASK				0x000001ff
21138c2ecf20Sopenharmony_ci#define A6XX_CP_SET_MARKER_0_MODE__SHIFT			0
21148c2ecf20Sopenharmony_cistatic inline uint32_t A6XX_CP_SET_MARKER_0_MODE(enum a6xx_render_mode val)
21158c2ecf20Sopenharmony_ci{
21168c2ecf20Sopenharmony_ci	return ((val) << A6XX_CP_SET_MARKER_0_MODE__SHIFT) & A6XX_CP_SET_MARKER_0_MODE__MASK;
21178c2ecf20Sopenharmony_ci}
21188c2ecf20Sopenharmony_ci#define A6XX_CP_SET_MARKER_0_MARKER__MASK			0x0000000f
21198c2ecf20Sopenharmony_ci#define A6XX_CP_SET_MARKER_0_MARKER__SHIFT			0
21208c2ecf20Sopenharmony_cistatic inline uint32_t A6XX_CP_SET_MARKER_0_MARKER(enum a6xx_render_mode val)
21218c2ecf20Sopenharmony_ci{
21228c2ecf20Sopenharmony_ci	return ((val) << A6XX_CP_SET_MARKER_0_MARKER__SHIFT) & A6XX_CP_SET_MARKER_0_MARKER__MASK;
21238c2ecf20Sopenharmony_ci}
21248c2ecf20Sopenharmony_ci
21258c2ecf20Sopenharmony_cistatic inline uint32_t REG_A6XX_CP_SET_PSEUDO_REG_(uint32_t i0) { return 0x00000000 + 0x3*i0; }
21268c2ecf20Sopenharmony_ci
21278c2ecf20Sopenharmony_cistatic inline uint32_t REG_A6XX_CP_SET_PSEUDO_REG__0(uint32_t i0) { return 0x00000000 + 0x3*i0; }
21288c2ecf20Sopenharmony_ci#define A6XX_CP_SET_PSEUDO_REG__0_PSEUDO_REG__MASK		0x00000007
21298c2ecf20Sopenharmony_ci#define A6XX_CP_SET_PSEUDO_REG__0_PSEUDO_REG__SHIFT		0
21308c2ecf20Sopenharmony_cistatic inline uint32_t A6XX_CP_SET_PSEUDO_REG__0_PSEUDO_REG(enum pseudo_reg val)
21318c2ecf20Sopenharmony_ci{
21328c2ecf20Sopenharmony_ci	return ((val) << A6XX_CP_SET_PSEUDO_REG__0_PSEUDO_REG__SHIFT) & A6XX_CP_SET_PSEUDO_REG__0_PSEUDO_REG__MASK;
21338c2ecf20Sopenharmony_ci}
21348c2ecf20Sopenharmony_ci
21358c2ecf20Sopenharmony_cistatic inline uint32_t REG_A6XX_CP_SET_PSEUDO_REG__1(uint32_t i0) { return 0x00000001 + 0x3*i0; }
21368c2ecf20Sopenharmony_ci#define A6XX_CP_SET_PSEUDO_REG__1_LO__MASK			0xffffffff
21378c2ecf20Sopenharmony_ci#define A6XX_CP_SET_PSEUDO_REG__1_LO__SHIFT			0
21388c2ecf20Sopenharmony_cistatic inline uint32_t A6XX_CP_SET_PSEUDO_REG__1_LO(uint32_t val)
21398c2ecf20Sopenharmony_ci{
21408c2ecf20Sopenharmony_ci	return ((val) << A6XX_CP_SET_PSEUDO_REG__1_LO__SHIFT) & A6XX_CP_SET_PSEUDO_REG__1_LO__MASK;
21418c2ecf20Sopenharmony_ci}
21428c2ecf20Sopenharmony_ci
21438c2ecf20Sopenharmony_cistatic inline uint32_t REG_A6XX_CP_SET_PSEUDO_REG__2(uint32_t i0) { return 0x00000002 + 0x3*i0; }
21448c2ecf20Sopenharmony_ci#define A6XX_CP_SET_PSEUDO_REG__2_HI__MASK			0xffffffff
21458c2ecf20Sopenharmony_ci#define A6XX_CP_SET_PSEUDO_REG__2_HI__SHIFT			0
21468c2ecf20Sopenharmony_cistatic inline uint32_t A6XX_CP_SET_PSEUDO_REG__2_HI(uint32_t val)
21478c2ecf20Sopenharmony_ci{
21488c2ecf20Sopenharmony_ci	return ((val) << A6XX_CP_SET_PSEUDO_REG__2_HI__SHIFT) & A6XX_CP_SET_PSEUDO_REG__2_HI__MASK;
21498c2ecf20Sopenharmony_ci}
21508c2ecf20Sopenharmony_ci
21518c2ecf20Sopenharmony_ci#define REG_A6XX_CP_REG_TEST_0					0x00000000
21528c2ecf20Sopenharmony_ci#define A6XX_CP_REG_TEST_0_REG__MASK				0x0003ffff
21538c2ecf20Sopenharmony_ci#define A6XX_CP_REG_TEST_0_REG__SHIFT				0
21548c2ecf20Sopenharmony_cistatic inline uint32_t A6XX_CP_REG_TEST_0_REG(uint32_t val)
21558c2ecf20Sopenharmony_ci{
21568c2ecf20Sopenharmony_ci	return ((val) << A6XX_CP_REG_TEST_0_REG__SHIFT) & A6XX_CP_REG_TEST_0_REG__MASK;
21578c2ecf20Sopenharmony_ci}
21588c2ecf20Sopenharmony_ci#define A6XX_CP_REG_TEST_0_BIT__MASK				0x01f00000
21598c2ecf20Sopenharmony_ci#define A6XX_CP_REG_TEST_0_BIT__SHIFT				20
21608c2ecf20Sopenharmony_cistatic inline uint32_t A6XX_CP_REG_TEST_0_BIT(uint32_t val)
21618c2ecf20Sopenharmony_ci{
21628c2ecf20Sopenharmony_ci	return ((val) << A6XX_CP_REG_TEST_0_BIT__SHIFT) & A6XX_CP_REG_TEST_0_BIT__MASK;
21638c2ecf20Sopenharmony_ci}
21648c2ecf20Sopenharmony_ci#define A6XX_CP_REG_TEST_0_WAIT_FOR_ME				0x02000000
21658c2ecf20Sopenharmony_ci
21668c2ecf20Sopenharmony_ci#define REG_CP_COND_REG_EXEC_0					0x00000000
21678c2ecf20Sopenharmony_ci#define CP_COND_REG_EXEC_0_REG0__MASK				0x0003ffff
21688c2ecf20Sopenharmony_ci#define CP_COND_REG_EXEC_0_REG0__SHIFT				0
21698c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_REG_EXEC_0_REG0(uint32_t val)
21708c2ecf20Sopenharmony_ci{
21718c2ecf20Sopenharmony_ci	return ((val) << CP_COND_REG_EXEC_0_REG0__SHIFT) & CP_COND_REG_EXEC_0_REG0__MASK;
21728c2ecf20Sopenharmony_ci}
21738c2ecf20Sopenharmony_ci#define CP_COND_REG_EXEC_0_BINNING				0x02000000
21748c2ecf20Sopenharmony_ci#define CP_COND_REG_EXEC_0_GMEM					0x04000000
21758c2ecf20Sopenharmony_ci#define CP_COND_REG_EXEC_0_SYSMEM				0x08000000
21768c2ecf20Sopenharmony_ci#define CP_COND_REG_EXEC_0_MODE__MASK				0xf0000000
21778c2ecf20Sopenharmony_ci#define CP_COND_REG_EXEC_0_MODE__SHIFT				28
21788c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_REG_EXEC_0_MODE(enum compare_mode val)
21798c2ecf20Sopenharmony_ci{
21808c2ecf20Sopenharmony_ci	return ((val) << CP_COND_REG_EXEC_0_MODE__SHIFT) & CP_COND_REG_EXEC_0_MODE__MASK;
21818c2ecf20Sopenharmony_ci}
21828c2ecf20Sopenharmony_ci
21838c2ecf20Sopenharmony_ci#define REG_CP_COND_REG_EXEC_1					0x00000001
21848c2ecf20Sopenharmony_ci#define CP_COND_REG_EXEC_1_DWORDS__MASK				0xffffffff
21858c2ecf20Sopenharmony_ci#define CP_COND_REG_EXEC_1_DWORDS__SHIFT			0
21868c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_REG_EXEC_1_DWORDS(uint32_t val)
21878c2ecf20Sopenharmony_ci{
21888c2ecf20Sopenharmony_ci	return ((val) << CP_COND_REG_EXEC_1_DWORDS__SHIFT) & CP_COND_REG_EXEC_1_DWORDS__MASK;
21898c2ecf20Sopenharmony_ci}
21908c2ecf20Sopenharmony_ci
21918c2ecf20Sopenharmony_ci#define REG_CP_COND_EXEC_0					0x00000000
21928c2ecf20Sopenharmony_ci#define CP_COND_EXEC_0_ADDR0_LO__MASK				0xffffffff
21938c2ecf20Sopenharmony_ci#define CP_COND_EXEC_0_ADDR0_LO__SHIFT				0
21948c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_EXEC_0_ADDR0_LO(uint32_t val)
21958c2ecf20Sopenharmony_ci{
21968c2ecf20Sopenharmony_ci	return ((val) << CP_COND_EXEC_0_ADDR0_LO__SHIFT) & CP_COND_EXEC_0_ADDR0_LO__MASK;
21978c2ecf20Sopenharmony_ci}
21988c2ecf20Sopenharmony_ci
21998c2ecf20Sopenharmony_ci#define REG_CP_COND_EXEC_1					0x00000001
22008c2ecf20Sopenharmony_ci#define CP_COND_EXEC_1_ADDR0_HI__MASK				0xffffffff
22018c2ecf20Sopenharmony_ci#define CP_COND_EXEC_1_ADDR0_HI__SHIFT				0
22028c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_EXEC_1_ADDR0_HI(uint32_t val)
22038c2ecf20Sopenharmony_ci{
22048c2ecf20Sopenharmony_ci	return ((val) << CP_COND_EXEC_1_ADDR0_HI__SHIFT) & CP_COND_EXEC_1_ADDR0_HI__MASK;
22058c2ecf20Sopenharmony_ci}
22068c2ecf20Sopenharmony_ci
22078c2ecf20Sopenharmony_ci#define REG_CP_COND_EXEC_2					0x00000002
22088c2ecf20Sopenharmony_ci#define CP_COND_EXEC_2_ADDR1_LO__MASK				0xffffffff
22098c2ecf20Sopenharmony_ci#define CP_COND_EXEC_2_ADDR1_LO__SHIFT				0
22108c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_EXEC_2_ADDR1_LO(uint32_t val)
22118c2ecf20Sopenharmony_ci{
22128c2ecf20Sopenharmony_ci	return ((val) << CP_COND_EXEC_2_ADDR1_LO__SHIFT) & CP_COND_EXEC_2_ADDR1_LO__MASK;
22138c2ecf20Sopenharmony_ci}
22148c2ecf20Sopenharmony_ci
22158c2ecf20Sopenharmony_ci#define REG_CP_COND_EXEC_3					0x00000003
22168c2ecf20Sopenharmony_ci#define CP_COND_EXEC_3_ADDR1_HI__MASK				0xffffffff
22178c2ecf20Sopenharmony_ci#define CP_COND_EXEC_3_ADDR1_HI__SHIFT				0
22188c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_EXEC_3_ADDR1_HI(uint32_t val)
22198c2ecf20Sopenharmony_ci{
22208c2ecf20Sopenharmony_ci	return ((val) << CP_COND_EXEC_3_ADDR1_HI__SHIFT) & CP_COND_EXEC_3_ADDR1_HI__MASK;
22218c2ecf20Sopenharmony_ci}
22228c2ecf20Sopenharmony_ci
22238c2ecf20Sopenharmony_ci#define REG_CP_COND_EXEC_4					0x00000004
22248c2ecf20Sopenharmony_ci#define CP_COND_EXEC_4_REF__MASK				0xffffffff
22258c2ecf20Sopenharmony_ci#define CP_COND_EXEC_4_REF__SHIFT				0
22268c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_EXEC_4_REF(uint32_t val)
22278c2ecf20Sopenharmony_ci{
22288c2ecf20Sopenharmony_ci	return ((val) << CP_COND_EXEC_4_REF__SHIFT) & CP_COND_EXEC_4_REF__MASK;
22298c2ecf20Sopenharmony_ci}
22308c2ecf20Sopenharmony_ci
22318c2ecf20Sopenharmony_ci#define REG_CP_COND_EXEC_5					0x00000005
22328c2ecf20Sopenharmony_ci#define CP_COND_EXEC_5_DWORDS__MASK				0xffffffff
22338c2ecf20Sopenharmony_ci#define CP_COND_EXEC_5_DWORDS__SHIFT				0
22348c2ecf20Sopenharmony_cistatic inline uint32_t CP_COND_EXEC_5_DWORDS(uint32_t val)
22358c2ecf20Sopenharmony_ci{
22368c2ecf20Sopenharmony_ci	return ((val) << CP_COND_EXEC_5_DWORDS__SHIFT) & CP_COND_EXEC_5_DWORDS__MASK;
22378c2ecf20Sopenharmony_ci}
22388c2ecf20Sopenharmony_ci
22398c2ecf20Sopenharmony_ci#define REG_CP_SET_CTXSWITCH_IB_0				0x00000000
22408c2ecf20Sopenharmony_ci#define CP_SET_CTXSWITCH_IB_0_ADDR_LO__MASK			0xffffffff
22418c2ecf20Sopenharmony_ci#define CP_SET_CTXSWITCH_IB_0_ADDR_LO__SHIFT			0
22428c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_CTXSWITCH_IB_0_ADDR_LO(uint32_t val)
22438c2ecf20Sopenharmony_ci{
22448c2ecf20Sopenharmony_ci	return ((val) << CP_SET_CTXSWITCH_IB_0_ADDR_LO__SHIFT) & CP_SET_CTXSWITCH_IB_0_ADDR_LO__MASK;
22458c2ecf20Sopenharmony_ci}
22468c2ecf20Sopenharmony_ci
22478c2ecf20Sopenharmony_ci#define REG_CP_SET_CTXSWITCH_IB_1				0x00000001
22488c2ecf20Sopenharmony_ci#define CP_SET_CTXSWITCH_IB_1_ADDR_HI__MASK			0xffffffff
22498c2ecf20Sopenharmony_ci#define CP_SET_CTXSWITCH_IB_1_ADDR_HI__SHIFT			0
22508c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_CTXSWITCH_IB_1_ADDR_HI(uint32_t val)
22518c2ecf20Sopenharmony_ci{
22528c2ecf20Sopenharmony_ci	return ((val) << CP_SET_CTXSWITCH_IB_1_ADDR_HI__SHIFT) & CP_SET_CTXSWITCH_IB_1_ADDR_HI__MASK;
22538c2ecf20Sopenharmony_ci}
22548c2ecf20Sopenharmony_ci
22558c2ecf20Sopenharmony_ci#define REG_CP_SET_CTXSWITCH_IB_2				0x00000002
22568c2ecf20Sopenharmony_ci#define CP_SET_CTXSWITCH_IB_2_DWORDS__MASK			0x000fffff
22578c2ecf20Sopenharmony_ci#define CP_SET_CTXSWITCH_IB_2_DWORDS__SHIFT			0
22588c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_CTXSWITCH_IB_2_DWORDS(uint32_t val)
22598c2ecf20Sopenharmony_ci{
22608c2ecf20Sopenharmony_ci	return ((val) << CP_SET_CTXSWITCH_IB_2_DWORDS__SHIFT) & CP_SET_CTXSWITCH_IB_2_DWORDS__MASK;
22618c2ecf20Sopenharmony_ci}
22628c2ecf20Sopenharmony_ci#define CP_SET_CTXSWITCH_IB_2_TYPE__MASK			0x00300000
22638c2ecf20Sopenharmony_ci#define CP_SET_CTXSWITCH_IB_2_TYPE__SHIFT			20
22648c2ecf20Sopenharmony_cistatic inline uint32_t CP_SET_CTXSWITCH_IB_2_TYPE(enum ctxswitch_ib val)
22658c2ecf20Sopenharmony_ci{
22668c2ecf20Sopenharmony_ci	return ((val) << CP_SET_CTXSWITCH_IB_2_TYPE__SHIFT) & CP_SET_CTXSWITCH_IB_2_TYPE__MASK;
22678c2ecf20Sopenharmony_ci}
22688c2ecf20Sopenharmony_ci
22698c2ecf20Sopenharmony_ci#define REG_CP_REG_WRITE_0					0x00000000
22708c2ecf20Sopenharmony_ci#define CP_REG_WRITE_0_TRACKER__MASK				0x00000007
22718c2ecf20Sopenharmony_ci#define CP_REG_WRITE_0_TRACKER__SHIFT				0
22728c2ecf20Sopenharmony_cistatic inline uint32_t CP_REG_WRITE_0_TRACKER(enum reg_tracker val)
22738c2ecf20Sopenharmony_ci{
22748c2ecf20Sopenharmony_ci	return ((val) << CP_REG_WRITE_0_TRACKER__SHIFT) & CP_REG_WRITE_0_TRACKER__MASK;
22758c2ecf20Sopenharmony_ci}
22768c2ecf20Sopenharmony_ci
22778c2ecf20Sopenharmony_ci#define REG_CP_SMMU_TABLE_UPDATE_0				0x00000000
22788c2ecf20Sopenharmony_ci#define CP_SMMU_TABLE_UPDATE_0_TTBR0_LO__MASK			0xffffffff
22798c2ecf20Sopenharmony_ci#define CP_SMMU_TABLE_UPDATE_0_TTBR0_LO__SHIFT			0
22808c2ecf20Sopenharmony_cistatic inline uint32_t CP_SMMU_TABLE_UPDATE_0_TTBR0_LO(uint32_t val)
22818c2ecf20Sopenharmony_ci{
22828c2ecf20Sopenharmony_ci	return ((val) << CP_SMMU_TABLE_UPDATE_0_TTBR0_LO__SHIFT) & CP_SMMU_TABLE_UPDATE_0_TTBR0_LO__MASK;
22838c2ecf20Sopenharmony_ci}
22848c2ecf20Sopenharmony_ci
22858c2ecf20Sopenharmony_ci#define REG_CP_SMMU_TABLE_UPDATE_1				0x00000001
22868c2ecf20Sopenharmony_ci#define CP_SMMU_TABLE_UPDATE_1_TTBR0_HI__MASK			0x0000ffff
22878c2ecf20Sopenharmony_ci#define CP_SMMU_TABLE_UPDATE_1_TTBR0_HI__SHIFT			0
22888c2ecf20Sopenharmony_cistatic inline uint32_t CP_SMMU_TABLE_UPDATE_1_TTBR0_HI(uint32_t val)
22898c2ecf20Sopenharmony_ci{
22908c2ecf20Sopenharmony_ci	return ((val) << CP_SMMU_TABLE_UPDATE_1_TTBR0_HI__SHIFT) & CP_SMMU_TABLE_UPDATE_1_TTBR0_HI__MASK;
22918c2ecf20Sopenharmony_ci}
22928c2ecf20Sopenharmony_ci#define CP_SMMU_TABLE_UPDATE_1_ASID__MASK			0xffff0000
22938c2ecf20Sopenharmony_ci#define CP_SMMU_TABLE_UPDATE_1_ASID__SHIFT			16
22948c2ecf20Sopenharmony_cistatic inline uint32_t CP_SMMU_TABLE_UPDATE_1_ASID(uint32_t val)
22958c2ecf20Sopenharmony_ci{
22968c2ecf20Sopenharmony_ci	return ((val) << CP_SMMU_TABLE_UPDATE_1_ASID__SHIFT) & CP_SMMU_TABLE_UPDATE_1_ASID__MASK;
22978c2ecf20Sopenharmony_ci}
22988c2ecf20Sopenharmony_ci
22998c2ecf20Sopenharmony_ci#define REG_CP_SMMU_TABLE_UPDATE_2				0x00000002
23008c2ecf20Sopenharmony_ci#define CP_SMMU_TABLE_UPDATE_2_CONTEXTIDR__MASK			0xffffffff
23018c2ecf20Sopenharmony_ci#define CP_SMMU_TABLE_UPDATE_2_CONTEXTIDR__SHIFT		0
23028c2ecf20Sopenharmony_cistatic inline uint32_t CP_SMMU_TABLE_UPDATE_2_CONTEXTIDR(uint32_t val)
23038c2ecf20Sopenharmony_ci{
23048c2ecf20Sopenharmony_ci	return ((val) << CP_SMMU_TABLE_UPDATE_2_CONTEXTIDR__SHIFT) & CP_SMMU_TABLE_UPDATE_2_CONTEXTIDR__MASK;
23058c2ecf20Sopenharmony_ci}
23068c2ecf20Sopenharmony_ci
23078c2ecf20Sopenharmony_ci#define REG_CP_SMMU_TABLE_UPDATE_3				0x00000003
23088c2ecf20Sopenharmony_ci#define CP_SMMU_TABLE_UPDATE_3_CONTEXTBANK__MASK		0xffffffff
23098c2ecf20Sopenharmony_ci#define CP_SMMU_TABLE_UPDATE_3_CONTEXTBANK__SHIFT		0
23108c2ecf20Sopenharmony_cistatic inline uint32_t CP_SMMU_TABLE_UPDATE_3_CONTEXTBANK(uint32_t val)
23118c2ecf20Sopenharmony_ci{
23128c2ecf20Sopenharmony_ci	return ((val) << CP_SMMU_TABLE_UPDATE_3_CONTEXTBANK__SHIFT) & CP_SMMU_TABLE_UPDATE_3_CONTEXTBANK__MASK;
23138c2ecf20Sopenharmony_ci}
23148c2ecf20Sopenharmony_ci
23158c2ecf20Sopenharmony_ci
23168c2ecf20Sopenharmony_ci#endif /* ADRENO_PM4_XML */
2317