1037b3c26Smrg#ifndef STATE_2D_XML
2037b3c26Smrg#define STATE_2D_XML
3037b3c26Smrg
4037b3c26Smrg/* Autogenerated file, DO NOT EDIT manually!
5037b3c26Smrg
6037b3c26SmrgThis file was generated by the rules-ng-ng headergen tool in this git repository:
7037b3c26Smrghttp://0x04.net/cgit/index.cgi/rules-ng-ng
8037b3c26Smrggit clone git://0x04.net/rules-ng-ng
9037b3c26Smrg
10037b3c26SmrgThe rules-ng-ng source files this header was generated from are:
11037b3c26Smrg- state.xml     (  18940 bytes, from 2016-09-06 14:14:12)
12037b3c26Smrg- common.xml    (  20583 bytes, from 2016-09-06 14:14:12)
13037b3c26Smrg- state_hi.xml  (  25653 bytes, from 2016-09-06 14:45:17)
14037b3c26Smrg- copyright.xml (   1597 bytes, from 2016-09-06 14:44:16)
15037b3c26Smrg- state_2d.xml  (  51552 bytes, from 2016-09-06 14:44:16)
16037b3c26Smrg- state_3d.xml  (  54603 bytes, from 2016-09-06 14:44:16)
17037b3c26Smrg- state_vg.xml  (   5975 bytes, from 2016-09-06 14:44:16)
18037b3c26Smrg
19037b3c26SmrgCopyright (C) 2012-2016 by the following authors:
20037b3c26Smrg- Wladimir J. van der Laan <laanwj@gmail.com>
21037b3c26Smrg- Christian Gmeiner <christian.gmeiner@gmail.com>
22037b3c26Smrg- Lucas Stach <l.stach@pengutronix.de>
23037b3c26Smrg- Russell King <rmk@arm.linux.org.uk>
24037b3c26Smrg
25037b3c26SmrgPermission is hereby granted, free of charge, to any person obtaining a
26037b3c26Smrgcopy of this software and associated documentation files (the "Software"),
27037b3c26Smrgto deal in the Software without restriction, including without limitation
28037b3c26Smrgthe rights to use, copy, modify, merge, publish, distribute, sub license,
29037b3c26Smrgand/or sell copies of the Software, and to permit persons to whom the
30037b3c26SmrgSoftware is furnished to do so, subject to the following conditions:
31037b3c26Smrg
32037b3c26SmrgThe above copyright notice and this permission notice (including the
33037b3c26Smrgnext paragraph) shall be included in all copies or substantial portions
34037b3c26Smrgof the Software.
35037b3c26Smrg
36037b3c26SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
37037b3c26SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
38037b3c26SmrgFITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
39037b3c26SmrgTHE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
40037b3c26SmrgLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
41037b3c26SmrgFROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
42037b3c26SmrgDEALINGS IN THE SOFTWARE.
43037b3c26Smrg*/
44037b3c26Smrg
45037b3c26Smrg
46037b3c26Smrg#define DE_FORMAT_X4R4G4B4					0x00000000
47037b3c26Smrg#define DE_FORMAT_A4R4G4B4					0x00000001
48037b3c26Smrg#define DE_FORMAT_X1R5G5B5					0x00000002
49037b3c26Smrg#define DE_FORMAT_A1R5G5B5					0x00000003
50037b3c26Smrg#define DE_FORMAT_R5G6B5					0x00000004
51037b3c26Smrg#define DE_FORMAT_X8R8G8B8					0x00000005
52037b3c26Smrg#define DE_FORMAT_A8R8G8B8					0x00000006
53037b3c26Smrg#define DE_FORMAT_YUY2						0x00000007
54037b3c26Smrg#define DE_FORMAT_UYVY						0x00000008
55037b3c26Smrg#define DE_FORMAT_INDEX8					0x00000009
56037b3c26Smrg#define DE_FORMAT_MONOCHROME					0x0000000a
57037b3c26Smrg#define DE_FORMAT_YV12						0x0000000f
58037b3c26Smrg#define DE_FORMAT_A8						0x00000010
59037b3c26Smrg#define DE_FORMAT_NV12						0x00000011
60037b3c26Smrg#define DE_FORMAT_NV16						0x00000012
61037b3c26Smrg#define DE_FORMAT_RG16						0x00000013
62037b3c26Smrg#define DE_SWIZZLE_ARGB						0x00000000
63037b3c26Smrg#define DE_SWIZZLE_RGBA						0x00000001
64037b3c26Smrg#define DE_SWIZZLE_ABGR						0x00000002
65037b3c26Smrg#define DE_SWIZZLE_BGRA						0x00000003
66037b3c26Smrg#define DE_BLENDMODE_ZERO					0x00000000
67037b3c26Smrg#define DE_BLENDMODE_ONE					0x00000001
68037b3c26Smrg#define DE_BLENDMODE_NORMAL					0x00000002
69037b3c26Smrg#define DE_BLENDMODE_INVERSED					0x00000003
70037b3c26Smrg#define DE_BLENDMODE_COLOR					0x00000004
71037b3c26Smrg#define DE_BLENDMODE_COLOR_INVERSED				0x00000005
72037b3c26Smrg#define DE_BLENDMODE_SATURATED_ALPHA				0x00000006
73037b3c26Smrg#define DE_BLENDMODE_SATURATED_DEST_ALPHA			0x00000007
74037b3c26Smrg#define DE_COMPONENT_BLUE					0x00000000
75037b3c26Smrg#define DE_COMPONENT_GREEN					0x00000001
76037b3c26Smrg#define DE_COMPONENT_RED					0x00000002
77037b3c26Smrg#define DE_COMPONENT_ALPHA					0x00000003
78037b3c26Smrg#define DE_ROT_MODE_ROT0					0x00000000
79037b3c26Smrg#define DE_ROT_MODE_FLIP_X					0x00000001
80037b3c26Smrg#define DE_ROT_MODE_FLIP_Y					0x00000002
81037b3c26Smrg#define DE_ROT_MODE_ROT90					0x00000004
82037b3c26Smrg#define DE_ROT_MODE_ROT180					0x00000005
83037b3c26Smrg#define DE_ROT_MODE_ROT270					0x00000006
84037b3c26Smrg#define DE_MIRROR_MODE_NONE					0x00000000
85037b3c26Smrg#define DE_MIRROR_MODE_MIRROR_X					0x00000001
86037b3c26Smrg#define DE_MIRROR_MODE_MIRROR_Y					0x00000002
87037b3c26Smrg#define DE_MIRROR_MODE_MIRROR_XY				0x00000003
88037b3c26Smrg#define DE_COLOR_BLUE__MASK					0x000000ff
89037b3c26Smrg#define DE_COLOR_BLUE__SHIFT					0
90037b3c26Smrg#define DE_COLOR_BLUE(x)					(((x) << DE_COLOR_BLUE__SHIFT) & DE_COLOR_BLUE__MASK)
91037b3c26Smrg#define DE_COLOR_GREEN__MASK					0x0000ff00
92037b3c26Smrg#define DE_COLOR_GREEN__SHIFT					8
93037b3c26Smrg#define DE_COLOR_GREEN(x)					(((x) << DE_COLOR_GREEN__SHIFT) & DE_COLOR_GREEN__MASK)
94037b3c26Smrg#define DE_COLOR_RED__MASK					0x00ff0000
95037b3c26Smrg#define DE_COLOR_RED__SHIFT					16
96037b3c26Smrg#define DE_COLOR_RED(x)						(((x) << DE_COLOR_RED__SHIFT) & DE_COLOR_RED__MASK)
97037b3c26Smrg#define DE_COLOR_ALPHA__MASK					0xff000000
98037b3c26Smrg#define DE_COLOR_ALPHA__SHIFT					24
99037b3c26Smrg#define DE_COLOR_ALPHA(x)					(((x) << DE_COLOR_ALPHA__SHIFT) & DE_COLOR_ALPHA__MASK)
100037b3c26Smrg#define VIVS_DE							0x00000000
101037b3c26Smrg
102037b3c26Smrg#define VIVS_DE_SRC_ADDRESS					0x00001200
103037b3c26Smrg
104037b3c26Smrg#define VIVS_DE_SRC_STRIDE					0x00001204
105037b3c26Smrg#define VIVS_DE_SRC_STRIDE_STRIDE__MASK				0x0003ffff
106037b3c26Smrg#define VIVS_DE_SRC_STRIDE_STRIDE__SHIFT			0
107037b3c26Smrg#define VIVS_DE_SRC_STRIDE_STRIDE(x)				(((x) << VIVS_DE_SRC_STRIDE_STRIDE__SHIFT) & VIVS_DE_SRC_STRIDE_STRIDE__MASK)
108037b3c26Smrg
109037b3c26Smrg#define VIVS_DE_SRC_ROTATION_CONFIG				0x00001208
110037b3c26Smrg#define VIVS_DE_SRC_ROTATION_CONFIG_WIDTH__MASK			0x0000ffff
111037b3c26Smrg#define VIVS_DE_SRC_ROTATION_CONFIG_WIDTH__SHIFT		0
112037b3c26Smrg#define VIVS_DE_SRC_ROTATION_CONFIG_WIDTH(x)			(((x) << VIVS_DE_SRC_ROTATION_CONFIG_WIDTH__SHIFT) & VIVS_DE_SRC_ROTATION_CONFIG_WIDTH__MASK)
113037b3c26Smrg#define VIVS_DE_SRC_ROTATION_CONFIG_ROTATION__MASK		0x00010000
114037b3c26Smrg#define VIVS_DE_SRC_ROTATION_CONFIG_ROTATION__SHIFT		16
115037b3c26Smrg#define VIVS_DE_SRC_ROTATION_CONFIG_ROTATION_DISABLE		0x00000000
116037b3c26Smrg#define VIVS_DE_SRC_ROTATION_CONFIG_ROTATION_ENABLE		0x00010000
117037b3c26Smrg
118037b3c26Smrg#define VIVS_DE_SRC_CONFIG					0x0000120c
119037b3c26Smrg#define VIVS_DE_SRC_CONFIG_PE10_SOURCE_FORMAT__MASK		0x0000000f
120037b3c26Smrg#define VIVS_DE_SRC_CONFIG_PE10_SOURCE_FORMAT__SHIFT		0
121037b3c26Smrg#define VIVS_DE_SRC_CONFIG_PE10_SOURCE_FORMAT(x)		(((x) << VIVS_DE_SRC_CONFIG_PE10_SOURCE_FORMAT__SHIFT) & VIVS_DE_SRC_CONFIG_PE10_SOURCE_FORMAT__MASK)
122037b3c26Smrg#define VIVS_DE_SRC_CONFIG_TRANSPARENCY__MASK			0x00000030
123037b3c26Smrg#define VIVS_DE_SRC_CONFIG_TRANSPARENCY__SHIFT			4
124037b3c26Smrg#define VIVS_DE_SRC_CONFIG_TRANSPARENCY(x)			(((x) << VIVS_DE_SRC_CONFIG_TRANSPARENCY__SHIFT) & VIVS_DE_SRC_CONFIG_TRANSPARENCY__MASK)
125037b3c26Smrg#define VIVS_DE_SRC_CONFIG_SRC_RELATIVE__MASK			0x00000040
126037b3c26Smrg#define VIVS_DE_SRC_CONFIG_SRC_RELATIVE__SHIFT			6
127037b3c26Smrg#define VIVS_DE_SRC_CONFIG_SRC_RELATIVE_ABSOLUTE		0x00000000
128037b3c26Smrg#define VIVS_DE_SRC_CONFIG_SRC_RELATIVE_RELATIVE		0x00000040
129037b3c26Smrg#define VIVS_DE_SRC_CONFIG_TILED__MASK				0x00000080
130037b3c26Smrg#define VIVS_DE_SRC_CONFIG_TILED__SHIFT				7
131037b3c26Smrg#define VIVS_DE_SRC_CONFIG_TILED_DISABLE			0x00000000
132037b3c26Smrg#define VIVS_DE_SRC_CONFIG_TILED_ENABLE				0x00000080
133037b3c26Smrg#define VIVS_DE_SRC_CONFIG_LOCATION__MASK			0x00000100
134037b3c26Smrg#define VIVS_DE_SRC_CONFIG_LOCATION__SHIFT			8
135037b3c26Smrg#define VIVS_DE_SRC_CONFIG_LOCATION_MEMORY			0x00000000
136037b3c26Smrg#define VIVS_DE_SRC_CONFIG_LOCATION_STREAM			0x00000100
137037b3c26Smrg#define VIVS_DE_SRC_CONFIG_PACK__MASK				0x00003000
138037b3c26Smrg#define VIVS_DE_SRC_CONFIG_PACK__SHIFT				12
139037b3c26Smrg#define VIVS_DE_SRC_CONFIG_PACK_PACKED8				0x00000000
140037b3c26Smrg#define VIVS_DE_SRC_CONFIG_PACK_PACKED16			0x00001000
141037b3c26Smrg#define VIVS_DE_SRC_CONFIG_PACK_PACKED32			0x00002000
142037b3c26Smrg#define VIVS_DE_SRC_CONFIG_PACK_UNPACKED			0x00003000
143037b3c26Smrg#define VIVS_DE_SRC_CONFIG_MONO_TRANSPARENCY__MASK		0x00008000
144037b3c26Smrg#define VIVS_DE_SRC_CONFIG_MONO_TRANSPARENCY__SHIFT		15
145037b3c26Smrg#define VIVS_DE_SRC_CONFIG_MONO_TRANSPARENCY_BACKGROUND		0x00000000
146037b3c26Smrg#define VIVS_DE_SRC_CONFIG_MONO_TRANSPARENCY_FOREGROUND		0x00008000
147037b3c26Smrg#define VIVS_DE_SRC_CONFIG_UNK16				0x00010000
148037b3c26Smrg#define VIVS_DE_SRC_CONFIG_SWIZZLE__MASK			0x00300000
149037b3c26Smrg#define VIVS_DE_SRC_CONFIG_SWIZZLE__SHIFT			20
150037b3c26Smrg#define VIVS_DE_SRC_CONFIG_SWIZZLE(x)				(((x) << VIVS_DE_SRC_CONFIG_SWIZZLE__SHIFT) & VIVS_DE_SRC_CONFIG_SWIZZLE__MASK)
151037b3c26Smrg#define VIVS_DE_SRC_CONFIG_SOURCE_FORMAT__MASK			0x1f000000
152037b3c26Smrg#define VIVS_DE_SRC_CONFIG_SOURCE_FORMAT__SHIFT			24
153037b3c26Smrg#define VIVS_DE_SRC_CONFIG_SOURCE_FORMAT(x)			(((x) << VIVS_DE_SRC_CONFIG_SOURCE_FORMAT__SHIFT) & VIVS_DE_SRC_CONFIG_SOURCE_FORMAT__MASK)
154037b3c26Smrg#define VIVS_DE_SRC_CONFIG_DISABLE420_L2_CACHE			0x20000000
155037b3c26Smrg#define VIVS_DE_SRC_CONFIG_ENDIAN_CONTROL__MASK			0xc0000000
156037b3c26Smrg#define VIVS_DE_SRC_CONFIG_ENDIAN_CONTROL__SHIFT		30
157037b3c26Smrg#define VIVS_DE_SRC_CONFIG_ENDIAN_CONTROL(x)			(((x) << VIVS_DE_SRC_CONFIG_ENDIAN_CONTROL__SHIFT) & VIVS_DE_SRC_CONFIG_ENDIAN_CONTROL__MASK)
158037b3c26Smrg
159037b3c26Smrg#define VIVS_DE_SRC_ORIGIN					0x00001210
160037b3c26Smrg#define VIVS_DE_SRC_ORIGIN_X__MASK				0x0000ffff
161037b3c26Smrg#define VIVS_DE_SRC_ORIGIN_X__SHIFT				0
162037b3c26Smrg#define VIVS_DE_SRC_ORIGIN_X(x)					(((x) << VIVS_DE_SRC_ORIGIN_X__SHIFT) & VIVS_DE_SRC_ORIGIN_X__MASK)
163037b3c26Smrg#define VIVS_DE_SRC_ORIGIN_Y__MASK				0xffff0000
164037b3c26Smrg#define VIVS_DE_SRC_ORIGIN_Y__SHIFT				16
165037b3c26Smrg#define VIVS_DE_SRC_ORIGIN_Y(x)					(((x) << VIVS_DE_SRC_ORIGIN_Y__SHIFT) & VIVS_DE_SRC_ORIGIN_Y__MASK)
166037b3c26Smrg
167037b3c26Smrg#define VIVS_DE_SRC_SIZE					0x00001214
168037b3c26Smrg#define VIVS_DE_SRC_SIZE_X__MASK				0x0000ffff
169037b3c26Smrg#define VIVS_DE_SRC_SIZE_X__SHIFT				0
170037b3c26Smrg#define VIVS_DE_SRC_SIZE_X(x)					(((x) << VIVS_DE_SRC_SIZE_X__SHIFT) & VIVS_DE_SRC_SIZE_X__MASK)
171037b3c26Smrg#define VIVS_DE_SRC_SIZE_Y__MASK				0xffff0000
172037b3c26Smrg#define VIVS_DE_SRC_SIZE_Y__SHIFT				16
173037b3c26Smrg#define VIVS_DE_SRC_SIZE_Y(x)					(((x) << VIVS_DE_SRC_SIZE_Y__SHIFT) & VIVS_DE_SRC_SIZE_Y__MASK)
174037b3c26Smrg
175037b3c26Smrg#define VIVS_DE_SRC_COLOR_BG					0x00001218
176037b3c26Smrg
177037b3c26Smrg#define VIVS_DE_SRC_COLOR_FG					0x0000121c
178037b3c26Smrg
179037b3c26Smrg#define VIVS_DE_STRETCH_FACTOR_LOW				0x00001220
180037b3c26Smrg#define VIVS_DE_STRETCH_FACTOR_LOW_X__MASK			0x7fffffff
181037b3c26Smrg#define VIVS_DE_STRETCH_FACTOR_LOW_X__SHIFT			0
182037b3c26Smrg#define VIVS_DE_STRETCH_FACTOR_LOW_X(x)				(((x) << VIVS_DE_STRETCH_FACTOR_LOW_X__SHIFT) & VIVS_DE_STRETCH_FACTOR_LOW_X__MASK)
183037b3c26Smrg
184037b3c26Smrg#define VIVS_DE_STRETCH_FACTOR_HIGH				0x00001224
185037b3c26Smrg#define VIVS_DE_STRETCH_FACTOR_HIGH_Y__MASK			0x7fffffff
186037b3c26Smrg#define VIVS_DE_STRETCH_FACTOR_HIGH_Y__SHIFT			0
187037b3c26Smrg#define VIVS_DE_STRETCH_FACTOR_HIGH_Y(x)			(((x) << VIVS_DE_STRETCH_FACTOR_HIGH_Y__SHIFT) & VIVS_DE_STRETCH_FACTOR_HIGH_Y__MASK)
188037b3c26Smrg
189037b3c26Smrg#define VIVS_DE_DEST_ADDRESS					0x00001228
190037b3c26Smrg
191037b3c26Smrg#define VIVS_DE_DEST_STRIDE					0x0000122c
192037b3c26Smrg#define VIVS_DE_DEST_STRIDE_STRIDE__MASK			0x0003ffff
193037b3c26Smrg#define VIVS_DE_DEST_STRIDE_STRIDE__SHIFT			0
194037b3c26Smrg#define VIVS_DE_DEST_STRIDE_STRIDE(x)				(((x) << VIVS_DE_DEST_STRIDE_STRIDE__SHIFT) & VIVS_DE_DEST_STRIDE_STRIDE__MASK)
195037b3c26Smrg
196037b3c26Smrg#define VIVS_DE_DEST_ROTATION_CONFIG				0x00001230
197037b3c26Smrg#define VIVS_DE_DEST_ROTATION_CONFIG_WIDTH__MASK		0x0000ffff
198037b3c26Smrg#define VIVS_DE_DEST_ROTATION_CONFIG_WIDTH__SHIFT		0
199037b3c26Smrg#define VIVS_DE_DEST_ROTATION_CONFIG_WIDTH(x)			(((x) << VIVS_DE_DEST_ROTATION_CONFIG_WIDTH__SHIFT) & VIVS_DE_DEST_ROTATION_CONFIG_WIDTH__MASK)
200037b3c26Smrg#define VIVS_DE_DEST_ROTATION_CONFIG_ROTATION__MASK		0x00010000
201037b3c26Smrg#define VIVS_DE_DEST_ROTATION_CONFIG_ROTATION__SHIFT		16
202037b3c26Smrg#define VIVS_DE_DEST_ROTATION_CONFIG_ROTATION_DISABLE		0x00000000
203037b3c26Smrg#define VIVS_DE_DEST_ROTATION_CONFIG_ROTATION_ENABLE		0x00010000
204037b3c26Smrg
205037b3c26Smrg#define VIVS_DE_DEST_CONFIG					0x00001234
206037b3c26Smrg#define VIVS_DE_DEST_CONFIG_FORMAT__MASK			0x0000001f
207037b3c26Smrg#define VIVS_DE_DEST_CONFIG_FORMAT__SHIFT			0
208037b3c26Smrg#define VIVS_DE_DEST_CONFIG_FORMAT(x)				(((x) << VIVS_DE_DEST_CONFIG_FORMAT__SHIFT) & VIVS_DE_DEST_CONFIG_FORMAT__MASK)
209037b3c26Smrg#define VIVS_DE_DEST_CONFIG_TILED__MASK				0x00000100
210037b3c26Smrg#define VIVS_DE_DEST_CONFIG_TILED__SHIFT			8
211037b3c26Smrg#define VIVS_DE_DEST_CONFIG_TILED_DISABLE			0x00000000
212037b3c26Smrg#define VIVS_DE_DEST_CONFIG_TILED_ENABLE			0x00000100
213037b3c26Smrg#define VIVS_DE_DEST_CONFIG_COMMAND__MASK			0x0000f000
214037b3c26Smrg#define VIVS_DE_DEST_CONFIG_COMMAND__SHIFT			12
215037b3c26Smrg#define VIVS_DE_DEST_CONFIG_COMMAND_CLEAR			0x00000000
216037b3c26Smrg#define VIVS_DE_DEST_CONFIG_COMMAND_LINE			0x00001000
217037b3c26Smrg#define VIVS_DE_DEST_CONFIG_COMMAND_BIT_BLT			0x00002000
218037b3c26Smrg#define VIVS_DE_DEST_CONFIG_COMMAND_BIT_BLT_REVERSED		0x00003000
219037b3c26Smrg#define VIVS_DE_DEST_CONFIG_COMMAND_STRETCH_BLT			0x00004000
220037b3c26Smrg#define VIVS_DE_DEST_CONFIG_COMMAND_HOR_FILTER_BLT		0x00005000
221037b3c26Smrg#define VIVS_DE_DEST_CONFIG_COMMAND_VER_FILTER_BLT		0x00006000
222037b3c26Smrg#define VIVS_DE_DEST_CONFIG_COMMAND_ONE_PASS_FILTER_BLT		0x00007000
223037b3c26Smrg#define VIVS_DE_DEST_CONFIG_COMMAND_MULTI_SOURCE_BLT		0x00008000
224037b3c26Smrg#define VIVS_DE_DEST_CONFIG_SWIZZLE__MASK			0x00030000
225037b3c26Smrg#define VIVS_DE_DEST_CONFIG_SWIZZLE__SHIFT			16
226037b3c26Smrg#define VIVS_DE_DEST_CONFIG_SWIZZLE(x)				(((x) << VIVS_DE_DEST_CONFIG_SWIZZLE__SHIFT) & VIVS_DE_DEST_CONFIG_SWIZZLE__MASK)
227037b3c26Smrg#define VIVS_DE_DEST_CONFIG_ENDIAN_CONTROL__MASK		0x00300000
228037b3c26Smrg#define VIVS_DE_DEST_CONFIG_ENDIAN_CONTROL__SHIFT		20
229037b3c26Smrg#define VIVS_DE_DEST_CONFIG_ENDIAN_CONTROL(x)			(((x) << VIVS_DE_DEST_CONFIG_ENDIAN_CONTROL__SHIFT) & VIVS_DE_DEST_CONFIG_ENDIAN_CONTROL__MASK)
230037b3c26Smrg#define VIVS_DE_DEST_CONFIG_GDI_STRE__MASK			0x01000000
231037b3c26Smrg#define VIVS_DE_DEST_CONFIG_GDI_STRE__SHIFT			24
232037b3c26Smrg#define VIVS_DE_DEST_CONFIG_GDI_STRE_DISABLE			0x00000000
233037b3c26Smrg#define VIVS_DE_DEST_CONFIG_GDI_STRE_ENABLE			0x01000000
234037b3c26Smrg#define VIVS_DE_DEST_CONFIG_INTER_TILE_PER_FIX__MASK		0x02000000
235037b3c26Smrg#define VIVS_DE_DEST_CONFIG_INTER_TILE_PER_FIX__SHIFT		25
236037b3c26Smrg#define VIVS_DE_DEST_CONFIG_INTER_TILE_PER_FIX_DISABLED		0x02000000
237037b3c26Smrg#define VIVS_DE_DEST_CONFIG_INTER_TILE_PER_FIX_ENABLED		0x00000000
238037b3c26Smrg#define VIVS_DE_DEST_CONFIG_MINOR_TILED__MASK			0x04000000
239037b3c26Smrg#define VIVS_DE_DEST_CONFIG_MINOR_TILED__SHIFT			26
240037b3c26Smrg#define VIVS_DE_DEST_CONFIG_MINOR_TILED_DISABLE			0x00000000
241037b3c26Smrg#define VIVS_DE_DEST_CONFIG_MINOR_TILED_ENABLE			0x04000000
242037b3c26Smrg
243037b3c26Smrg#define VIVS_DE_PATTERN_ADDRESS					0x00001238
244037b3c26Smrg
245037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG					0x0000123c
246037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_FORMAT__MASK			0x0000000f
247037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_FORMAT__SHIFT			0
248037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_FORMAT(x)			(((x) << VIVS_DE_PATTERN_CONFIG_FORMAT__SHIFT) & VIVS_DE_PATTERN_CONFIG_FORMAT__MASK)
249037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_TYPE__MASK			0x00000010
250037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_TYPE__SHIFT			4
251037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_TYPE_SOLID_COLOR			0x00000000
252037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_TYPE_PATTERN			0x00000010
253037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_COLOR_CONVERT__MASK		0x00000020
254037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_COLOR_CONVERT__SHIFT		5
255037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_COLOR_CONVERT_DISABLE		0x00000000
256037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_COLOR_CONVERT_ENABLE		0x00000020
257037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_INIT_TRIGGER__MASK		0x000000c0
258037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_INIT_TRIGGER__SHIFT		6
259037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_INIT_TRIGGER(x)			(((x) << VIVS_DE_PATTERN_CONFIG_INIT_TRIGGER__SHIFT) & VIVS_DE_PATTERN_CONFIG_INIT_TRIGGER__MASK)
260037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_ORIGIN_X__MASK			0x00070000
261037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_ORIGIN_X__SHIFT			16
262037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_ORIGIN_X(x)			(((x) << VIVS_DE_PATTERN_CONFIG_ORIGIN_X__SHIFT) & VIVS_DE_PATTERN_CONFIG_ORIGIN_X__MASK)
263037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_ORIGIN_Y__MASK			0x00700000
264037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_ORIGIN_Y__SHIFT			20
265037b3c26Smrg#define VIVS_DE_PATTERN_CONFIG_ORIGIN_Y(x)			(((x) << VIVS_DE_PATTERN_CONFIG_ORIGIN_Y__SHIFT) & VIVS_DE_PATTERN_CONFIG_ORIGIN_Y__MASK)
266037b3c26Smrg
267037b3c26Smrg#define VIVS_DE_PATTERN_LOW					0x00001240
268037b3c26Smrg
269037b3c26Smrg#define VIVS_DE_PATTERN_HIGH					0x00001244
270037b3c26Smrg
271037b3c26Smrg#define VIVS_DE_PATTERN_MASK_LOW				0x00001248
272037b3c26Smrg
273037b3c26Smrg#define VIVS_DE_PATTERN_MASK_HIGH				0x0000124c
274037b3c26Smrg
275037b3c26Smrg#define VIVS_DE_PATTERN_BG_COLOR				0x00001250
276037b3c26Smrg
277037b3c26Smrg#define VIVS_DE_PATTERN_FG_COLOR				0x00001254
278037b3c26Smrg
279037b3c26Smrg#define VIVS_DE_ROP						0x0000125c
280037b3c26Smrg#define VIVS_DE_ROP_ROP_FG__MASK				0x000000ff
281037b3c26Smrg#define VIVS_DE_ROP_ROP_FG__SHIFT				0
282037b3c26Smrg#define VIVS_DE_ROP_ROP_FG(x)					(((x) << VIVS_DE_ROP_ROP_FG__SHIFT) & VIVS_DE_ROP_ROP_FG__MASK)
283037b3c26Smrg#define VIVS_DE_ROP_ROP_BG__MASK				0x0000ff00
284037b3c26Smrg#define VIVS_DE_ROP_ROP_BG__SHIFT				8
285037b3c26Smrg#define VIVS_DE_ROP_ROP_BG(x)					(((x) << VIVS_DE_ROP_ROP_BG__SHIFT) & VIVS_DE_ROP_ROP_BG__MASK)
286037b3c26Smrg#define VIVS_DE_ROP_TYPE__MASK					0x00300000
287037b3c26Smrg#define VIVS_DE_ROP_TYPE__SHIFT					20
288037b3c26Smrg#define VIVS_DE_ROP_TYPE_ROP2_PATTERN				0x00000000
289037b3c26Smrg#define VIVS_DE_ROP_TYPE_ROP2_SOURCE				0x00100000
290037b3c26Smrg#define VIVS_DE_ROP_TYPE_ROP3					0x00200000
291037b3c26Smrg#define VIVS_DE_ROP_TYPE_ROP4					0x00300000
292037b3c26Smrg
293037b3c26Smrg#define VIVS_DE_CLIP_TOP_LEFT					0x00001260
294037b3c26Smrg#define VIVS_DE_CLIP_TOP_LEFT_X__MASK				0x00007fff
295037b3c26Smrg#define VIVS_DE_CLIP_TOP_LEFT_X__SHIFT				0
296037b3c26Smrg#define VIVS_DE_CLIP_TOP_LEFT_X(x)				(((x) << VIVS_DE_CLIP_TOP_LEFT_X__SHIFT) & VIVS_DE_CLIP_TOP_LEFT_X__MASK)
297037b3c26Smrg#define VIVS_DE_CLIP_TOP_LEFT_Y__MASK				0x7fff0000
298037b3c26Smrg#define VIVS_DE_CLIP_TOP_LEFT_Y__SHIFT				16
299037b3c26Smrg#define VIVS_DE_CLIP_TOP_LEFT_Y(x)				(((x) << VIVS_DE_CLIP_TOP_LEFT_Y__SHIFT) & VIVS_DE_CLIP_TOP_LEFT_Y__MASK)
300037b3c26Smrg
301037b3c26Smrg#define VIVS_DE_CLIP_BOTTOM_RIGHT				0x00001264
302037b3c26Smrg#define VIVS_DE_CLIP_BOTTOM_RIGHT_X__MASK			0x00007fff
303037b3c26Smrg#define VIVS_DE_CLIP_BOTTOM_RIGHT_X__SHIFT			0
304037b3c26Smrg#define VIVS_DE_CLIP_BOTTOM_RIGHT_X(x)				(((x) << VIVS_DE_CLIP_BOTTOM_RIGHT_X__SHIFT) & VIVS_DE_CLIP_BOTTOM_RIGHT_X__MASK)
305037b3c26Smrg#define VIVS_DE_CLIP_BOTTOM_RIGHT_Y__MASK			0x7fff0000
306037b3c26Smrg#define VIVS_DE_CLIP_BOTTOM_RIGHT_Y__SHIFT			16
307037b3c26Smrg#define VIVS_DE_CLIP_BOTTOM_RIGHT_Y(x)				(((x) << VIVS_DE_CLIP_BOTTOM_RIGHT_Y__SHIFT) & VIVS_DE_CLIP_BOTTOM_RIGHT_Y__MASK)
308037b3c26Smrg
309037b3c26Smrg#define VIVS_DE_CLEAR_BYTE_MASK					0x00001268
310037b3c26Smrg
311037b3c26Smrg#define VIVS_DE_CONFIG						0x0000126c
312037b3c26Smrg#define VIVS_DE_CONFIG_MIRROR_BLT_ENABLE__MASK			0x00000001
313037b3c26Smrg#define VIVS_DE_CONFIG_MIRROR_BLT_ENABLE__SHIFT			0
314037b3c26Smrg#define VIVS_DE_CONFIG_MIRROR_BLT_ENABLE_OFF			0x00000000
315037b3c26Smrg#define VIVS_DE_CONFIG_MIRROR_BLT_ENABLE_ON			0x00000001
316037b3c26Smrg#define VIVS_DE_CONFIG_MIRROR_BLT_MODE__MASK			0x00000030
317037b3c26Smrg#define VIVS_DE_CONFIG_MIRROR_BLT_MODE__SHIFT			4
318037b3c26Smrg#define VIVS_DE_CONFIG_MIRROR_BLT_MODE_NORMAL			0x00000000
319037b3c26Smrg#define VIVS_DE_CONFIG_MIRROR_BLT_MODE_HMIRROR			0x00000010
320037b3c26Smrg#define VIVS_DE_CONFIG_MIRROR_BLT_MODE_VMIRROR			0x00000020
321037b3c26Smrg#define VIVS_DE_CONFIG_MIRROR_BLT_MODE_FULL_MIRROR		0x00000030
322037b3c26Smrg#define VIVS_DE_CONFIG_SOURCE_SELECT__MASK			0x00070000
323037b3c26Smrg#define VIVS_DE_CONFIG_SOURCE_SELECT__SHIFT			16
324037b3c26Smrg#define VIVS_DE_CONFIG_SOURCE_SELECT(x)				(((x) << VIVS_DE_CONFIG_SOURCE_SELECT__SHIFT) & VIVS_DE_CONFIG_SOURCE_SELECT__MASK)
325037b3c26Smrg#define VIVS_DE_CONFIG_DESTINATION_SELECT__MASK			0x00300000
326037b3c26Smrg#define VIVS_DE_CONFIG_DESTINATION_SELECT__SHIFT		20
327037b3c26Smrg#define VIVS_DE_CONFIG_DESTINATION_SELECT(x)			(((x) << VIVS_DE_CONFIG_DESTINATION_SELECT__SHIFT) & VIVS_DE_CONFIG_DESTINATION_SELECT__MASK)
328037b3c26Smrg
329037b3c26Smrg#define VIVS_DE_CLEAR_PIXEL_VALUE_LOW				0x00001270
330037b3c26Smrg
331037b3c26Smrg#define VIVS_DE_CLEAR_PIXEL_VALUE_HIGH				0x00001274
332037b3c26Smrg
333037b3c26Smrg#define VIVS_DE_SRC_ORIGIN_FRACTION				0x00001278
334037b3c26Smrg#define VIVS_DE_SRC_ORIGIN_FRACTION_X__MASK			0x0000ffff
335037b3c26Smrg#define VIVS_DE_SRC_ORIGIN_FRACTION_X__SHIFT			0
336037b3c26Smrg#define VIVS_DE_SRC_ORIGIN_FRACTION_X(x)			(((x) << VIVS_DE_SRC_ORIGIN_FRACTION_X__SHIFT) & VIVS_DE_SRC_ORIGIN_FRACTION_X__MASK)
337037b3c26Smrg#define VIVS_DE_SRC_ORIGIN_FRACTION_Y__MASK			0xffff0000
338037b3c26Smrg#define VIVS_DE_SRC_ORIGIN_FRACTION_Y__SHIFT			16
339037b3c26Smrg#define VIVS_DE_SRC_ORIGIN_FRACTION_Y(x)			(((x) << VIVS_DE_SRC_ORIGIN_FRACTION_Y__SHIFT) & VIVS_DE_SRC_ORIGIN_FRACTION_Y__MASK)
340037b3c26Smrg
341037b3c26Smrg#define VIVS_DE_ALPHA_CONTROL					0x0000127c
342037b3c26Smrg#define VIVS_DE_ALPHA_CONTROL_ENABLE__MASK			0x00000001
343037b3c26Smrg#define VIVS_DE_ALPHA_CONTROL_ENABLE__SHIFT			0
344037b3c26Smrg#define VIVS_DE_ALPHA_CONTROL_ENABLE_OFF			0x00000000
345037b3c26Smrg#define VIVS_DE_ALPHA_CONTROL_ENABLE_ON				0x00000001
346037b3c26Smrg#define VIVS_DE_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA__MASK	0x00ff0000
347037b3c26Smrg#define VIVS_DE_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA__SHIFT	16
348037b3c26Smrg#define VIVS_DE_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA(x)		(((x) << VIVS_DE_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA__SHIFT) & VIVS_DE_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA__MASK)
349037b3c26Smrg#define VIVS_DE_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA__MASK	0xff000000
350037b3c26Smrg#define VIVS_DE_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA__SHIFT	24
351037b3c26Smrg#define VIVS_DE_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA(x)		(((x) << VIVS_DE_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA__SHIFT) & VIVS_DE_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA__MASK)
352037b3c26Smrg
353037b3c26Smrg#define VIVS_DE_ALPHA_MODES					0x00001280
354037b3c26Smrg#define VIVS_DE_ALPHA_MODES_SRC_ALPHA_MODE__MASK		0x00000001
355037b3c26Smrg#define VIVS_DE_ALPHA_MODES_SRC_ALPHA_MODE__SHIFT		0
356037b3c26Smrg#define VIVS_DE_ALPHA_MODES_SRC_ALPHA_MODE_NORMAL		0x00000000
357037b3c26Smrg#define VIVS_DE_ALPHA_MODES_SRC_ALPHA_MODE_INVERSED		0x00000001
358037b3c26Smrg#define VIVS_DE_ALPHA_MODES_DST_ALPHA_MODE__MASK		0x00000010
359037b3c26Smrg#define VIVS_DE_ALPHA_MODES_DST_ALPHA_MODE__SHIFT		4
360037b3c26Smrg#define VIVS_DE_ALPHA_MODES_DST_ALPHA_MODE_NORMAL		0x00000000
361037b3c26Smrg#define VIVS_DE_ALPHA_MODES_DST_ALPHA_MODE_INVERSED		0x00000010
362037b3c26Smrg#define VIVS_DE_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE__MASK		0x00000300
363037b3c26Smrg#define VIVS_DE_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE__SHIFT	8
364037b3c26Smrg#define VIVS_DE_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_NORMAL	0x00000000
365037b3c26Smrg#define VIVS_DE_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_GLOBAL	0x00000100
366037b3c26Smrg#define VIVS_DE_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_SCALED	0x00000200
367037b3c26Smrg#define VIVS_DE_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE__MASK		0x00003000
368037b3c26Smrg#define VIVS_DE_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE__SHIFT	12
369037b3c26Smrg#define VIVS_DE_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE_NORMAL	0x00000000
370037b3c26Smrg#define VIVS_DE_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE_GLOBAL	0x00001000
371037b3c26Smrg#define VIVS_DE_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE_SCALED	0x00002000
372037b3c26Smrg#define VIVS_DE_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY__MASK	0x00010000
373037b3c26Smrg#define VIVS_DE_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY__SHIFT	16
374037b3c26Smrg#define VIVS_DE_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY_DISABLE	0x00000000
375037b3c26Smrg#define VIVS_DE_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY_ENABLE	0x00010000
376037b3c26Smrg#define VIVS_DE_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY__MASK	0x00100000
377037b3c26Smrg#define VIVS_DE_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY__SHIFT	20
378037b3c26Smrg#define VIVS_DE_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY_DISABLE	0x00000000
379037b3c26Smrg#define VIVS_DE_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY_ENABLE	0x00100000
380037b3c26Smrg#define VIVS_DE_ALPHA_MODES_SRC_BLENDING_MODE__MASK		0x07000000
381037b3c26Smrg#define VIVS_DE_ALPHA_MODES_SRC_BLENDING_MODE__SHIFT		24
382037b3c26Smrg#define VIVS_DE_ALPHA_MODES_SRC_BLENDING_MODE(x)		(((x) << VIVS_DE_ALPHA_MODES_SRC_BLENDING_MODE__SHIFT) & VIVS_DE_ALPHA_MODES_SRC_BLENDING_MODE__MASK)
383037b3c26Smrg#define VIVS_DE_ALPHA_MODES_SRC_ALPHA_FACTOR__MASK		0x08000000
384037b3c26Smrg#define VIVS_DE_ALPHA_MODES_SRC_ALPHA_FACTOR__SHIFT		27
385037b3c26Smrg#define VIVS_DE_ALPHA_MODES_SRC_ALPHA_FACTOR_DISABLE		0x00000000
386037b3c26Smrg#define VIVS_DE_ALPHA_MODES_SRC_ALPHA_FACTOR_ENABLE		0x08000000
387037b3c26Smrg#define VIVS_DE_ALPHA_MODES_DST_BLENDING_MODE__MASK		0x70000000
388037b3c26Smrg#define VIVS_DE_ALPHA_MODES_DST_BLENDING_MODE__SHIFT		28
389037b3c26Smrg#define VIVS_DE_ALPHA_MODES_DST_BLENDING_MODE(x)		(((x) << VIVS_DE_ALPHA_MODES_DST_BLENDING_MODE__SHIFT) & VIVS_DE_ALPHA_MODES_DST_BLENDING_MODE__MASK)
390037b3c26Smrg#define VIVS_DE_ALPHA_MODES_DST_ALPHA_FACTOR__MASK		0x80000000
391037b3c26Smrg#define VIVS_DE_ALPHA_MODES_DST_ALPHA_FACTOR__SHIFT		31
392037b3c26Smrg#define VIVS_DE_ALPHA_MODES_DST_ALPHA_FACTOR_DISABLE		0x00000000
393037b3c26Smrg#define VIVS_DE_ALPHA_MODES_DST_ALPHA_FACTOR_ENABLE		0x80000000
394037b3c26Smrg
395037b3c26Smrg#define VIVS_DE_UPLANE_ADDRESS					0x00001284
396037b3c26Smrg
397037b3c26Smrg#define VIVS_DE_UPLANE_STRIDE					0x00001288
398037b3c26Smrg#define VIVS_DE_UPLANE_STRIDE_STRIDE__MASK			0x0003ffff
399037b3c26Smrg#define VIVS_DE_UPLANE_STRIDE_STRIDE__SHIFT			0
400037b3c26Smrg#define VIVS_DE_UPLANE_STRIDE_STRIDE(x)				(((x) << VIVS_DE_UPLANE_STRIDE_STRIDE__SHIFT) & VIVS_DE_UPLANE_STRIDE_STRIDE__MASK)
401037b3c26Smrg
402037b3c26Smrg#define VIVS_DE_VPLANE_ADDRESS					0x0000128c
403037b3c26Smrg
404037b3c26Smrg#define VIVS_DE_VPLANE_STRIDE					0x00001290
405037b3c26Smrg#define VIVS_DE_VPLANE_STRIDE_STRIDE__MASK			0x0003ffff
406037b3c26Smrg#define VIVS_DE_VPLANE_STRIDE_STRIDE__SHIFT			0
407037b3c26Smrg#define VIVS_DE_VPLANE_STRIDE_STRIDE(x)				(((x) << VIVS_DE_VPLANE_STRIDE_STRIDE__SHIFT) & VIVS_DE_VPLANE_STRIDE_STRIDE__MASK)
408037b3c26Smrg
409037b3c26Smrg#define VIVS_DE_VR_CONFIG					0x00001294
410037b3c26Smrg#define VIVS_DE_VR_CONFIG_START__MASK				0x00000003
411037b3c26Smrg#define VIVS_DE_VR_CONFIG_START__SHIFT				0
412037b3c26Smrg#define VIVS_DE_VR_CONFIG_START_HORIZONTAL_BLIT			0x00000000
413037b3c26Smrg#define VIVS_DE_VR_CONFIG_START_VERTICAL_BLIT			0x00000001
414037b3c26Smrg#define VIVS_DE_VR_CONFIG_START_ONE_PASS_BLIT			0x00000002
415037b3c26Smrg#define VIVS_DE_VR_CONFIG_START_MASK				0x00000008
416037b3c26Smrg
417037b3c26Smrg#define VIVS_DE_VR_SOURCE_IMAGE_LOW				0x00001298
418037b3c26Smrg#define VIVS_DE_VR_SOURCE_IMAGE_LOW_LEFT__MASK			0x0000ffff
419037b3c26Smrg#define VIVS_DE_VR_SOURCE_IMAGE_LOW_LEFT__SHIFT			0
420037b3c26Smrg#define VIVS_DE_VR_SOURCE_IMAGE_LOW_LEFT(x)			(((x) << VIVS_DE_VR_SOURCE_IMAGE_LOW_LEFT__SHIFT) & VIVS_DE_VR_SOURCE_IMAGE_LOW_LEFT__MASK)
421037b3c26Smrg#define VIVS_DE_VR_SOURCE_IMAGE_LOW_TOP__MASK			0xffff0000
422037b3c26Smrg#define VIVS_DE_VR_SOURCE_IMAGE_LOW_TOP__SHIFT			16
423037b3c26Smrg#define VIVS_DE_VR_SOURCE_IMAGE_LOW_TOP(x)			(((x) << VIVS_DE_VR_SOURCE_IMAGE_LOW_TOP__SHIFT) & VIVS_DE_VR_SOURCE_IMAGE_LOW_TOP__MASK)
424037b3c26Smrg
425037b3c26Smrg#define VIVS_DE_VR_SOURCE_IMAGE_HIGH				0x0000129c
426037b3c26Smrg#define VIVS_DE_VR_SOURCE_IMAGE_HIGH_RIGHT__MASK		0x0000ffff
427037b3c26Smrg#define VIVS_DE_VR_SOURCE_IMAGE_HIGH_RIGHT__SHIFT		0
428037b3c26Smrg#define VIVS_DE_VR_SOURCE_IMAGE_HIGH_RIGHT(x)			(((x) << VIVS_DE_VR_SOURCE_IMAGE_HIGH_RIGHT__SHIFT) & VIVS_DE_VR_SOURCE_IMAGE_HIGH_RIGHT__MASK)
429037b3c26Smrg#define VIVS_DE_VR_SOURCE_IMAGE_HIGH_BOTTOM__MASK		0xffff0000
430037b3c26Smrg#define VIVS_DE_VR_SOURCE_IMAGE_HIGH_BOTTOM__SHIFT		16
431037b3c26Smrg#define VIVS_DE_VR_SOURCE_IMAGE_HIGH_BOTTOM(x)			(((x) << VIVS_DE_VR_SOURCE_IMAGE_HIGH_BOTTOM__SHIFT) & VIVS_DE_VR_SOURCE_IMAGE_HIGH_BOTTOM__MASK)
432037b3c26Smrg
433037b3c26Smrg#define VIVS_DE_VR_SOURCE_ORIGIN_LOW				0x000012a0
434037b3c26Smrg#define VIVS_DE_VR_SOURCE_ORIGIN_LOW_X__MASK			0xffffffff
435037b3c26Smrg#define VIVS_DE_VR_SOURCE_ORIGIN_LOW_X__SHIFT			0
436037b3c26Smrg#define VIVS_DE_VR_SOURCE_ORIGIN_LOW_X(x)			(((x) << VIVS_DE_VR_SOURCE_ORIGIN_LOW_X__SHIFT) & VIVS_DE_VR_SOURCE_ORIGIN_LOW_X__MASK)
437037b3c26Smrg
438037b3c26Smrg#define VIVS_DE_VR_SOURCE_ORIGIN_HIGH				0x000012a4
439037b3c26Smrg#define VIVS_DE_VR_SOURCE_ORIGIN_HIGH_Y__MASK			0xffffffff
440037b3c26Smrg#define VIVS_DE_VR_SOURCE_ORIGIN_HIGH_Y__SHIFT			0
441037b3c26Smrg#define VIVS_DE_VR_SOURCE_ORIGIN_HIGH_Y(x)			(((x) << VIVS_DE_VR_SOURCE_ORIGIN_HIGH_Y__SHIFT) & VIVS_DE_VR_SOURCE_ORIGIN_HIGH_Y__MASK)
442037b3c26Smrg
443037b3c26Smrg#define VIVS_DE_VR_TARGET_WINDOW_LOW				0x000012a8
444037b3c26Smrg#define VIVS_DE_VR_TARGET_WINDOW_LOW_LEFT__MASK			0x0000ffff
445037b3c26Smrg#define VIVS_DE_VR_TARGET_WINDOW_LOW_LEFT__SHIFT		0
446037b3c26Smrg#define VIVS_DE_VR_TARGET_WINDOW_LOW_LEFT(x)			(((x) << VIVS_DE_VR_TARGET_WINDOW_LOW_LEFT__SHIFT) & VIVS_DE_VR_TARGET_WINDOW_LOW_LEFT__MASK)
447037b3c26Smrg#define VIVS_DE_VR_TARGET_WINDOW_LOW_TOP__MASK			0xffff0000
448037b3c26Smrg#define VIVS_DE_VR_TARGET_WINDOW_LOW_TOP__SHIFT			16
449037b3c26Smrg#define VIVS_DE_VR_TARGET_WINDOW_LOW_TOP(x)			(((x) << VIVS_DE_VR_TARGET_WINDOW_LOW_TOP__SHIFT) & VIVS_DE_VR_TARGET_WINDOW_LOW_TOP__MASK)
450037b3c26Smrg
451037b3c26Smrg#define VIVS_DE_VR_TARGET_WINDOW_HIGH				0x000012ac
452037b3c26Smrg#define VIVS_DE_VR_TARGET_WINDOW_HIGH_RIGHT__MASK		0x0000ffff
453037b3c26Smrg#define VIVS_DE_VR_TARGET_WINDOW_HIGH_RIGHT__SHIFT		0
454037b3c26Smrg#define VIVS_DE_VR_TARGET_WINDOW_HIGH_RIGHT(x)			(((x) << VIVS_DE_VR_TARGET_WINDOW_HIGH_RIGHT__SHIFT) & VIVS_DE_VR_TARGET_WINDOW_HIGH_RIGHT__MASK)
455037b3c26Smrg#define VIVS_DE_VR_TARGET_WINDOW_HIGH_BOTTOM__MASK		0xffff0000
456037b3c26Smrg#define VIVS_DE_VR_TARGET_WINDOW_HIGH_BOTTOM__SHIFT		16
457037b3c26Smrg#define VIVS_DE_VR_TARGET_WINDOW_HIGH_BOTTOM(x)			(((x) << VIVS_DE_VR_TARGET_WINDOW_HIGH_BOTTOM__SHIFT) & VIVS_DE_VR_TARGET_WINDOW_HIGH_BOTTOM__MASK)
458037b3c26Smrg
459037b3c26Smrg#define VIVS_DE_PE_CONFIG					0x000012b0
460037b3c26Smrg#define VIVS_DE_PE_CONFIG_DESTINATION_FETCH__MASK		0x00000003
461037b3c26Smrg#define VIVS_DE_PE_CONFIG_DESTINATION_FETCH__SHIFT		0
462037b3c26Smrg#define VIVS_DE_PE_CONFIG_DESTINATION_FETCH_DISABLE		0x00000000
463037b3c26Smrg#define VIVS_DE_PE_CONFIG_DESTINATION_FETCH_DEFAULT		0x00000001
464037b3c26Smrg#define VIVS_DE_PE_CONFIG_DESTINATION_FETCH_ALWAYS		0x00000002
465037b3c26Smrg#define VIVS_DE_PE_CONFIG_DESTINATION_FETCH_MASK		0x00000008
466037b3c26Smrg
467037b3c26Smrg#define VIVS_DE_DEST_ROTATION_HEIGHT				0x000012b4
468037b3c26Smrg#define VIVS_DE_DEST_ROTATION_HEIGHT_HEIGHT__MASK		0x0000ffff
469037b3c26Smrg#define VIVS_DE_DEST_ROTATION_HEIGHT_HEIGHT__SHIFT		0
470037b3c26Smrg#define VIVS_DE_DEST_ROTATION_HEIGHT_HEIGHT(x)			(((x) << VIVS_DE_DEST_ROTATION_HEIGHT_HEIGHT__SHIFT) & VIVS_DE_DEST_ROTATION_HEIGHT_HEIGHT__MASK)
471037b3c26Smrg
472037b3c26Smrg#define VIVS_DE_SRC_ROTATION_HEIGHT				0x000012b8
473037b3c26Smrg#define VIVS_DE_SRC_ROTATION_HEIGHT_HEIGHT__MASK		0x0000ffff
474037b3c26Smrg#define VIVS_DE_SRC_ROTATION_HEIGHT_HEIGHT__SHIFT		0
475037b3c26Smrg#define VIVS_DE_SRC_ROTATION_HEIGHT_HEIGHT(x)			(((x) << VIVS_DE_SRC_ROTATION_HEIGHT_HEIGHT__SHIFT) & VIVS_DE_SRC_ROTATION_HEIGHT_HEIGHT__MASK)
476037b3c26Smrg
477037b3c26Smrg#define VIVS_DE_ROT_ANGLE					0x000012bc
478037b3c26Smrg#define VIVS_DE_ROT_ANGLE_SRC__MASK				0x00000007
479037b3c26Smrg#define VIVS_DE_ROT_ANGLE_SRC__SHIFT				0
480037b3c26Smrg#define VIVS_DE_ROT_ANGLE_SRC(x)				(((x) << VIVS_DE_ROT_ANGLE_SRC__SHIFT) & VIVS_DE_ROT_ANGLE_SRC__MASK)
481037b3c26Smrg#define VIVS_DE_ROT_ANGLE_DST__MASK				0x00000038
482037b3c26Smrg#define VIVS_DE_ROT_ANGLE_DST__SHIFT				3
483037b3c26Smrg#define VIVS_DE_ROT_ANGLE_DST(x)				(((x) << VIVS_DE_ROT_ANGLE_DST__SHIFT) & VIVS_DE_ROT_ANGLE_DST__MASK)
484037b3c26Smrg#define VIVS_DE_ROT_ANGLE_SRC_MASK				0x00000100
485037b3c26Smrg#define VIVS_DE_ROT_ANGLE_DST_MASK				0x00000200
486037b3c26Smrg#define VIVS_DE_ROT_ANGLE_SRC_MIRROR__MASK			0x00003000
487037b3c26Smrg#define VIVS_DE_ROT_ANGLE_SRC_MIRROR__SHIFT			12
488037b3c26Smrg#define VIVS_DE_ROT_ANGLE_SRC_MIRROR(x)				(((x) << VIVS_DE_ROT_ANGLE_SRC_MIRROR__SHIFT) & VIVS_DE_ROT_ANGLE_SRC_MIRROR__MASK)
489037b3c26Smrg#define VIVS_DE_ROT_ANGLE_SRC_MIRROR_MASK			0x00008000
490037b3c26Smrg#define VIVS_DE_ROT_ANGLE_DST_MIRROR__MASK			0x00030000
491037b3c26Smrg#define VIVS_DE_ROT_ANGLE_DST_MIRROR__SHIFT			16
492037b3c26Smrg#define VIVS_DE_ROT_ANGLE_DST_MIRROR(x)				(((x) << VIVS_DE_ROT_ANGLE_DST_MIRROR__SHIFT) & VIVS_DE_ROT_ANGLE_DST_MIRROR__MASK)
493037b3c26Smrg#define VIVS_DE_ROT_ANGLE_DST_MIRROR_MASK			0x00080000
494037b3c26Smrg
495037b3c26Smrg#define VIVS_DE_CLEAR_PIXEL_VALUE32				0x000012c0
496037b3c26Smrg
497037b3c26Smrg#define VIVS_DE_DEST_COLOR_KEY					0x000012c4
498037b3c26Smrg
499037b3c26Smrg#define VIVS_DE_GLOBAL_SRC_COLOR				0x000012c8
500037b3c26Smrg
501037b3c26Smrg#define VIVS_DE_GLOBAL_DEST_COLOR				0x000012cc
502037b3c26Smrg
503037b3c26Smrg#define VIVS_DE_COLOR_MULTIPLY_MODES				0x000012d0
504037b3c26Smrg#define VIVS_DE_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY__MASK	0x00000001
505037b3c26Smrg#define VIVS_DE_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY__SHIFT	0
506037b3c26Smrg#define VIVS_DE_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY_DISABLE	0x00000000
507037b3c26Smrg#define VIVS_DE_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY_ENABLE	0x00000001
508037b3c26Smrg#define VIVS_DE_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY__MASK	0x00000010
509037b3c26Smrg#define VIVS_DE_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY__SHIFT	4
510037b3c26Smrg#define VIVS_DE_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY_DISABLE	0x00000000
511037b3c26Smrg#define VIVS_DE_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY_ENABLE	0x00000010
512037b3c26Smrg#define VIVS_DE_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY__MASK	0x00000300
513037b3c26Smrg#define VIVS_DE_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY__SHIFT	8
514037b3c26Smrg#define VIVS_DE_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY_DISABLE	0x00000000
515037b3c26Smrg#define VIVS_DE_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY_ALPHA	0x00000100
516037b3c26Smrg#define VIVS_DE_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY_COLOR	0x00000200
517037b3c26Smrg#define VIVS_DE_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY__MASK	0x00100000
518037b3c26Smrg#define VIVS_DE_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY__SHIFT	20
519037b3c26Smrg#define VIVS_DE_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY_DISABLE	0x00000000
520037b3c26Smrg#define VIVS_DE_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY_ENABLE	0x00100000
521037b3c26Smrg
522037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY					0x000012d4
523037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_SOURCE__MASK			0x00000003
524037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_SOURCE__SHIFT			0
525037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_SOURCE_OPAQUE			0x00000000
526037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_SOURCE_MASK			0x00000001
527037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_SOURCE_KEY			0x00000002
528037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_PATTERN__MASK			0x00000030
529037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_PATTERN__SHIFT			4
530037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_PATTERN_OPAQUE			0x00000000
531037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_PATTERN_MASK			0x00000010
532037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_PATTERN_KEY			0x00000020
533037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_DESTINATION__MASK		0x00000300
534037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_DESTINATION__SHIFT		8
535037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_DESTINATION_OPAQUE		0x00000000
536037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_DESTINATION_MASK		0x00000100
537037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_DESTINATION_KEY			0x00000200
538037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_TRANSPARENCY_MASK		0x00001000
539037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_USE_SRC_OVERRIDE__MASK		0x00030000
540037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_USE_SRC_OVERRIDE__SHIFT		16
541037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_USE_SRC_OVERRIDE_DEFAULT	0x00000000
542037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_USE_SRC_OVERRIDE_USE_ENABLE	0x00010000
543037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_USE_SRC_OVERRIDE_USE_DISABLE	0x00020000
544037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_USE_PAT_OVERRIDE__MASK		0x00300000
545037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_USE_PAT_OVERRIDE__SHIFT		20
546037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_USE_PAT_OVERRIDE_DEFAULT	0x00000000
547037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_USE_PAT_OVERRIDE_USE_ENABLE	0x00100000
548037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_USE_PAT_OVERRIDE_USE_DISABLE	0x00200000
549037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_USE_DST_OVERRIDE__MASK		0x03000000
550037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_USE_DST_OVERRIDE__SHIFT		24
551037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_USE_DST_OVERRIDE_DEFAULT	0x00000000
552037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_USE_DST_OVERRIDE_USE_ENABLE	0x01000000
553037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_USE_DST_OVERRIDE_USE_DISABLE	0x02000000
554037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_RESOURCE_OVERRIDE_MASK		0x10000000
555037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_DFB_COLOR_KEY__MASK		0x20000000
556037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_DFB_COLOR_KEY__SHIFT		29
557037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_DFB_COLOR_KEY_DISABLE		0x00000000
558037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_DFB_COLOR_KEY_ENABLE		0x20000000
559037b3c26Smrg#define VIVS_DE_PE_TRANSPARENCY_DFB_COLOR_KEY_MASK		0x80000000
560037b3c26Smrg
561037b3c26Smrg#define VIVS_DE_PE_CONTROL					0x000012d8
562037b3c26Smrg#define VIVS_DE_PE_CONTROL_YUV__MASK				0x00000001
563037b3c26Smrg#define VIVS_DE_PE_CONTROL_YUV__SHIFT				0
564037b3c26Smrg#define VIVS_DE_PE_CONTROL_YUV_601				0x00000000
565037b3c26Smrg#define VIVS_DE_PE_CONTROL_YUV_709				0x00000001
566037b3c26Smrg#define VIVS_DE_PE_CONTROL_YUV_MASK				0x00000008
567037b3c26Smrg#define VIVS_DE_PE_CONTROL_UV_SWIZZLE__MASK			0x00000010
568037b3c26Smrg#define VIVS_DE_PE_CONTROL_UV_SWIZZLE__SHIFT			4
569037b3c26Smrg#define VIVS_DE_PE_CONTROL_UV_SWIZZLE_UV			0x00000000
570037b3c26Smrg#define VIVS_DE_PE_CONTROL_UV_SWIZZLE_VU			0x00000010
571037b3c26Smrg#define VIVS_DE_PE_CONTROL_UV_SWIZZLE_MASK			0x00000080
572037b3c26Smrg#define VIVS_DE_PE_CONTROL_YUVRGB__MASK				0x00000100
573037b3c26Smrg#define VIVS_DE_PE_CONTROL_YUVRGB__SHIFT			8
574037b3c26Smrg#define VIVS_DE_PE_CONTROL_YUVRGB_DISABLE			0x00000000
575037b3c26Smrg#define VIVS_DE_PE_CONTROL_YUVRGB_ENABLE			0x00000100
576037b3c26Smrg#define VIVS_DE_PE_CONTROL_YUVRGB_MASK				0x00000800
577037b3c26Smrg
578037b3c26Smrg#define VIVS_DE_SRC_COLOR_KEY_HIGH				0x000012dc
579037b3c26Smrg
580037b3c26Smrg#define VIVS_DE_DEST_COLOR_KEY_HIGH				0x000012e0
581037b3c26Smrg
582037b3c26Smrg#define VIVS_DE_VR_CONFIG_EX					0x000012e4
583037b3c26Smrg#define VIVS_DE_VR_CONFIG_EX_VERTICAL_LINE_WIDTH__MASK		0x00000003
584037b3c26Smrg#define VIVS_DE_VR_CONFIG_EX_VERTICAL_LINE_WIDTH__SHIFT		0
585037b3c26Smrg#define VIVS_DE_VR_CONFIG_EX_VERTICAL_LINE_WIDTH_AUTO		0x00000000
586037b3c26Smrg#define VIVS_DE_VR_CONFIG_EX_VERTICAL_LINE_WIDTH_PIXELS16	0x00000001
587037b3c26Smrg#define VIVS_DE_VR_CONFIG_EX_VERTICAL_LINE_WIDTH_PIXELS32	0x00000002
588037b3c26Smrg#define VIVS_DE_VR_CONFIG_EX_VERTICAL_LINE_WIDTH_MASK		0x00000008
589037b3c26Smrg#define VIVS_DE_VR_CONFIG_EX_FILTER_TAP__MASK			0x000000f0
590037b3c26Smrg#define VIVS_DE_VR_CONFIG_EX_FILTER_TAP__SHIFT			4
591037b3c26Smrg#define VIVS_DE_VR_CONFIG_EX_FILTER_TAP(x)			(((x) << VIVS_DE_VR_CONFIG_EX_FILTER_TAP__SHIFT) & VIVS_DE_VR_CONFIG_EX_FILTER_TAP__MASK)
592037b3c26Smrg#define VIVS_DE_VR_CONFIG_EX_FILTER_TAP_MASK			0x00000100
593037b3c26Smrg
594037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW					0x000012e8
595037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X0_Y0__MASK			0x0000000f
596037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X0_Y0__SHIFT		0
597037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X0_Y0(x)			(((x) << VIVS_DE_PE_DITHER_LOW_PIXEL_X0_Y0__SHIFT) & VIVS_DE_PE_DITHER_LOW_PIXEL_X0_Y0__MASK)
598037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X1_Y0__MASK			0x000000f0
599037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X1_Y0__SHIFT		4
600037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X1_Y0(x)			(((x) << VIVS_DE_PE_DITHER_LOW_PIXEL_X1_Y0__SHIFT) & VIVS_DE_PE_DITHER_LOW_PIXEL_X1_Y0__MASK)
601037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X2_Y0__MASK			0x00000f00
602037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X2_Y0__SHIFT		8
603037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X2_Y0(x)			(((x) << VIVS_DE_PE_DITHER_LOW_PIXEL_X2_Y0__SHIFT) & VIVS_DE_PE_DITHER_LOW_PIXEL_X2_Y0__MASK)
604037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X3_Y0__MASK			0x0000f000
605037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X3_Y0__SHIFT		12
606037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X3_Y0(x)			(((x) << VIVS_DE_PE_DITHER_LOW_PIXEL_X3_Y0__SHIFT) & VIVS_DE_PE_DITHER_LOW_PIXEL_X3_Y0__MASK)
607037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X0_Y1__MASK			0x000f0000
608037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X0_Y1__SHIFT		16
609037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X0_Y1(x)			(((x) << VIVS_DE_PE_DITHER_LOW_PIXEL_X0_Y1__SHIFT) & VIVS_DE_PE_DITHER_LOW_PIXEL_X0_Y1__MASK)
610037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X1_Y1__MASK			0x00f00000
611037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X1_Y1__SHIFT		20
612037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X1_Y1(x)			(((x) << VIVS_DE_PE_DITHER_LOW_PIXEL_X1_Y1__SHIFT) & VIVS_DE_PE_DITHER_LOW_PIXEL_X1_Y1__MASK)
613037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X2_Y1__MASK			0x0f000000
614037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X2_Y1__SHIFT		24
615037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X2_Y1(x)			(((x) << VIVS_DE_PE_DITHER_LOW_PIXEL_X2_Y1__SHIFT) & VIVS_DE_PE_DITHER_LOW_PIXEL_X2_Y1__MASK)
616037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X3_Y1__MASK			0xf0000000
617037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X3_Y1__SHIFT		28
618037b3c26Smrg#define VIVS_DE_PE_DITHER_LOW_PIXEL_X3_Y1(x)			(((x) << VIVS_DE_PE_DITHER_LOW_PIXEL_X3_Y1__SHIFT) & VIVS_DE_PE_DITHER_LOW_PIXEL_X3_Y1__MASK)
619037b3c26Smrg
620037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH					0x000012ec
621037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X0_Y2__MASK		0x0000000f
622037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X0_Y2__SHIFT		0
623037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X0_Y2(x)			(((x) << VIVS_DE_PE_DITHER_HIGH_PIXEL_X0_Y2__SHIFT) & VIVS_DE_PE_DITHER_HIGH_PIXEL_X0_Y2__MASK)
624037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X1_Y2__MASK		0x000000f0
625037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X1_Y2__SHIFT		4
626037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X1_Y2(x)			(((x) << VIVS_DE_PE_DITHER_HIGH_PIXEL_X1_Y2__SHIFT) & VIVS_DE_PE_DITHER_HIGH_PIXEL_X1_Y2__MASK)
627037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X2_Y2__MASK		0x00000f00
628037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X2_Y2__SHIFT		8
629037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X2_Y2(x)			(((x) << VIVS_DE_PE_DITHER_HIGH_PIXEL_X2_Y2__SHIFT) & VIVS_DE_PE_DITHER_HIGH_PIXEL_X2_Y2__MASK)
630037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X3_Y2__MASK		0x0000f000
631037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X3_Y2__SHIFT		12
632037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X3_Y2(x)			(((x) << VIVS_DE_PE_DITHER_HIGH_PIXEL_X3_Y2__SHIFT) & VIVS_DE_PE_DITHER_HIGH_PIXEL_X3_Y2__MASK)
633037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X0_Y3__MASK		0x000f0000
634037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X0_Y3__SHIFT		16
635037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X0_Y3(x)			(((x) << VIVS_DE_PE_DITHER_HIGH_PIXEL_X0_Y3__SHIFT) & VIVS_DE_PE_DITHER_HIGH_PIXEL_X0_Y3__MASK)
636037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X1_Y3__MASK		0x00f00000
637037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X1_Y3__SHIFT		20
638037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X1_Y3(x)			(((x) << VIVS_DE_PE_DITHER_HIGH_PIXEL_X1_Y3__SHIFT) & VIVS_DE_PE_DITHER_HIGH_PIXEL_X1_Y3__MASK)
639037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X2_Y3__MASK		0x0f000000
640037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X2_Y3__SHIFT		24
641037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X2_Y3(x)			(((x) << VIVS_DE_PE_DITHER_HIGH_PIXEL_X2_Y3__SHIFT) & VIVS_DE_PE_DITHER_HIGH_PIXEL_X2_Y3__MASK)
642037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X3_Y3__MASK		0xf0000000
643037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X3_Y3__SHIFT		28
644037b3c26Smrg#define VIVS_DE_PE_DITHER_HIGH_PIXEL_X3_Y3(x)			(((x) << VIVS_DE_PE_DITHER_HIGH_PIXEL_X3_Y3__SHIFT) & VIVS_DE_PE_DITHER_HIGH_PIXEL_X3_Y3__MASK)
645037b3c26Smrg
646037b3c26Smrg#define VIVS_DE_BW_CONFIG					0x000012f0
647037b3c26Smrg#define VIVS_DE_BW_CONFIG_BLOCK_CONFIG__MASK			0x00000001
648037b3c26Smrg#define VIVS_DE_BW_CONFIG_BLOCK_CONFIG__SHIFT			0
649037b3c26Smrg#define VIVS_DE_BW_CONFIG_BLOCK_CONFIG_AUTO			0x00000000
650037b3c26Smrg#define VIVS_DE_BW_CONFIG_BLOCK_CONFIG_CUSTOMIZE		0x00000001
651037b3c26Smrg#define VIVS_DE_BW_CONFIG_BLOCK_CONFIG_MASK			0x00000008
652037b3c26Smrg#define VIVS_DE_BW_CONFIG_BLOCK_WALK_DIRECTION__MASK		0x00000010
653037b3c26Smrg#define VIVS_DE_BW_CONFIG_BLOCK_WALK_DIRECTION__SHIFT		4
654037b3c26Smrg#define VIVS_DE_BW_CONFIG_BLOCK_WALK_DIRECTION_RIGHT_BOTTOM	0x00000000
655037b3c26Smrg#define VIVS_DE_BW_CONFIG_BLOCK_WALK_DIRECTION_BOTTOM_RIGHT	0x00000010
656037b3c26Smrg#define VIVS_DE_BW_CONFIG_BLOCK_WALK_DIRECTION_MASK		0x00000080
657037b3c26Smrg#define VIVS_DE_BW_CONFIG_TILE_WALK_DIRECTION__MASK		0x00000100
658037b3c26Smrg#define VIVS_DE_BW_CONFIG_TILE_WALK_DIRECTION__SHIFT		8
659037b3c26Smrg#define VIVS_DE_BW_CONFIG_TILE_WALK_DIRECTION_RIGHT_BOTTOM	0x00000000
660037b3c26Smrg#define VIVS_DE_BW_CONFIG_TILE_WALK_DIRECTION_BOTTOM_RIGHT	0x00000100
661037b3c26Smrg#define VIVS_DE_BW_CONFIG_TILE_WALK_DIRECTION_MASK		0x00000800
662037b3c26Smrg#define VIVS_DE_BW_CONFIG_PIXEL_WALK_DIRECTION__MASK		0x00001000
663037b3c26Smrg#define VIVS_DE_BW_CONFIG_PIXEL_WALK_DIRECTION__SHIFT		12
664037b3c26Smrg#define VIVS_DE_BW_CONFIG_PIXEL_WALK_DIRECTION_RIGHT_BOTTOM	0x00000000
665037b3c26Smrg#define VIVS_DE_BW_CONFIG_PIXEL_WALK_DIRECTION_BOTTOM_RIGHT	0x00001000
666037b3c26Smrg#define VIVS_DE_BW_CONFIG_PIXEL_WALK_DIRECTION_MASK		0x00008000
667037b3c26Smrg
668037b3c26Smrg#define VIVS_DE_BW_BLOCK_SIZE					0x000012f4
669037b3c26Smrg#define VIVS_DE_BW_BLOCK_SIZE_WIDTH__MASK			0x0000ffff
670037b3c26Smrg#define VIVS_DE_BW_BLOCK_SIZE_WIDTH__SHIFT			0
671037b3c26Smrg#define VIVS_DE_BW_BLOCK_SIZE_WIDTH(x)				(((x) << VIVS_DE_BW_BLOCK_SIZE_WIDTH__SHIFT) & VIVS_DE_BW_BLOCK_SIZE_WIDTH__MASK)
672037b3c26Smrg#define VIVS_DE_BW_BLOCK_SIZE_HEIGHT__MASK			0xffff0000
673037b3c26Smrg#define VIVS_DE_BW_BLOCK_SIZE_HEIGHT__SHIFT			16
674037b3c26Smrg#define VIVS_DE_BW_BLOCK_SIZE_HEIGHT(x)				(((x) << VIVS_DE_BW_BLOCK_SIZE_HEIGHT__SHIFT) & VIVS_DE_BW_BLOCK_SIZE_HEIGHT__MASK)
675037b3c26Smrg
676037b3c26Smrg#define VIVS_DE_BW_TILE_SIZE					0x000012f8
677037b3c26Smrg#define VIVS_DE_BW_TILE_SIZE_WIDTH__MASK			0x0000ffff
678037b3c26Smrg#define VIVS_DE_BW_TILE_SIZE_WIDTH__SHIFT			0
679037b3c26Smrg#define VIVS_DE_BW_TILE_SIZE_WIDTH(x)				(((x) << VIVS_DE_BW_TILE_SIZE_WIDTH__SHIFT) & VIVS_DE_BW_TILE_SIZE_WIDTH__MASK)
680037b3c26Smrg#define VIVS_DE_BW_TILE_SIZE_HEIGHT__MASK			0xffff0000
681037b3c26Smrg#define VIVS_DE_BW_TILE_SIZE_HEIGHT__SHIFT			16
682037b3c26Smrg#define VIVS_DE_BW_TILE_SIZE_HEIGHT(x)				(((x) << VIVS_DE_BW_TILE_SIZE_HEIGHT__SHIFT) & VIVS_DE_BW_TILE_SIZE_HEIGHT__MASK)
683037b3c26Smrg
684037b3c26Smrg#define VIVS_DE_BW_BLOCK_MASK					0x000012fc
685037b3c26Smrg#define VIVS_DE_BW_BLOCK_MASK_HORIZONTAL__MASK			0x0000ffff
686037b3c26Smrg#define VIVS_DE_BW_BLOCK_MASK_HORIZONTAL__SHIFT			0
687037b3c26Smrg#define VIVS_DE_BW_BLOCK_MASK_HORIZONTAL(x)			(((x) << VIVS_DE_BW_BLOCK_MASK_HORIZONTAL__SHIFT) & VIVS_DE_BW_BLOCK_MASK_HORIZONTAL__MASK)
688037b3c26Smrg#define VIVS_DE_BW_BLOCK_MASK_VERTICAL__MASK			0xffff0000
689037b3c26Smrg#define VIVS_DE_BW_BLOCK_MASK_VERTICAL__SHIFT			16
690037b3c26Smrg#define VIVS_DE_BW_BLOCK_MASK_VERTICAL(x)			(((x) << VIVS_DE_BW_BLOCK_MASK_VERTICAL__SHIFT) & VIVS_DE_BW_BLOCK_MASK_VERTICAL__MASK)
691037b3c26Smrg
692037b3c26Smrg#define VIVS_DE_SRC_EX_CONFIG					0x00001300
693037b3c26Smrg#define VIVS_DE_SRC_EX_CONFIG_MULTI_TILED__MASK			0x00000001
694037b3c26Smrg#define VIVS_DE_SRC_EX_CONFIG_MULTI_TILED__SHIFT		0
695037b3c26Smrg#define VIVS_DE_SRC_EX_CONFIG_MULTI_TILED_DISABLE		0x00000000
696037b3c26Smrg#define VIVS_DE_SRC_EX_CONFIG_MULTI_TILED_ENABLE		0x00000001
697037b3c26Smrg#define VIVS_DE_SRC_EX_CONFIG_SUPER_TILED__MASK			0x00000008
698037b3c26Smrg#define VIVS_DE_SRC_EX_CONFIG_SUPER_TILED__SHIFT		3
699037b3c26Smrg#define VIVS_DE_SRC_EX_CONFIG_SUPER_TILED_DISABLE		0x00000000
700037b3c26Smrg#define VIVS_DE_SRC_EX_CONFIG_SUPER_TILED_ENABLE		0x00000008
701037b3c26Smrg#define VIVS_DE_SRC_EX_CONFIG_MINOR_TILED__MASK			0x00000100
702037b3c26Smrg#define VIVS_DE_SRC_EX_CONFIG_MINOR_TILED__SHIFT		8
703037b3c26Smrg#define VIVS_DE_SRC_EX_CONFIG_MINOR_TILED_DISABLE		0x00000000
704037b3c26Smrg#define VIVS_DE_SRC_EX_CONFIG_MINOR_TILED_ENABLE		0x00000100
705037b3c26Smrg
706037b3c26Smrg#define VIVS_DE_SRC_EX_ADDRESS					0x00001304
707037b3c26Smrg
708037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE					0x00001308
709037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_MAX_SOURCE__MASK		0x00000007
710037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_MAX_SOURCE__SHIFT		0
711037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_MAX_SOURCE(x)			(((x) << VIVS_DE_DE_MULTI_SOURCE_MAX_SOURCE__SHIFT) & VIVS_DE_DE_MULTI_SOURCE_MAX_SOURCE__MASK)
712037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_HORIZONTAL_BLOCK__MASK		0x00000700
713037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_HORIZONTAL_BLOCK__SHIFT		8
714037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_HORIZONTAL_BLOCK_PIXEL16	0x00000000
715037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_HORIZONTAL_BLOCK_PIXEL32	0x00000100
716037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_HORIZONTAL_BLOCK_PIXEL64	0x00000200
717037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_HORIZONTAL_BLOCK_PIXEL128	0x00000300
718037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_HORIZONTAL_BLOCK_PIXEL256	0x00000400
719037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_HORIZONTAL_BLOCK_PIXEL512	0x00000500
720037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK__MASK		0x00070000
721037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK__SHIFT		16
722037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK_LINE1		0x00000000
723037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK_LINE2		0x00010000
724037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK_LINE4		0x00020000
725037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK_LINE8		0x00030000
726037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK_LINE16		0x00040000
727037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK_LINE32		0x00050000
728037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK_LINE64		0x00060000
729037b3c26Smrg#define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK_LINE128		0x00070000
730037b3c26Smrg
731037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION				0x0000130c
732037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_ENABLE__MASK			0x00000003
733037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_ENABLE__SHIFT			0
734037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_ENABLE_OFF			0x00000000
735037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_ENABLE_PLANE1			0x00000001
736037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_ENABLE_PLANE2			0x00000002
737037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_ENABLE_PLANE3			0x00000003
738037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE1_COUNT__MASK		0x0000000c
739037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE1_COUNT__SHIFT		2
740037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE1_COUNT(x)		(((x) << VIVS_DE_DEYUV_CONVERSION_PLANE1_COUNT__SHIFT) & VIVS_DE_DEYUV_CONVERSION_PLANE1_COUNT__MASK)
741037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE2_COUNT__MASK		0x00000030
742037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE2_COUNT__SHIFT		4
743037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE2_COUNT(x)		(((x) << VIVS_DE_DEYUV_CONVERSION_PLANE2_COUNT__SHIFT) & VIVS_DE_DEYUV_CONVERSION_PLANE2_COUNT__MASK)
744037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE3_COUNT__MASK		0x000000c0
745037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE3_COUNT__SHIFT		6
746037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE3_COUNT(x)		(((x) << VIVS_DE_DEYUV_CONVERSION_PLANE3_COUNT__SHIFT) & VIVS_DE_DEYUV_CONVERSION_PLANE3_COUNT__MASK)
747037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_B__MASK		0x00000300
748037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_B__SHIFT	8
749037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_B(x)		(((x) << VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_B__SHIFT) & VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_B__MASK)
750037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_G__MASK		0x00000c00
751037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_G__SHIFT	10
752037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_G(x)		(((x) << VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_G__SHIFT) & VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_G__MASK)
753037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_R__MASK		0x00003000
754037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_R__SHIFT	12
755037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_R(x)		(((x) << VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_R__SHIFT) & VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_R__MASK)
756037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_A__MASK		0x0000c000
757037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_A__SHIFT	14
758037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_A(x)		(((x) << VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_A__SHIFT) & VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_A__MASK)
759037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_B__MASK		0x00030000
760037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_B__SHIFT	16
761037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_B(x)		(((x) << VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_B__SHIFT) & VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_B__MASK)
762037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_G__MASK		0x000c0000
763037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_G__SHIFT	18
764037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_G(x)		(((x) << VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_G__SHIFT) & VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_G__MASK)
765037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_R__MASK		0x00300000
766037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_R__SHIFT	20
767037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_R(x)		(((x) << VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_R__SHIFT) & VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_R__MASK)
768037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_A__MASK		0x00c00000
769037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_A__SHIFT	22
770037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_A(x)		(((x) << VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_A__SHIFT) & VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_A__MASK)
771037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_B__MASK		0x03000000
772037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_B__SHIFT	24
773037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_B(x)		(((x) << VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_B__SHIFT) & VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_B__MASK)
774037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_G__MASK		0x0c000000
775037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_G__SHIFT	26
776037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_G(x)		(((x) << VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_G__SHIFT) & VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_G__MASK)
777037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_R__MASK		0x30000000
778037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_R__SHIFT	28
779037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_R(x)		(((x) << VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_R__SHIFT) & VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_R__MASK)
780037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_A__MASK		0xc0000000
781037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_A__SHIFT	30
782037b3c26Smrg#define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_A(x)		(((x) << VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_A__SHIFT) & VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_A__MASK)
783037b3c26Smrg
784037b3c26Smrg#define VIVS_DE_DE_PLANE2_ADDRESS				0x00001310
785037b3c26Smrg
786037b3c26Smrg#define VIVS_DE_DE_PLANE2_STRIDE				0x00001314
787037b3c26Smrg#define VIVS_DE_DE_PLANE2_STRIDE_STRIDE__MASK			0x0003ffff
788037b3c26Smrg#define VIVS_DE_DE_PLANE2_STRIDE_STRIDE__SHIFT			0
789037b3c26Smrg#define VIVS_DE_DE_PLANE2_STRIDE_STRIDE(x)			(((x) << VIVS_DE_DE_PLANE2_STRIDE_STRIDE__SHIFT) & VIVS_DE_DE_PLANE2_STRIDE_STRIDE__MASK)
790037b3c26Smrg
791037b3c26Smrg#define VIVS_DE_DE_PLANE3_ADDRESS				0x00001318
792037b3c26Smrg
793037b3c26Smrg#define VIVS_DE_DE_PLANE3_STRIDE				0x0000131c
794037b3c26Smrg#define VIVS_DE_DE_PLANE3_STRIDE_STRIDE__MASK			0x0003ffff
795037b3c26Smrg#define VIVS_DE_DE_PLANE3_STRIDE_STRIDE__SHIFT			0
796037b3c26Smrg#define VIVS_DE_DE_PLANE3_STRIDE_STRIDE(x)			(((x) << VIVS_DE_DE_PLANE3_STRIDE_STRIDE__SHIFT) & VIVS_DE_DE_PLANE3_STRIDE_STRIDE__MASK)
797037b3c26Smrg
798037b3c26Smrg#define VIVS_DE_DE_STALL_DE					0x00001320
799037b3c26Smrg#define VIVS_DE_DE_STALL_DE_ENABLE__MASK			0x00000001
800037b3c26Smrg#define VIVS_DE_DE_STALL_DE_ENABLE__SHIFT			0
801037b3c26Smrg#define VIVS_DE_DE_STALL_DE_ENABLE_DISABLE			0x00000000
802037b3c26Smrg#define VIVS_DE_DE_STALL_DE_ENABLE_ENABLE			0x00000001
803037b3c26Smrg
804037b3c26Smrg#define VIVS_DE_FILTER_KERNEL(i0)			       (0x00001800 + 0x4*(i0))
805037b3c26Smrg#define VIVS_DE_FILTER_KERNEL__ESIZE				0x00000004
806037b3c26Smrg#define VIVS_DE_FILTER_KERNEL__LEN				0x00000080
807037b3c26Smrg#define VIVS_DE_FILTER_KERNEL_COEFFICIENT0__MASK		0x0000ffff
808037b3c26Smrg#define VIVS_DE_FILTER_KERNEL_COEFFICIENT0__SHIFT		0
809037b3c26Smrg#define VIVS_DE_FILTER_KERNEL_COEFFICIENT0(x)			(((x) << VIVS_DE_FILTER_KERNEL_COEFFICIENT0__SHIFT) & VIVS_DE_FILTER_KERNEL_COEFFICIENT0__MASK)
810037b3c26Smrg#define VIVS_DE_FILTER_KERNEL_COEFFICIENT1__MASK		0xffff0000
811037b3c26Smrg#define VIVS_DE_FILTER_KERNEL_COEFFICIENT1__SHIFT		16
812037b3c26Smrg#define VIVS_DE_FILTER_KERNEL_COEFFICIENT1(x)			(((x) << VIVS_DE_FILTER_KERNEL_COEFFICIENT1__SHIFT) & VIVS_DE_FILTER_KERNEL_COEFFICIENT1__MASK)
813037b3c26Smrg
814037b3c26Smrg#define VIVS_DE_INDEX_COLOR_TABLE(i0)			       (0x00001c00 + 0x4*(i0))
815037b3c26Smrg#define VIVS_DE_INDEX_COLOR_TABLE__ESIZE			0x00000004
816037b3c26Smrg#define VIVS_DE_INDEX_COLOR_TABLE__LEN				0x00000100
817037b3c26Smrg
818037b3c26Smrg#define VIVS_DE_HORI_FILTER_KERNEL(i0)			       (0x00002800 + 0x4*(i0))
819037b3c26Smrg#define VIVS_DE_HORI_FILTER_KERNEL__ESIZE			0x00000004
820037b3c26Smrg#define VIVS_DE_HORI_FILTER_KERNEL__LEN				0x00000080
821037b3c26Smrg#define VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT0__MASK		0x0000ffff
822037b3c26Smrg#define VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT0__SHIFT		0
823037b3c26Smrg#define VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT0(x)		(((x) << VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT0__SHIFT) & VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT0__MASK)
824037b3c26Smrg#define VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT1__MASK		0xffff0000
825037b3c26Smrg#define VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT1__SHIFT		16
826037b3c26Smrg#define VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT1(x)		(((x) << VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT1__SHIFT) & VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT1__MASK)
827037b3c26Smrg
828037b3c26Smrg#define VIVS_DE_VERTI_FILTER_KERNEL(i0)			       (0x00002a00 + 0x4*(i0))
829037b3c26Smrg#define VIVS_DE_VERTI_FILTER_KERNEL__ESIZE			0x00000004
830037b3c26Smrg#define VIVS_DE_VERTI_FILTER_KERNEL__LEN			0x00000080
831037b3c26Smrg#define VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT0__MASK		0x0000ffff
832037b3c26Smrg#define VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT0__SHIFT		0
833037b3c26Smrg#define VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT0(x)		(((x) << VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT0__SHIFT) & VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT0__MASK)
834037b3c26Smrg#define VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT1__MASK		0xffff0000
835037b3c26Smrg#define VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT1__SHIFT		16
836037b3c26Smrg#define VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT1(x)		(((x) << VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT1__SHIFT) & VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT1__MASK)
837037b3c26Smrg
838037b3c26Smrg#define VIVS_DE_INDEX_COLOR_TABLE32(i0)			       (0x00003400 + 0x4*(i0))
839037b3c26Smrg#define VIVS_DE_INDEX_COLOR_TABLE32__ESIZE			0x00000004
840037b3c26Smrg#define VIVS_DE_INDEX_COLOR_TABLE32__LEN			0x00000100
841037b3c26Smrg
842037b3c26Smrg#define VIVS_DE_BLOCK4						0x00000000
843037b3c26Smrg
844037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ADDRESS(i0)			       (0x00012800 + 0x4*(i0))
845037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ADDRESS__ESIZE			0x00000004
846037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ADDRESS__LEN				0x00000004
847037b3c26Smrg
848037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_STRIDE(i0)			       (0x00012810 + 0x4*(i0))
849037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_STRIDE__ESIZE			0x00000004
850037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_STRIDE__LEN				0x00000004
851037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_STRIDE_STRIDE__MASK			0x0003ffff
852037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_STRIDE_STRIDE__SHIFT			0
853037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_STRIDE_STRIDE(x)			(((x) << VIVS_DE_BLOCK4_SRC_STRIDE_STRIDE__SHIFT) & VIVS_DE_BLOCK4_SRC_STRIDE_STRIDE__MASK)
854037b3c26Smrg
855037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG(i0)		       (0x00012820 + 0x4*(i0))
856037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG__ESIZE		0x00000004
857037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG__LEN			0x00000004
858037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG_WIDTH__MASK		0x0000ffff
859037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG_WIDTH__SHIFT		0
860037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG_WIDTH(x)		(((x) << VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG_WIDTH__SHIFT) & VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG_WIDTH__MASK)
861037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG_ROTATION__MASK	0x00010000
862037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG_ROTATION__SHIFT	16
863037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG_ROTATION_DISABLE	0x00000000
864037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG_ROTATION_ENABLE	0x00010000
865037b3c26Smrg
866037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG(i0)			       (0x00012830 + 0x4*(i0))
867037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG__ESIZE			0x00000004
868037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG__LEN				0x00000004
869037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_PE10_SOURCE_FORMAT__MASK	0x0000000f
870037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_PE10_SOURCE_FORMAT__SHIFT	0
871037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_PE10_SOURCE_FORMAT(x)		(((x) << VIVS_DE_BLOCK4_SRC_CONFIG_PE10_SOURCE_FORMAT__SHIFT) & VIVS_DE_BLOCK4_SRC_CONFIG_PE10_SOURCE_FORMAT__MASK)
872037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_TRANSPARENCY__MASK		0x00000030
873037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_TRANSPARENCY__SHIFT		4
874037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_TRANSPARENCY(x)		(((x) << VIVS_DE_BLOCK4_SRC_CONFIG_TRANSPARENCY__SHIFT) & VIVS_DE_BLOCK4_SRC_CONFIG_TRANSPARENCY__MASK)
875037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_SRC_RELATIVE__MASK		0x00000040
876037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_SRC_RELATIVE__SHIFT		6
877037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_SRC_RELATIVE_ABSOLUTE		0x00000000
878037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_SRC_RELATIVE_RELATIVE		0x00000040
879037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_TILED__MASK			0x00000080
880037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_TILED__SHIFT			7
881037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_TILED_DISABLE			0x00000000
882037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_TILED_ENABLE			0x00000080
883037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_LOCATION__MASK		0x00000100
884037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_LOCATION__SHIFT		8
885037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_LOCATION_MEMORY		0x00000000
886037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_LOCATION_STREAM		0x00000100
887037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_PACK__MASK			0x00003000
888037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_PACK__SHIFT			12
889037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_PACK_PACKED8			0x00000000
890037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_PACK_PACKED16			0x00001000
891037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_PACK_PACKED32			0x00002000
892037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_PACK_UNPACKED			0x00003000
893037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_MONO_TRANSPARENCY__MASK	0x00008000
894037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_MONO_TRANSPARENCY__SHIFT	15
895037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_MONO_TRANSPARENCY_BACKGROUND	0x00000000
896037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_MONO_TRANSPARENCY_FOREGROUND	0x00008000
897037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_UNK16				0x00010000
898037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_SWIZZLE__MASK			0x00300000
899037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_SWIZZLE__SHIFT		20
900037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_SWIZZLE(x)			(((x) << VIVS_DE_BLOCK4_SRC_CONFIG_SWIZZLE__SHIFT) & VIVS_DE_BLOCK4_SRC_CONFIG_SWIZZLE__MASK)
901037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_SOURCE_FORMAT__MASK		0x1f000000
902037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_SOURCE_FORMAT__SHIFT		24
903037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_SOURCE_FORMAT(x)		(((x) << VIVS_DE_BLOCK4_SRC_CONFIG_SOURCE_FORMAT__SHIFT) & VIVS_DE_BLOCK4_SRC_CONFIG_SOURCE_FORMAT__MASK)
904037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_DISABLE420_L2_CACHE		0x20000000
905037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_ENDIAN_CONTROL__MASK		0xc0000000
906037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_ENDIAN_CONTROL__SHIFT		30
907037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_CONFIG_ENDIAN_CONTROL(x)		(((x) << VIVS_DE_BLOCK4_SRC_CONFIG_ENDIAN_CONTROL__SHIFT) & VIVS_DE_BLOCK4_SRC_CONFIG_ENDIAN_CONTROL__MASK)
908037b3c26Smrg
909037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ORIGIN(i0)			       (0x00012840 + 0x4*(i0))
910037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ORIGIN__ESIZE			0x00000004
911037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ORIGIN__LEN				0x00000004
912037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ORIGIN_X__MASK			0x0000ffff
913037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ORIGIN_X__SHIFT			0
914037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ORIGIN_X(x)				(((x) << VIVS_DE_BLOCK4_SRC_ORIGIN_X__SHIFT) & VIVS_DE_BLOCK4_SRC_ORIGIN_X__MASK)
915037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ORIGIN_Y__MASK			0xffff0000
916037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ORIGIN_Y__SHIFT			16
917037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ORIGIN_Y(x)				(((x) << VIVS_DE_BLOCK4_SRC_ORIGIN_Y__SHIFT) & VIVS_DE_BLOCK4_SRC_ORIGIN_Y__MASK)
918037b3c26Smrg
919037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_SIZE(i0)			       (0x00012850 + 0x4*(i0))
920037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_SIZE__ESIZE				0x00000004
921037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_SIZE__LEN				0x00000004
922037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_SIZE_X__MASK				0x0000ffff
923037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_SIZE_X__SHIFT			0
924037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_SIZE_X(x)				(((x) << VIVS_DE_BLOCK4_SRC_SIZE_X__SHIFT) & VIVS_DE_BLOCK4_SRC_SIZE_X__MASK)
925037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_SIZE_Y__MASK				0xffff0000
926037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_SIZE_Y__SHIFT			16
927037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_SIZE_Y(x)				(((x) << VIVS_DE_BLOCK4_SRC_SIZE_Y__SHIFT) & VIVS_DE_BLOCK4_SRC_SIZE_Y__MASK)
928037b3c26Smrg
929037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_COLOR_BG(i0)			       (0x00012860 + 0x4*(i0))
930037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_COLOR_BG__ESIZE			0x00000004
931037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_COLOR_BG__LEN			0x00000004
932037b3c26Smrg
933037b3c26Smrg#define VIVS_DE_BLOCK4_ROP(i0)				       (0x00012870 + 0x4*(i0))
934037b3c26Smrg#define VIVS_DE_BLOCK4_ROP__ESIZE				0x00000004
935037b3c26Smrg#define VIVS_DE_BLOCK4_ROP__LEN					0x00000004
936037b3c26Smrg#define VIVS_DE_BLOCK4_ROP_ROP_FG__MASK				0x000000ff
937037b3c26Smrg#define VIVS_DE_BLOCK4_ROP_ROP_FG__SHIFT			0
938037b3c26Smrg#define VIVS_DE_BLOCK4_ROP_ROP_FG(x)				(((x) << VIVS_DE_BLOCK4_ROP_ROP_FG__SHIFT) & VIVS_DE_BLOCK4_ROP_ROP_FG__MASK)
939037b3c26Smrg#define VIVS_DE_BLOCK4_ROP_ROP_BG__MASK				0x0000ff00
940037b3c26Smrg#define VIVS_DE_BLOCK4_ROP_ROP_BG__SHIFT			8
941037b3c26Smrg#define VIVS_DE_BLOCK4_ROP_ROP_BG(x)				(((x) << VIVS_DE_BLOCK4_ROP_ROP_BG__SHIFT) & VIVS_DE_BLOCK4_ROP_ROP_BG__MASK)
942037b3c26Smrg#define VIVS_DE_BLOCK4_ROP_TYPE__MASK				0x00300000
943037b3c26Smrg#define VIVS_DE_BLOCK4_ROP_TYPE__SHIFT				20
944037b3c26Smrg#define VIVS_DE_BLOCK4_ROP_TYPE_ROP2_PATTERN			0x00000000
945037b3c26Smrg#define VIVS_DE_BLOCK4_ROP_TYPE_ROP2_SOURCE			0x00100000
946037b3c26Smrg#define VIVS_DE_BLOCK4_ROP_TYPE_ROP3				0x00200000
947037b3c26Smrg#define VIVS_DE_BLOCK4_ROP_TYPE_ROP4				0x00300000
948037b3c26Smrg
949037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_CONTROL(i0)		       (0x00012880 + 0x4*(i0))
950037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_CONTROL__ESIZE			0x00000004
951037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_CONTROL__LEN			0x00000004
952037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_CONTROL_ENABLE__MASK		0x00000001
953037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_CONTROL_ENABLE__SHIFT		0
954037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_CONTROL_ENABLE_OFF			0x00000000
955037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_CONTROL_ENABLE_ON			0x00000001
956037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA__MASK	0x00ff0000
957037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA__SHIFT	16
958037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA(x)	(((x) << VIVS_DE_BLOCK4_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA__SHIFT) & VIVS_DE_BLOCK4_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA__MASK)
959037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA__MASK	0xff000000
960037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA__SHIFT	24
961037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA(x)	(((x) << VIVS_DE_BLOCK4_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA__SHIFT) & VIVS_DE_BLOCK4_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA__MASK)
962037b3c26Smrg
963037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES(i0)			       (0x00012890 + 0x4*(i0))
964037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES__ESIZE			0x00000004
965037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES__LEN				0x00000004
966037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_ALPHA_MODE__MASK		0x00000001
967037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_ALPHA_MODE__SHIFT	0
968037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_ALPHA_MODE_NORMAL	0x00000000
969037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_ALPHA_MODE_INVERSED	0x00000001
970037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_DST_ALPHA_MODE__MASK		0x00000010
971037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_DST_ALPHA_MODE__SHIFT	4
972037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_DST_ALPHA_MODE_NORMAL	0x00000000
973037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_DST_ALPHA_MODE_INVERSED	0x00000010
974037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE__MASK	0x00000300
975037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE__SHIFT	8
976037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_NORMAL	0x00000000
977037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_GLOBAL	0x00000100
978037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_SCALED	0x00000200
979037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE__MASK	0x00003000
980037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE__SHIFT	12
981037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE_NORMAL	0x00000000
982037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE_GLOBAL	0x00001000
983037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE_SCALED	0x00002000
984037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY__MASK	0x00010000
985037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY__SHIFT	16
986037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY_DISABLE	0x00000000
987037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY_ENABLE	0x00010000
988037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY__MASK	0x00100000
989037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY__SHIFT	20
990037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY_DISABLE	0x00000000
991037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY_ENABLE	0x00100000
992037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_BLENDING_MODE__MASK	0x07000000
993037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_BLENDING_MODE__SHIFT	24
994037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_BLENDING_MODE(x)		(((x) << VIVS_DE_BLOCK4_ALPHA_MODES_SRC_BLENDING_MODE__SHIFT) & VIVS_DE_BLOCK4_ALPHA_MODES_SRC_BLENDING_MODE__MASK)
995037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_ALPHA_FACTOR__MASK	0x08000000
996037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_ALPHA_FACTOR__SHIFT	27
997037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_ALPHA_FACTOR_DISABLE	0x00000000
998037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_ALPHA_FACTOR_ENABLE	0x08000000
999037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_DST_BLENDING_MODE__MASK	0x70000000
1000037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_DST_BLENDING_MODE__SHIFT	28
1001037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_DST_BLENDING_MODE(x)		(((x) << VIVS_DE_BLOCK4_ALPHA_MODES_DST_BLENDING_MODE__SHIFT) & VIVS_DE_BLOCK4_ALPHA_MODES_DST_BLENDING_MODE__MASK)
1002037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_DST_ALPHA_FACTOR__MASK	0x80000000
1003037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_DST_ALPHA_FACTOR__SHIFT	31
1004037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_DST_ALPHA_FACTOR_DISABLE	0x00000000
1005037b3c26Smrg#define VIVS_DE_BLOCK4_ALPHA_MODES_DST_ALPHA_FACTOR_ENABLE	0x80000000
1006037b3c26Smrg
1007037b3c26Smrg#define VIVS_DE_BLOCK4_ADDRESS_U(i0)			       (0x000128a0 + 0x4*(i0))
1008037b3c26Smrg#define VIVS_DE_BLOCK4_ADDRESS_U__ESIZE				0x00000004
1009037b3c26Smrg#define VIVS_DE_BLOCK4_ADDRESS_U__LEN				0x00000004
1010037b3c26Smrg
1011037b3c26Smrg#define VIVS_DE_BLOCK4_STRIDE_U(i0)			       (0x000128b0 + 0x4*(i0))
1012037b3c26Smrg#define VIVS_DE_BLOCK4_STRIDE_U__ESIZE				0x00000004
1013037b3c26Smrg#define VIVS_DE_BLOCK4_STRIDE_U__LEN				0x00000004
1014037b3c26Smrg#define VIVS_DE_BLOCK4_STRIDE_U_STRIDE__MASK			0x0003ffff
1015037b3c26Smrg#define VIVS_DE_BLOCK4_STRIDE_U_STRIDE__SHIFT			0
1016037b3c26Smrg#define VIVS_DE_BLOCK4_STRIDE_U_STRIDE(x)			(((x) << VIVS_DE_BLOCK4_STRIDE_U_STRIDE__SHIFT) & VIVS_DE_BLOCK4_STRIDE_U_STRIDE__MASK)
1017037b3c26Smrg
1018037b3c26Smrg#define VIVS_DE_BLOCK4_ADDRESS_V(i0)			       (0x000128c0 + 0x4*(i0))
1019037b3c26Smrg#define VIVS_DE_BLOCK4_ADDRESS_V__ESIZE				0x00000004
1020037b3c26Smrg#define VIVS_DE_BLOCK4_ADDRESS_V__LEN				0x00000004
1021037b3c26Smrg
1022037b3c26Smrg#define VIVS_DE_BLOCK4_STRIDE_V(i0)			       (0x000128d0 + 0x4*(i0))
1023037b3c26Smrg#define VIVS_DE_BLOCK4_STRIDE_V__ESIZE				0x00000004
1024037b3c26Smrg#define VIVS_DE_BLOCK4_STRIDE_V__LEN				0x00000004
1025037b3c26Smrg#define VIVS_DE_BLOCK4_STRIDE_V_STRIDE__MASK			0x0003ffff
1026037b3c26Smrg#define VIVS_DE_BLOCK4_STRIDE_V_STRIDE__SHIFT			0
1027037b3c26Smrg#define VIVS_DE_BLOCK4_STRIDE_V_STRIDE(x)			(((x) << VIVS_DE_BLOCK4_STRIDE_V_STRIDE__SHIFT) & VIVS_DE_BLOCK4_STRIDE_V_STRIDE__MASK)
1028037b3c26Smrg
1029037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ROTATION_HEIGHT(i0)		       (0x000128e0 + 0x4*(i0))
1030037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ROTATION_HEIGHT__ESIZE		0x00000004
1031037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ROTATION_HEIGHT__LEN			0x00000004
1032037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ROTATION_HEIGHT_HEIGHT__MASK		0x0000ffff
1033037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ROTATION_HEIGHT_HEIGHT__SHIFT	0
1034037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_ROTATION_HEIGHT_HEIGHT(x)		(((x) << VIVS_DE_BLOCK4_SRC_ROTATION_HEIGHT_HEIGHT__SHIFT) & VIVS_DE_BLOCK4_SRC_ROTATION_HEIGHT_HEIGHT__MASK)
1035037b3c26Smrg
1036037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE(i0)			       (0x000128f0 + 0x4*(i0))
1037037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE__ESIZE				0x00000004
1038037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE__LEN				0x00000004
1039037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE_SRC__MASK			0x00000007
1040037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE_SRC__SHIFT			0
1041037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE_SRC(x)				(((x) << VIVS_DE_BLOCK4_ROT_ANGLE_SRC__SHIFT) & VIVS_DE_BLOCK4_ROT_ANGLE_SRC__MASK)
1042037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE_DST__MASK			0x00000038
1043037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE_DST__SHIFT			3
1044037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE_DST(x)				(((x) << VIVS_DE_BLOCK4_ROT_ANGLE_DST__SHIFT) & VIVS_DE_BLOCK4_ROT_ANGLE_DST__MASK)
1045037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE_SRC_MASK			0x00000100
1046037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE_DST_MASK			0x00000200
1047037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE_SRC_MIRROR__MASK		0x00003000
1048037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE_SRC_MIRROR__SHIFT		12
1049037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE_SRC_MIRROR(x)			(((x) << VIVS_DE_BLOCK4_ROT_ANGLE_SRC_MIRROR__SHIFT) & VIVS_DE_BLOCK4_ROT_ANGLE_SRC_MIRROR__MASK)
1050037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE_SRC_MIRROR_MASK		0x00008000
1051037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE_DST_MIRROR__MASK		0x00030000
1052037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE_DST_MIRROR__SHIFT		16
1053037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE_DST_MIRROR(x)			(((x) << VIVS_DE_BLOCK4_ROT_ANGLE_DST_MIRROR__SHIFT) & VIVS_DE_BLOCK4_ROT_ANGLE_DST_MIRROR__MASK)
1054037b3c26Smrg#define VIVS_DE_BLOCK4_ROT_ANGLE_DST_MIRROR_MASK		0x00080000
1055037b3c26Smrg
1056037b3c26Smrg#define VIVS_DE_BLOCK4_GLOBAL_SRC_COLOR(i0)		       (0x00012900 + 0x4*(i0))
1057037b3c26Smrg#define VIVS_DE_BLOCK4_GLOBAL_SRC_COLOR__ESIZE			0x00000004
1058037b3c26Smrg#define VIVS_DE_BLOCK4_GLOBAL_SRC_COLOR__LEN			0x00000004
1059037b3c26Smrg
1060037b3c26Smrg#define VIVS_DE_BLOCK4_GLOBAL_DEST_COLOR(i0)		       (0x00012910 + 0x4*(i0))
1061037b3c26Smrg#define VIVS_DE_BLOCK4_GLOBAL_DEST_COLOR__ESIZE			0x00000004
1062037b3c26Smrg#define VIVS_DE_BLOCK4_GLOBAL_DEST_COLOR__LEN			0x00000004
1063037b3c26Smrg
1064037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES(i0)		       (0x00012920 + 0x4*(i0))
1065037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES__ESIZE		0x00000004
1066037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES__LEN		0x00000004
1067037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY__MASK	0x00000001
1068037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY__SHIFT	0
1069037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY_DISABLE	0x00000000
1070037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY_ENABLE	0x00000001
1071037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY__MASK	0x00000010
1072037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY__SHIFT	4
1073037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY_DISABLE	0x00000000
1074037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY_ENABLE	0x00000010
1075037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY__MASK	0x00000300
1076037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY__SHIFT	8
1077037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY_DISABLE	0x00000000
1078037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY_ALPHA	0x00000100
1079037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY_COLOR	0x00000200
1080037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY__MASK	0x00100000
1081037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY__SHIFT	20
1082037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY_DISABLE	0x00000000
1083037b3c26Smrg#define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY_ENABLE	0x00100000
1084037b3c26Smrg
1085037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY(i0)			       (0x00012930 + 0x4*(i0))
1086037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY__ESIZE			0x00000004
1087037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY__LEN			0x00000004
1088037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_SOURCE__MASK		0x00000003
1089037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_SOURCE__SHIFT		0
1090037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_SOURCE_OPAQUE		0x00000000
1091037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_SOURCE_MASK			0x00000001
1092037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_SOURCE_KEY			0x00000002
1093037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_PATTERN__MASK		0x00000030
1094037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_PATTERN__SHIFT		4
1095037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_PATTERN_OPAQUE		0x00000000
1096037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_PATTERN_MASK		0x00000010
1097037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_PATTERN_KEY			0x00000020
1098037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_DESTINATION__MASK		0x00000300
1099037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_DESTINATION__SHIFT		8
1100037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_DESTINATION_OPAQUE		0x00000000
1101037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_DESTINATION_MASK		0x00000100
1102037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_DESTINATION_KEY		0x00000200
1103037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_TRANSPARENCY_MASK		0x00001000
1104037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_USE_SRC_OVERRIDE__MASK	0x00030000
1105037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_USE_SRC_OVERRIDE__SHIFT	16
1106037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_USE_SRC_OVERRIDE_DEFAULT	0x00000000
1107037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_USE_SRC_OVERRIDE_USE_ENABLE	0x00010000
1108037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_USE_SRC_OVERRIDE_USE_DISABLE	0x00020000
1109037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_USE_PAT_OVERRIDE__MASK	0x00300000
1110037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_USE_PAT_OVERRIDE__SHIFT	20
1111037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_USE_PAT_OVERRIDE_DEFAULT	0x00000000
1112037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_USE_PAT_OVERRIDE_USE_ENABLE	0x00100000
1113037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_USE_PAT_OVERRIDE_USE_DISABLE	0x00200000
1114037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_USE_DST_OVERRIDE__MASK	0x03000000
1115037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_USE_DST_OVERRIDE__SHIFT	24
1116037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_USE_DST_OVERRIDE_DEFAULT	0x00000000
1117037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_USE_DST_OVERRIDE_USE_ENABLE	0x01000000
1118037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_USE_DST_OVERRIDE_USE_DISABLE	0x02000000
1119037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_RESOURCE_OVERRIDE_MASK	0x10000000
1120037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_DFB_COLOR_KEY__MASK		0x20000000
1121037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_DFB_COLOR_KEY__SHIFT	29
1122037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_DFB_COLOR_KEY_DISABLE	0x00000000
1123037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_DFB_COLOR_KEY_ENABLE	0x20000000
1124037b3c26Smrg#define VIVS_DE_BLOCK4_TRANSPARENCY_DFB_COLOR_KEY_MASK		0x80000000
1125037b3c26Smrg
1126037b3c26Smrg#define VIVS_DE_BLOCK4_CONTROL(i0)			       (0x00012940 + 0x4*(i0))
1127037b3c26Smrg#define VIVS_DE_BLOCK4_CONTROL__ESIZE				0x00000004
1128037b3c26Smrg#define VIVS_DE_BLOCK4_CONTROL__LEN				0x00000004
1129037b3c26Smrg#define VIVS_DE_BLOCK4_CONTROL_YUV__MASK			0x00000001
1130037b3c26Smrg#define VIVS_DE_BLOCK4_CONTROL_YUV__SHIFT			0
1131037b3c26Smrg#define VIVS_DE_BLOCK4_CONTROL_YUV_601				0x00000000
1132037b3c26Smrg#define VIVS_DE_BLOCK4_CONTROL_YUV_709				0x00000001
1133037b3c26Smrg#define VIVS_DE_BLOCK4_CONTROL_YUV_MASK				0x00000008
1134037b3c26Smrg#define VIVS_DE_BLOCK4_CONTROL_UV_SWIZZLE__MASK			0x00000010
1135037b3c26Smrg#define VIVS_DE_BLOCK4_CONTROL_UV_SWIZZLE__SHIFT		4
1136037b3c26Smrg#define VIVS_DE_BLOCK4_CONTROL_UV_SWIZZLE_UV			0x00000000
1137037b3c26Smrg#define VIVS_DE_BLOCK4_CONTROL_UV_SWIZZLE_VU			0x00000010
1138037b3c26Smrg#define VIVS_DE_BLOCK4_CONTROL_UV_SWIZZLE_MASK			0x00000080
1139037b3c26Smrg#define VIVS_DE_BLOCK4_CONTROL_YUVRGB__MASK			0x00000100
1140037b3c26Smrg#define VIVS_DE_BLOCK4_CONTROL_YUVRGB__SHIFT			8
1141037b3c26Smrg#define VIVS_DE_BLOCK4_CONTROL_YUVRGB_DISABLE			0x00000000
1142037b3c26Smrg#define VIVS_DE_BLOCK4_CONTROL_YUVRGB_ENABLE			0x00000100
1143037b3c26Smrg#define VIVS_DE_BLOCK4_CONTROL_YUVRGB_MASK			0x00000800
1144037b3c26Smrg
1145037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_COLOR_KEY_HIGH(i0)		       (0x00012950 + 0x4*(i0))
1146037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_COLOR_KEY_HIGH__ESIZE		0x00000004
1147037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_COLOR_KEY_HIGH__LEN			0x00000004
1148037b3c26Smrg
1149037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_EX_CONFIG(i0)		       (0x00012960 + 0x4*(i0))
1150037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_EX_CONFIG__ESIZE			0x00000004
1151037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_EX_CONFIG__LEN			0x00000004
1152037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_EX_CONFIG_MULTI_TILED__MASK		0x00000001
1153037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_EX_CONFIG_MULTI_TILED__SHIFT		0
1154037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_EX_CONFIG_MULTI_TILED_DISABLE	0x00000000
1155037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_EX_CONFIG_MULTI_TILED_ENABLE		0x00000001
1156037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_EX_CONFIG_SUPER_TILED__MASK		0x00000008
1157037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_EX_CONFIG_SUPER_TILED__SHIFT		3
1158037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_EX_CONFIG_SUPER_TILED_DISABLE	0x00000000
1159037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_EX_CONFIG_SUPER_TILED_ENABLE		0x00000008
1160037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_EX_CONFIG_MINOR_TILED__MASK		0x00000100
1161037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_EX_CONFIG_MINOR_TILED__SHIFT		8
1162037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_EX_CONFIG_MINOR_TILED_DISABLE	0x00000000
1163037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_EX_CONFIG_MINOR_TILED_ENABLE		0x00000100
1164037b3c26Smrg
1165037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_EX_ADDRESS(i0)		       (0x00012970 + 0x4*(i0))
1166037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_EX_ADDRESS__ESIZE			0x00000004
1167037b3c26Smrg#define VIVS_DE_BLOCK4_SRC_EX_ADDRESS__LEN			0x00000004
1168037b3c26Smrg
1169037b3c26Smrg#define VIVS_DE_BLOCK8						0x00000000
1170037b3c26Smrg
1171037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ADDRESS(i0)			       (0x00012a00 + 0x4*(i0))
1172037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ADDRESS__ESIZE			0x00000004
1173037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ADDRESS__LEN				0x00000008
1174037b3c26Smrg
1175037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_STRIDE(i0)			       (0x00012a20 + 0x4*(i0))
1176037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_STRIDE__ESIZE			0x00000004
1177037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_STRIDE__LEN				0x00000008
1178037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_STRIDE_STRIDE__MASK			0x0003ffff
1179037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_STRIDE_STRIDE__SHIFT			0
1180037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_STRIDE_STRIDE(x)			(((x) << VIVS_DE_BLOCK8_SRC_STRIDE_STRIDE__SHIFT) & VIVS_DE_BLOCK8_SRC_STRIDE_STRIDE__MASK)
1181037b3c26Smrg
1182037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG(i0)		       (0x00012a40 + 0x4*(i0))
1183037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG__ESIZE		0x00000004
1184037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG__LEN			0x00000008
1185037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG_WIDTH__MASK		0x0000ffff
1186037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG_WIDTH__SHIFT		0
1187037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG_WIDTH(x)		(((x) << VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG_WIDTH__SHIFT) & VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG_WIDTH__MASK)
1188037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG_ROTATION__MASK	0x00010000
1189037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG_ROTATION__SHIFT	16
1190037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG_ROTATION_DISABLE	0x00000000
1191037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG_ROTATION_ENABLE	0x00010000
1192037b3c26Smrg
1193037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG(i0)			       (0x00012a60 + 0x4*(i0))
1194037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG__ESIZE			0x00000004
1195037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG__LEN				0x00000008
1196037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_PE10_SOURCE_FORMAT__MASK	0x0000000f
1197037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_PE10_SOURCE_FORMAT__SHIFT	0
1198037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_PE10_SOURCE_FORMAT(x)		(((x) << VIVS_DE_BLOCK8_SRC_CONFIG_PE10_SOURCE_FORMAT__SHIFT) & VIVS_DE_BLOCK8_SRC_CONFIG_PE10_SOURCE_FORMAT__MASK)
1199037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_TRANSPARENCY__MASK		0x00000030
1200037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_TRANSPARENCY__SHIFT		4
1201037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_TRANSPARENCY(x)		(((x) << VIVS_DE_BLOCK8_SRC_CONFIG_TRANSPARENCY__SHIFT) & VIVS_DE_BLOCK8_SRC_CONFIG_TRANSPARENCY__MASK)
1202037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_SRC_RELATIVE__MASK		0x00000040
1203037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_SRC_RELATIVE__SHIFT		6
1204037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_SRC_RELATIVE_ABSOLUTE		0x00000000
1205037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_SRC_RELATIVE_RELATIVE		0x00000040
1206037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_TILED__MASK			0x00000080
1207037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_TILED__SHIFT			7
1208037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_TILED_DISABLE			0x00000000
1209037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_TILED_ENABLE			0x00000080
1210037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_LOCATION__MASK		0x00000100
1211037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_LOCATION__SHIFT		8
1212037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_LOCATION_MEMORY		0x00000000
1213037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_LOCATION_STREAM		0x00000100
1214037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_PACK__MASK			0x00003000
1215037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_PACK__SHIFT			12
1216037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_PACK_PACKED8			0x00000000
1217037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_PACK_PACKED16			0x00001000
1218037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_PACK_PACKED32			0x00002000
1219037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_PACK_UNPACKED			0x00003000
1220037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_MONO_TRANSPARENCY__MASK	0x00008000
1221037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_MONO_TRANSPARENCY__SHIFT	15
1222037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_MONO_TRANSPARENCY_BACKGROUND	0x00000000
1223037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_MONO_TRANSPARENCY_FOREGROUND	0x00008000
1224037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_UNK16				0x00010000
1225037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_SWIZZLE__MASK			0x00300000
1226037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_SWIZZLE__SHIFT		20
1227037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_SWIZZLE(x)			(((x) << VIVS_DE_BLOCK8_SRC_CONFIG_SWIZZLE__SHIFT) & VIVS_DE_BLOCK8_SRC_CONFIG_SWIZZLE__MASK)
1228037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_SOURCE_FORMAT__MASK		0x1f000000
1229037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_SOURCE_FORMAT__SHIFT		24
1230037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_SOURCE_FORMAT(x)		(((x) << VIVS_DE_BLOCK8_SRC_CONFIG_SOURCE_FORMAT__SHIFT) & VIVS_DE_BLOCK8_SRC_CONFIG_SOURCE_FORMAT__MASK)
1231037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_DISABLE420_L2_CACHE		0x20000000
1232037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_ENDIAN_CONTROL__MASK		0xc0000000
1233037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_ENDIAN_CONTROL__SHIFT		30
1234037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_CONFIG_ENDIAN_CONTROL(x)		(((x) << VIVS_DE_BLOCK8_SRC_CONFIG_ENDIAN_CONTROL__SHIFT) & VIVS_DE_BLOCK8_SRC_CONFIG_ENDIAN_CONTROL__MASK)
1235037b3c26Smrg
1236037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ORIGIN(i0)			       (0x00012a80 + 0x4*(i0))
1237037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ORIGIN__ESIZE			0x00000004
1238037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ORIGIN__LEN				0x00000008
1239037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ORIGIN_X__MASK			0x0000ffff
1240037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ORIGIN_X__SHIFT			0
1241037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ORIGIN_X(x)				(((x) << VIVS_DE_BLOCK8_SRC_ORIGIN_X__SHIFT) & VIVS_DE_BLOCK8_SRC_ORIGIN_X__MASK)
1242037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ORIGIN_Y__MASK			0xffff0000
1243037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ORIGIN_Y__SHIFT			16
1244037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ORIGIN_Y(x)				(((x) << VIVS_DE_BLOCK8_SRC_ORIGIN_Y__SHIFT) & VIVS_DE_BLOCK8_SRC_ORIGIN_Y__MASK)
1245037b3c26Smrg
1246037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_SIZE(i0)			       (0x00012aa0 + 0x4*(i0))
1247037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_SIZE__ESIZE				0x00000004
1248037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_SIZE__LEN				0x00000008
1249037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_SIZE_X__MASK				0x0000ffff
1250037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_SIZE_X__SHIFT			0
1251037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_SIZE_X(x)				(((x) << VIVS_DE_BLOCK8_SRC_SIZE_X__SHIFT) & VIVS_DE_BLOCK8_SRC_SIZE_X__MASK)
1252037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_SIZE_Y__MASK				0xffff0000
1253037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_SIZE_Y__SHIFT			16
1254037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_SIZE_Y(x)				(((x) << VIVS_DE_BLOCK8_SRC_SIZE_Y__SHIFT) & VIVS_DE_BLOCK8_SRC_SIZE_Y__MASK)
1255037b3c26Smrg
1256037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_COLOR_BG(i0)			       (0x00012ac0 + 0x4*(i0))
1257037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_COLOR_BG__ESIZE			0x00000004
1258037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_COLOR_BG__LEN			0x00000008
1259037b3c26Smrg
1260037b3c26Smrg#define VIVS_DE_BLOCK8_ROP(i0)				       (0x00012ae0 + 0x4*(i0))
1261037b3c26Smrg#define VIVS_DE_BLOCK8_ROP__ESIZE				0x00000004
1262037b3c26Smrg#define VIVS_DE_BLOCK8_ROP__LEN					0x00000008
1263037b3c26Smrg#define VIVS_DE_BLOCK8_ROP_ROP_FG__MASK				0x000000ff
1264037b3c26Smrg#define VIVS_DE_BLOCK8_ROP_ROP_FG__SHIFT			0
1265037b3c26Smrg#define VIVS_DE_BLOCK8_ROP_ROP_FG(x)				(((x) << VIVS_DE_BLOCK8_ROP_ROP_FG__SHIFT) & VIVS_DE_BLOCK8_ROP_ROP_FG__MASK)
1266037b3c26Smrg#define VIVS_DE_BLOCK8_ROP_ROP_BG__MASK				0x0000ff00
1267037b3c26Smrg#define VIVS_DE_BLOCK8_ROP_ROP_BG__SHIFT			8
1268037b3c26Smrg#define VIVS_DE_BLOCK8_ROP_ROP_BG(x)				(((x) << VIVS_DE_BLOCK8_ROP_ROP_BG__SHIFT) & VIVS_DE_BLOCK8_ROP_ROP_BG__MASK)
1269037b3c26Smrg#define VIVS_DE_BLOCK8_ROP_TYPE__MASK				0x00300000
1270037b3c26Smrg#define VIVS_DE_BLOCK8_ROP_TYPE__SHIFT				20
1271037b3c26Smrg#define VIVS_DE_BLOCK8_ROP_TYPE_ROP2_PATTERN			0x00000000
1272037b3c26Smrg#define VIVS_DE_BLOCK8_ROP_TYPE_ROP2_SOURCE			0x00100000
1273037b3c26Smrg#define VIVS_DE_BLOCK8_ROP_TYPE_ROP3				0x00200000
1274037b3c26Smrg#define VIVS_DE_BLOCK8_ROP_TYPE_ROP4				0x00300000
1275037b3c26Smrg
1276037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_CONTROL(i0)		       (0x00012b00 + 0x4*(i0))
1277037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_CONTROL__ESIZE			0x00000004
1278037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_CONTROL__LEN			0x00000008
1279037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_CONTROL_ENABLE__MASK		0x00000001
1280037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_CONTROL_ENABLE__SHIFT		0
1281037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_CONTROL_ENABLE_OFF			0x00000000
1282037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_CONTROL_ENABLE_ON			0x00000001
1283037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA__MASK	0x00ff0000
1284037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA__SHIFT	16
1285037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA(x)	(((x) << VIVS_DE_BLOCK8_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA__SHIFT) & VIVS_DE_BLOCK8_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA__MASK)
1286037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA__MASK	0xff000000
1287037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA__SHIFT	24
1288037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA(x)	(((x) << VIVS_DE_BLOCK8_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA__SHIFT) & VIVS_DE_BLOCK8_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA__MASK)
1289037b3c26Smrg
1290037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES(i0)			       (0x00012b20 + 0x4*(i0))
1291037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES__ESIZE			0x00000004
1292037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES__LEN				0x00000008
1293037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_ALPHA_MODE__MASK		0x00000001
1294037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_ALPHA_MODE__SHIFT	0
1295037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_ALPHA_MODE_NORMAL	0x00000000
1296037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_ALPHA_MODE_INVERSED	0x00000001
1297037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_DST_ALPHA_MODE__MASK		0x00000010
1298037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_DST_ALPHA_MODE__SHIFT	4
1299037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_DST_ALPHA_MODE_NORMAL	0x00000000
1300037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_DST_ALPHA_MODE_INVERSED	0x00000010
1301037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE__MASK	0x00000300
1302037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE__SHIFT	8
1303037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_NORMAL	0x00000000
1304037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_GLOBAL	0x00000100
1305037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_SCALED	0x00000200
1306037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE__MASK	0x00003000
1307037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE__SHIFT	12
1308037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE_NORMAL	0x00000000
1309037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE_GLOBAL	0x00001000
1310037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE_SCALED	0x00002000
1311037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY__MASK	0x00010000
1312037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY__SHIFT	16
1313037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY_DISABLE	0x00000000
1314037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY_ENABLE	0x00010000
1315037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY__MASK	0x00100000
1316037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY__SHIFT	20
1317037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY_DISABLE	0x00000000
1318037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY_ENABLE	0x00100000
1319037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_BLENDING_MODE__MASK	0x07000000
1320037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_BLENDING_MODE__SHIFT	24
1321037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_BLENDING_MODE(x)		(((x) << VIVS_DE_BLOCK8_ALPHA_MODES_SRC_BLENDING_MODE__SHIFT) & VIVS_DE_BLOCK8_ALPHA_MODES_SRC_BLENDING_MODE__MASK)
1322037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_ALPHA_FACTOR__MASK	0x08000000
1323037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_ALPHA_FACTOR__SHIFT	27
1324037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_ALPHA_FACTOR_DISABLE	0x00000000
1325037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_ALPHA_FACTOR_ENABLE	0x08000000
1326037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_DST_BLENDING_MODE__MASK	0x70000000
1327037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_DST_BLENDING_MODE__SHIFT	28
1328037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_DST_BLENDING_MODE(x)		(((x) << VIVS_DE_BLOCK8_ALPHA_MODES_DST_BLENDING_MODE__SHIFT) & VIVS_DE_BLOCK8_ALPHA_MODES_DST_BLENDING_MODE__MASK)
1329037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_DST_ALPHA_FACTOR__MASK	0x80000000
1330037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_DST_ALPHA_FACTOR__SHIFT	31
1331037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_DST_ALPHA_FACTOR_DISABLE	0x00000000
1332037b3c26Smrg#define VIVS_DE_BLOCK8_ALPHA_MODES_DST_ALPHA_FACTOR_ENABLE	0x80000000
1333037b3c26Smrg
1334037b3c26Smrg#define VIVS_DE_BLOCK8_ADDRESS_U(i0)			       (0x00012b40 + 0x4*(i0))
1335037b3c26Smrg#define VIVS_DE_BLOCK8_ADDRESS_U__ESIZE				0x00000004
1336037b3c26Smrg#define VIVS_DE_BLOCK8_ADDRESS_U__LEN				0x00000008
1337037b3c26Smrg
1338037b3c26Smrg#define VIVS_DE_BLOCK8_STRIDE_U(i0)			       (0x00012b60 + 0x4*(i0))
1339037b3c26Smrg#define VIVS_DE_BLOCK8_STRIDE_U__ESIZE				0x00000004
1340037b3c26Smrg#define VIVS_DE_BLOCK8_STRIDE_U__LEN				0x00000008
1341037b3c26Smrg#define VIVS_DE_BLOCK8_STRIDE_U_STRIDE__MASK			0x0003ffff
1342037b3c26Smrg#define VIVS_DE_BLOCK8_STRIDE_U_STRIDE__SHIFT			0
1343037b3c26Smrg#define VIVS_DE_BLOCK8_STRIDE_U_STRIDE(x)			(((x) << VIVS_DE_BLOCK8_STRIDE_U_STRIDE__SHIFT) & VIVS_DE_BLOCK8_STRIDE_U_STRIDE__MASK)
1344037b3c26Smrg
1345037b3c26Smrg#define VIVS_DE_BLOCK8_ADDRESS_V(i0)			       (0x00012b80 + 0x4*(i0))
1346037b3c26Smrg#define VIVS_DE_BLOCK8_ADDRESS_V__ESIZE				0x00000004
1347037b3c26Smrg#define VIVS_DE_BLOCK8_ADDRESS_V__LEN				0x00000008
1348037b3c26Smrg
1349037b3c26Smrg#define VIVS_DE_BLOCK8_STRIDE_V(i0)			       (0x00012ba0 + 0x4*(i0))
1350037b3c26Smrg#define VIVS_DE_BLOCK8_STRIDE_V__ESIZE				0x00000004
1351037b3c26Smrg#define VIVS_DE_BLOCK8_STRIDE_V__LEN				0x00000008
1352037b3c26Smrg#define VIVS_DE_BLOCK8_STRIDE_V_STRIDE__MASK			0x0003ffff
1353037b3c26Smrg#define VIVS_DE_BLOCK8_STRIDE_V_STRIDE__SHIFT			0
1354037b3c26Smrg#define VIVS_DE_BLOCK8_STRIDE_V_STRIDE(x)			(((x) << VIVS_DE_BLOCK8_STRIDE_V_STRIDE__SHIFT) & VIVS_DE_BLOCK8_STRIDE_V_STRIDE__MASK)
1355037b3c26Smrg
1356037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ROTATION_HEIGHT(i0)		       (0x00012bc0 + 0x4*(i0))
1357037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ROTATION_HEIGHT__ESIZE		0x00000004
1358037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ROTATION_HEIGHT__LEN			0x00000008
1359037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ROTATION_HEIGHT_HEIGHT__MASK		0x0000ffff
1360037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ROTATION_HEIGHT_HEIGHT__SHIFT	0
1361037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_ROTATION_HEIGHT_HEIGHT(x)		(((x) << VIVS_DE_BLOCK8_SRC_ROTATION_HEIGHT_HEIGHT__SHIFT) & VIVS_DE_BLOCK8_SRC_ROTATION_HEIGHT_HEIGHT__MASK)
1362037b3c26Smrg
1363037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE(i0)			       (0x00012be0 + 0x4*(i0))
1364037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE__ESIZE				0x00000004
1365037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE__LEN				0x00000008
1366037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE_SRC__MASK			0x00000007
1367037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE_SRC__SHIFT			0
1368037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE_SRC(x)				(((x) << VIVS_DE_BLOCK8_ROT_ANGLE_SRC__SHIFT) & VIVS_DE_BLOCK8_ROT_ANGLE_SRC__MASK)
1369037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE_DST__MASK			0x00000038
1370037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE_DST__SHIFT			3
1371037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE_DST(x)				(((x) << VIVS_DE_BLOCK8_ROT_ANGLE_DST__SHIFT) & VIVS_DE_BLOCK8_ROT_ANGLE_DST__MASK)
1372037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE_SRC_MASK			0x00000100
1373037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE_DST_MASK			0x00000200
1374037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE_SRC_MIRROR__MASK		0x00003000
1375037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE_SRC_MIRROR__SHIFT		12
1376037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE_SRC_MIRROR(x)			(((x) << VIVS_DE_BLOCK8_ROT_ANGLE_SRC_MIRROR__SHIFT) & VIVS_DE_BLOCK8_ROT_ANGLE_SRC_MIRROR__MASK)
1377037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE_SRC_MIRROR_MASK		0x00008000
1378037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE_DST_MIRROR__MASK		0x00030000
1379037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE_DST_MIRROR__SHIFT		16
1380037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE_DST_MIRROR(x)			(((x) << VIVS_DE_BLOCK8_ROT_ANGLE_DST_MIRROR__SHIFT) & VIVS_DE_BLOCK8_ROT_ANGLE_DST_MIRROR__MASK)
1381037b3c26Smrg#define VIVS_DE_BLOCK8_ROT_ANGLE_DST_MIRROR_MASK		0x00080000
1382037b3c26Smrg
1383037b3c26Smrg#define VIVS_DE_BLOCK8_GLOBAL_SRC_COLOR(i0)		       (0x00012c00 + 0x4*(i0))
1384037b3c26Smrg#define VIVS_DE_BLOCK8_GLOBAL_SRC_COLOR__ESIZE			0x00000004
1385037b3c26Smrg#define VIVS_DE_BLOCK8_GLOBAL_SRC_COLOR__LEN			0x00000008
1386037b3c26Smrg
1387037b3c26Smrg#define VIVS_DE_BLOCK8_GLOBAL_DEST_COLOR(i0)		       (0x00012c20 + 0x4*(i0))
1388037b3c26Smrg#define VIVS_DE_BLOCK8_GLOBAL_DEST_COLOR__ESIZE			0x00000004
1389037b3c26Smrg#define VIVS_DE_BLOCK8_GLOBAL_DEST_COLOR__LEN			0x00000008
1390037b3c26Smrg
1391037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES(i0)		       (0x00012c40 + 0x4*(i0))
1392037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES__ESIZE		0x00000004
1393037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES__LEN		0x00000008
1394037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY__MASK	0x00000001
1395037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY__SHIFT	0
1396037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY_DISABLE	0x00000000
1397037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY_ENABLE	0x00000001
1398037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY__MASK	0x00000010
1399037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY__SHIFT	4
1400037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY_DISABLE	0x00000000
1401037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY_ENABLE	0x00000010
1402037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY__MASK	0x00000300
1403037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY__SHIFT	8
1404037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY_DISABLE	0x00000000
1405037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY_ALPHA	0x00000100
1406037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY_COLOR	0x00000200
1407037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY__MASK	0x00100000
1408037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY__SHIFT	20
1409037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY_DISABLE	0x00000000
1410037b3c26Smrg#define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY_ENABLE	0x00100000
1411037b3c26Smrg
1412037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY(i0)			       (0x00012c60 + 0x4*(i0))
1413037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY__ESIZE			0x00000004
1414037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY__LEN			0x00000008
1415037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_SOURCE__MASK		0x00000003
1416037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_SOURCE__SHIFT		0
1417037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_SOURCE_OPAQUE		0x00000000
1418037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_SOURCE_MASK			0x00000001
1419037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_SOURCE_KEY			0x00000002
1420037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_PATTERN__MASK		0x00000030
1421037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_PATTERN__SHIFT		4
1422037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_PATTERN_OPAQUE		0x00000000
1423037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_PATTERN_MASK		0x00000010
1424037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_PATTERN_KEY			0x00000020
1425037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_DESTINATION__MASK		0x00000300
1426037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_DESTINATION__SHIFT		8
1427037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_DESTINATION_OPAQUE		0x00000000
1428037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_DESTINATION_MASK		0x00000100
1429037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_DESTINATION_KEY		0x00000200
1430037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_TRANSPARENCY_MASK		0x00001000
1431037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_USE_SRC_OVERRIDE__MASK	0x00030000
1432037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_USE_SRC_OVERRIDE__SHIFT	16
1433037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_USE_SRC_OVERRIDE_DEFAULT	0x00000000
1434037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_USE_SRC_OVERRIDE_USE_ENABLE	0x00010000
1435037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_USE_SRC_OVERRIDE_USE_DISABLE	0x00020000
1436037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_USE_PAT_OVERRIDE__MASK	0x00300000
1437037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_USE_PAT_OVERRIDE__SHIFT	20
1438037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_USE_PAT_OVERRIDE_DEFAULT	0x00000000
1439037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_USE_PAT_OVERRIDE_USE_ENABLE	0x00100000
1440037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_USE_PAT_OVERRIDE_USE_DISABLE	0x00200000
1441037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_USE_DST_OVERRIDE__MASK	0x03000000
1442037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_USE_DST_OVERRIDE__SHIFT	24
1443037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_USE_DST_OVERRIDE_DEFAULT	0x00000000
1444037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_USE_DST_OVERRIDE_USE_ENABLE	0x01000000
1445037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_USE_DST_OVERRIDE_USE_DISABLE	0x02000000
1446037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_RESOURCE_OVERRIDE_MASK	0x10000000
1447037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_DFB_COLOR_KEY__MASK		0x20000000
1448037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_DFB_COLOR_KEY__SHIFT	29
1449037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_DFB_COLOR_KEY_DISABLE	0x00000000
1450037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_DFB_COLOR_KEY_ENABLE	0x20000000
1451037b3c26Smrg#define VIVS_DE_BLOCK8_TRANSPARENCY_DFB_COLOR_KEY_MASK		0x80000000
1452037b3c26Smrg
1453037b3c26Smrg#define VIVS_DE_BLOCK8_CONTROL(i0)			       (0x00012c80 + 0x4*(i0))
1454037b3c26Smrg#define VIVS_DE_BLOCK8_CONTROL__ESIZE				0x00000004
1455037b3c26Smrg#define VIVS_DE_BLOCK8_CONTROL__LEN				0x00000008
1456037b3c26Smrg#define VIVS_DE_BLOCK8_CONTROL_YUV__MASK			0x00000001
1457037b3c26Smrg#define VIVS_DE_BLOCK8_CONTROL_YUV__SHIFT			0
1458037b3c26Smrg#define VIVS_DE_BLOCK8_CONTROL_YUV_601				0x00000000
1459037b3c26Smrg#define VIVS_DE_BLOCK8_CONTROL_YUV_709				0x00000001
1460037b3c26Smrg#define VIVS_DE_BLOCK8_CONTROL_YUV_MASK				0x00000008
1461037b3c26Smrg#define VIVS_DE_BLOCK8_CONTROL_UV_SWIZZLE__MASK			0x00000010
1462037b3c26Smrg#define VIVS_DE_BLOCK8_CONTROL_UV_SWIZZLE__SHIFT		4
1463037b3c26Smrg#define VIVS_DE_BLOCK8_CONTROL_UV_SWIZZLE_UV			0x00000000
1464037b3c26Smrg#define VIVS_DE_BLOCK8_CONTROL_UV_SWIZZLE_VU			0x00000010
1465037b3c26Smrg#define VIVS_DE_BLOCK8_CONTROL_UV_SWIZZLE_MASK			0x00000080
1466037b3c26Smrg#define VIVS_DE_BLOCK8_CONTROL_YUVRGB__MASK			0x00000100
1467037b3c26Smrg#define VIVS_DE_BLOCK8_CONTROL_YUVRGB__SHIFT			8
1468037b3c26Smrg#define VIVS_DE_BLOCK8_CONTROL_YUVRGB_DISABLE			0x00000000
1469037b3c26Smrg#define VIVS_DE_BLOCK8_CONTROL_YUVRGB_ENABLE			0x00000100
1470037b3c26Smrg#define VIVS_DE_BLOCK8_CONTROL_YUVRGB_MASK			0x00000800
1471037b3c26Smrg
1472037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_COLOR_KEY_HIGH(i0)		       (0x00012ca0 + 0x4*(i0))
1473037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_COLOR_KEY_HIGH__ESIZE		0x00000004
1474037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_COLOR_KEY_HIGH__LEN			0x00000008
1475037b3c26Smrg
1476037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_EX_CONFIG(i0)		       (0x00012cc0 + 0x4*(i0))
1477037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_EX_CONFIG__ESIZE			0x00000004
1478037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_EX_CONFIG__LEN			0x00000008
1479037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_EX_CONFIG_MULTI_TILED__MASK		0x00000001
1480037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_EX_CONFIG_MULTI_TILED__SHIFT		0
1481037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_EX_CONFIG_MULTI_TILED_DISABLE	0x00000000
1482037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_EX_CONFIG_MULTI_TILED_ENABLE		0x00000001
1483037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_EX_CONFIG_SUPER_TILED__MASK		0x00000008
1484037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_EX_CONFIG_SUPER_TILED__SHIFT		3
1485037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_EX_CONFIG_SUPER_TILED_DISABLE	0x00000000
1486037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_EX_CONFIG_SUPER_TILED_ENABLE		0x00000008
1487037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_EX_CONFIG_MINOR_TILED__MASK		0x00000100
1488037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_EX_CONFIG_MINOR_TILED__SHIFT		8
1489037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_EX_CONFIG_MINOR_TILED_DISABLE	0x00000000
1490037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_EX_CONFIG_MINOR_TILED_ENABLE		0x00000100
1491037b3c26Smrg
1492037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_EX_ADDRESS(i0)		       (0x00012ce0 + 0x4*(i0))
1493037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_EX_ADDRESS__ESIZE			0x00000004
1494037b3c26Smrg#define VIVS_DE_BLOCK8_SRC_EX_ADDRESS__LEN			0x00000008
1495037b3c26Smrg
1496037b3c26Smrg
1497037b3c26Smrg#endif /* STATE_2D_XML */
1498