Home | History | Annotate | Download | only in etnaviv
      1 #ifndef STATE_2D_XML
      2 #define STATE_2D_XML
      3 
      4 /* Autogenerated file, DO NOT EDIT manually!
      5 
      6 This file was generated by the rules-ng-ng headergen tool in this git repository:
      7 http://0x04.net/cgit/index.cgi/rules-ng-ng
      8 git clone git://0x04.net/rules-ng-ng
      9 
     10 The rules-ng-ng source files this header was generated from are:
     11 - state.xml     (  18940 bytes, from 2016-09-06 14:14:12)
     12 - common.xml    (  20583 bytes, from 2016-09-06 14:14:12)
     13 - state_hi.xml  (  25653 bytes, from 2016-09-06 14:45:17)
     14 - copyright.xml (   1597 bytes, from 2016-09-06 14:44:16)
     15 - state_2d.xml  (  51552 bytes, from 2016-09-06 14:44:16)
     16 - state_3d.xml  (  54603 bytes, from 2016-09-06 14:44:16)
     17 - state_vg.xml  (   5975 bytes, from 2016-09-06 14:44:16)
     18 
     19 Copyright (C) 2012-2016 by the following authors:
     20 - Wladimir J. van der Laan <laanwj (at) gmail.com>
     21 - Christian Gmeiner <christian.gmeiner (at) gmail.com>
     22 - Lucas Stach <l.stach (at) pengutronix.de>
     23 - Russell King <rmk (at) arm.linux.org.uk>
     24 
     25 Permission is hereby granted, free of charge, to any person obtaining a
     26 copy of this software and associated documentation files (the "Software"),
     27 to deal in the Software without restriction, including without limitation
     28 the rights to use, copy, modify, merge, publish, distribute, sub license,
     29 and/or sell copies of the Software, and to permit persons to whom the
     30 Software is furnished to do so, subject to the following conditions:
     31 
     32 The above copyright notice and this permission notice (including the
     33 next paragraph) shall be included in all copies or substantial portions
     34 of the Software.
     35 
     36 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
     37 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
     38 FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
     39 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
     40 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
     41 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
     42 DEALINGS IN THE SOFTWARE.
     43 */
     44 
     45 
     46 #define DE_FORMAT_X4R4G4B4					0x00000000
     47 #define DE_FORMAT_A4R4G4B4					0x00000001
     48 #define DE_FORMAT_X1R5G5B5					0x00000002
     49 #define DE_FORMAT_A1R5G5B5					0x00000003
     50 #define DE_FORMAT_R5G6B5					0x00000004
     51 #define DE_FORMAT_X8R8G8B8					0x00000005
     52 #define DE_FORMAT_A8R8G8B8					0x00000006
     53 #define DE_FORMAT_YUY2						0x00000007
     54 #define DE_FORMAT_UYVY						0x00000008
     55 #define DE_FORMAT_INDEX8					0x00000009
     56 #define DE_FORMAT_MONOCHROME					0x0000000a
     57 #define DE_FORMAT_YV12						0x0000000f
     58 #define DE_FORMAT_A8						0x00000010
     59 #define DE_FORMAT_NV12						0x00000011
     60 #define DE_FORMAT_NV16						0x00000012
     61 #define DE_FORMAT_RG16						0x00000013
     62 #define DE_SWIZZLE_ARGB						0x00000000
     63 #define DE_SWIZZLE_RGBA						0x00000001
     64 #define DE_SWIZZLE_ABGR						0x00000002
     65 #define DE_SWIZZLE_BGRA						0x00000003
     66 #define DE_BLENDMODE_ZERO					0x00000000
     67 #define DE_BLENDMODE_ONE					0x00000001
     68 #define DE_BLENDMODE_NORMAL					0x00000002
     69 #define DE_BLENDMODE_INVERSED					0x00000003
     70 #define DE_BLENDMODE_COLOR					0x00000004
     71 #define DE_BLENDMODE_COLOR_INVERSED				0x00000005
     72 #define DE_BLENDMODE_SATURATED_ALPHA				0x00000006
     73 #define DE_BLENDMODE_SATURATED_DEST_ALPHA			0x00000007
     74 #define DE_COMPONENT_BLUE					0x00000000
     75 #define DE_COMPONENT_GREEN					0x00000001
     76 #define DE_COMPONENT_RED					0x00000002
     77 #define DE_COMPONENT_ALPHA					0x00000003
     78 #define DE_ROT_MODE_ROT0					0x00000000
     79 #define DE_ROT_MODE_FLIP_X					0x00000001
     80 #define DE_ROT_MODE_FLIP_Y					0x00000002
     81 #define DE_ROT_MODE_ROT90					0x00000004
     82 #define DE_ROT_MODE_ROT180					0x00000005
     83 #define DE_ROT_MODE_ROT270					0x00000006
     84 #define DE_MIRROR_MODE_NONE					0x00000000
     85 #define DE_MIRROR_MODE_MIRROR_X					0x00000001
     86 #define DE_MIRROR_MODE_MIRROR_Y					0x00000002
     87 #define DE_MIRROR_MODE_MIRROR_XY				0x00000003
     88 #define DE_COLOR_BLUE__MASK					0x000000ff
     89 #define DE_COLOR_BLUE__SHIFT					0
     90 #define DE_COLOR_BLUE(x)					(((x) << DE_COLOR_BLUE__SHIFT) & DE_COLOR_BLUE__MASK)
     91 #define DE_COLOR_GREEN__MASK					0x0000ff00
     92 #define DE_COLOR_GREEN__SHIFT					8
     93 #define DE_COLOR_GREEN(x)					(((x) << DE_COLOR_GREEN__SHIFT) & DE_COLOR_GREEN__MASK)
     94 #define DE_COLOR_RED__MASK					0x00ff0000
     95 #define DE_COLOR_RED__SHIFT					16
     96 #define DE_COLOR_RED(x)						(((x) << DE_COLOR_RED__SHIFT) & DE_COLOR_RED__MASK)
     97 #define DE_COLOR_ALPHA__MASK					0xff000000
     98 #define DE_COLOR_ALPHA__SHIFT					24
     99 #define DE_COLOR_ALPHA(x)					(((x) << DE_COLOR_ALPHA__SHIFT) & DE_COLOR_ALPHA__MASK)
    100 #define VIVS_DE							0x00000000
    101 
    102 #define VIVS_DE_SRC_ADDRESS					0x00001200
    103 
    104 #define VIVS_DE_SRC_STRIDE					0x00001204
    105 #define VIVS_DE_SRC_STRIDE_STRIDE__MASK				0x0003ffff
    106 #define VIVS_DE_SRC_STRIDE_STRIDE__SHIFT			0
    107 #define VIVS_DE_SRC_STRIDE_STRIDE(x)				(((x) << VIVS_DE_SRC_STRIDE_STRIDE__SHIFT) & VIVS_DE_SRC_STRIDE_STRIDE__MASK)
    108 
    109 #define VIVS_DE_SRC_ROTATION_CONFIG				0x00001208
    110 #define VIVS_DE_SRC_ROTATION_CONFIG_WIDTH__MASK			0x0000ffff
    111 #define VIVS_DE_SRC_ROTATION_CONFIG_WIDTH__SHIFT		0
    112 #define VIVS_DE_SRC_ROTATION_CONFIG_WIDTH(x)			(((x) << VIVS_DE_SRC_ROTATION_CONFIG_WIDTH__SHIFT) & VIVS_DE_SRC_ROTATION_CONFIG_WIDTH__MASK)
    113 #define VIVS_DE_SRC_ROTATION_CONFIG_ROTATION__MASK		0x00010000
    114 #define VIVS_DE_SRC_ROTATION_CONFIG_ROTATION__SHIFT		16
    115 #define VIVS_DE_SRC_ROTATION_CONFIG_ROTATION_DISABLE		0x00000000
    116 #define VIVS_DE_SRC_ROTATION_CONFIG_ROTATION_ENABLE		0x00010000
    117 
    118 #define VIVS_DE_SRC_CONFIG					0x0000120c
    119 #define VIVS_DE_SRC_CONFIG_PE10_SOURCE_FORMAT__MASK		0x0000000f
    120 #define VIVS_DE_SRC_CONFIG_PE10_SOURCE_FORMAT__SHIFT		0
    121 #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)
    122 #define VIVS_DE_SRC_CONFIG_TRANSPARENCY__MASK			0x00000030
    123 #define VIVS_DE_SRC_CONFIG_TRANSPARENCY__SHIFT			4
    124 #define VIVS_DE_SRC_CONFIG_TRANSPARENCY(x)			(((x) << VIVS_DE_SRC_CONFIG_TRANSPARENCY__SHIFT) & VIVS_DE_SRC_CONFIG_TRANSPARENCY__MASK)
    125 #define VIVS_DE_SRC_CONFIG_SRC_RELATIVE__MASK			0x00000040
    126 #define VIVS_DE_SRC_CONFIG_SRC_RELATIVE__SHIFT			6
    127 #define VIVS_DE_SRC_CONFIG_SRC_RELATIVE_ABSOLUTE		0x00000000
    128 #define VIVS_DE_SRC_CONFIG_SRC_RELATIVE_RELATIVE		0x00000040
    129 #define VIVS_DE_SRC_CONFIG_TILED__MASK				0x00000080
    130 #define VIVS_DE_SRC_CONFIG_TILED__SHIFT				7
    131 #define VIVS_DE_SRC_CONFIG_TILED_DISABLE			0x00000000
    132 #define VIVS_DE_SRC_CONFIG_TILED_ENABLE				0x00000080
    133 #define VIVS_DE_SRC_CONFIG_LOCATION__MASK			0x00000100
    134 #define VIVS_DE_SRC_CONFIG_LOCATION__SHIFT			8
    135 #define VIVS_DE_SRC_CONFIG_LOCATION_MEMORY			0x00000000
    136 #define VIVS_DE_SRC_CONFIG_LOCATION_STREAM			0x00000100
    137 #define VIVS_DE_SRC_CONFIG_PACK__MASK				0x00003000
    138 #define VIVS_DE_SRC_CONFIG_PACK__SHIFT				12
    139 #define VIVS_DE_SRC_CONFIG_PACK_PACKED8				0x00000000
    140 #define VIVS_DE_SRC_CONFIG_PACK_PACKED16			0x00001000
    141 #define VIVS_DE_SRC_CONFIG_PACK_PACKED32			0x00002000
    142 #define VIVS_DE_SRC_CONFIG_PACK_UNPACKED			0x00003000
    143 #define VIVS_DE_SRC_CONFIG_MONO_TRANSPARENCY__MASK		0x00008000
    144 #define VIVS_DE_SRC_CONFIG_MONO_TRANSPARENCY__SHIFT		15
    145 #define VIVS_DE_SRC_CONFIG_MONO_TRANSPARENCY_BACKGROUND		0x00000000
    146 #define VIVS_DE_SRC_CONFIG_MONO_TRANSPARENCY_FOREGROUND		0x00008000
    147 #define VIVS_DE_SRC_CONFIG_UNK16				0x00010000
    148 #define VIVS_DE_SRC_CONFIG_SWIZZLE__MASK			0x00300000
    149 #define VIVS_DE_SRC_CONFIG_SWIZZLE__SHIFT			20
    150 #define VIVS_DE_SRC_CONFIG_SWIZZLE(x)				(((x) << VIVS_DE_SRC_CONFIG_SWIZZLE__SHIFT) & VIVS_DE_SRC_CONFIG_SWIZZLE__MASK)
    151 #define VIVS_DE_SRC_CONFIG_SOURCE_FORMAT__MASK			0x1f000000
    152 #define VIVS_DE_SRC_CONFIG_SOURCE_FORMAT__SHIFT			24
    153 #define VIVS_DE_SRC_CONFIG_SOURCE_FORMAT(x)			(((x) << VIVS_DE_SRC_CONFIG_SOURCE_FORMAT__SHIFT) & VIVS_DE_SRC_CONFIG_SOURCE_FORMAT__MASK)
    154 #define VIVS_DE_SRC_CONFIG_DISABLE420_L2_CACHE			0x20000000
    155 #define VIVS_DE_SRC_CONFIG_ENDIAN_CONTROL__MASK			0xc0000000
    156 #define VIVS_DE_SRC_CONFIG_ENDIAN_CONTROL__SHIFT		30
    157 #define VIVS_DE_SRC_CONFIG_ENDIAN_CONTROL(x)			(((x) << VIVS_DE_SRC_CONFIG_ENDIAN_CONTROL__SHIFT) & VIVS_DE_SRC_CONFIG_ENDIAN_CONTROL__MASK)
    158 
    159 #define VIVS_DE_SRC_ORIGIN					0x00001210
    160 #define VIVS_DE_SRC_ORIGIN_X__MASK				0x0000ffff
    161 #define VIVS_DE_SRC_ORIGIN_X__SHIFT				0
    162 #define VIVS_DE_SRC_ORIGIN_X(x)					(((x) << VIVS_DE_SRC_ORIGIN_X__SHIFT) & VIVS_DE_SRC_ORIGIN_X__MASK)
    163 #define VIVS_DE_SRC_ORIGIN_Y__MASK				0xffff0000
    164 #define VIVS_DE_SRC_ORIGIN_Y__SHIFT				16
    165 #define VIVS_DE_SRC_ORIGIN_Y(x)					(((x) << VIVS_DE_SRC_ORIGIN_Y__SHIFT) & VIVS_DE_SRC_ORIGIN_Y__MASK)
    166 
    167 #define VIVS_DE_SRC_SIZE					0x00001214
    168 #define VIVS_DE_SRC_SIZE_X__MASK				0x0000ffff
    169 #define VIVS_DE_SRC_SIZE_X__SHIFT				0
    170 #define VIVS_DE_SRC_SIZE_X(x)					(((x) << VIVS_DE_SRC_SIZE_X__SHIFT) & VIVS_DE_SRC_SIZE_X__MASK)
    171 #define VIVS_DE_SRC_SIZE_Y__MASK				0xffff0000
    172 #define VIVS_DE_SRC_SIZE_Y__SHIFT				16
    173 #define VIVS_DE_SRC_SIZE_Y(x)					(((x) << VIVS_DE_SRC_SIZE_Y__SHIFT) & VIVS_DE_SRC_SIZE_Y__MASK)
    174 
    175 #define VIVS_DE_SRC_COLOR_BG					0x00001218
    176 
    177 #define VIVS_DE_SRC_COLOR_FG					0x0000121c
    178 
    179 #define VIVS_DE_STRETCH_FACTOR_LOW				0x00001220
    180 #define VIVS_DE_STRETCH_FACTOR_LOW_X__MASK			0x7fffffff
    181 #define VIVS_DE_STRETCH_FACTOR_LOW_X__SHIFT			0
    182 #define VIVS_DE_STRETCH_FACTOR_LOW_X(x)				(((x) << VIVS_DE_STRETCH_FACTOR_LOW_X__SHIFT) & VIVS_DE_STRETCH_FACTOR_LOW_X__MASK)
    183 
    184 #define VIVS_DE_STRETCH_FACTOR_HIGH				0x00001224
    185 #define VIVS_DE_STRETCH_FACTOR_HIGH_Y__MASK			0x7fffffff
    186 #define VIVS_DE_STRETCH_FACTOR_HIGH_Y__SHIFT			0
    187 #define VIVS_DE_STRETCH_FACTOR_HIGH_Y(x)			(((x) << VIVS_DE_STRETCH_FACTOR_HIGH_Y__SHIFT) & VIVS_DE_STRETCH_FACTOR_HIGH_Y__MASK)
    188 
    189 #define VIVS_DE_DEST_ADDRESS					0x00001228
    190 
    191 #define VIVS_DE_DEST_STRIDE					0x0000122c
    192 #define VIVS_DE_DEST_STRIDE_STRIDE__MASK			0x0003ffff
    193 #define VIVS_DE_DEST_STRIDE_STRIDE__SHIFT			0
    194 #define VIVS_DE_DEST_STRIDE_STRIDE(x)				(((x) << VIVS_DE_DEST_STRIDE_STRIDE__SHIFT) & VIVS_DE_DEST_STRIDE_STRIDE__MASK)
    195 
    196 #define VIVS_DE_DEST_ROTATION_CONFIG				0x00001230
    197 #define VIVS_DE_DEST_ROTATION_CONFIG_WIDTH__MASK		0x0000ffff
    198 #define VIVS_DE_DEST_ROTATION_CONFIG_WIDTH__SHIFT		0
    199 #define VIVS_DE_DEST_ROTATION_CONFIG_WIDTH(x)			(((x) << VIVS_DE_DEST_ROTATION_CONFIG_WIDTH__SHIFT) & VIVS_DE_DEST_ROTATION_CONFIG_WIDTH__MASK)
    200 #define VIVS_DE_DEST_ROTATION_CONFIG_ROTATION__MASK		0x00010000
    201 #define VIVS_DE_DEST_ROTATION_CONFIG_ROTATION__SHIFT		16
    202 #define VIVS_DE_DEST_ROTATION_CONFIG_ROTATION_DISABLE		0x00000000
    203 #define VIVS_DE_DEST_ROTATION_CONFIG_ROTATION_ENABLE		0x00010000
    204 
    205 #define VIVS_DE_DEST_CONFIG					0x00001234
    206 #define VIVS_DE_DEST_CONFIG_FORMAT__MASK			0x0000001f
    207 #define VIVS_DE_DEST_CONFIG_FORMAT__SHIFT			0
    208 #define VIVS_DE_DEST_CONFIG_FORMAT(x)				(((x) << VIVS_DE_DEST_CONFIG_FORMAT__SHIFT) & VIVS_DE_DEST_CONFIG_FORMAT__MASK)
    209 #define VIVS_DE_DEST_CONFIG_TILED__MASK				0x00000100
    210 #define VIVS_DE_DEST_CONFIG_TILED__SHIFT			8
    211 #define VIVS_DE_DEST_CONFIG_TILED_DISABLE			0x00000000
    212 #define VIVS_DE_DEST_CONFIG_TILED_ENABLE			0x00000100
    213 #define VIVS_DE_DEST_CONFIG_COMMAND__MASK			0x0000f000
    214 #define VIVS_DE_DEST_CONFIG_COMMAND__SHIFT			12
    215 #define VIVS_DE_DEST_CONFIG_COMMAND_CLEAR			0x00000000
    216 #define VIVS_DE_DEST_CONFIG_COMMAND_LINE			0x00001000
    217 #define VIVS_DE_DEST_CONFIG_COMMAND_BIT_BLT			0x00002000
    218 #define VIVS_DE_DEST_CONFIG_COMMAND_BIT_BLT_REVERSED		0x00003000
    219 #define VIVS_DE_DEST_CONFIG_COMMAND_STRETCH_BLT			0x00004000
    220 #define VIVS_DE_DEST_CONFIG_COMMAND_HOR_FILTER_BLT		0x00005000
    221 #define VIVS_DE_DEST_CONFIG_COMMAND_VER_FILTER_BLT		0x00006000
    222 #define VIVS_DE_DEST_CONFIG_COMMAND_ONE_PASS_FILTER_BLT		0x00007000
    223 #define VIVS_DE_DEST_CONFIG_COMMAND_MULTI_SOURCE_BLT		0x00008000
    224 #define VIVS_DE_DEST_CONFIG_SWIZZLE__MASK			0x00030000
    225 #define VIVS_DE_DEST_CONFIG_SWIZZLE__SHIFT			16
    226 #define VIVS_DE_DEST_CONFIG_SWIZZLE(x)				(((x) << VIVS_DE_DEST_CONFIG_SWIZZLE__SHIFT) & VIVS_DE_DEST_CONFIG_SWIZZLE__MASK)
    227 #define VIVS_DE_DEST_CONFIG_ENDIAN_CONTROL__MASK		0x00300000
    228 #define VIVS_DE_DEST_CONFIG_ENDIAN_CONTROL__SHIFT		20
    229 #define VIVS_DE_DEST_CONFIG_ENDIAN_CONTROL(x)			(((x) << VIVS_DE_DEST_CONFIG_ENDIAN_CONTROL__SHIFT) & VIVS_DE_DEST_CONFIG_ENDIAN_CONTROL__MASK)
    230 #define VIVS_DE_DEST_CONFIG_GDI_STRE__MASK			0x01000000
    231 #define VIVS_DE_DEST_CONFIG_GDI_STRE__SHIFT			24
    232 #define VIVS_DE_DEST_CONFIG_GDI_STRE_DISABLE			0x00000000
    233 #define VIVS_DE_DEST_CONFIG_GDI_STRE_ENABLE			0x01000000
    234 #define VIVS_DE_DEST_CONFIG_INTER_TILE_PER_FIX__MASK		0x02000000
    235 #define VIVS_DE_DEST_CONFIG_INTER_TILE_PER_FIX__SHIFT		25
    236 #define VIVS_DE_DEST_CONFIG_INTER_TILE_PER_FIX_DISABLED		0x02000000
    237 #define VIVS_DE_DEST_CONFIG_INTER_TILE_PER_FIX_ENABLED		0x00000000
    238 #define VIVS_DE_DEST_CONFIG_MINOR_TILED__MASK			0x04000000
    239 #define VIVS_DE_DEST_CONFIG_MINOR_TILED__SHIFT			26
    240 #define VIVS_DE_DEST_CONFIG_MINOR_TILED_DISABLE			0x00000000
    241 #define VIVS_DE_DEST_CONFIG_MINOR_TILED_ENABLE			0x04000000
    242 
    243 #define VIVS_DE_PATTERN_ADDRESS					0x00001238
    244 
    245 #define VIVS_DE_PATTERN_CONFIG					0x0000123c
    246 #define VIVS_DE_PATTERN_CONFIG_FORMAT__MASK			0x0000000f
    247 #define VIVS_DE_PATTERN_CONFIG_FORMAT__SHIFT			0
    248 #define VIVS_DE_PATTERN_CONFIG_FORMAT(x)			(((x) << VIVS_DE_PATTERN_CONFIG_FORMAT__SHIFT) & VIVS_DE_PATTERN_CONFIG_FORMAT__MASK)
    249 #define VIVS_DE_PATTERN_CONFIG_TYPE__MASK			0x00000010
    250 #define VIVS_DE_PATTERN_CONFIG_TYPE__SHIFT			4
    251 #define VIVS_DE_PATTERN_CONFIG_TYPE_SOLID_COLOR			0x00000000
    252 #define VIVS_DE_PATTERN_CONFIG_TYPE_PATTERN			0x00000010
    253 #define VIVS_DE_PATTERN_CONFIG_COLOR_CONVERT__MASK		0x00000020
    254 #define VIVS_DE_PATTERN_CONFIG_COLOR_CONVERT__SHIFT		5
    255 #define VIVS_DE_PATTERN_CONFIG_COLOR_CONVERT_DISABLE		0x00000000
    256 #define VIVS_DE_PATTERN_CONFIG_COLOR_CONVERT_ENABLE		0x00000020
    257 #define VIVS_DE_PATTERN_CONFIG_INIT_TRIGGER__MASK		0x000000c0
    258 #define VIVS_DE_PATTERN_CONFIG_INIT_TRIGGER__SHIFT		6
    259 #define VIVS_DE_PATTERN_CONFIG_INIT_TRIGGER(x)			(((x) << VIVS_DE_PATTERN_CONFIG_INIT_TRIGGER__SHIFT) & VIVS_DE_PATTERN_CONFIG_INIT_TRIGGER__MASK)
    260 #define VIVS_DE_PATTERN_CONFIG_ORIGIN_X__MASK			0x00070000
    261 #define VIVS_DE_PATTERN_CONFIG_ORIGIN_X__SHIFT			16
    262 #define VIVS_DE_PATTERN_CONFIG_ORIGIN_X(x)			(((x) << VIVS_DE_PATTERN_CONFIG_ORIGIN_X__SHIFT) & VIVS_DE_PATTERN_CONFIG_ORIGIN_X__MASK)
    263 #define VIVS_DE_PATTERN_CONFIG_ORIGIN_Y__MASK			0x00700000
    264 #define VIVS_DE_PATTERN_CONFIG_ORIGIN_Y__SHIFT			20
    265 #define VIVS_DE_PATTERN_CONFIG_ORIGIN_Y(x)			(((x) << VIVS_DE_PATTERN_CONFIG_ORIGIN_Y__SHIFT) & VIVS_DE_PATTERN_CONFIG_ORIGIN_Y__MASK)
    266 
    267 #define VIVS_DE_PATTERN_LOW					0x00001240
    268 
    269 #define VIVS_DE_PATTERN_HIGH					0x00001244
    270 
    271 #define VIVS_DE_PATTERN_MASK_LOW				0x00001248
    272 
    273 #define VIVS_DE_PATTERN_MASK_HIGH				0x0000124c
    274 
    275 #define VIVS_DE_PATTERN_BG_COLOR				0x00001250
    276 
    277 #define VIVS_DE_PATTERN_FG_COLOR				0x00001254
    278 
    279 #define VIVS_DE_ROP						0x0000125c
    280 #define VIVS_DE_ROP_ROP_FG__MASK				0x000000ff
    281 #define VIVS_DE_ROP_ROP_FG__SHIFT				0
    282 #define VIVS_DE_ROP_ROP_FG(x)					(((x) << VIVS_DE_ROP_ROP_FG__SHIFT) & VIVS_DE_ROP_ROP_FG__MASK)
    283 #define VIVS_DE_ROP_ROP_BG__MASK				0x0000ff00
    284 #define VIVS_DE_ROP_ROP_BG__SHIFT				8
    285 #define VIVS_DE_ROP_ROP_BG(x)					(((x) << VIVS_DE_ROP_ROP_BG__SHIFT) & VIVS_DE_ROP_ROP_BG__MASK)
    286 #define VIVS_DE_ROP_TYPE__MASK					0x00300000
    287 #define VIVS_DE_ROP_TYPE__SHIFT					20
    288 #define VIVS_DE_ROP_TYPE_ROP2_PATTERN				0x00000000
    289 #define VIVS_DE_ROP_TYPE_ROP2_SOURCE				0x00100000
    290 #define VIVS_DE_ROP_TYPE_ROP3					0x00200000
    291 #define VIVS_DE_ROP_TYPE_ROP4					0x00300000
    292 
    293 #define VIVS_DE_CLIP_TOP_LEFT					0x00001260
    294 #define VIVS_DE_CLIP_TOP_LEFT_X__MASK				0x00007fff
    295 #define VIVS_DE_CLIP_TOP_LEFT_X__SHIFT				0
    296 #define VIVS_DE_CLIP_TOP_LEFT_X(x)				(((x) << VIVS_DE_CLIP_TOP_LEFT_X__SHIFT) & VIVS_DE_CLIP_TOP_LEFT_X__MASK)
    297 #define VIVS_DE_CLIP_TOP_LEFT_Y__MASK				0x7fff0000
    298 #define VIVS_DE_CLIP_TOP_LEFT_Y__SHIFT				16
    299 #define VIVS_DE_CLIP_TOP_LEFT_Y(x)				(((x) << VIVS_DE_CLIP_TOP_LEFT_Y__SHIFT) & VIVS_DE_CLIP_TOP_LEFT_Y__MASK)
    300 
    301 #define VIVS_DE_CLIP_BOTTOM_RIGHT				0x00001264
    302 #define VIVS_DE_CLIP_BOTTOM_RIGHT_X__MASK			0x00007fff
    303 #define VIVS_DE_CLIP_BOTTOM_RIGHT_X__SHIFT			0
    304 #define VIVS_DE_CLIP_BOTTOM_RIGHT_X(x)				(((x) << VIVS_DE_CLIP_BOTTOM_RIGHT_X__SHIFT) & VIVS_DE_CLIP_BOTTOM_RIGHT_X__MASK)
    305 #define VIVS_DE_CLIP_BOTTOM_RIGHT_Y__MASK			0x7fff0000
    306 #define VIVS_DE_CLIP_BOTTOM_RIGHT_Y__SHIFT			16
    307 #define VIVS_DE_CLIP_BOTTOM_RIGHT_Y(x)				(((x) << VIVS_DE_CLIP_BOTTOM_RIGHT_Y__SHIFT) & VIVS_DE_CLIP_BOTTOM_RIGHT_Y__MASK)
    308 
    309 #define VIVS_DE_CLEAR_BYTE_MASK					0x00001268
    310 
    311 #define VIVS_DE_CONFIG						0x0000126c
    312 #define VIVS_DE_CONFIG_MIRROR_BLT_ENABLE__MASK			0x00000001
    313 #define VIVS_DE_CONFIG_MIRROR_BLT_ENABLE__SHIFT			0
    314 #define VIVS_DE_CONFIG_MIRROR_BLT_ENABLE_OFF			0x00000000
    315 #define VIVS_DE_CONFIG_MIRROR_BLT_ENABLE_ON			0x00000001
    316 #define VIVS_DE_CONFIG_MIRROR_BLT_MODE__MASK			0x00000030
    317 #define VIVS_DE_CONFIG_MIRROR_BLT_MODE__SHIFT			4
    318 #define VIVS_DE_CONFIG_MIRROR_BLT_MODE_NORMAL			0x00000000
    319 #define VIVS_DE_CONFIG_MIRROR_BLT_MODE_HMIRROR			0x00000010
    320 #define VIVS_DE_CONFIG_MIRROR_BLT_MODE_VMIRROR			0x00000020
    321 #define VIVS_DE_CONFIG_MIRROR_BLT_MODE_FULL_MIRROR		0x00000030
    322 #define VIVS_DE_CONFIG_SOURCE_SELECT__MASK			0x00070000
    323 #define VIVS_DE_CONFIG_SOURCE_SELECT__SHIFT			16
    324 #define VIVS_DE_CONFIG_SOURCE_SELECT(x)				(((x) << VIVS_DE_CONFIG_SOURCE_SELECT__SHIFT) & VIVS_DE_CONFIG_SOURCE_SELECT__MASK)
    325 #define VIVS_DE_CONFIG_DESTINATION_SELECT__MASK			0x00300000
    326 #define VIVS_DE_CONFIG_DESTINATION_SELECT__SHIFT		20
    327 #define VIVS_DE_CONFIG_DESTINATION_SELECT(x)			(((x) << VIVS_DE_CONFIG_DESTINATION_SELECT__SHIFT) & VIVS_DE_CONFIG_DESTINATION_SELECT__MASK)
    328 
    329 #define VIVS_DE_CLEAR_PIXEL_VALUE_LOW				0x00001270
    330 
    331 #define VIVS_DE_CLEAR_PIXEL_VALUE_HIGH				0x00001274
    332 
    333 #define VIVS_DE_SRC_ORIGIN_FRACTION				0x00001278
    334 #define VIVS_DE_SRC_ORIGIN_FRACTION_X__MASK			0x0000ffff
    335 #define VIVS_DE_SRC_ORIGIN_FRACTION_X__SHIFT			0
    336 #define VIVS_DE_SRC_ORIGIN_FRACTION_X(x)			(((x) << VIVS_DE_SRC_ORIGIN_FRACTION_X__SHIFT) & VIVS_DE_SRC_ORIGIN_FRACTION_X__MASK)
    337 #define VIVS_DE_SRC_ORIGIN_FRACTION_Y__MASK			0xffff0000
    338 #define VIVS_DE_SRC_ORIGIN_FRACTION_Y__SHIFT			16
    339 #define VIVS_DE_SRC_ORIGIN_FRACTION_Y(x)			(((x) << VIVS_DE_SRC_ORIGIN_FRACTION_Y__SHIFT) & VIVS_DE_SRC_ORIGIN_FRACTION_Y__MASK)
    340 
    341 #define VIVS_DE_ALPHA_CONTROL					0x0000127c
    342 #define VIVS_DE_ALPHA_CONTROL_ENABLE__MASK			0x00000001
    343 #define VIVS_DE_ALPHA_CONTROL_ENABLE__SHIFT			0
    344 #define VIVS_DE_ALPHA_CONTROL_ENABLE_OFF			0x00000000
    345 #define VIVS_DE_ALPHA_CONTROL_ENABLE_ON				0x00000001
    346 #define VIVS_DE_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA__MASK	0x00ff0000
    347 #define VIVS_DE_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA__SHIFT	16
    348 #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)
    349 #define VIVS_DE_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA__MASK	0xff000000
    350 #define VIVS_DE_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA__SHIFT	24
    351 #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)
    352 
    353 #define VIVS_DE_ALPHA_MODES					0x00001280
    354 #define VIVS_DE_ALPHA_MODES_SRC_ALPHA_MODE__MASK		0x00000001
    355 #define VIVS_DE_ALPHA_MODES_SRC_ALPHA_MODE__SHIFT		0
    356 #define VIVS_DE_ALPHA_MODES_SRC_ALPHA_MODE_NORMAL		0x00000000
    357 #define VIVS_DE_ALPHA_MODES_SRC_ALPHA_MODE_INVERSED		0x00000001
    358 #define VIVS_DE_ALPHA_MODES_DST_ALPHA_MODE__MASK		0x00000010
    359 #define VIVS_DE_ALPHA_MODES_DST_ALPHA_MODE__SHIFT		4
    360 #define VIVS_DE_ALPHA_MODES_DST_ALPHA_MODE_NORMAL		0x00000000
    361 #define VIVS_DE_ALPHA_MODES_DST_ALPHA_MODE_INVERSED		0x00000010
    362 #define VIVS_DE_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE__MASK		0x00000300
    363 #define VIVS_DE_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE__SHIFT	8
    364 #define VIVS_DE_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_NORMAL	0x00000000
    365 #define VIVS_DE_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_GLOBAL	0x00000100
    366 #define VIVS_DE_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_SCALED	0x00000200
    367 #define VIVS_DE_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE__MASK		0x00003000
    368 #define VIVS_DE_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE__SHIFT	12
    369 #define VIVS_DE_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE_NORMAL	0x00000000
    370 #define VIVS_DE_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE_GLOBAL	0x00001000
    371 #define VIVS_DE_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE_SCALED	0x00002000
    372 #define VIVS_DE_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY__MASK	0x00010000
    373 #define VIVS_DE_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY__SHIFT	16
    374 #define VIVS_DE_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY_DISABLE	0x00000000
    375 #define VIVS_DE_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY_ENABLE	0x00010000
    376 #define VIVS_DE_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY__MASK	0x00100000
    377 #define VIVS_DE_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY__SHIFT	20
    378 #define VIVS_DE_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY_DISABLE	0x00000000
    379 #define VIVS_DE_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY_ENABLE	0x00100000
    380 #define VIVS_DE_ALPHA_MODES_SRC_BLENDING_MODE__MASK		0x07000000
    381 #define VIVS_DE_ALPHA_MODES_SRC_BLENDING_MODE__SHIFT		24
    382 #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)
    383 #define VIVS_DE_ALPHA_MODES_SRC_ALPHA_FACTOR__MASK		0x08000000
    384 #define VIVS_DE_ALPHA_MODES_SRC_ALPHA_FACTOR__SHIFT		27
    385 #define VIVS_DE_ALPHA_MODES_SRC_ALPHA_FACTOR_DISABLE		0x00000000
    386 #define VIVS_DE_ALPHA_MODES_SRC_ALPHA_FACTOR_ENABLE		0x08000000
    387 #define VIVS_DE_ALPHA_MODES_DST_BLENDING_MODE__MASK		0x70000000
    388 #define VIVS_DE_ALPHA_MODES_DST_BLENDING_MODE__SHIFT		28
    389 #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)
    390 #define VIVS_DE_ALPHA_MODES_DST_ALPHA_FACTOR__MASK		0x80000000
    391 #define VIVS_DE_ALPHA_MODES_DST_ALPHA_FACTOR__SHIFT		31
    392 #define VIVS_DE_ALPHA_MODES_DST_ALPHA_FACTOR_DISABLE		0x00000000
    393 #define VIVS_DE_ALPHA_MODES_DST_ALPHA_FACTOR_ENABLE		0x80000000
    394 
    395 #define VIVS_DE_UPLANE_ADDRESS					0x00001284
    396 
    397 #define VIVS_DE_UPLANE_STRIDE					0x00001288
    398 #define VIVS_DE_UPLANE_STRIDE_STRIDE__MASK			0x0003ffff
    399 #define VIVS_DE_UPLANE_STRIDE_STRIDE__SHIFT			0
    400 #define VIVS_DE_UPLANE_STRIDE_STRIDE(x)				(((x) << VIVS_DE_UPLANE_STRIDE_STRIDE__SHIFT) & VIVS_DE_UPLANE_STRIDE_STRIDE__MASK)
    401 
    402 #define VIVS_DE_VPLANE_ADDRESS					0x0000128c
    403 
    404 #define VIVS_DE_VPLANE_STRIDE					0x00001290
    405 #define VIVS_DE_VPLANE_STRIDE_STRIDE__MASK			0x0003ffff
    406 #define VIVS_DE_VPLANE_STRIDE_STRIDE__SHIFT			0
    407 #define VIVS_DE_VPLANE_STRIDE_STRIDE(x)				(((x) << VIVS_DE_VPLANE_STRIDE_STRIDE__SHIFT) & VIVS_DE_VPLANE_STRIDE_STRIDE__MASK)
    408 
    409 #define VIVS_DE_VR_CONFIG					0x00001294
    410 #define VIVS_DE_VR_CONFIG_START__MASK				0x00000003
    411 #define VIVS_DE_VR_CONFIG_START__SHIFT				0
    412 #define VIVS_DE_VR_CONFIG_START_HORIZONTAL_BLIT			0x00000000
    413 #define VIVS_DE_VR_CONFIG_START_VERTICAL_BLIT			0x00000001
    414 #define VIVS_DE_VR_CONFIG_START_ONE_PASS_BLIT			0x00000002
    415 #define VIVS_DE_VR_CONFIG_START_MASK				0x00000008
    416 
    417 #define VIVS_DE_VR_SOURCE_IMAGE_LOW				0x00001298
    418 #define VIVS_DE_VR_SOURCE_IMAGE_LOW_LEFT__MASK			0x0000ffff
    419 #define VIVS_DE_VR_SOURCE_IMAGE_LOW_LEFT__SHIFT			0
    420 #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)
    421 #define VIVS_DE_VR_SOURCE_IMAGE_LOW_TOP__MASK			0xffff0000
    422 #define VIVS_DE_VR_SOURCE_IMAGE_LOW_TOP__SHIFT			16
    423 #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)
    424 
    425 #define VIVS_DE_VR_SOURCE_IMAGE_HIGH				0x0000129c
    426 #define VIVS_DE_VR_SOURCE_IMAGE_HIGH_RIGHT__MASK		0x0000ffff
    427 #define VIVS_DE_VR_SOURCE_IMAGE_HIGH_RIGHT__SHIFT		0
    428 #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)
    429 #define VIVS_DE_VR_SOURCE_IMAGE_HIGH_BOTTOM__MASK		0xffff0000
    430 #define VIVS_DE_VR_SOURCE_IMAGE_HIGH_BOTTOM__SHIFT		16
    431 #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)
    432 
    433 #define VIVS_DE_VR_SOURCE_ORIGIN_LOW				0x000012a0
    434 #define VIVS_DE_VR_SOURCE_ORIGIN_LOW_X__MASK			0xffffffff
    435 #define VIVS_DE_VR_SOURCE_ORIGIN_LOW_X__SHIFT			0
    436 #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)
    437 
    438 #define VIVS_DE_VR_SOURCE_ORIGIN_HIGH				0x000012a4
    439 #define VIVS_DE_VR_SOURCE_ORIGIN_HIGH_Y__MASK			0xffffffff
    440 #define VIVS_DE_VR_SOURCE_ORIGIN_HIGH_Y__SHIFT			0
    441 #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)
    442 
    443 #define VIVS_DE_VR_TARGET_WINDOW_LOW				0x000012a8
    444 #define VIVS_DE_VR_TARGET_WINDOW_LOW_LEFT__MASK			0x0000ffff
    445 #define VIVS_DE_VR_TARGET_WINDOW_LOW_LEFT__SHIFT		0
    446 #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)
    447 #define VIVS_DE_VR_TARGET_WINDOW_LOW_TOP__MASK			0xffff0000
    448 #define VIVS_DE_VR_TARGET_WINDOW_LOW_TOP__SHIFT			16
    449 #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)
    450 
    451 #define VIVS_DE_VR_TARGET_WINDOW_HIGH				0x000012ac
    452 #define VIVS_DE_VR_TARGET_WINDOW_HIGH_RIGHT__MASK		0x0000ffff
    453 #define VIVS_DE_VR_TARGET_WINDOW_HIGH_RIGHT__SHIFT		0
    454 #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)
    455 #define VIVS_DE_VR_TARGET_WINDOW_HIGH_BOTTOM__MASK		0xffff0000
    456 #define VIVS_DE_VR_TARGET_WINDOW_HIGH_BOTTOM__SHIFT		16
    457 #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)
    458 
    459 #define VIVS_DE_PE_CONFIG					0x000012b0
    460 #define VIVS_DE_PE_CONFIG_DESTINATION_FETCH__MASK		0x00000003
    461 #define VIVS_DE_PE_CONFIG_DESTINATION_FETCH__SHIFT		0
    462 #define VIVS_DE_PE_CONFIG_DESTINATION_FETCH_DISABLE		0x00000000
    463 #define VIVS_DE_PE_CONFIG_DESTINATION_FETCH_DEFAULT		0x00000001
    464 #define VIVS_DE_PE_CONFIG_DESTINATION_FETCH_ALWAYS		0x00000002
    465 #define VIVS_DE_PE_CONFIG_DESTINATION_FETCH_MASK		0x00000008
    466 
    467 #define VIVS_DE_DEST_ROTATION_HEIGHT				0x000012b4
    468 #define VIVS_DE_DEST_ROTATION_HEIGHT_HEIGHT__MASK		0x0000ffff
    469 #define VIVS_DE_DEST_ROTATION_HEIGHT_HEIGHT__SHIFT		0
    470 #define VIVS_DE_DEST_ROTATION_HEIGHT_HEIGHT(x)			(((x) << VIVS_DE_DEST_ROTATION_HEIGHT_HEIGHT__SHIFT) & VIVS_DE_DEST_ROTATION_HEIGHT_HEIGHT__MASK)
    471 
    472 #define VIVS_DE_SRC_ROTATION_HEIGHT				0x000012b8
    473 #define VIVS_DE_SRC_ROTATION_HEIGHT_HEIGHT__MASK		0x0000ffff
    474 #define VIVS_DE_SRC_ROTATION_HEIGHT_HEIGHT__SHIFT		0
    475 #define VIVS_DE_SRC_ROTATION_HEIGHT_HEIGHT(x)			(((x) << VIVS_DE_SRC_ROTATION_HEIGHT_HEIGHT__SHIFT) & VIVS_DE_SRC_ROTATION_HEIGHT_HEIGHT__MASK)
    476 
    477 #define VIVS_DE_ROT_ANGLE					0x000012bc
    478 #define VIVS_DE_ROT_ANGLE_SRC__MASK				0x00000007
    479 #define VIVS_DE_ROT_ANGLE_SRC__SHIFT				0
    480 #define VIVS_DE_ROT_ANGLE_SRC(x)				(((x) << VIVS_DE_ROT_ANGLE_SRC__SHIFT) & VIVS_DE_ROT_ANGLE_SRC__MASK)
    481 #define VIVS_DE_ROT_ANGLE_DST__MASK				0x00000038
    482 #define VIVS_DE_ROT_ANGLE_DST__SHIFT				3
    483 #define VIVS_DE_ROT_ANGLE_DST(x)				(((x) << VIVS_DE_ROT_ANGLE_DST__SHIFT) & VIVS_DE_ROT_ANGLE_DST__MASK)
    484 #define VIVS_DE_ROT_ANGLE_SRC_MASK				0x00000100
    485 #define VIVS_DE_ROT_ANGLE_DST_MASK				0x00000200
    486 #define VIVS_DE_ROT_ANGLE_SRC_MIRROR__MASK			0x00003000
    487 #define VIVS_DE_ROT_ANGLE_SRC_MIRROR__SHIFT			12
    488 #define VIVS_DE_ROT_ANGLE_SRC_MIRROR(x)				(((x) << VIVS_DE_ROT_ANGLE_SRC_MIRROR__SHIFT) & VIVS_DE_ROT_ANGLE_SRC_MIRROR__MASK)
    489 #define VIVS_DE_ROT_ANGLE_SRC_MIRROR_MASK			0x00008000
    490 #define VIVS_DE_ROT_ANGLE_DST_MIRROR__MASK			0x00030000
    491 #define VIVS_DE_ROT_ANGLE_DST_MIRROR__SHIFT			16
    492 #define VIVS_DE_ROT_ANGLE_DST_MIRROR(x)				(((x) << VIVS_DE_ROT_ANGLE_DST_MIRROR__SHIFT) & VIVS_DE_ROT_ANGLE_DST_MIRROR__MASK)
    493 #define VIVS_DE_ROT_ANGLE_DST_MIRROR_MASK			0x00080000
    494 
    495 #define VIVS_DE_CLEAR_PIXEL_VALUE32				0x000012c0
    496 
    497 #define VIVS_DE_DEST_COLOR_KEY					0x000012c4
    498 
    499 #define VIVS_DE_GLOBAL_SRC_COLOR				0x000012c8
    500 
    501 #define VIVS_DE_GLOBAL_DEST_COLOR				0x000012cc
    502 
    503 #define VIVS_DE_COLOR_MULTIPLY_MODES				0x000012d0
    504 #define VIVS_DE_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY__MASK	0x00000001
    505 #define VIVS_DE_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY__SHIFT	0
    506 #define VIVS_DE_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY_DISABLE	0x00000000
    507 #define VIVS_DE_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY_ENABLE	0x00000001
    508 #define VIVS_DE_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY__MASK	0x00000010
    509 #define VIVS_DE_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY__SHIFT	4
    510 #define VIVS_DE_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY_DISABLE	0x00000000
    511 #define VIVS_DE_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY_ENABLE	0x00000010
    512 #define VIVS_DE_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY__MASK	0x00000300
    513 #define VIVS_DE_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY__SHIFT	8
    514 #define VIVS_DE_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY_DISABLE	0x00000000
    515 #define VIVS_DE_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY_ALPHA	0x00000100
    516 #define VIVS_DE_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY_COLOR	0x00000200
    517 #define VIVS_DE_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY__MASK	0x00100000
    518 #define VIVS_DE_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY__SHIFT	20
    519 #define VIVS_DE_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY_DISABLE	0x00000000
    520 #define VIVS_DE_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY_ENABLE	0x00100000
    521 
    522 #define VIVS_DE_PE_TRANSPARENCY					0x000012d4
    523 #define VIVS_DE_PE_TRANSPARENCY_SOURCE__MASK			0x00000003
    524 #define VIVS_DE_PE_TRANSPARENCY_SOURCE__SHIFT			0
    525 #define VIVS_DE_PE_TRANSPARENCY_SOURCE_OPAQUE			0x00000000
    526 #define VIVS_DE_PE_TRANSPARENCY_SOURCE_MASK			0x00000001
    527 #define VIVS_DE_PE_TRANSPARENCY_SOURCE_KEY			0x00000002
    528 #define VIVS_DE_PE_TRANSPARENCY_PATTERN__MASK			0x00000030
    529 #define VIVS_DE_PE_TRANSPARENCY_PATTERN__SHIFT			4
    530 #define VIVS_DE_PE_TRANSPARENCY_PATTERN_OPAQUE			0x00000000
    531 #define VIVS_DE_PE_TRANSPARENCY_PATTERN_MASK			0x00000010
    532 #define VIVS_DE_PE_TRANSPARENCY_PATTERN_KEY			0x00000020
    533 #define VIVS_DE_PE_TRANSPARENCY_DESTINATION__MASK		0x00000300
    534 #define VIVS_DE_PE_TRANSPARENCY_DESTINATION__SHIFT		8
    535 #define VIVS_DE_PE_TRANSPARENCY_DESTINATION_OPAQUE		0x00000000
    536 #define VIVS_DE_PE_TRANSPARENCY_DESTINATION_MASK		0x00000100
    537 #define VIVS_DE_PE_TRANSPARENCY_DESTINATION_KEY			0x00000200
    538 #define VIVS_DE_PE_TRANSPARENCY_TRANSPARENCY_MASK		0x00001000
    539 #define VIVS_DE_PE_TRANSPARENCY_USE_SRC_OVERRIDE__MASK		0x00030000
    540 #define VIVS_DE_PE_TRANSPARENCY_USE_SRC_OVERRIDE__SHIFT		16
    541 #define VIVS_DE_PE_TRANSPARENCY_USE_SRC_OVERRIDE_DEFAULT	0x00000000
    542 #define VIVS_DE_PE_TRANSPARENCY_USE_SRC_OVERRIDE_USE_ENABLE	0x00010000
    543 #define VIVS_DE_PE_TRANSPARENCY_USE_SRC_OVERRIDE_USE_DISABLE	0x00020000
    544 #define VIVS_DE_PE_TRANSPARENCY_USE_PAT_OVERRIDE__MASK		0x00300000
    545 #define VIVS_DE_PE_TRANSPARENCY_USE_PAT_OVERRIDE__SHIFT		20
    546 #define VIVS_DE_PE_TRANSPARENCY_USE_PAT_OVERRIDE_DEFAULT	0x00000000
    547 #define VIVS_DE_PE_TRANSPARENCY_USE_PAT_OVERRIDE_USE_ENABLE	0x00100000
    548 #define VIVS_DE_PE_TRANSPARENCY_USE_PAT_OVERRIDE_USE_DISABLE	0x00200000
    549 #define VIVS_DE_PE_TRANSPARENCY_USE_DST_OVERRIDE__MASK		0x03000000
    550 #define VIVS_DE_PE_TRANSPARENCY_USE_DST_OVERRIDE__SHIFT		24
    551 #define VIVS_DE_PE_TRANSPARENCY_USE_DST_OVERRIDE_DEFAULT	0x00000000
    552 #define VIVS_DE_PE_TRANSPARENCY_USE_DST_OVERRIDE_USE_ENABLE	0x01000000
    553 #define VIVS_DE_PE_TRANSPARENCY_USE_DST_OVERRIDE_USE_DISABLE	0x02000000
    554 #define VIVS_DE_PE_TRANSPARENCY_RESOURCE_OVERRIDE_MASK		0x10000000
    555 #define VIVS_DE_PE_TRANSPARENCY_DFB_COLOR_KEY__MASK		0x20000000
    556 #define VIVS_DE_PE_TRANSPARENCY_DFB_COLOR_KEY__SHIFT		29
    557 #define VIVS_DE_PE_TRANSPARENCY_DFB_COLOR_KEY_DISABLE		0x00000000
    558 #define VIVS_DE_PE_TRANSPARENCY_DFB_COLOR_KEY_ENABLE		0x20000000
    559 #define VIVS_DE_PE_TRANSPARENCY_DFB_COLOR_KEY_MASK		0x80000000
    560 
    561 #define VIVS_DE_PE_CONTROL					0x000012d8
    562 #define VIVS_DE_PE_CONTROL_YUV__MASK				0x00000001
    563 #define VIVS_DE_PE_CONTROL_YUV__SHIFT				0
    564 #define VIVS_DE_PE_CONTROL_YUV_601				0x00000000
    565 #define VIVS_DE_PE_CONTROL_YUV_709				0x00000001
    566 #define VIVS_DE_PE_CONTROL_YUV_MASK				0x00000008
    567 #define VIVS_DE_PE_CONTROL_UV_SWIZZLE__MASK			0x00000010
    568 #define VIVS_DE_PE_CONTROL_UV_SWIZZLE__SHIFT			4
    569 #define VIVS_DE_PE_CONTROL_UV_SWIZZLE_UV			0x00000000
    570 #define VIVS_DE_PE_CONTROL_UV_SWIZZLE_VU			0x00000010
    571 #define VIVS_DE_PE_CONTROL_UV_SWIZZLE_MASK			0x00000080
    572 #define VIVS_DE_PE_CONTROL_YUVRGB__MASK				0x00000100
    573 #define VIVS_DE_PE_CONTROL_YUVRGB__SHIFT			8
    574 #define VIVS_DE_PE_CONTROL_YUVRGB_DISABLE			0x00000000
    575 #define VIVS_DE_PE_CONTROL_YUVRGB_ENABLE			0x00000100
    576 #define VIVS_DE_PE_CONTROL_YUVRGB_MASK				0x00000800
    577 
    578 #define VIVS_DE_SRC_COLOR_KEY_HIGH				0x000012dc
    579 
    580 #define VIVS_DE_DEST_COLOR_KEY_HIGH				0x000012e0
    581 
    582 #define VIVS_DE_VR_CONFIG_EX					0x000012e4
    583 #define VIVS_DE_VR_CONFIG_EX_VERTICAL_LINE_WIDTH__MASK		0x00000003
    584 #define VIVS_DE_VR_CONFIG_EX_VERTICAL_LINE_WIDTH__SHIFT		0
    585 #define VIVS_DE_VR_CONFIG_EX_VERTICAL_LINE_WIDTH_AUTO		0x00000000
    586 #define VIVS_DE_VR_CONFIG_EX_VERTICAL_LINE_WIDTH_PIXELS16	0x00000001
    587 #define VIVS_DE_VR_CONFIG_EX_VERTICAL_LINE_WIDTH_PIXELS32	0x00000002
    588 #define VIVS_DE_VR_CONFIG_EX_VERTICAL_LINE_WIDTH_MASK		0x00000008
    589 #define VIVS_DE_VR_CONFIG_EX_FILTER_TAP__MASK			0x000000f0
    590 #define VIVS_DE_VR_CONFIG_EX_FILTER_TAP__SHIFT			4
    591 #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)
    592 #define VIVS_DE_VR_CONFIG_EX_FILTER_TAP_MASK			0x00000100
    593 
    594 #define VIVS_DE_PE_DITHER_LOW					0x000012e8
    595 #define VIVS_DE_PE_DITHER_LOW_PIXEL_X0_Y0__MASK			0x0000000f
    596 #define VIVS_DE_PE_DITHER_LOW_PIXEL_X0_Y0__SHIFT		0
    597 #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)
    598 #define VIVS_DE_PE_DITHER_LOW_PIXEL_X1_Y0__MASK			0x000000f0
    599 #define VIVS_DE_PE_DITHER_LOW_PIXEL_X1_Y0__SHIFT		4
    600 #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)
    601 #define VIVS_DE_PE_DITHER_LOW_PIXEL_X2_Y0__MASK			0x00000f00
    602 #define VIVS_DE_PE_DITHER_LOW_PIXEL_X2_Y0__SHIFT		8
    603 #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)
    604 #define VIVS_DE_PE_DITHER_LOW_PIXEL_X3_Y0__MASK			0x0000f000
    605 #define VIVS_DE_PE_DITHER_LOW_PIXEL_X3_Y0__SHIFT		12
    606 #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)
    607 #define VIVS_DE_PE_DITHER_LOW_PIXEL_X0_Y1__MASK			0x000f0000
    608 #define VIVS_DE_PE_DITHER_LOW_PIXEL_X0_Y1__SHIFT		16
    609 #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)
    610 #define VIVS_DE_PE_DITHER_LOW_PIXEL_X1_Y1__MASK			0x00f00000
    611 #define VIVS_DE_PE_DITHER_LOW_PIXEL_X1_Y1__SHIFT		20
    612 #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)
    613 #define VIVS_DE_PE_DITHER_LOW_PIXEL_X2_Y1__MASK			0x0f000000
    614 #define VIVS_DE_PE_DITHER_LOW_PIXEL_X2_Y1__SHIFT		24
    615 #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)
    616 #define VIVS_DE_PE_DITHER_LOW_PIXEL_X3_Y1__MASK			0xf0000000
    617 #define VIVS_DE_PE_DITHER_LOW_PIXEL_X3_Y1__SHIFT		28
    618 #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)
    619 
    620 #define VIVS_DE_PE_DITHER_HIGH					0x000012ec
    621 #define VIVS_DE_PE_DITHER_HIGH_PIXEL_X0_Y2__MASK		0x0000000f
    622 #define VIVS_DE_PE_DITHER_HIGH_PIXEL_X0_Y2__SHIFT		0
    623 #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)
    624 #define VIVS_DE_PE_DITHER_HIGH_PIXEL_X1_Y2__MASK		0x000000f0
    625 #define VIVS_DE_PE_DITHER_HIGH_PIXEL_X1_Y2__SHIFT		4
    626 #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)
    627 #define VIVS_DE_PE_DITHER_HIGH_PIXEL_X2_Y2__MASK		0x00000f00
    628 #define VIVS_DE_PE_DITHER_HIGH_PIXEL_X2_Y2__SHIFT		8
    629 #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)
    630 #define VIVS_DE_PE_DITHER_HIGH_PIXEL_X3_Y2__MASK		0x0000f000
    631 #define VIVS_DE_PE_DITHER_HIGH_PIXEL_X3_Y2__SHIFT		12
    632 #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)
    633 #define VIVS_DE_PE_DITHER_HIGH_PIXEL_X0_Y3__MASK		0x000f0000
    634 #define VIVS_DE_PE_DITHER_HIGH_PIXEL_X0_Y3__SHIFT		16
    635 #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)
    636 #define VIVS_DE_PE_DITHER_HIGH_PIXEL_X1_Y3__MASK		0x00f00000
    637 #define VIVS_DE_PE_DITHER_HIGH_PIXEL_X1_Y3__SHIFT		20
    638 #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)
    639 #define VIVS_DE_PE_DITHER_HIGH_PIXEL_X2_Y3__MASK		0x0f000000
    640 #define VIVS_DE_PE_DITHER_HIGH_PIXEL_X2_Y3__SHIFT		24
    641 #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)
    642 #define VIVS_DE_PE_DITHER_HIGH_PIXEL_X3_Y3__MASK		0xf0000000
    643 #define VIVS_DE_PE_DITHER_HIGH_PIXEL_X3_Y3__SHIFT		28
    644 #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)
    645 
    646 #define VIVS_DE_BW_CONFIG					0x000012f0
    647 #define VIVS_DE_BW_CONFIG_BLOCK_CONFIG__MASK			0x00000001
    648 #define VIVS_DE_BW_CONFIG_BLOCK_CONFIG__SHIFT			0
    649 #define VIVS_DE_BW_CONFIG_BLOCK_CONFIG_AUTO			0x00000000
    650 #define VIVS_DE_BW_CONFIG_BLOCK_CONFIG_CUSTOMIZE		0x00000001
    651 #define VIVS_DE_BW_CONFIG_BLOCK_CONFIG_MASK			0x00000008
    652 #define VIVS_DE_BW_CONFIG_BLOCK_WALK_DIRECTION__MASK		0x00000010
    653 #define VIVS_DE_BW_CONFIG_BLOCK_WALK_DIRECTION__SHIFT		4
    654 #define VIVS_DE_BW_CONFIG_BLOCK_WALK_DIRECTION_RIGHT_BOTTOM	0x00000000
    655 #define VIVS_DE_BW_CONFIG_BLOCK_WALK_DIRECTION_BOTTOM_RIGHT	0x00000010
    656 #define VIVS_DE_BW_CONFIG_BLOCK_WALK_DIRECTION_MASK		0x00000080
    657 #define VIVS_DE_BW_CONFIG_TILE_WALK_DIRECTION__MASK		0x00000100
    658 #define VIVS_DE_BW_CONFIG_TILE_WALK_DIRECTION__SHIFT		8
    659 #define VIVS_DE_BW_CONFIG_TILE_WALK_DIRECTION_RIGHT_BOTTOM	0x00000000
    660 #define VIVS_DE_BW_CONFIG_TILE_WALK_DIRECTION_BOTTOM_RIGHT	0x00000100
    661 #define VIVS_DE_BW_CONFIG_TILE_WALK_DIRECTION_MASK		0x00000800
    662 #define VIVS_DE_BW_CONFIG_PIXEL_WALK_DIRECTION__MASK		0x00001000
    663 #define VIVS_DE_BW_CONFIG_PIXEL_WALK_DIRECTION__SHIFT		12
    664 #define VIVS_DE_BW_CONFIG_PIXEL_WALK_DIRECTION_RIGHT_BOTTOM	0x00000000
    665 #define VIVS_DE_BW_CONFIG_PIXEL_WALK_DIRECTION_BOTTOM_RIGHT	0x00001000
    666 #define VIVS_DE_BW_CONFIG_PIXEL_WALK_DIRECTION_MASK		0x00008000
    667 
    668 #define VIVS_DE_BW_BLOCK_SIZE					0x000012f4
    669 #define VIVS_DE_BW_BLOCK_SIZE_WIDTH__MASK			0x0000ffff
    670 #define VIVS_DE_BW_BLOCK_SIZE_WIDTH__SHIFT			0
    671 #define VIVS_DE_BW_BLOCK_SIZE_WIDTH(x)				(((x) << VIVS_DE_BW_BLOCK_SIZE_WIDTH__SHIFT) & VIVS_DE_BW_BLOCK_SIZE_WIDTH__MASK)
    672 #define VIVS_DE_BW_BLOCK_SIZE_HEIGHT__MASK			0xffff0000
    673 #define VIVS_DE_BW_BLOCK_SIZE_HEIGHT__SHIFT			16
    674 #define VIVS_DE_BW_BLOCK_SIZE_HEIGHT(x)				(((x) << VIVS_DE_BW_BLOCK_SIZE_HEIGHT__SHIFT) & VIVS_DE_BW_BLOCK_SIZE_HEIGHT__MASK)
    675 
    676 #define VIVS_DE_BW_TILE_SIZE					0x000012f8
    677 #define VIVS_DE_BW_TILE_SIZE_WIDTH__MASK			0x0000ffff
    678 #define VIVS_DE_BW_TILE_SIZE_WIDTH__SHIFT			0
    679 #define VIVS_DE_BW_TILE_SIZE_WIDTH(x)				(((x) << VIVS_DE_BW_TILE_SIZE_WIDTH__SHIFT) & VIVS_DE_BW_TILE_SIZE_WIDTH__MASK)
    680 #define VIVS_DE_BW_TILE_SIZE_HEIGHT__MASK			0xffff0000
    681 #define VIVS_DE_BW_TILE_SIZE_HEIGHT__SHIFT			16
    682 #define VIVS_DE_BW_TILE_SIZE_HEIGHT(x)				(((x) << VIVS_DE_BW_TILE_SIZE_HEIGHT__SHIFT) & VIVS_DE_BW_TILE_SIZE_HEIGHT__MASK)
    683 
    684 #define VIVS_DE_BW_BLOCK_MASK					0x000012fc
    685 #define VIVS_DE_BW_BLOCK_MASK_HORIZONTAL__MASK			0x0000ffff
    686 #define VIVS_DE_BW_BLOCK_MASK_HORIZONTAL__SHIFT			0
    687 #define VIVS_DE_BW_BLOCK_MASK_HORIZONTAL(x)			(((x) << VIVS_DE_BW_BLOCK_MASK_HORIZONTAL__SHIFT) & VIVS_DE_BW_BLOCK_MASK_HORIZONTAL__MASK)
    688 #define VIVS_DE_BW_BLOCK_MASK_VERTICAL__MASK			0xffff0000
    689 #define VIVS_DE_BW_BLOCK_MASK_VERTICAL__SHIFT			16
    690 #define VIVS_DE_BW_BLOCK_MASK_VERTICAL(x)			(((x) << VIVS_DE_BW_BLOCK_MASK_VERTICAL__SHIFT) & VIVS_DE_BW_BLOCK_MASK_VERTICAL__MASK)
    691 
    692 #define VIVS_DE_SRC_EX_CONFIG					0x00001300
    693 #define VIVS_DE_SRC_EX_CONFIG_MULTI_TILED__MASK			0x00000001
    694 #define VIVS_DE_SRC_EX_CONFIG_MULTI_TILED__SHIFT		0
    695 #define VIVS_DE_SRC_EX_CONFIG_MULTI_TILED_DISABLE		0x00000000
    696 #define VIVS_DE_SRC_EX_CONFIG_MULTI_TILED_ENABLE		0x00000001
    697 #define VIVS_DE_SRC_EX_CONFIG_SUPER_TILED__MASK			0x00000008
    698 #define VIVS_DE_SRC_EX_CONFIG_SUPER_TILED__SHIFT		3
    699 #define VIVS_DE_SRC_EX_CONFIG_SUPER_TILED_DISABLE		0x00000000
    700 #define VIVS_DE_SRC_EX_CONFIG_SUPER_TILED_ENABLE		0x00000008
    701 #define VIVS_DE_SRC_EX_CONFIG_MINOR_TILED__MASK			0x00000100
    702 #define VIVS_DE_SRC_EX_CONFIG_MINOR_TILED__SHIFT		8
    703 #define VIVS_DE_SRC_EX_CONFIG_MINOR_TILED_DISABLE		0x00000000
    704 #define VIVS_DE_SRC_EX_CONFIG_MINOR_TILED_ENABLE		0x00000100
    705 
    706 #define VIVS_DE_SRC_EX_ADDRESS					0x00001304
    707 
    708 #define VIVS_DE_DE_MULTI_SOURCE					0x00001308
    709 #define VIVS_DE_DE_MULTI_SOURCE_MAX_SOURCE__MASK		0x00000007
    710 #define VIVS_DE_DE_MULTI_SOURCE_MAX_SOURCE__SHIFT		0
    711 #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)
    712 #define VIVS_DE_DE_MULTI_SOURCE_HORIZONTAL_BLOCK__MASK		0x00000700
    713 #define VIVS_DE_DE_MULTI_SOURCE_HORIZONTAL_BLOCK__SHIFT		8
    714 #define VIVS_DE_DE_MULTI_SOURCE_HORIZONTAL_BLOCK_PIXEL16	0x00000000
    715 #define VIVS_DE_DE_MULTI_SOURCE_HORIZONTAL_BLOCK_PIXEL32	0x00000100
    716 #define VIVS_DE_DE_MULTI_SOURCE_HORIZONTAL_BLOCK_PIXEL64	0x00000200
    717 #define VIVS_DE_DE_MULTI_SOURCE_HORIZONTAL_BLOCK_PIXEL128	0x00000300
    718 #define VIVS_DE_DE_MULTI_SOURCE_HORIZONTAL_BLOCK_PIXEL256	0x00000400
    719 #define VIVS_DE_DE_MULTI_SOURCE_HORIZONTAL_BLOCK_PIXEL512	0x00000500
    720 #define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK__MASK		0x00070000
    721 #define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK__SHIFT		16
    722 #define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK_LINE1		0x00000000
    723 #define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK_LINE2		0x00010000
    724 #define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK_LINE4		0x00020000
    725 #define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK_LINE8		0x00030000
    726 #define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK_LINE16		0x00040000
    727 #define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK_LINE32		0x00050000
    728 #define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK_LINE64		0x00060000
    729 #define VIVS_DE_DE_MULTI_SOURCE_VERTICAL_BLOCK_LINE128		0x00070000
    730 
    731 #define VIVS_DE_DEYUV_CONVERSION				0x0000130c
    732 #define VIVS_DE_DEYUV_CONVERSION_ENABLE__MASK			0x00000003
    733 #define VIVS_DE_DEYUV_CONVERSION_ENABLE__SHIFT			0
    734 #define VIVS_DE_DEYUV_CONVERSION_ENABLE_OFF			0x00000000
    735 #define VIVS_DE_DEYUV_CONVERSION_ENABLE_PLANE1			0x00000001
    736 #define VIVS_DE_DEYUV_CONVERSION_ENABLE_PLANE2			0x00000002
    737 #define VIVS_DE_DEYUV_CONVERSION_ENABLE_PLANE3			0x00000003
    738 #define VIVS_DE_DEYUV_CONVERSION_PLANE1_COUNT__MASK		0x0000000c
    739 #define VIVS_DE_DEYUV_CONVERSION_PLANE1_COUNT__SHIFT		2
    740 #define VIVS_DE_DEYUV_CONVERSION_PLANE1_COUNT(x)		(((x) << VIVS_DE_DEYUV_CONVERSION_PLANE1_COUNT__SHIFT) & VIVS_DE_DEYUV_CONVERSION_PLANE1_COUNT__MASK)
    741 #define VIVS_DE_DEYUV_CONVERSION_PLANE2_COUNT__MASK		0x00000030
    742 #define VIVS_DE_DEYUV_CONVERSION_PLANE2_COUNT__SHIFT		4
    743 #define VIVS_DE_DEYUV_CONVERSION_PLANE2_COUNT(x)		(((x) << VIVS_DE_DEYUV_CONVERSION_PLANE2_COUNT__SHIFT) & VIVS_DE_DEYUV_CONVERSION_PLANE2_COUNT__MASK)
    744 #define VIVS_DE_DEYUV_CONVERSION_PLANE3_COUNT__MASK		0x000000c0
    745 #define VIVS_DE_DEYUV_CONVERSION_PLANE3_COUNT__SHIFT		6
    746 #define VIVS_DE_DEYUV_CONVERSION_PLANE3_COUNT(x)		(((x) << VIVS_DE_DEYUV_CONVERSION_PLANE3_COUNT__SHIFT) & VIVS_DE_DEYUV_CONVERSION_PLANE3_COUNT__MASK)
    747 #define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_B__MASK		0x00000300
    748 #define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_B__SHIFT	8
    749 #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)
    750 #define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_G__MASK		0x00000c00
    751 #define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_G__SHIFT	10
    752 #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)
    753 #define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_R__MASK		0x00003000
    754 #define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_R__SHIFT	12
    755 #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)
    756 #define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_A__MASK		0x0000c000
    757 #define VIVS_DE_DEYUV_CONVERSION_PLANE1_SWIZZLE_A__SHIFT	14
    758 #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)
    759 #define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_B__MASK		0x00030000
    760 #define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_B__SHIFT	16
    761 #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)
    762 #define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_G__MASK		0x000c0000
    763 #define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_G__SHIFT	18
    764 #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)
    765 #define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_R__MASK		0x00300000
    766 #define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_R__SHIFT	20
    767 #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)
    768 #define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_A__MASK		0x00c00000
    769 #define VIVS_DE_DEYUV_CONVERSION_PLANE2_SWIZZLE_A__SHIFT	22
    770 #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)
    771 #define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_B__MASK		0x03000000
    772 #define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_B__SHIFT	24
    773 #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)
    774 #define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_G__MASK		0x0c000000
    775 #define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_G__SHIFT	26
    776 #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)
    777 #define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_R__MASK		0x30000000
    778 #define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_R__SHIFT	28
    779 #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)
    780 #define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_A__MASK		0xc0000000
    781 #define VIVS_DE_DEYUV_CONVERSION_PLANE3_SWIZZLE_A__SHIFT	30
    782 #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)
    783 
    784 #define VIVS_DE_DE_PLANE2_ADDRESS				0x00001310
    785 
    786 #define VIVS_DE_DE_PLANE2_STRIDE				0x00001314
    787 #define VIVS_DE_DE_PLANE2_STRIDE_STRIDE__MASK			0x0003ffff
    788 #define VIVS_DE_DE_PLANE2_STRIDE_STRIDE__SHIFT			0
    789 #define VIVS_DE_DE_PLANE2_STRIDE_STRIDE(x)			(((x) << VIVS_DE_DE_PLANE2_STRIDE_STRIDE__SHIFT) & VIVS_DE_DE_PLANE2_STRIDE_STRIDE__MASK)
    790 
    791 #define VIVS_DE_DE_PLANE3_ADDRESS				0x00001318
    792 
    793 #define VIVS_DE_DE_PLANE3_STRIDE				0x0000131c
    794 #define VIVS_DE_DE_PLANE3_STRIDE_STRIDE__MASK			0x0003ffff
    795 #define VIVS_DE_DE_PLANE3_STRIDE_STRIDE__SHIFT			0
    796 #define VIVS_DE_DE_PLANE3_STRIDE_STRIDE(x)			(((x) << VIVS_DE_DE_PLANE3_STRIDE_STRIDE__SHIFT) & VIVS_DE_DE_PLANE3_STRIDE_STRIDE__MASK)
    797 
    798 #define VIVS_DE_DE_STALL_DE					0x00001320
    799 #define VIVS_DE_DE_STALL_DE_ENABLE__MASK			0x00000001
    800 #define VIVS_DE_DE_STALL_DE_ENABLE__SHIFT			0
    801 #define VIVS_DE_DE_STALL_DE_ENABLE_DISABLE			0x00000000
    802 #define VIVS_DE_DE_STALL_DE_ENABLE_ENABLE			0x00000001
    803 
    804 #define VIVS_DE_FILTER_KERNEL(i0)			       (0x00001800 + 0x4*(i0))
    805 #define VIVS_DE_FILTER_KERNEL__ESIZE				0x00000004
    806 #define VIVS_DE_FILTER_KERNEL__LEN				0x00000080
    807 #define VIVS_DE_FILTER_KERNEL_COEFFICIENT0__MASK		0x0000ffff
    808 #define VIVS_DE_FILTER_KERNEL_COEFFICIENT0__SHIFT		0
    809 #define VIVS_DE_FILTER_KERNEL_COEFFICIENT0(x)			(((x) << VIVS_DE_FILTER_KERNEL_COEFFICIENT0__SHIFT) & VIVS_DE_FILTER_KERNEL_COEFFICIENT0__MASK)
    810 #define VIVS_DE_FILTER_KERNEL_COEFFICIENT1__MASK		0xffff0000
    811 #define VIVS_DE_FILTER_KERNEL_COEFFICIENT1__SHIFT		16
    812 #define VIVS_DE_FILTER_KERNEL_COEFFICIENT1(x)			(((x) << VIVS_DE_FILTER_KERNEL_COEFFICIENT1__SHIFT) & VIVS_DE_FILTER_KERNEL_COEFFICIENT1__MASK)
    813 
    814 #define VIVS_DE_INDEX_COLOR_TABLE(i0)			       (0x00001c00 + 0x4*(i0))
    815 #define VIVS_DE_INDEX_COLOR_TABLE__ESIZE			0x00000004
    816 #define VIVS_DE_INDEX_COLOR_TABLE__LEN				0x00000100
    817 
    818 #define VIVS_DE_HORI_FILTER_KERNEL(i0)			       (0x00002800 + 0x4*(i0))
    819 #define VIVS_DE_HORI_FILTER_KERNEL__ESIZE			0x00000004
    820 #define VIVS_DE_HORI_FILTER_KERNEL__LEN				0x00000080
    821 #define VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT0__MASK		0x0000ffff
    822 #define VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT0__SHIFT		0
    823 #define VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT0(x)		(((x) << VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT0__SHIFT) & VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT0__MASK)
    824 #define VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT1__MASK		0xffff0000
    825 #define VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT1__SHIFT		16
    826 #define VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT1(x)		(((x) << VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT1__SHIFT) & VIVS_DE_HORI_FILTER_KERNEL_COEFFICIENT1__MASK)
    827 
    828 #define VIVS_DE_VERTI_FILTER_KERNEL(i0)			       (0x00002a00 + 0x4*(i0))
    829 #define VIVS_DE_VERTI_FILTER_KERNEL__ESIZE			0x00000004
    830 #define VIVS_DE_VERTI_FILTER_KERNEL__LEN			0x00000080
    831 #define VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT0__MASK		0x0000ffff
    832 #define VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT0__SHIFT		0
    833 #define VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT0(x)		(((x) << VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT0__SHIFT) & VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT0__MASK)
    834 #define VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT1__MASK		0xffff0000
    835 #define VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT1__SHIFT		16
    836 #define VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT1(x)		(((x) << VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT1__SHIFT) & VIVS_DE_VERTI_FILTER_KERNEL_COEFFICIENT1__MASK)
    837 
    838 #define VIVS_DE_INDEX_COLOR_TABLE32(i0)			       (0x00003400 + 0x4*(i0))
    839 #define VIVS_DE_INDEX_COLOR_TABLE32__ESIZE			0x00000004
    840 #define VIVS_DE_INDEX_COLOR_TABLE32__LEN			0x00000100
    841 
    842 #define VIVS_DE_BLOCK4						0x00000000
    843 
    844 #define VIVS_DE_BLOCK4_SRC_ADDRESS(i0)			       (0x00012800 + 0x4*(i0))
    845 #define VIVS_DE_BLOCK4_SRC_ADDRESS__ESIZE			0x00000004
    846 #define VIVS_DE_BLOCK4_SRC_ADDRESS__LEN				0x00000004
    847 
    848 #define VIVS_DE_BLOCK4_SRC_STRIDE(i0)			       (0x00012810 + 0x4*(i0))
    849 #define VIVS_DE_BLOCK4_SRC_STRIDE__ESIZE			0x00000004
    850 #define VIVS_DE_BLOCK4_SRC_STRIDE__LEN				0x00000004
    851 #define VIVS_DE_BLOCK4_SRC_STRIDE_STRIDE__MASK			0x0003ffff
    852 #define VIVS_DE_BLOCK4_SRC_STRIDE_STRIDE__SHIFT			0
    853 #define VIVS_DE_BLOCK4_SRC_STRIDE_STRIDE(x)			(((x) << VIVS_DE_BLOCK4_SRC_STRIDE_STRIDE__SHIFT) & VIVS_DE_BLOCK4_SRC_STRIDE_STRIDE__MASK)
    854 
    855 #define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG(i0)		       (0x00012820 + 0x4*(i0))
    856 #define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG__ESIZE		0x00000004
    857 #define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG__LEN			0x00000004
    858 #define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG_WIDTH__MASK		0x0000ffff
    859 #define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG_WIDTH__SHIFT		0
    860 #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)
    861 #define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG_ROTATION__MASK	0x00010000
    862 #define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG_ROTATION__SHIFT	16
    863 #define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG_ROTATION_DISABLE	0x00000000
    864 #define VIVS_DE_BLOCK4_SRC_ROTATION_CONFIG_ROTATION_ENABLE	0x00010000
    865 
    866 #define VIVS_DE_BLOCK4_SRC_CONFIG(i0)			       (0x00012830 + 0x4*(i0))
    867 #define VIVS_DE_BLOCK4_SRC_CONFIG__ESIZE			0x00000004
    868 #define VIVS_DE_BLOCK4_SRC_CONFIG__LEN				0x00000004
    869 #define VIVS_DE_BLOCK4_SRC_CONFIG_PE10_SOURCE_FORMAT__MASK	0x0000000f
    870 #define VIVS_DE_BLOCK4_SRC_CONFIG_PE10_SOURCE_FORMAT__SHIFT	0
    871 #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)
    872 #define VIVS_DE_BLOCK4_SRC_CONFIG_TRANSPARENCY__MASK		0x00000030
    873 #define VIVS_DE_BLOCK4_SRC_CONFIG_TRANSPARENCY__SHIFT		4
    874 #define VIVS_DE_BLOCK4_SRC_CONFIG_TRANSPARENCY(x)		(((x) << VIVS_DE_BLOCK4_SRC_CONFIG_TRANSPARENCY__SHIFT) & VIVS_DE_BLOCK4_SRC_CONFIG_TRANSPARENCY__MASK)
    875 #define VIVS_DE_BLOCK4_SRC_CONFIG_SRC_RELATIVE__MASK		0x00000040
    876 #define VIVS_DE_BLOCK4_SRC_CONFIG_SRC_RELATIVE__SHIFT		6
    877 #define VIVS_DE_BLOCK4_SRC_CONFIG_SRC_RELATIVE_ABSOLUTE		0x00000000
    878 #define VIVS_DE_BLOCK4_SRC_CONFIG_SRC_RELATIVE_RELATIVE		0x00000040
    879 #define VIVS_DE_BLOCK4_SRC_CONFIG_TILED__MASK			0x00000080
    880 #define VIVS_DE_BLOCK4_SRC_CONFIG_TILED__SHIFT			7
    881 #define VIVS_DE_BLOCK4_SRC_CONFIG_TILED_DISABLE			0x00000000
    882 #define VIVS_DE_BLOCK4_SRC_CONFIG_TILED_ENABLE			0x00000080
    883 #define VIVS_DE_BLOCK4_SRC_CONFIG_LOCATION__MASK		0x00000100
    884 #define VIVS_DE_BLOCK4_SRC_CONFIG_LOCATION__SHIFT		8
    885 #define VIVS_DE_BLOCK4_SRC_CONFIG_LOCATION_MEMORY		0x00000000
    886 #define VIVS_DE_BLOCK4_SRC_CONFIG_LOCATION_STREAM		0x00000100
    887 #define VIVS_DE_BLOCK4_SRC_CONFIG_PACK__MASK			0x00003000
    888 #define VIVS_DE_BLOCK4_SRC_CONFIG_PACK__SHIFT			12
    889 #define VIVS_DE_BLOCK4_SRC_CONFIG_PACK_PACKED8			0x00000000
    890 #define VIVS_DE_BLOCK4_SRC_CONFIG_PACK_PACKED16			0x00001000
    891 #define VIVS_DE_BLOCK4_SRC_CONFIG_PACK_PACKED32			0x00002000
    892 #define VIVS_DE_BLOCK4_SRC_CONFIG_PACK_UNPACKED			0x00003000
    893 #define VIVS_DE_BLOCK4_SRC_CONFIG_MONO_TRANSPARENCY__MASK	0x00008000
    894 #define VIVS_DE_BLOCK4_SRC_CONFIG_MONO_TRANSPARENCY__SHIFT	15
    895 #define VIVS_DE_BLOCK4_SRC_CONFIG_MONO_TRANSPARENCY_BACKGROUND	0x00000000
    896 #define VIVS_DE_BLOCK4_SRC_CONFIG_MONO_TRANSPARENCY_FOREGROUND	0x00008000
    897 #define VIVS_DE_BLOCK4_SRC_CONFIG_UNK16				0x00010000
    898 #define VIVS_DE_BLOCK4_SRC_CONFIG_SWIZZLE__MASK			0x00300000
    899 #define VIVS_DE_BLOCK4_SRC_CONFIG_SWIZZLE__SHIFT		20
    900 #define VIVS_DE_BLOCK4_SRC_CONFIG_SWIZZLE(x)			(((x) << VIVS_DE_BLOCK4_SRC_CONFIG_SWIZZLE__SHIFT) & VIVS_DE_BLOCK4_SRC_CONFIG_SWIZZLE__MASK)
    901 #define VIVS_DE_BLOCK4_SRC_CONFIG_SOURCE_FORMAT__MASK		0x1f000000
    902 #define VIVS_DE_BLOCK4_SRC_CONFIG_SOURCE_FORMAT__SHIFT		24
    903 #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)
    904 #define VIVS_DE_BLOCK4_SRC_CONFIG_DISABLE420_L2_CACHE		0x20000000
    905 #define VIVS_DE_BLOCK4_SRC_CONFIG_ENDIAN_CONTROL__MASK		0xc0000000
    906 #define VIVS_DE_BLOCK4_SRC_CONFIG_ENDIAN_CONTROL__SHIFT		30
    907 #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)
    908 
    909 #define VIVS_DE_BLOCK4_SRC_ORIGIN(i0)			       (0x00012840 + 0x4*(i0))
    910 #define VIVS_DE_BLOCK4_SRC_ORIGIN__ESIZE			0x00000004
    911 #define VIVS_DE_BLOCK4_SRC_ORIGIN__LEN				0x00000004
    912 #define VIVS_DE_BLOCK4_SRC_ORIGIN_X__MASK			0x0000ffff
    913 #define VIVS_DE_BLOCK4_SRC_ORIGIN_X__SHIFT			0
    914 #define VIVS_DE_BLOCK4_SRC_ORIGIN_X(x)				(((x) << VIVS_DE_BLOCK4_SRC_ORIGIN_X__SHIFT) & VIVS_DE_BLOCK4_SRC_ORIGIN_X__MASK)
    915 #define VIVS_DE_BLOCK4_SRC_ORIGIN_Y__MASK			0xffff0000
    916 #define VIVS_DE_BLOCK4_SRC_ORIGIN_Y__SHIFT			16
    917 #define VIVS_DE_BLOCK4_SRC_ORIGIN_Y(x)				(((x) << VIVS_DE_BLOCK4_SRC_ORIGIN_Y__SHIFT) & VIVS_DE_BLOCK4_SRC_ORIGIN_Y__MASK)
    918 
    919 #define VIVS_DE_BLOCK4_SRC_SIZE(i0)			       (0x00012850 + 0x4*(i0))
    920 #define VIVS_DE_BLOCK4_SRC_SIZE__ESIZE				0x00000004
    921 #define VIVS_DE_BLOCK4_SRC_SIZE__LEN				0x00000004
    922 #define VIVS_DE_BLOCK4_SRC_SIZE_X__MASK				0x0000ffff
    923 #define VIVS_DE_BLOCK4_SRC_SIZE_X__SHIFT			0
    924 #define VIVS_DE_BLOCK4_SRC_SIZE_X(x)				(((x) << VIVS_DE_BLOCK4_SRC_SIZE_X__SHIFT) & VIVS_DE_BLOCK4_SRC_SIZE_X__MASK)
    925 #define VIVS_DE_BLOCK4_SRC_SIZE_Y__MASK				0xffff0000
    926 #define VIVS_DE_BLOCK4_SRC_SIZE_Y__SHIFT			16
    927 #define VIVS_DE_BLOCK4_SRC_SIZE_Y(x)				(((x) << VIVS_DE_BLOCK4_SRC_SIZE_Y__SHIFT) & VIVS_DE_BLOCK4_SRC_SIZE_Y__MASK)
    928 
    929 #define VIVS_DE_BLOCK4_SRC_COLOR_BG(i0)			       (0x00012860 + 0x4*(i0))
    930 #define VIVS_DE_BLOCK4_SRC_COLOR_BG__ESIZE			0x00000004
    931 #define VIVS_DE_BLOCK4_SRC_COLOR_BG__LEN			0x00000004
    932 
    933 #define VIVS_DE_BLOCK4_ROP(i0)				       (0x00012870 + 0x4*(i0))
    934 #define VIVS_DE_BLOCK4_ROP__ESIZE				0x00000004
    935 #define VIVS_DE_BLOCK4_ROP__LEN					0x00000004
    936 #define VIVS_DE_BLOCK4_ROP_ROP_FG__MASK				0x000000ff
    937 #define VIVS_DE_BLOCK4_ROP_ROP_FG__SHIFT			0
    938 #define VIVS_DE_BLOCK4_ROP_ROP_FG(x)				(((x) << VIVS_DE_BLOCK4_ROP_ROP_FG__SHIFT) & VIVS_DE_BLOCK4_ROP_ROP_FG__MASK)
    939 #define VIVS_DE_BLOCK4_ROP_ROP_BG__MASK				0x0000ff00
    940 #define VIVS_DE_BLOCK4_ROP_ROP_BG__SHIFT			8
    941 #define VIVS_DE_BLOCK4_ROP_ROP_BG(x)				(((x) << VIVS_DE_BLOCK4_ROP_ROP_BG__SHIFT) & VIVS_DE_BLOCK4_ROP_ROP_BG__MASK)
    942 #define VIVS_DE_BLOCK4_ROP_TYPE__MASK				0x00300000
    943 #define VIVS_DE_BLOCK4_ROP_TYPE__SHIFT				20
    944 #define VIVS_DE_BLOCK4_ROP_TYPE_ROP2_PATTERN			0x00000000
    945 #define VIVS_DE_BLOCK4_ROP_TYPE_ROP2_SOURCE			0x00100000
    946 #define VIVS_DE_BLOCK4_ROP_TYPE_ROP3				0x00200000
    947 #define VIVS_DE_BLOCK4_ROP_TYPE_ROP4				0x00300000
    948 
    949 #define VIVS_DE_BLOCK4_ALPHA_CONTROL(i0)		       (0x00012880 + 0x4*(i0))
    950 #define VIVS_DE_BLOCK4_ALPHA_CONTROL__ESIZE			0x00000004
    951 #define VIVS_DE_BLOCK4_ALPHA_CONTROL__LEN			0x00000004
    952 #define VIVS_DE_BLOCK4_ALPHA_CONTROL_ENABLE__MASK		0x00000001
    953 #define VIVS_DE_BLOCK4_ALPHA_CONTROL_ENABLE__SHIFT		0
    954 #define VIVS_DE_BLOCK4_ALPHA_CONTROL_ENABLE_OFF			0x00000000
    955 #define VIVS_DE_BLOCK4_ALPHA_CONTROL_ENABLE_ON			0x00000001
    956 #define VIVS_DE_BLOCK4_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA__MASK	0x00ff0000
    957 #define VIVS_DE_BLOCK4_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA__SHIFT	16
    958 #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)
    959 #define VIVS_DE_BLOCK4_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA__MASK	0xff000000
    960 #define VIVS_DE_BLOCK4_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA__SHIFT	24
    961 #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)
    962 
    963 #define VIVS_DE_BLOCK4_ALPHA_MODES(i0)			       (0x00012890 + 0x4*(i0))
    964 #define VIVS_DE_BLOCK4_ALPHA_MODES__ESIZE			0x00000004
    965 #define VIVS_DE_BLOCK4_ALPHA_MODES__LEN				0x00000004
    966 #define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_ALPHA_MODE__MASK		0x00000001
    967 #define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_ALPHA_MODE__SHIFT	0
    968 #define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_ALPHA_MODE_NORMAL	0x00000000
    969 #define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_ALPHA_MODE_INVERSED	0x00000001
    970 #define VIVS_DE_BLOCK4_ALPHA_MODES_DST_ALPHA_MODE__MASK		0x00000010
    971 #define VIVS_DE_BLOCK4_ALPHA_MODES_DST_ALPHA_MODE__SHIFT	4
    972 #define VIVS_DE_BLOCK4_ALPHA_MODES_DST_ALPHA_MODE_NORMAL	0x00000000
    973 #define VIVS_DE_BLOCK4_ALPHA_MODES_DST_ALPHA_MODE_INVERSED	0x00000010
    974 #define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE__MASK	0x00000300
    975 #define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE__SHIFT	8
    976 #define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_NORMAL	0x00000000
    977 #define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_GLOBAL	0x00000100
    978 #define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_SCALED	0x00000200
    979 #define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE__MASK	0x00003000
    980 #define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE__SHIFT	12
    981 #define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE_NORMAL	0x00000000
    982 #define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE_GLOBAL	0x00001000
    983 #define VIVS_DE_BLOCK4_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE_SCALED	0x00002000
    984 #define VIVS_DE_BLOCK4_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY__MASK	0x00010000
    985 #define VIVS_DE_BLOCK4_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY__SHIFT	16
    986 #define VIVS_DE_BLOCK4_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY_DISABLE	0x00000000
    987 #define VIVS_DE_BLOCK4_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY_ENABLE	0x00010000
    988 #define VIVS_DE_BLOCK4_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY__MASK	0x00100000
    989 #define VIVS_DE_BLOCK4_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY__SHIFT	20
    990 #define VIVS_DE_BLOCK4_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY_DISABLE	0x00000000
    991 #define VIVS_DE_BLOCK4_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY_ENABLE	0x00100000
    992 #define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_BLENDING_MODE__MASK	0x07000000
    993 #define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_BLENDING_MODE__SHIFT	24
    994 #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)
    995 #define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_ALPHA_FACTOR__MASK	0x08000000
    996 #define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_ALPHA_FACTOR__SHIFT	27
    997 #define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_ALPHA_FACTOR_DISABLE	0x00000000
    998 #define VIVS_DE_BLOCK4_ALPHA_MODES_SRC_ALPHA_FACTOR_ENABLE	0x08000000
    999 #define VIVS_DE_BLOCK4_ALPHA_MODES_DST_BLENDING_MODE__MASK	0x70000000
   1000 #define VIVS_DE_BLOCK4_ALPHA_MODES_DST_BLENDING_MODE__SHIFT	28
   1001 #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)
   1002 #define VIVS_DE_BLOCK4_ALPHA_MODES_DST_ALPHA_FACTOR__MASK	0x80000000
   1003 #define VIVS_DE_BLOCK4_ALPHA_MODES_DST_ALPHA_FACTOR__SHIFT	31
   1004 #define VIVS_DE_BLOCK4_ALPHA_MODES_DST_ALPHA_FACTOR_DISABLE	0x00000000
   1005 #define VIVS_DE_BLOCK4_ALPHA_MODES_DST_ALPHA_FACTOR_ENABLE	0x80000000
   1006 
   1007 #define VIVS_DE_BLOCK4_ADDRESS_U(i0)			       (0x000128a0 + 0x4*(i0))
   1008 #define VIVS_DE_BLOCK4_ADDRESS_U__ESIZE				0x00000004
   1009 #define VIVS_DE_BLOCK4_ADDRESS_U__LEN				0x00000004
   1010 
   1011 #define VIVS_DE_BLOCK4_STRIDE_U(i0)			       (0x000128b0 + 0x4*(i0))
   1012 #define VIVS_DE_BLOCK4_STRIDE_U__ESIZE				0x00000004
   1013 #define VIVS_DE_BLOCK4_STRIDE_U__LEN				0x00000004
   1014 #define VIVS_DE_BLOCK4_STRIDE_U_STRIDE__MASK			0x0003ffff
   1015 #define VIVS_DE_BLOCK4_STRIDE_U_STRIDE__SHIFT			0
   1016 #define VIVS_DE_BLOCK4_STRIDE_U_STRIDE(x)			(((x) << VIVS_DE_BLOCK4_STRIDE_U_STRIDE__SHIFT) & VIVS_DE_BLOCK4_STRIDE_U_STRIDE__MASK)
   1017 
   1018 #define VIVS_DE_BLOCK4_ADDRESS_V(i0)			       (0x000128c0 + 0x4*(i0))
   1019 #define VIVS_DE_BLOCK4_ADDRESS_V__ESIZE				0x00000004
   1020 #define VIVS_DE_BLOCK4_ADDRESS_V__LEN				0x00000004
   1021 
   1022 #define VIVS_DE_BLOCK4_STRIDE_V(i0)			       (0x000128d0 + 0x4*(i0))
   1023 #define VIVS_DE_BLOCK4_STRIDE_V__ESIZE				0x00000004
   1024 #define VIVS_DE_BLOCK4_STRIDE_V__LEN				0x00000004
   1025 #define VIVS_DE_BLOCK4_STRIDE_V_STRIDE__MASK			0x0003ffff
   1026 #define VIVS_DE_BLOCK4_STRIDE_V_STRIDE__SHIFT			0
   1027 #define VIVS_DE_BLOCK4_STRIDE_V_STRIDE(x)			(((x) << VIVS_DE_BLOCK4_STRIDE_V_STRIDE__SHIFT) & VIVS_DE_BLOCK4_STRIDE_V_STRIDE__MASK)
   1028 
   1029 #define VIVS_DE_BLOCK4_SRC_ROTATION_HEIGHT(i0)		       (0x000128e0 + 0x4*(i0))
   1030 #define VIVS_DE_BLOCK4_SRC_ROTATION_HEIGHT__ESIZE		0x00000004
   1031 #define VIVS_DE_BLOCK4_SRC_ROTATION_HEIGHT__LEN			0x00000004
   1032 #define VIVS_DE_BLOCK4_SRC_ROTATION_HEIGHT_HEIGHT__MASK		0x0000ffff
   1033 #define VIVS_DE_BLOCK4_SRC_ROTATION_HEIGHT_HEIGHT__SHIFT	0
   1034 #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)
   1035 
   1036 #define VIVS_DE_BLOCK4_ROT_ANGLE(i0)			       (0x000128f0 + 0x4*(i0))
   1037 #define VIVS_DE_BLOCK4_ROT_ANGLE__ESIZE				0x00000004
   1038 #define VIVS_DE_BLOCK4_ROT_ANGLE__LEN				0x00000004
   1039 #define VIVS_DE_BLOCK4_ROT_ANGLE_SRC__MASK			0x00000007
   1040 #define VIVS_DE_BLOCK4_ROT_ANGLE_SRC__SHIFT			0
   1041 #define VIVS_DE_BLOCK4_ROT_ANGLE_SRC(x)				(((x) << VIVS_DE_BLOCK4_ROT_ANGLE_SRC__SHIFT) & VIVS_DE_BLOCK4_ROT_ANGLE_SRC__MASK)
   1042 #define VIVS_DE_BLOCK4_ROT_ANGLE_DST__MASK			0x00000038
   1043 #define VIVS_DE_BLOCK4_ROT_ANGLE_DST__SHIFT			3
   1044 #define VIVS_DE_BLOCK4_ROT_ANGLE_DST(x)				(((x) << VIVS_DE_BLOCK4_ROT_ANGLE_DST__SHIFT) & VIVS_DE_BLOCK4_ROT_ANGLE_DST__MASK)
   1045 #define VIVS_DE_BLOCK4_ROT_ANGLE_SRC_MASK			0x00000100
   1046 #define VIVS_DE_BLOCK4_ROT_ANGLE_DST_MASK			0x00000200
   1047 #define VIVS_DE_BLOCK4_ROT_ANGLE_SRC_MIRROR__MASK		0x00003000
   1048 #define VIVS_DE_BLOCK4_ROT_ANGLE_SRC_MIRROR__SHIFT		12
   1049 #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)
   1050 #define VIVS_DE_BLOCK4_ROT_ANGLE_SRC_MIRROR_MASK		0x00008000
   1051 #define VIVS_DE_BLOCK4_ROT_ANGLE_DST_MIRROR__MASK		0x00030000
   1052 #define VIVS_DE_BLOCK4_ROT_ANGLE_DST_MIRROR__SHIFT		16
   1053 #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)
   1054 #define VIVS_DE_BLOCK4_ROT_ANGLE_DST_MIRROR_MASK		0x00080000
   1055 
   1056 #define VIVS_DE_BLOCK4_GLOBAL_SRC_COLOR(i0)		       (0x00012900 + 0x4*(i0))
   1057 #define VIVS_DE_BLOCK4_GLOBAL_SRC_COLOR__ESIZE			0x00000004
   1058 #define VIVS_DE_BLOCK4_GLOBAL_SRC_COLOR__LEN			0x00000004
   1059 
   1060 #define VIVS_DE_BLOCK4_GLOBAL_DEST_COLOR(i0)		       (0x00012910 + 0x4*(i0))
   1061 #define VIVS_DE_BLOCK4_GLOBAL_DEST_COLOR__ESIZE			0x00000004
   1062 #define VIVS_DE_BLOCK4_GLOBAL_DEST_COLOR__LEN			0x00000004
   1063 
   1064 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES(i0)		       (0x00012920 + 0x4*(i0))
   1065 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES__ESIZE		0x00000004
   1066 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES__LEN		0x00000004
   1067 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY__MASK	0x00000001
   1068 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY__SHIFT	0
   1069 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY_DISABLE	0x00000000
   1070 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY_ENABLE	0x00000001
   1071 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY__MASK	0x00000010
   1072 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY__SHIFT	4
   1073 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY_DISABLE	0x00000000
   1074 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY_ENABLE	0x00000010
   1075 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY__MASK	0x00000300
   1076 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY__SHIFT	8
   1077 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY_DISABLE	0x00000000
   1078 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY_ALPHA	0x00000100
   1079 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY_COLOR	0x00000200
   1080 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY__MASK	0x00100000
   1081 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY__SHIFT	20
   1082 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY_DISABLE	0x00000000
   1083 #define VIVS_DE_BLOCK4_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY_ENABLE	0x00100000
   1084 
   1085 #define VIVS_DE_BLOCK4_TRANSPARENCY(i0)			       (0x00012930 + 0x4*(i0))
   1086 #define VIVS_DE_BLOCK4_TRANSPARENCY__ESIZE			0x00000004
   1087 #define VIVS_DE_BLOCK4_TRANSPARENCY__LEN			0x00000004
   1088 #define VIVS_DE_BLOCK4_TRANSPARENCY_SOURCE__MASK		0x00000003
   1089 #define VIVS_DE_BLOCK4_TRANSPARENCY_SOURCE__SHIFT		0
   1090 #define VIVS_DE_BLOCK4_TRANSPARENCY_SOURCE_OPAQUE		0x00000000
   1091 #define VIVS_DE_BLOCK4_TRANSPARENCY_SOURCE_MASK			0x00000001
   1092 #define VIVS_DE_BLOCK4_TRANSPARENCY_SOURCE_KEY			0x00000002
   1093 #define VIVS_DE_BLOCK4_TRANSPARENCY_PATTERN__MASK		0x00000030
   1094 #define VIVS_DE_BLOCK4_TRANSPARENCY_PATTERN__SHIFT		4
   1095 #define VIVS_DE_BLOCK4_TRANSPARENCY_PATTERN_OPAQUE		0x00000000
   1096 #define VIVS_DE_BLOCK4_TRANSPARENCY_PATTERN_MASK		0x00000010
   1097 #define VIVS_DE_BLOCK4_TRANSPARENCY_PATTERN_KEY			0x00000020
   1098 #define VIVS_DE_BLOCK4_TRANSPARENCY_DESTINATION__MASK		0x00000300
   1099 #define VIVS_DE_BLOCK4_TRANSPARENCY_DESTINATION__SHIFT		8
   1100 #define VIVS_DE_BLOCK4_TRANSPARENCY_DESTINATION_OPAQUE		0x00000000
   1101 #define VIVS_DE_BLOCK4_TRANSPARENCY_DESTINATION_MASK		0x00000100
   1102 #define VIVS_DE_BLOCK4_TRANSPARENCY_DESTINATION_KEY		0x00000200
   1103 #define VIVS_DE_BLOCK4_TRANSPARENCY_TRANSPARENCY_MASK		0x00001000
   1104 #define VIVS_DE_BLOCK4_TRANSPARENCY_USE_SRC_OVERRIDE__MASK	0x00030000
   1105 #define VIVS_DE_BLOCK4_TRANSPARENCY_USE_SRC_OVERRIDE__SHIFT	16
   1106 #define VIVS_DE_BLOCK4_TRANSPARENCY_USE_SRC_OVERRIDE_DEFAULT	0x00000000
   1107 #define VIVS_DE_BLOCK4_TRANSPARENCY_USE_SRC_OVERRIDE_USE_ENABLE	0x00010000
   1108 #define VIVS_DE_BLOCK4_TRANSPARENCY_USE_SRC_OVERRIDE_USE_DISABLE	0x00020000
   1109 #define VIVS_DE_BLOCK4_TRANSPARENCY_USE_PAT_OVERRIDE__MASK	0x00300000
   1110 #define VIVS_DE_BLOCK4_TRANSPARENCY_USE_PAT_OVERRIDE__SHIFT	20
   1111 #define VIVS_DE_BLOCK4_TRANSPARENCY_USE_PAT_OVERRIDE_DEFAULT	0x00000000
   1112 #define VIVS_DE_BLOCK4_TRANSPARENCY_USE_PAT_OVERRIDE_USE_ENABLE	0x00100000
   1113 #define VIVS_DE_BLOCK4_TRANSPARENCY_USE_PAT_OVERRIDE_USE_DISABLE	0x00200000
   1114 #define VIVS_DE_BLOCK4_TRANSPARENCY_USE_DST_OVERRIDE__MASK	0x03000000
   1115 #define VIVS_DE_BLOCK4_TRANSPARENCY_USE_DST_OVERRIDE__SHIFT	24
   1116 #define VIVS_DE_BLOCK4_TRANSPARENCY_USE_DST_OVERRIDE_DEFAULT	0x00000000
   1117 #define VIVS_DE_BLOCK4_TRANSPARENCY_USE_DST_OVERRIDE_USE_ENABLE	0x01000000
   1118 #define VIVS_DE_BLOCK4_TRANSPARENCY_USE_DST_OVERRIDE_USE_DISABLE	0x02000000
   1119 #define VIVS_DE_BLOCK4_TRANSPARENCY_RESOURCE_OVERRIDE_MASK	0x10000000
   1120 #define VIVS_DE_BLOCK4_TRANSPARENCY_DFB_COLOR_KEY__MASK		0x20000000
   1121 #define VIVS_DE_BLOCK4_TRANSPARENCY_DFB_COLOR_KEY__SHIFT	29
   1122 #define VIVS_DE_BLOCK4_TRANSPARENCY_DFB_COLOR_KEY_DISABLE	0x00000000
   1123 #define VIVS_DE_BLOCK4_TRANSPARENCY_DFB_COLOR_KEY_ENABLE	0x20000000
   1124 #define VIVS_DE_BLOCK4_TRANSPARENCY_DFB_COLOR_KEY_MASK		0x80000000
   1125 
   1126 #define VIVS_DE_BLOCK4_CONTROL(i0)			       (0x00012940 + 0x4*(i0))
   1127 #define VIVS_DE_BLOCK4_CONTROL__ESIZE				0x00000004
   1128 #define VIVS_DE_BLOCK4_CONTROL__LEN				0x00000004
   1129 #define VIVS_DE_BLOCK4_CONTROL_YUV__MASK			0x00000001
   1130 #define VIVS_DE_BLOCK4_CONTROL_YUV__SHIFT			0
   1131 #define VIVS_DE_BLOCK4_CONTROL_YUV_601				0x00000000
   1132 #define VIVS_DE_BLOCK4_CONTROL_YUV_709				0x00000001
   1133 #define VIVS_DE_BLOCK4_CONTROL_YUV_MASK				0x00000008
   1134 #define VIVS_DE_BLOCK4_CONTROL_UV_SWIZZLE__MASK			0x00000010
   1135 #define VIVS_DE_BLOCK4_CONTROL_UV_SWIZZLE__SHIFT		4
   1136 #define VIVS_DE_BLOCK4_CONTROL_UV_SWIZZLE_UV			0x00000000
   1137 #define VIVS_DE_BLOCK4_CONTROL_UV_SWIZZLE_VU			0x00000010
   1138 #define VIVS_DE_BLOCK4_CONTROL_UV_SWIZZLE_MASK			0x00000080
   1139 #define VIVS_DE_BLOCK4_CONTROL_YUVRGB__MASK			0x00000100
   1140 #define VIVS_DE_BLOCK4_CONTROL_YUVRGB__SHIFT			8
   1141 #define VIVS_DE_BLOCK4_CONTROL_YUVRGB_DISABLE			0x00000000
   1142 #define VIVS_DE_BLOCK4_CONTROL_YUVRGB_ENABLE			0x00000100
   1143 #define VIVS_DE_BLOCK4_CONTROL_YUVRGB_MASK			0x00000800
   1144 
   1145 #define VIVS_DE_BLOCK4_SRC_COLOR_KEY_HIGH(i0)		       (0x00012950 + 0x4*(i0))
   1146 #define VIVS_DE_BLOCK4_SRC_COLOR_KEY_HIGH__ESIZE		0x00000004
   1147 #define VIVS_DE_BLOCK4_SRC_COLOR_KEY_HIGH__LEN			0x00000004
   1148 
   1149 #define VIVS_DE_BLOCK4_SRC_EX_CONFIG(i0)		       (0x00012960 + 0x4*(i0))
   1150 #define VIVS_DE_BLOCK4_SRC_EX_CONFIG__ESIZE			0x00000004
   1151 #define VIVS_DE_BLOCK4_SRC_EX_CONFIG__LEN			0x00000004
   1152 #define VIVS_DE_BLOCK4_SRC_EX_CONFIG_MULTI_TILED__MASK		0x00000001
   1153 #define VIVS_DE_BLOCK4_SRC_EX_CONFIG_MULTI_TILED__SHIFT		0
   1154 #define VIVS_DE_BLOCK4_SRC_EX_CONFIG_MULTI_TILED_DISABLE	0x00000000
   1155 #define VIVS_DE_BLOCK4_SRC_EX_CONFIG_MULTI_TILED_ENABLE		0x00000001
   1156 #define VIVS_DE_BLOCK4_SRC_EX_CONFIG_SUPER_TILED__MASK		0x00000008
   1157 #define VIVS_DE_BLOCK4_SRC_EX_CONFIG_SUPER_TILED__SHIFT		3
   1158 #define VIVS_DE_BLOCK4_SRC_EX_CONFIG_SUPER_TILED_DISABLE	0x00000000
   1159 #define VIVS_DE_BLOCK4_SRC_EX_CONFIG_SUPER_TILED_ENABLE		0x00000008
   1160 #define VIVS_DE_BLOCK4_SRC_EX_CONFIG_MINOR_TILED__MASK		0x00000100
   1161 #define VIVS_DE_BLOCK4_SRC_EX_CONFIG_MINOR_TILED__SHIFT		8
   1162 #define VIVS_DE_BLOCK4_SRC_EX_CONFIG_MINOR_TILED_DISABLE	0x00000000
   1163 #define VIVS_DE_BLOCK4_SRC_EX_CONFIG_MINOR_TILED_ENABLE		0x00000100
   1164 
   1165 #define VIVS_DE_BLOCK4_SRC_EX_ADDRESS(i0)		       (0x00012970 + 0x4*(i0))
   1166 #define VIVS_DE_BLOCK4_SRC_EX_ADDRESS__ESIZE			0x00000004
   1167 #define VIVS_DE_BLOCK4_SRC_EX_ADDRESS__LEN			0x00000004
   1168 
   1169 #define VIVS_DE_BLOCK8						0x00000000
   1170 
   1171 #define VIVS_DE_BLOCK8_SRC_ADDRESS(i0)			       (0x00012a00 + 0x4*(i0))
   1172 #define VIVS_DE_BLOCK8_SRC_ADDRESS__ESIZE			0x00000004
   1173 #define VIVS_DE_BLOCK8_SRC_ADDRESS__LEN				0x00000008
   1174 
   1175 #define VIVS_DE_BLOCK8_SRC_STRIDE(i0)			       (0x00012a20 + 0x4*(i0))
   1176 #define VIVS_DE_BLOCK8_SRC_STRIDE__ESIZE			0x00000004
   1177 #define VIVS_DE_BLOCK8_SRC_STRIDE__LEN				0x00000008
   1178 #define VIVS_DE_BLOCK8_SRC_STRIDE_STRIDE__MASK			0x0003ffff
   1179 #define VIVS_DE_BLOCK8_SRC_STRIDE_STRIDE__SHIFT			0
   1180 #define VIVS_DE_BLOCK8_SRC_STRIDE_STRIDE(x)			(((x) << VIVS_DE_BLOCK8_SRC_STRIDE_STRIDE__SHIFT) & VIVS_DE_BLOCK8_SRC_STRIDE_STRIDE__MASK)
   1181 
   1182 #define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG(i0)		       (0x00012a40 + 0x4*(i0))
   1183 #define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG__ESIZE		0x00000004
   1184 #define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG__LEN			0x00000008
   1185 #define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG_WIDTH__MASK		0x0000ffff
   1186 #define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG_WIDTH__SHIFT		0
   1187 #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)
   1188 #define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG_ROTATION__MASK	0x00010000
   1189 #define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG_ROTATION__SHIFT	16
   1190 #define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG_ROTATION_DISABLE	0x00000000
   1191 #define VIVS_DE_BLOCK8_SRC_ROTATION_CONFIG_ROTATION_ENABLE	0x00010000
   1192 
   1193 #define VIVS_DE_BLOCK8_SRC_CONFIG(i0)			       (0x00012a60 + 0x4*(i0))
   1194 #define VIVS_DE_BLOCK8_SRC_CONFIG__ESIZE			0x00000004
   1195 #define VIVS_DE_BLOCK8_SRC_CONFIG__LEN				0x00000008
   1196 #define VIVS_DE_BLOCK8_SRC_CONFIG_PE10_SOURCE_FORMAT__MASK	0x0000000f
   1197 #define VIVS_DE_BLOCK8_SRC_CONFIG_PE10_SOURCE_FORMAT__SHIFT	0
   1198 #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)
   1199 #define VIVS_DE_BLOCK8_SRC_CONFIG_TRANSPARENCY__MASK		0x00000030
   1200 #define VIVS_DE_BLOCK8_SRC_CONFIG_TRANSPARENCY__SHIFT		4
   1201 #define VIVS_DE_BLOCK8_SRC_CONFIG_TRANSPARENCY(x)		(((x) << VIVS_DE_BLOCK8_SRC_CONFIG_TRANSPARENCY__SHIFT) & VIVS_DE_BLOCK8_SRC_CONFIG_TRANSPARENCY__MASK)
   1202 #define VIVS_DE_BLOCK8_SRC_CONFIG_SRC_RELATIVE__MASK		0x00000040
   1203 #define VIVS_DE_BLOCK8_SRC_CONFIG_SRC_RELATIVE__SHIFT		6
   1204 #define VIVS_DE_BLOCK8_SRC_CONFIG_SRC_RELATIVE_ABSOLUTE		0x00000000
   1205 #define VIVS_DE_BLOCK8_SRC_CONFIG_SRC_RELATIVE_RELATIVE		0x00000040
   1206 #define VIVS_DE_BLOCK8_SRC_CONFIG_TILED__MASK			0x00000080
   1207 #define VIVS_DE_BLOCK8_SRC_CONFIG_TILED__SHIFT			7
   1208 #define VIVS_DE_BLOCK8_SRC_CONFIG_TILED_DISABLE			0x00000000
   1209 #define VIVS_DE_BLOCK8_SRC_CONFIG_TILED_ENABLE			0x00000080
   1210 #define VIVS_DE_BLOCK8_SRC_CONFIG_LOCATION__MASK		0x00000100
   1211 #define VIVS_DE_BLOCK8_SRC_CONFIG_LOCATION__SHIFT		8
   1212 #define VIVS_DE_BLOCK8_SRC_CONFIG_LOCATION_MEMORY		0x00000000
   1213 #define VIVS_DE_BLOCK8_SRC_CONFIG_LOCATION_STREAM		0x00000100
   1214 #define VIVS_DE_BLOCK8_SRC_CONFIG_PACK__MASK			0x00003000
   1215 #define VIVS_DE_BLOCK8_SRC_CONFIG_PACK__SHIFT			12
   1216 #define VIVS_DE_BLOCK8_SRC_CONFIG_PACK_PACKED8			0x00000000
   1217 #define VIVS_DE_BLOCK8_SRC_CONFIG_PACK_PACKED16			0x00001000
   1218 #define VIVS_DE_BLOCK8_SRC_CONFIG_PACK_PACKED32			0x00002000
   1219 #define VIVS_DE_BLOCK8_SRC_CONFIG_PACK_UNPACKED			0x00003000
   1220 #define VIVS_DE_BLOCK8_SRC_CONFIG_MONO_TRANSPARENCY__MASK	0x00008000
   1221 #define VIVS_DE_BLOCK8_SRC_CONFIG_MONO_TRANSPARENCY__SHIFT	15
   1222 #define VIVS_DE_BLOCK8_SRC_CONFIG_MONO_TRANSPARENCY_BACKGROUND	0x00000000
   1223 #define VIVS_DE_BLOCK8_SRC_CONFIG_MONO_TRANSPARENCY_FOREGROUND	0x00008000
   1224 #define VIVS_DE_BLOCK8_SRC_CONFIG_UNK16				0x00010000
   1225 #define VIVS_DE_BLOCK8_SRC_CONFIG_SWIZZLE__MASK			0x00300000
   1226 #define VIVS_DE_BLOCK8_SRC_CONFIG_SWIZZLE__SHIFT		20
   1227 #define VIVS_DE_BLOCK8_SRC_CONFIG_SWIZZLE(x)			(((x) << VIVS_DE_BLOCK8_SRC_CONFIG_SWIZZLE__SHIFT) & VIVS_DE_BLOCK8_SRC_CONFIG_SWIZZLE__MASK)
   1228 #define VIVS_DE_BLOCK8_SRC_CONFIG_SOURCE_FORMAT__MASK		0x1f000000
   1229 #define VIVS_DE_BLOCK8_SRC_CONFIG_SOURCE_FORMAT__SHIFT		24
   1230 #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)
   1231 #define VIVS_DE_BLOCK8_SRC_CONFIG_DISABLE420_L2_CACHE		0x20000000
   1232 #define VIVS_DE_BLOCK8_SRC_CONFIG_ENDIAN_CONTROL__MASK		0xc0000000
   1233 #define VIVS_DE_BLOCK8_SRC_CONFIG_ENDIAN_CONTROL__SHIFT		30
   1234 #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)
   1235 
   1236 #define VIVS_DE_BLOCK8_SRC_ORIGIN(i0)			       (0x00012a80 + 0x4*(i0))
   1237 #define VIVS_DE_BLOCK8_SRC_ORIGIN__ESIZE			0x00000004
   1238 #define VIVS_DE_BLOCK8_SRC_ORIGIN__LEN				0x00000008
   1239 #define VIVS_DE_BLOCK8_SRC_ORIGIN_X__MASK			0x0000ffff
   1240 #define VIVS_DE_BLOCK8_SRC_ORIGIN_X__SHIFT			0
   1241 #define VIVS_DE_BLOCK8_SRC_ORIGIN_X(x)				(((x) << VIVS_DE_BLOCK8_SRC_ORIGIN_X__SHIFT) & VIVS_DE_BLOCK8_SRC_ORIGIN_X__MASK)
   1242 #define VIVS_DE_BLOCK8_SRC_ORIGIN_Y__MASK			0xffff0000
   1243 #define VIVS_DE_BLOCK8_SRC_ORIGIN_Y__SHIFT			16
   1244 #define VIVS_DE_BLOCK8_SRC_ORIGIN_Y(x)				(((x) << VIVS_DE_BLOCK8_SRC_ORIGIN_Y__SHIFT) & VIVS_DE_BLOCK8_SRC_ORIGIN_Y__MASK)
   1245 
   1246 #define VIVS_DE_BLOCK8_SRC_SIZE(i0)			       (0x00012aa0 + 0x4*(i0))
   1247 #define VIVS_DE_BLOCK8_SRC_SIZE__ESIZE				0x00000004
   1248 #define VIVS_DE_BLOCK8_SRC_SIZE__LEN				0x00000008
   1249 #define VIVS_DE_BLOCK8_SRC_SIZE_X__MASK				0x0000ffff
   1250 #define VIVS_DE_BLOCK8_SRC_SIZE_X__SHIFT			0
   1251 #define VIVS_DE_BLOCK8_SRC_SIZE_X(x)				(((x) << VIVS_DE_BLOCK8_SRC_SIZE_X__SHIFT) & VIVS_DE_BLOCK8_SRC_SIZE_X__MASK)
   1252 #define VIVS_DE_BLOCK8_SRC_SIZE_Y__MASK				0xffff0000
   1253 #define VIVS_DE_BLOCK8_SRC_SIZE_Y__SHIFT			16
   1254 #define VIVS_DE_BLOCK8_SRC_SIZE_Y(x)				(((x) << VIVS_DE_BLOCK8_SRC_SIZE_Y__SHIFT) & VIVS_DE_BLOCK8_SRC_SIZE_Y__MASK)
   1255 
   1256 #define VIVS_DE_BLOCK8_SRC_COLOR_BG(i0)			       (0x00012ac0 + 0x4*(i0))
   1257 #define VIVS_DE_BLOCK8_SRC_COLOR_BG__ESIZE			0x00000004
   1258 #define VIVS_DE_BLOCK8_SRC_COLOR_BG__LEN			0x00000008
   1259 
   1260 #define VIVS_DE_BLOCK8_ROP(i0)				       (0x00012ae0 + 0x4*(i0))
   1261 #define VIVS_DE_BLOCK8_ROP__ESIZE				0x00000004
   1262 #define VIVS_DE_BLOCK8_ROP__LEN					0x00000008
   1263 #define VIVS_DE_BLOCK8_ROP_ROP_FG__MASK				0x000000ff
   1264 #define VIVS_DE_BLOCK8_ROP_ROP_FG__SHIFT			0
   1265 #define VIVS_DE_BLOCK8_ROP_ROP_FG(x)				(((x) << VIVS_DE_BLOCK8_ROP_ROP_FG__SHIFT) & VIVS_DE_BLOCK8_ROP_ROP_FG__MASK)
   1266 #define VIVS_DE_BLOCK8_ROP_ROP_BG__MASK				0x0000ff00
   1267 #define VIVS_DE_BLOCK8_ROP_ROP_BG__SHIFT			8
   1268 #define VIVS_DE_BLOCK8_ROP_ROP_BG(x)				(((x) << VIVS_DE_BLOCK8_ROP_ROP_BG__SHIFT) & VIVS_DE_BLOCK8_ROP_ROP_BG__MASK)
   1269 #define VIVS_DE_BLOCK8_ROP_TYPE__MASK				0x00300000
   1270 #define VIVS_DE_BLOCK8_ROP_TYPE__SHIFT				20
   1271 #define VIVS_DE_BLOCK8_ROP_TYPE_ROP2_PATTERN			0x00000000
   1272 #define VIVS_DE_BLOCK8_ROP_TYPE_ROP2_SOURCE			0x00100000
   1273 #define VIVS_DE_BLOCK8_ROP_TYPE_ROP3				0x00200000
   1274 #define VIVS_DE_BLOCK8_ROP_TYPE_ROP4				0x00300000
   1275 
   1276 #define VIVS_DE_BLOCK8_ALPHA_CONTROL(i0)		       (0x00012b00 + 0x4*(i0))
   1277 #define VIVS_DE_BLOCK8_ALPHA_CONTROL__ESIZE			0x00000004
   1278 #define VIVS_DE_BLOCK8_ALPHA_CONTROL__LEN			0x00000008
   1279 #define VIVS_DE_BLOCK8_ALPHA_CONTROL_ENABLE__MASK		0x00000001
   1280 #define VIVS_DE_BLOCK8_ALPHA_CONTROL_ENABLE__SHIFT		0
   1281 #define VIVS_DE_BLOCK8_ALPHA_CONTROL_ENABLE_OFF			0x00000000
   1282 #define VIVS_DE_BLOCK8_ALPHA_CONTROL_ENABLE_ON			0x00000001
   1283 #define VIVS_DE_BLOCK8_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA__MASK	0x00ff0000
   1284 #define VIVS_DE_BLOCK8_ALPHA_CONTROL_PE10_GLOBAL_SRC_ALPHA__SHIFT	16
   1285 #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)
   1286 #define VIVS_DE_BLOCK8_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA__MASK	0xff000000
   1287 #define VIVS_DE_BLOCK8_ALPHA_CONTROL_PE10_GLOBAL_DST_ALPHA__SHIFT	24
   1288 #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)
   1289 
   1290 #define VIVS_DE_BLOCK8_ALPHA_MODES(i0)			       (0x00012b20 + 0x4*(i0))
   1291 #define VIVS_DE_BLOCK8_ALPHA_MODES__ESIZE			0x00000004
   1292 #define VIVS_DE_BLOCK8_ALPHA_MODES__LEN				0x00000008
   1293 #define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_ALPHA_MODE__MASK		0x00000001
   1294 #define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_ALPHA_MODE__SHIFT	0
   1295 #define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_ALPHA_MODE_NORMAL	0x00000000
   1296 #define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_ALPHA_MODE_INVERSED	0x00000001
   1297 #define VIVS_DE_BLOCK8_ALPHA_MODES_DST_ALPHA_MODE__MASK		0x00000010
   1298 #define VIVS_DE_BLOCK8_ALPHA_MODES_DST_ALPHA_MODE__SHIFT	4
   1299 #define VIVS_DE_BLOCK8_ALPHA_MODES_DST_ALPHA_MODE_NORMAL	0x00000000
   1300 #define VIVS_DE_BLOCK8_ALPHA_MODES_DST_ALPHA_MODE_INVERSED	0x00000010
   1301 #define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE__MASK	0x00000300
   1302 #define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE__SHIFT	8
   1303 #define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_NORMAL	0x00000000
   1304 #define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_GLOBAL	0x00000100
   1305 #define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_SRC_ALPHA_MODE_SCALED	0x00000200
   1306 #define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE__MASK	0x00003000
   1307 #define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE__SHIFT	12
   1308 #define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE_NORMAL	0x00000000
   1309 #define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE_GLOBAL	0x00001000
   1310 #define VIVS_DE_BLOCK8_ALPHA_MODES_GLOBAL_DST_ALPHA_MODE_SCALED	0x00002000
   1311 #define VIVS_DE_BLOCK8_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY__MASK	0x00010000
   1312 #define VIVS_DE_BLOCK8_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY__SHIFT	16
   1313 #define VIVS_DE_BLOCK8_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY_DISABLE	0x00000000
   1314 #define VIVS_DE_BLOCK8_ALPHA_MODES_PE10_SRC_COLOR_MULTIPLY_ENABLE	0x00010000
   1315 #define VIVS_DE_BLOCK8_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY__MASK	0x00100000
   1316 #define VIVS_DE_BLOCK8_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY__SHIFT	20
   1317 #define VIVS_DE_BLOCK8_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY_DISABLE	0x00000000
   1318 #define VIVS_DE_BLOCK8_ALPHA_MODES_PE10_DST_COLOR_MULTIPLY_ENABLE	0x00100000
   1319 #define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_BLENDING_MODE__MASK	0x07000000
   1320 #define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_BLENDING_MODE__SHIFT	24
   1321 #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)
   1322 #define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_ALPHA_FACTOR__MASK	0x08000000
   1323 #define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_ALPHA_FACTOR__SHIFT	27
   1324 #define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_ALPHA_FACTOR_DISABLE	0x00000000
   1325 #define VIVS_DE_BLOCK8_ALPHA_MODES_SRC_ALPHA_FACTOR_ENABLE	0x08000000
   1326 #define VIVS_DE_BLOCK8_ALPHA_MODES_DST_BLENDING_MODE__MASK	0x70000000
   1327 #define VIVS_DE_BLOCK8_ALPHA_MODES_DST_BLENDING_MODE__SHIFT	28
   1328 #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)
   1329 #define VIVS_DE_BLOCK8_ALPHA_MODES_DST_ALPHA_FACTOR__MASK	0x80000000
   1330 #define VIVS_DE_BLOCK8_ALPHA_MODES_DST_ALPHA_FACTOR__SHIFT	31
   1331 #define VIVS_DE_BLOCK8_ALPHA_MODES_DST_ALPHA_FACTOR_DISABLE	0x00000000
   1332 #define VIVS_DE_BLOCK8_ALPHA_MODES_DST_ALPHA_FACTOR_ENABLE	0x80000000
   1333 
   1334 #define VIVS_DE_BLOCK8_ADDRESS_U(i0)			       (0x00012b40 + 0x4*(i0))
   1335 #define VIVS_DE_BLOCK8_ADDRESS_U__ESIZE				0x00000004
   1336 #define VIVS_DE_BLOCK8_ADDRESS_U__LEN				0x00000008
   1337 
   1338 #define VIVS_DE_BLOCK8_STRIDE_U(i0)			       (0x00012b60 + 0x4*(i0))
   1339 #define VIVS_DE_BLOCK8_STRIDE_U__ESIZE				0x00000004
   1340 #define VIVS_DE_BLOCK8_STRIDE_U__LEN				0x00000008
   1341 #define VIVS_DE_BLOCK8_STRIDE_U_STRIDE__MASK			0x0003ffff
   1342 #define VIVS_DE_BLOCK8_STRIDE_U_STRIDE__SHIFT			0
   1343 #define VIVS_DE_BLOCK8_STRIDE_U_STRIDE(x)			(((x) << VIVS_DE_BLOCK8_STRIDE_U_STRIDE__SHIFT) & VIVS_DE_BLOCK8_STRIDE_U_STRIDE__MASK)
   1344 
   1345 #define VIVS_DE_BLOCK8_ADDRESS_V(i0)			       (0x00012b80 + 0x4*(i0))
   1346 #define VIVS_DE_BLOCK8_ADDRESS_V__ESIZE				0x00000004
   1347 #define VIVS_DE_BLOCK8_ADDRESS_V__LEN				0x00000008
   1348 
   1349 #define VIVS_DE_BLOCK8_STRIDE_V(i0)			       (0x00012ba0 + 0x4*(i0))
   1350 #define VIVS_DE_BLOCK8_STRIDE_V__ESIZE				0x00000004
   1351 #define VIVS_DE_BLOCK8_STRIDE_V__LEN				0x00000008
   1352 #define VIVS_DE_BLOCK8_STRIDE_V_STRIDE__MASK			0x0003ffff
   1353 #define VIVS_DE_BLOCK8_STRIDE_V_STRIDE__SHIFT			0
   1354 #define VIVS_DE_BLOCK8_STRIDE_V_STRIDE(x)			(((x) << VIVS_DE_BLOCK8_STRIDE_V_STRIDE__SHIFT) & VIVS_DE_BLOCK8_STRIDE_V_STRIDE__MASK)
   1355 
   1356 #define VIVS_DE_BLOCK8_SRC_ROTATION_HEIGHT(i0)		       (0x00012bc0 + 0x4*(i0))
   1357 #define VIVS_DE_BLOCK8_SRC_ROTATION_HEIGHT__ESIZE		0x00000004
   1358 #define VIVS_DE_BLOCK8_SRC_ROTATION_HEIGHT__LEN			0x00000008
   1359 #define VIVS_DE_BLOCK8_SRC_ROTATION_HEIGHT_HEIGHT__MASK		0x0000ffff
   1360 #define VIVS_DE_BLOCK8_SRC_ROTATION_HEIGHT_HEIGHT__SHIFT	0
   1361 #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)
   1362 
   1363 #define VIVS_DE_BLOCK8_ROT_ANGLE(i0)			       (0x00012be0 + 0x4*(i0))
   1364 #define VIVS_DE_BLOCK8_ROT_ANGLE__ESIZE				0x00000004
   1365 #define VIVS_DE_BLOCK8_ROT_ANGLE__LEN				0x00000008
   1366 #define VIVS_DE_BLOCK8_ROT_ANGLE_SRC__MASK			0x00000007
   1367 #define VIVS_DE_BLOCK8_ROT_ANGLE_SRC__SHIFT			0
   1368 #define VIVS_DE_BLOCK8_ROT_ANGLE_SRC(x)				(((x) << VIVS_DE_BLOCK8_ROT_ANGLE_SRC__SHIFT) & VIVS_DE_BLOCK8_ROT_ANGLE_SRC__MASK)
   1369 #define VIVS_DE_BLOCK8_ROT_ANGLE_DST__MASK			0x00000038
   1370 #define VIVS_DE_BLOCK8_ROT_ANGLE_DST__SHIFT			3
   1371 #define VIVS_DE_BLOCK8_ROT_ANGLE_DST(x)				(((x) << VIVS_DE_BLOCK8_ROT_ANGLE_DST__SHIFT) & VIVS_DE_BLOCK8_ROT_ANGLE_DST__MASK)
   1372 #define VIVS_DE_BLOCK8_ROT_ANGLE_SRC_MASK			0x00000100
   1373 #define VIVS_DE_BLOCK8_ROT_ANGLE_DST_MASK			0x00000200
   1374 #define VIVS_DE_BLOCK8_ROT_ANGLE_SRC_MIRROR__MASK		0x00003000
   1375 #define VIVS_DE_BLOCK8_ROT_ANGLE_SRC_MIRROR__SHIFT		12
   1376 #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)
   1377 #define VIVS_DE_BLOCK8_ROT_ANGLE_SRC_MIRROR_MASK		0x00008000
   1378 #define VIVS_DE_BLOCK8_ROT_ANGLE_DST_MIRROR__MASK		0x00030000
   1379 #define VIVS_DE_BLOCK8_ROT_ANGLE_DST_MIRROR__SHIFT		16
   1380 #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)
   1381 #define VIVS_DE_BLOCK8_ROT_ANGLE_DST_MIRROR_MASK		0x00080000
   1382 
   1383 #define VIVS_DE_BLOCK8_GLOBAL_SRC_COLOR(i0)		       (0x00012c00 + 0x4*(i0))
   1384 #define VIVS_DE_BLOCK8_GLOBAL_SRC_COLOR__ESIZE			0x00000004
   1385 #define VIVS_DE_BLOCK8_GLOBAL_SRC_COLOR__LEN			0x00000008
   1386 
   1387 #define VIVS_DE_BLOCK8_GLOBAL_DEST_COLOR(i0)		       (0x00012c20 + 0x4*(i0))
   1388 #define VIVS_DE_BLOCK8_GLOBAL_DEST_COLOR__ESIZE			0x00000004
   1389 #define VIVS_DE_BLOCK8_GLOBAL_DEST_COLOR__LEN			0x00000008
   1390 
   1391 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES(i0)		       (0x00012c40 + 0x4*(i0))
   1392 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES__ESIZE		0x00000004
   1393 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES__LEN		0x00000008
   1394 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY__MASK	0x00000001
   1395 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY__SHIFT	0
   1396 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY_DISABLE	0x00000000
   1397 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_SRC_PREMULTIPLY_ENABLE	0x00000001
   1398 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY__MASK	0x00000010
   1399 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY__SHIFT	4
   1400 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY_DISABLE	0x00000000
   1401 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_DST_PREMULTIPLY_ENABLE	0x00000010
   1402 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY__MASK	0x00000300
   1403 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY__SHIFT	8
   1404 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY_DISABLE	0x00000000
   1405 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY_ALPHA	0x00000100
   1406 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_SRC_GLOBAL_PREMULTIPLY_COLOR	0x00000200
   1407 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY__MASK	0x00100000
   1408 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY__SHIFT	20
   1409 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY_DISABLE	0x00000000
   1410 #define VIVS_DE_BLOCK8_COLOR_MULTIPLY_MODES_DST_DEMULTIPLY_ENABLE	0x00100000
   1411 
   1412 #define VIVS_DE_BLOCK8_TRANSPARENCY(i0)			       (0x00012c60 + 0x4*(i0))
   1413 #define VIVS_DE_BLOCK8_TRANSPARENCY__ESIZE			0x00000004
   1414 #define VIVS_DE_BLOCK8_TRANSPARENCY__LEN			0x00000008
   1415 #define VIVS_DE_BLOCK8_TRANSPARENCY_SOURCE__MASK		0x00000003
   1416 #define VIVS_DE_BLOCK8_TRANSPARENCY_SOURCE__SHIFT		0
   1417 #define VIVS_DE_BLOCK8_TRANSPARENCY_SOURCE_OPAQUE		0x00000000
   1418 #define VIVS_DE_BLOCK8_TRANSPARENCY_SOURCE_MASK			0x00000001
   1419 #define VIVS_DE_BLOCK8_TRANSPARENCY_SOURCE_KEY			0x00000002
   1420 #define VIVS_DE_BLOCK8_TRANSPARENCY_PATTERN__MASK		0x00000030
   1421 #define VIVS_DE_BLOCK8_TRANSPARENCY_PATTERN__SHIFT		4
   1422 #define VIVS_DE_BLOCK8_TRANSPARENCY_PATTERN_OPAQUE		0x00000000
   1423 #define VIVS_DE_BLOCK8_TRANSPARENCY_PATTERN_MASK		0x00000010
   1424 #define VIVS_DE_BLOCK8_TRANSPARENCY_PATTERN_KEY			0x00000020
   1425 #define VIVS_DE_BLOCK8_TRANSPARENCY_DESTINATION__MASK		0x00000300
   1426 #define VIVS_DE_BLOCK8_TRANSPARENCY_DESTINATION__SHIFT		8
   1427 #define VIVS_DE_BLOCK8_TRANSPARENCY_DESTINATION_OPAQUE		0x00000000
   1428 #define VIVS_DE_BLOCK8_TRANSPARENCY_DESTINATION_MASK		0x00000100
   1429 #define VIVS_DE_BLOCK8_TRANSPARENCY_DESTINATION_KEY		0x00000200
   1430 #define VIVS_DE_BLOCK8_TRANSPARENCY_TRANSPARENCY_MASK		0x00001000
   1431 #define VIVS_DE_BLOCK8_TRANSPARENCY_USE_SRC_OVERRIDE__MASK	0x00030000
   1432 #define VIVS_DE_BLOCK8_TRANSPARENCY_USE_SRC_OVERRIDE__SHIFT	16
   1433 #define VIVS_DE_BLOCK8_TRANSPARENCY_USE_SRC_OVERRIDE_DEFAULT	0x00000000
   1434 #define VIVS_DE_BLOCK8_TRANSPARENCY_USE_SRC_OVERRIDE_USE_ENABLE	0x00010000
   1435 #define VIVS_DE_BLOCK8_TRANSPARENCY_USE_SRC_OVERRIDE_USE_DISABLE	0x00020000
   1436 #define VIVS_DE_BLOCK8_TRANSPARENCY_USE_PAT_OVERRIDE__MASK	0x00300000
   1437 #define VIVS_DE_BLOCK8_TRANSPARENCY_USE_PAT_OVERRIDE__SHIFT	20
   1438 #define VIVS_DE_BLOCK8_TRANSPARENCY_USE_PAT_OVERRIDE_DEFAULT	0x00000000
   1439 #define VIVS_DE_BLOCK8_TRANSPARENCY_USE_PAT_OVERRIDE_USE_ENABLE	0x00100000
   1440 #define VIVS_DE_BLOCK8_TRANSPARENCY_USE_PAT_OVERRIDE_USE_DISABLE	0x00200000
   1441 #define VIVS_DE_BLOCK8_TRANSPARENCY_USE_DST_OVERRIDE__MASK	0x03000000
   1442 #define VIVS_DE_BLOCK8_TRANSPARENCY_USE_DST_OVERRIDE__SHIFT	24
   1443 #define VIVS_DE_BLOCK8_TRANSPARENCY_USE_DST_OVERRIDE_DEFAULT	0x00000000
   1444 #define VIVS_DE_BLOCK8_TRANSPARENCY_USE_DST_OVERRIDE_USE_ENABLE	0x01000000
   1445 #define VIVS_DE_BLOCK8_TRANSPARENCY_USE_DST_OVERRIDE_USE_DISABLE	0x02000000
   1446 #define VIVS_DE_BLOCK8_TRANSPARENCY_RESOURCE_OVERRIDE_MASK	0x10000000
   1447 #define VIVS_DE_BLOCK8_TRANSPARENCY_DFB_COLOR_KEY__MASK		0x20000000
   1448 #define VIVS_DE_BLOCK8_TRANSPARENCY_DFB_COLOR_KEY__SHIFT	29
   1449 #define VIVS_DE_BLOCK8_TRANSPARENCY_DFB_COLOR_KEY_DISABLE	0x00000000
   1450 #define VIVS_DE_BLOCK8_TRANSPARENCY_DFB_COLOR_KEY_ENABLE	0x20000000
   1451 #define VIVS_DE_BLOCK8_TRANSPARENCY_DFB_COLOR_KEY_MASK		0x80000000
   1452 
   1453 #define VIVS_DE_BLOCK8_CONTROL(i0)			       (0x00012c80 + 0x4*(i0))
   1454 #define VIVS_DE_BLOCK8_CONTROL__ESIZE				0x00000004
   1455 #define VIVS_DE_BLOCK8_CONTROL__LEN				0x00000008
   1456 #define VIVS_DE_BLOCK8_CONTROL_YUV__MASK			0x00000001
   1457 #define VIVS_DE_BLOCK8_CONTROL_YUV__SHIFT			0
   1458 #define VIVS_DE_BLOCK8_CONTROL_YUV_601				0x00000000
   1459 #define VIVS_DE_BLOCK8_CONTROL_YUV_709				0x00000001
   1460 #define VIVS_DE_BLOCK8_CONTROL_YUV_MASK				0x00000008
   1461 #define VIVS_DE_BLOCK8_CONTROL_UV_SWIZZLE__MASK			0x00000010
   1462 #define VIVS_DE_BLOCK8_CONTROL_UV_SWIZZLE__SHIFT		4
   1463 #define VIVS_DE_BLOCK8_CONTROL_UV_SWIZZLE_UV			0x00000000
   1464 #define VIVS_DE_BLOCK8_CONTROL_UV_SWIZZLE_VU			0x00000010
   1465 #define VIVS_DE_BLOCK8_CONTROL_UV_SWIZZLE_MASK			0x00000080
   1466 #define VIVS_DE_BLOCK8_CONTROL_YUVRGB__MASK			0x00000100
   1467 #define VIVS_DE_BLOCK8_CONTROL_YUVRGB__SHIFT			8
   1468 #define VIVS_DE_BLOCK8_CONTROL_YUVRGB_DISABLE			0x00000000
   1469 #define VIVS_DE_BLOCK8_CONTROL_YUVRGB_ENABLE			0x00000100
   1470 #define VIVS_DE_BLOCK8_CONTROL_YUVRGB_MASK			0x00000800
   1471 
   1472 #define VIVS_DE_BLOCK8_SRC_COLOR_KEY_HIGH(i0)		       (0x00012ca0 + 0x4*(i0))
   1473 #define VIVS_DE_BLOCK8_SRC_COLOR_KEY_HIGH__ESIZE		0x00000004
   1474 #define VIVS_DE_BLOCK8_SRC_COLOR_KEY_HIGH__LEN			0x00000008
   1475 
   1476 #define VIVS_DE_BLOCK8_SRC_EX_CONFIG(i0)		       (0x00012cc0 + 0x4*(i0))
   1477 #define VIVS_DE_BLOCK8_SRC_EX_CONFIG__ESIZE			0x00000004
   1478 #define VIVS_DE_BLOCK8_SRC_EX_CONFIG__LEN			0x00000008
   1479 #define VIVS_DE_BLOCK8_SRC_EX_CONFIG_MULTI_TILED__MASK		0x00000001
   1480 #define VIVS_DE_BLOCK8_SRC_EX_CONFIG_MULTI_TILED__SHIFT		0
   1481 #define VIVS_DE_BLOCK8_SRC_EX_CONFIG_MULTI_TILED_DISABLE	0x00000000
   1482 #define VIVS_DE_BLOCK8_SRC_EX_CONFIG_MULTI_TILED_ENABLE		0x00000001
   1483 #define VIVS_DE_BLOCK8_SRC_EX_CONFIG_SUPER_TILED__MASK		0x00000008
   1484 #define VIVS_DE_BLOCK8_SRC_EX_CONFIG_SUPER_TILED__SHIFT		3
   1485 #define VIVS_DE_BLOCK8_SRC_EX_CONFIG_SUPER_TILED_DISABLE	0x00000000
   1486 #define VIVS_DE_BLOCK8_SRC_EX_CONFIG_SUPER_TILED_ENABLE		0x00000008
   1487 #define VIVS_DE_BLOCK8_SRC_EX_CONFIG_MINOR_TILED__MASK		0x00000100
   1488 #define VIVS_DE_BLOCK8_SRC_EX_CONFIG_MINOR_TILED__SHIFT		8
   1489 #define VIVS_DE_BLOCK8_SRC_EX_CONFIG_MINOR_TILED_DISABLE	0x00000000
   1490 #define VIVS_DE_BLOCK8_SRC_EX_CONFIG_MINOR_TILED_ENABLE		0x00000100
   1491 
   1492 #define VIVS_DE_BLOCK8_SRC_EX_ADDRESS(i0)		       (0x00012ce0 + 0x4*(i0))
   1493 #define VIVS_DE_BLOCK8_SRC_EX_ADDRESS__ESIZE			0x00000004
   1494 #define VIVS_DE_BLOCK8_SRC_EX_ADDRESS__LEN			0x00000008
   1495 
   1496 
   1497 #endif /* STATE_2D_XML */
   1498