18c2ecf20Sopenharmony_ci#ifndef CMDSTREAM_XML
28c2ecf20Sopenharmony_ci#define CMDSTREAM_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://0x04.net/cgit/index.cgi/rules-ng-ng
88c2ecf20Sopenharmony_cigit clone git://0x04.net/rules-ng-ng
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ciThe rules-ng-ng source files this header was generated from are:
118c2ecf20Sopenharmony_ci- cmdstream.xml (  14094 bytes, from 2016-11-11 06:55:14)
128c2ecf20Sopenharmony_ci- copyright.xml (   1597 bytes, from 2016-10-29 07:29:22)
138c2ecf20Sopenharmony_ci- common.xml    (  23344 bytes, from 2016-11-10 15:14:07)
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ciCopyright (C) 2012-2016 by the following authors:
168c2ecf20Sopenharmony_ci- Wladimir J. van der Laan <laanwj@gmail.com>
178c2ecf20Sopenharmony_ci- Christian Gmeiner <christian.gmeiner@gmail.com>
188c2ecf20Sopenharmony_ci- Lucas Stach <l.stach@pengutronix.de>
198c2ecf20Sopenharmony_ci- Russell King <rmk@arm.linux.org.uk>
208c2ecf20Sopenharmony_ci
218c2ecf20Sopenharmony_ciPermission is hereby granted, free of charge, to any person obtaining a
228c2ecf20Sopenharmony_cicopy of this software and associated documentation files (the "Software"),
238c2ecf20Sopenharmony_cito deal in the Software without restriction, including without limitation
248c2ecf20Sopenharmony_cithe rights to use, copy, modify, merge, publish, distribute, sub license,
258c2ecf20Sopenharmony_ciand/or sell copies of the Software, and to permit persons to whom the
268c2ecf20Sopenharmony_ciSoftware is furnished to do so, subject to the following conditions:
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ciThe above copyright notice and this permission notice (including the
298c2ecf20Sopenharmony_cinext paragraph) shall be included in all copies or substantial portions
308c2ecf20Sopenharmony_ciof the Software.
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ciTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
338c2ecf20Sopenharmony_ciIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
348c2ecf20Sopenharmony_ciFITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
358c2ecf20Sopenharmony_ciTHE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
368c2ecf20Sopenharmony_ciLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
378c2ecf20Sopenharmony_ciFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
388c2ecf20Sopenharmony_ciDEALINGS IN THE SOFTWARE.
398c2ecf20Sopenharmony_ci*/
408c2ecf20Sopenharmony_ci
418c2ecf20Sopenharmony_ci
428c2ecf20Sopenharmony_ci#define FE_OPCODE_LOAD_STATE					0x00000001
438c2ecf20Sopenharmony_ci#define FE_OPCODE_END						0x00000002
448c2ecf20Sopenharmony_ci#define FE_OPCODE_NOP						0x00000003
458c2ecf20Sopenharmony_ci#define FE_OPCODE_DRAW_2D					0x00000004
468c2ecf20Sopenharmony_ci#define FE_OPCODE_DRAW_PRIMITIVES				0x00000005
478c2ecf20Sopenharmony_ci#define FE_OPCODE_DRAW_INDEXED_PRIMITIVES			0x00000006
488c2ecf20Sopenharmony_ci#define FE_OPCODE_WAIT						0x00000007
498c2ecf20Sopenharmony_ci#define FE_OPCODE_LINK						0x00000008
508c2ecf20Sopenharmony_ci#define FE_OPCODE_STALL						0x00000009
518c2ecf20Sopenharmony_ci#define FE_OPCODE_CALL						0x0000000a
528c2ecf20Sopenharmony_ci#define FE_OPCODE_RETURN					0x0000000b
538c2ecf20Sopenharmony_ci#define FE_OPCODE_DRAW_INSTANCED				0x0000000c
548c2ecf20Sopenharmony_ci#define FE_OPCODE_CHIP_SELECT					0x0000000d
558c2ecf20Sopenharmony_ci#define PRIMITIVE_TYPE_POINTS					0x00000001
568c2ecf20Sopenharmony_ci#define PRIMITIVE_TYPE_LINES					0x00000002
578c2ecf20Sopenharmony_ci#define PRIMITIVE_TYPE_LINE_STRIP				0x00000003
588c2ecf20Sopenharmony_ci#define PRIMITIVE_TYPE_TRIANGLES				0x00000004
598c2ecf20Sopenharmony_ci#define PRIMITIVE_TYPE_TRIANGLE_STRIP				0x00000005
608c2ecf20Sopenharmony_ci#define PRIMITIVE_TYPE_TRIANGLE_FAN				0x00000006
618c2ecf20Sopenharmony_ci#define PRIMITIVE_TYPE_LINE_LOOP				0x00000007
628c2ecf20Sopenharmony_ci#define PRIMITIVE_TYPE_QUADS					0x00000008
638c2ecf20Sopenharmony_ci#define VIV_FE_LOAD_STATE					0x00000000
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci#define VIV_FE_LOAD_STATE_HEADER				0x00000000
668c2ecf20Sopenharmony_ci#define VIV_FE_LOAD_STATE_HEADER_OP__MASK			0xf8000000
678c2ecf20Sopenharmony_ci#define VIV_FE_LOAD_STATE_HEADER_OP__SHIFT			27
688c2ecf20Sopenharmony_ci#define VIV_FE_LOAD_STATE_HEADER_OP_LOAD_STATE			0x08000000
698c2ecf20Sopenharmony_ci#define VIV_FE_LOAD_STATE_HEADER_FIXP				0x04000000
708c2ecf20Sopenharmony_ci#define VIV_FE_LOAD_STATE_HEADER_COUNT__MASK			0x03ff0000
718c2ecf20Sopenharmony_ci#define VIV_FE_LOAD_STATE_HEADER_COUNT__SHIFT			16
728c2ecf20Sopenharmony_ci#define VIV_FE_LOAD_STATE_HEADER_COUNT(x)			(((x) << VIV_FE_LOAD_STATE_HEADER_COUNT__SHIFT) & VIV_FE_LOAD_STATE_HEADER_COUNT__MASK)
738c2ecf20Sopenharmony_ci#define VIV_FE_LOAD_STATE_HEADER_OFFSET__MASK			0x0000ffff
748c2ecf20Sopenharmony_ci#define VIV_FE_LOAD_STATE_HEADER_OFFSET__SHIFT			0
758c2ecf20Sopenharmony_ci#define VIV_FE_LOAD_STATE_HEADER_OFFSET(x)			(((x) << VIV_FE_LOAD_STATE_HEADER_OFFSET__SHIFT) & VIV_FE_LOAD_STATE_HEADER_OFFSET__MASK)
768c2ecf20Sopenharmony_ci#define VIV_FE_LOAD_STATE_HEADER_OFFSET__SHR			2
778c2ecf20Sopenharmony_ci
788c2ecf20Sopenharmony_ci#define VIV_FE_END						0x00000000
798c2ecf20Sopenharmony_ci
808c2ecf20Sopenharmony_ci#define VIV_FE_END_HEADER					0x00000000
818c2ecf20Sopenharmony_ci#define VIV_FE_END_HEADER_EVENT_ID__MASK			0x0000001f
828c2ecf20Sopenharmony_ci#define VIV_FE_END_HEADER_EVENT_ID__SHIFT			0
838c2ecf20Sopenharmony_ci#define VIV_FE_END_HEADER_EVENT_ID(x)				(((x) << VIV_FE_END_HEADER_EVENT_ID__SHIFT) & VIV_FE_END_HEADER_EVENT_ID__MASK)
848c2ecf20Sopenharmony_ci#define VIV_FE_END_HEADER_EVENT_ENABLE				0x00000100
858c2ecf20Sopenharmony_ci#define VIV_FE_END_HEADER_OP__MASK				0xf8000000
868c2ecf20Sopenharmony_ci#define VIV_FE_END_HEADER_OP__SHIFT				27
878c2ecf20Sopenharmony_ci#define VIV_FE_END_HEADER_OP_END				0x10000000
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ci#define VIV_FE_NOP						0x00000000
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_ci#define VIV_FE_NOP_HEADER					0x00000000
928c2ecf20Sopenharmony_ci#define VIV_FE_NOP_HEADER_OP__MASK				0xf8000000
938c2ecf20Sopenharmony_ci#define VIV_FE_NOP_HEADER_OP__SHIFT				27
948c2ecf20Sopenharmony_ci#define VIV_FE_NOP_HEADER_OP_NOP				0x18000000
958c2ecf20Sopenharmony_ci
968c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D						0x00000000
978c2ecf20Sopenharmony_ci
988c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_HEADER					0x00000000
998c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_HEADER_COUNT__MASK			0x0000ff00
1008c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_HEADER_COUNT__SHIFT			8
1018c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_HEADER_COUNT(x)				(((x) << VIV_FE_DRAW_2D_HEADER_COUNT__SHIFT) & VIV_FE_DRAW_2D_HEADER_COUNT__MASK)
1028c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_HEADER_DATA_COUNT__MASK			0x07ff0000
1038c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_HEADER_DATA_COUNT__SHIFT			16
1048c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_HEADER_DATA_COUNT(x)			(((x) << VIV_FE_DRAW_2D_HEADER_DATA_COUNT__SHIFT) & VIV_FE_DRAW_2D_HEADER_DATA_COUNT__MASK)
1058c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_HEADER_OP__MASK				0xf8000000
1068c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_HEADER_OP__SHIFT				27
1078c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_HEADER_OP_DRAW_2D			0x20000000
1088c2ecf20Sopenharmony_ci
1098c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_TOP_LEFT					0x00000008
1108c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_TOP_LEFT_X__MASK				0x0000ffff
1118c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_TOP_LEFT_X__SHIFT			0
1128c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_TOP_LEFT_X(x)				(((x) << VIV_FE_DRAW_2D_TOP_LEFT_X__SHIFT) & VIV_FE_DRAW_2D_TOP_LEFT_X__MASK)
1138c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_TOP_LEFT_Y__MASK				0xffff0000
1148c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_TOP_LEFT_Y__SHIFT			16
1158c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_TOP_LEFT_Y(x)				(((x) << VIV_FE_DRAW_2D_TOP_LEFT_Y__SHIFT) & VIV_FE_DRAW_2D_TOP_LEFT_Y__MASK)
1168c2ecf20Sopenharmony_ci
1178c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_BOTTOM_RIGHT				0x0000000c
1188c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_BOTTOM_RIGHT_X__MASK			0x0000ffff
1198c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_BOTTOM_RIGHT_X__SHIFT			0
1208c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_BOTTOM_RIGHT_X(x)			(((x) << VIV_FE_DRAW_2D_BOTTOM_RIGHT_X__SHIFT) & VIV_FE_DRAW_2D_BOTTOM_RIGHT_X__MASK)
1218c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_BOTTOM_RIGHT_Y__MASK			0xffff0000
1228c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_BOTTOM_RIGHT_Y__SHIFT			16
1238c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_2D_BOTTOM_RIGHT_Y(x)			(((x) << VIV_FE_DRAW_2D_BOTTOM_RIGHT_Y__SHIFT) & VIV_FE_DRAW_2D_BOTTOM_RIGHT_Y__MASK)
1248c2ecf20Sopenharmony_ci
1258c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_PRIMITIVES					0x00000000
1268c2ecf20Sopenharmony_ci
1278c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_PRIMITIVES_HEADER				0x00000000
1288c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_PRIMITIVES_HEADER_OP__MASK			0xf8000000
1298c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_PRIMITIVES_HEADER_OP__SHIFT			27
1308c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_PRIMITIVES_HEADER_OP_DRAW_PRIMITIVES	0x28000000
1318c2ecf20Sopenharmony_ci
1328c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_PRIMITIVES_COMMAND				0x00000004
1338c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_PRIMITIVES_COMMAND_TYPE__MASK		0x000000ff
1348c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_PRIMITIVES_COMMAND_TYPE__SHIFT		0
1358c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_PRIMITIVES_COMMAND_TYPE(x)			(((x) << VIV_FE_DRAW_PRIMITIVES_COMMAND_TYPE__SHIFT) & VIV_FE_DRAW_PRIMITIVES_COMMAND_TYPE__MASK)
1368c2ecf20Sopenharmony_ci
1378c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_PRIMITIVES_START				0x00000008
1388c2ecf20Sopenharmony_ci
1398c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_PRIMITIVES_COUNT				0x0000000c
1408c2ecf20Sopenharmony_ci
1418c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INDEXED_PRIMITIVES				0x00000000
1428c2ecf20Sopenharmony_ci
1438c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INDEXED_PRIMITIVES_HEADER			0x00000000
1448c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INDEXED_PRIMITIVES_HEADER_OP__MASK		0xf8000000
1458c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INDEXED_PRIMITIVES_HEADER_OP__SHIFT		27
1468c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INDEXED_PRIMITIVES_HEADER_OP_DRAW_INDEXED_PRIMITIVES	0x30000000
1478c2ecf20Sopenharmony_ci
1488c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INDEXED_PRIMITIVES_COMMAND			0x00000004
1498c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INDEXED_PRIMITIVES_COMMAND_TYPE__MASK	0x000000ff
1508c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INDEXED_PRIMITIVES_COMMAND_TYPE__SHIFT	0
1518c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INDEXED_PRIMITIVES_COMMAND_TYPE(x)		(((x) << VIV_FE_DRAW_INDEXED_PRIMITIVES_COMMAND_TYPE__SHIFT) & VIV_FE_DRAW_INDEXED_PRIMITIVES_COMMAND_TYPE__MASK)
1528c2ecf20Sopenharmony_ci
1538c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INDEXED_PRIMITIVES_START			0x00000008
1548c2ecf20Sopenharmony_ci
1558c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INDEXED_PRIMITIVES_COUNT			0x0000000c
1568c2ecf20Sopenharmony_ci
1578c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INDEXED_PRIMITIVES_OFFSET			0x00000010
1588c2ecf20Sopenharmony_ci
1598c2ecf20Sopenharmony_ci#define VIV_FE_WAIT						0x00000000
1608c2ecf20Sopenharmony_ci
1618c2ecf20Sopenharmony_ci#define VIV_FE_WAIT_HEADER					0x00000000
1628c2ecf20Sopenharmony_ci#define VIV_FE_WAIT_HEADER_DELAY__MASK				0x0000ffff
1638c2ecf20Sopenharmony_ci#define VIV_FE_WAIT_HEADER_DELAY__SHIFT				0
1648c2ecf20Sopenharmony_ci#define VIV_FE_WAIT_HEADER_DELAY(x)				(((x) << VIV_FE_WAIT_HEADER_DELAY__SHIFT) & VIV_FE_WAIT_HEADER_DELAY__MASK)
1658c2ecf20Sopenharmony_ci#define VIV_FE_WAIT_HEADER_OP__MASK				0xf8000000
1668c2ecf20Sopenharmony_ci#define VIV_FE_WAIT_HEADER_OP__SHIFT				27
1678c2ecf20Sopenharmony_ci#define VIV_FE_WAIT_HEADER_OP_WAIT				0x38000000
1688c2ecf20Sopenharmony_ci
1698c2ecf20Sopenharmony_ci#define VIV_FE_LINK						0x00000000
1708c2ecf20Sopenharmony_ci
1718c2ecf20Sopenharmony_ci#define VIV_FE_LINK_HEADER					0x00000000
1728c2ecf20Sopenharmony_ci#define VIV_FE_LINK_HEADER_PREFETCH__MASK			0x0000ffff
1738c2ecf20Sopenharmony_ci#define VIV_FE_LINK_HEADER_PREFETCH__SHIFT			0
1748c2ecf20Sopenharmony_ci#define VIV_FE_LINK_HEADER_PREFETCH(x)				(((x) << VIV_FE_LINK_HEADER_PREFETCH__SHIFT) & VIV_FE_LINK_HEADER_PREFETCH__MASK)
1758c2ecf20Sopenharmony_ci#define VIV_FE_LINK_HEADER_OP__MASK				0xf8000000
1768c2ecf20Sopenharmony_ci#define VIV_FE_LINK_HEADER_OP__SHIFT				27
1778c2ecf20Sopenharmony_ci#define VIV_FE_LINK_HEADER_OP_LINK				0x40000000
1788c2ecf20Sopenharmony_ci
1798c2ecf20Sopenharmony_ci#define VIV_FE_LINK_ADDRESS					0x00000004
1808c2ecf20Sopenharmony_ci
1818c2ecf20Sopenharmony_ci#define VIV_FE_STALL						0x00000000
1828c2ecf20Sopenharmony_ci
1838c2ecf20Sopenharmony_ci#define VIV_FE_STALL_HEADER					0x00000000
1848c2ecf20Sopenharmony_ci#define VIV_FE_STALL_HEADER_OP__MASK				0xf8000000
1858c2ecf20Sopenharmony_ci#define VIV_FE_STALL_HEADER_OP__SHIFT				27
1868c2ecf20Sopenharmony_ci#define VIV_FE_STALL_HEADER_OP_STALL				0x48000000
1878c2ecf20Sopenharmony_ci
1888c2ecf20Sopenharmony_ci#define VIV_FE_STALL_TOKEN					0x00000004
1898c2ecf20Sopenharmony_ci#define VIV_FE_STALL_TOKEN_FROM__MASK				0x0000001f
1908c2ecf20Sopenharmony_ci#define VIV_FE_STALL_TOKEN_FROM__SHIFT				0
1918c2ecf20Sopenharmony_ci#define VIV_FE_STALL_TOKEN_FROM(x)				(((x) << VIV_FE_STALL_TOKEN_FROM__SHIFT) & VIV_FE_STALL_TOKEN_FROM__MASK)
1928c2ecf20Sopenharmony_ci#define VIV_FE_STALL_TOKEN_TO__MASK				0x00001f00
1938c2ecf20Sopenharmony_ci#define VIV_FE_STALL_TOKEN_TO__SHIFT				8
1948c2ecf20Sopenharmony_ci#define VIV_FE_STALL_TOKEN_TO(x)				(((x) << VIV_FE_STALL_TOKEN_TO__SHIFT) & VIV_FE_STALL_TOKEN_TO__MASK)
1958c2ecf20Sopenharmony_ci
1968c2ecf20Sopenharmony_ci#define VIV_FE_CALL						0x00000000
1978c2ecf20Sopenharmony_ci
1988c2ecf20Sopenharmony_ci#define VIV_FE_CALL_HEADER					0x00000000
1998c2ecf20Sopenharmony_ci#define VIV_FE_CALL_HEADER_PREFETCH__MASK			0x0000ffff
2008c2ecf20Sopenharmony_ci#define VIV_FE_CALL_HEADER_PREFETCH__SHIFT			0
2018c2ecf20Sopenharmony_ci#define VIV_FE_CALL_HEADER_PREFETCH(x)				(((x) << VIV_FE_CALL_HEADER_PREFETCH__SHIFT) & VIV_FE_CALL_HEADER_PREFETCH__MASK)
2028c2ecf20Sopenharmony_ci#define VIV_FE_CALL_HEADER_OP__MASK				0xf8000000
2038c2ecf20Sopenharmony_ci#define VIV_FE_CALL_HEADER_OP__SHIFT				27
2048c2ecf20Sopenharmony_ci#define VIV_FE_CALL_HEADER_OP_CALL				0x50000000
2058c2ecf20Sopenharmony_ci
2068c2ecf20Sopenharmony_ci#define VIV_FE_CALL_ADDRESS					0x00000004
2078c2ecf20Sopenharmony_ci
2088c2ecf20Sopenharmony_ci#define VIV_FE_CALL_RETURN_PREFETCH				0x00000008
2098c2ecf20Sopenharmony_ci
2108c2ecf20Sopenharmony_ci#define VIV_FE_CALL_RETURN_ADDRESS				0x0000000c
2118c2ecf20Sopenharmony_ci
2128c2ecf20Sopenharmony_ci#define VIV_FE_RETURN						0x00000000
2138c2ecf20Sopenharmony_ci
2148c2ecf20Sopenharmony_ci#define VIV_FE_RETURN_HEADER					0x00000000
2158c2ecf20Sopenharmony_ci#define VIV_FE_RETURN_HEADER_OP__MASK				0xf8000000
2168c2ecf20Sopenharmony_ci#define VIV_FE_RETURN_HEADER_OP__SHIFT				27
2178c2ecf20Sopenharmony_ci#define VIV_FE_RETURN_HEADER_OP_RETURN				0x58000000
2188c2ecf20Sopenharmony_ci
2198c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT					0x00000000
2208c2ecf20Sopenharmony_ci
2218c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER				0x00000000
2228c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_OP__MASK			0xf8000000
2238c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_OP__SHIFT			27
2248c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_OP_CHIP_SELECT		0x68000000
2258c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_ENABLE_CHIP15			0x00008000
2268c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_ENABLE_CHIP14			0x00004000
2278c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_ENABLE_CHIP13			0x00002000
2288c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_ENABLE_CHIP12			0x00001000
2298c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_ENABLE_CHIP11			0x00000800
2308c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_ENABLE_CHIP10			0x00000400
2318c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_ENABLE_CHIP9			0x00000200
2328c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_ENABLE_CHIP8			0x00000100
2338c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_ENABLE_CHIP7			0x00000080
2348c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_ENABLE_CHIP6			0x00000040
2358c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_ENABLE_CHIP5			0x00000020
2368c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_ENABLE_CHIP4			0x00000010
2378c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_ENABLE_CHIP3			0x00000008
2388c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_ENABLE_CHIP2			0x00000004
2398c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_ENABLE_CHIP1			0x00000002
2408c2ecf20Sopenharmony_ci#define VIV_FE_CHIP_SELECT_HEADER_ENABLE_CHIP0			0x00000001
2418c2ecf20Sopenharmony_ci
2428c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED					0x00000000
2438c2ecf20Sopenharmony_ci
2448c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_HEADER				0x00000000
2458c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_HEADER_OP__MASK			0xf8000000
2468c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_HEADER_OP__SHIFT			27
2478c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_HEADER_OP_DRAW_INSTANCED		0x60000000
2488c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_HEADER_INDEXED			0x00100000
2498c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_HEADER_TYPE__MASK			0x000f0000
2508c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_HEADER_TYPE__SHIFT		16
2518c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_HEADER_TYPE(x)			(((x) << VIV_FE_DRAW_INSTANCED_HEADER_TYPE__SHIFT) & VIV_FE_DRAW_INSTANCED_HEADER_TYPE__MASK)
2528c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_HEADER_INSTANCE_COUNT_LO__MASK	0x0000ffff
2538c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_HEADER_INSTANCE_COUNT_LO__SHIFT	0
2548c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_HEADER_INSTANCE_COUNT_LO(x)	(((x) << VIV_FE_DRAW_INSTANCED_HEADER_INSTANCE_COUNT_LO__SHIFT) & VIV_FE_DRAW_INSTANCED_HEADER_INSTANCE_COUNT_LO__MASK)
2558c2ecf20Sopenharmony_ci
2568c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_COUNT				0x00000004
2578c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_COUNT_INSTANCE_COUNT_HI__MASK	0xff000000
2588c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_COUNT_INSTANCE_COUNT_HI__SHIFT	24
2598c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_COUNT_INSTANCE_COUNT_HI(x)	(((x) << VIV_FE_DRAW_INSTANCED_COUNT_INSTANCE_COUNT_HI__SHIFT) & VIV_FE_DRAW_INSTANCED_COUNT_INSTANCE_COUNT_HI__MASK)
2608c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_COUNT_VERTEX_COUNT__MASK		0x00ffffff
2618c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_COUNT_VERTEX_COUNT__SHIFT		0
2628c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_COUNT_VERTEX_COUNT(x)		(((x) << VIV_FE_DRAW_INSTANCED_COUNT_VERTEX_COUNT__SHIFT) & VIV_FE_DRAW_INSTANCED_COUNT_VERTEX_COUNT__MASK)
2638c2ecf20Sopenharmony_ci
2648c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_START				0x00000008
2658c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_START_INDEX__MASK			0xffffffff
2668c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_START_INDEX__SHIFT		0
2678c2ecf20Sopenharmony_ci#define VIV_FE_DRAW_INSTANCED_START_INDEX(x)			(((x) << VIV_FE_DRAW_INSTANCED_START_INDEX__SHIFT) & VIV_FE_DRAW_INSTANCED_START_INDEX__MASK)
2688c2ecf20Sopenharmony_ci
2698c2ecf20Sopenharmony_ci
2708c2ecf20Sopenharmony_ci#endif /* CMDSTREAM_XML */
271