1 #ifndef STATE_BLT_XML 2 #define STATE_BLT_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 ( 26087 bytes, from 2017-10-30 13:44:54) 12 - common.xml ( 26187 bytes, from 2017-10-31 19:05:01) 13 - common_3d.xml ( 14615 bytes, from 2017-11-04 14:03:35) 14 - state_hi.xml ( 27733 bytes, from 2017-10-02 19:00:30) 15 - copyright.xml ( 1597 bytes, from 2016-10-29 07:29:22) 16 - state_2d.xml ( 51552 bytes, from 2016-10-29 07:29:22) 17 - state_3d.xml ( 79992 bytes, from 2017-11-07 10:44:35) 18 - state_blt.xml ( 13405 bytes, from 2017-10-16 17:42:46) 19 - state_vg.xml ( 5975 bytes, from 2016-10-29 07:29:22) 20 21 Copyright (C) 2012-2017 by the following authors: 22 - Wladimir J. van der Laan <laanwj@gmail.com> 23 - Christian Gmeiner <christian.gmeiner@gmail.com> 24 - Lucas Stach <l.stach@pengutronix.de> 25 - Russell King <rmk@arm.linux.org.uk> 26 27 Permission is hereby granted, free of charge, to any person obtaining a 28 copy of this software and associated documentation files (the "Software"), 29 to deal in the Software without restriction, including without limitation 30 the rights to use, copy, modify, merge, publish, distribute, sub license, 31 and/or sell copies of the Software, and to permit persons to whom the 32 Software is furnished to do so, subject to the following conditions: 33 34 The above copyright notice and this permission notice (including the 35 next paragraph) shall be included in all copies or substantial portions 36 of the Software. 37 38 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 39 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 40 FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 41 THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 42 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 43 FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 44 DEALINGS IN THE SOFTWARE. 45 */ 46 47 48 #define BLT_TILING_LINEAR 0x00000000 49 #define BLT_TILING_SUPER_TILED 0x00000003 50 #define BLT_FORMAT_A4R4G4B4 0x00000001 51 #define BLT_FORMAT_X8R8G8B8 0x00000005 52 #define BLT_FORMAT_A8R8G8B8 0x00000006 53 #define BLT_FORMAT_A16R16G16B16 0x0000001c 54 #define BLT_FORMAT_R8G8B8 0x00000022 55 #define BLT_FORMAT_R8 0x00000023 56 #define BLT_FORMAT_R8G8 0x00000024 57 #define BLT_IMAGE_CONFIG_TS 0x00000001 58 #define BLT_IMAGE_CONFIG_COMPRESSION 0x00000002 59 #define BLT_IMAGE_CONFIG_COMPRESSION_FORMAT__MASK 0x000000f0 60 #define BLT_IMAGE_CONFIG_COMPRESSION_FORMAT__SHIFT 4 61 #define BLT_IMAGE_CONFIG_COMPRESSION_FORMAT(x) (((x) << BLT_IMAGE_CONFIG_COMPRESSION_FORMAT__SHIFT) & BLT_IMAGE_CONFIG_COMPRESSION_FORMAT__MASK) 62 #define BLT_IMAGE_CONFIG_UNK8 0x00000100 63 #define BLT_IMAGE_CONFIG_SWIZ_R__MASK 0x00000600 64 #define BLT_IMAGE_CONFIG_SWIZ_R__SHIFT 9 65 #define BLT_IMAGE_CONFIG_SWIZ_R(x) (((x) << BLT_IMAGE_CONFIG_SWIZ_R__SHIFT) & BLT_IMAGE_CONFIG_SWIZ_R__MASK) 66 #define BLT_IMAGE_CONFIG_SWIZ_G__MASK 0x00001800 67 #define BLT_IMAGE_CONFIG_SWIZ_G__SHIFT 11 68 #define BLT_IMAGE_CONFIG_SWIZ_G(x) (((x) << BLT_IMAGE_CONFIG_SWIZ_G__SHIFT) & BLT_IMAGE_CONFIG_SWIZ_G__MASK) 69 #define BLT_IMAGE_CONFIG_SWIZ_B__MASK 0x00006000 70 #define BLT_IMAGE_CONFIG_SWIZ_B__SHIFT 13 71 #define BLT_IMAGE_CONFIG_SWIZ_B(x) (((x) << BLT_IMAGE_CONFIG_SWIZ_B__SHIFT) & BLT_IMAGE_CONFIG_SWIZ_B__MASK) 72 #define BLT_IMAGE_CONFIG_SWIZ_A__MASK 0x00018000 73 #define BLT_IMAGE_CONFIG_SWIZ_A__SHIFT 15 74 #define BLT_IMAGE_CONFIG_SWIZ_A(x) (((x) << BLT_IMAGE_CONFIG_SWIZ_A__SHIFT) & BLT_IMAGE_CONFIG_SWIZ_A__MASK) 75 #define BLT_IMAGE_CONFIG_CACHE_MODE__MASK 0x00020000 76 #define BLT_IMAGE_CONFIG_CACHE_MODE__SHIFT 17 77 #define BLT_IMAGE_CONFIG_CACHE_MODE(x) (((x) << BLT_IMAGE_CONFIG_CACHE_MODE__SHIFT) & BLT_IMAGE_CONFIG_CACHE_MODE__MASK) 78 #define BLT_IMAGE_CONFIG_FLIP_Y 0x00080000 79 #define BLT_IMAGE_CONFIG_FROM_SUPER_TILED 0x00200000 80 #define BLT_IMAGE_CONFIG_UNK22 0x00400000 81 #define BLT_IMAGE_CONFIG_TO_SUPER_TILED 0x04000000 82 #define VIVS_BLT 0x00000000 83 84 #define VIVS_BLT_SRC_ADDR 0x00014000 85 86 #define VIVS_BLT_SRC_STRIDE 0x00014008 87 #define VIVS_BLT_SRC_STRIDE_STRIDE__MASK 0x000fffff 88 #define VIVS_BLT_SRC_STRIDE_STRIDE__SHIFT 0 89 #define VIVS_BLT_SRC_STRIDE_STRIDE(x) (((x) << VIVS_BLT_SRC_STRIDE_STRIDE__SHIFT) & VIVS_BLT_SRC_STRIDE_STRIDE__MASK) 90 #define VIVS_BLT_SRC_STRIDE_FORMAT__MASK 0x1fe00000 91 #define VIVS_BLT_SRC_STRIDE_FORMAT__SHIFT 21 92 #define VIVS_BLT_SRC_STRIDE_FORMAT(x) (((x) << VIVS_BLT_SRC_STRIDE_FORMAT__SHIFT) & VIVS_BLT_SRC_STRIDE_FORMAT__MASK) 93 #define VIVS_BLT_SRC_STRIDE_TILING__MASK 0x60000000 94 #define VIVS_BLT_SRC_STRIDE_TILING__SHIFT 29 95 #define VIVS_BLT_SRC_STRIDE_TILING(x) (((x) << VIVS_BLT_SRC_STRIDE_TILING__SHIFT) & VIVS_BLT_SRC_STRIDE_TILING__MASK) 96 97 #define VIVS_BLT_SRC_CONFIG 0x0001400c 98 99 #define VIVS_BLT_SRC_TS 0x00014010 100 101 #define VIVS_BLT_SRC_POS 0x00014014 102 #define VIVS_BLT_SRC_POS_X__MASK 0x0000ffff 103 #define VIVS_BLT_SRC_POS_X__SHIFT 0 104 #define VIVS_BLT_SRC_POS_X(x) (((x) << VIVS_BLT_SRC_POS_X__SHIFT) & VIVS_BLT_SRC_POS_X__MASK) 105 #define VIVS_BLT_SRC_POS_Y__MASK 0xffff0000 106 #define VIVS_BLT_SRC_POS_Y__SHIFT 16 107 #define VIVS_BLT_SRC_POS_Y(x) (((x) << VIVS_BLT_SRC_POS_Y__SHIFT) & VIVS_BLT_SRC_POS_Y__MASK) 108 109 #define VIVS_BLT_DEST_ADDR 0x00014018 110 111 #define VIVS_BLT_DEST_TS 0x00014020 112 113 #define VIVS_BLT_DEST_STRIDE 0x00014024 114 #define VIVS_BLT_DEST_STRIDE_STRIDE__MASK 0x000fffff 115 #define VIVS_BLT_DEST_STRIDE_STRIDE__SHIFT 0 116 #define VIVS_BLT_DEST_STRIDE_STRIDE(x) (((x) << VIVS_BLT_DEST_STRIDE_STRIDE__SHIFT) & VIVS_BLT_DEST_STRIDE_STRIDE__MASK) 117 #define VIVS_BLT_DEST_STRIDE_FORMAT__MASK 0x1fe00000 118 #define VIVS_BLT_DEST_STRIDE_FORMAT__SHIFT 21 119 #define VIVS_BLT_DEST_STRIDE_FORMAT(x) (((x) << VIVS_BLT_DEST_STRIDE_FORMAT__SHIFT) & VIVS_BLT_DEST_STRIDE_FORMAT__MASK) 120 #define VIVS_BLT_DEST_STRIDE_TILING__MASK 0x60000000 121 #define VIVS_BLT_DEST_STRIDE_TILING__SHIFT 29 122 #define VIVS_BLT_DEST_STRIDE_TILING(x) (((x) << VIVS_BLT_DEST_STRIDE_TILING__SHIFT) & VIVS_BLT_DEST_STRIDE_TILING__MASK) 123 124 #define VIVS_BLT_DEST_CONFIG 0x00014028 125 126 #define VIVS_BLT_DEST_POS 0x0001402c 127 #define VIVS_BLT_DEST_POS_X__MASK 0x0000ffff 128 #define VIVS_BLT_DEST_POS_X__SHIFT 0 129 #define VIVS_BLT_DEST_POS_X(x) (((x) << VIVS_BLT_DEST_POS_X__SHIFT) & VIVS_BLT_DEST_POS_X__MASK) 130 #define VIVS_BLT_DEST_POS_Y__MASK 0xffff0000 131 #define VIVS_BLT_DEST_POS_Y__SHIFT 16 132 #define VIVS_BLT_DEST_POS_Y(x) (((x) << VIVS_BLT_DEST_POS_Y__SHIFT) & VIVS_BLT_DEST_POS_Y__MASK) 133 134 #define VIVS_BLT_IMAGE_SIZE 0x00014030 135 #define VIVS_BLT_IMAGE_SIZE_WIDTH__MASK 0x0000ffff 136 #define VIVS_BLT_IMAGE_SIZE_WIDTH__SHIFT 0 137 #define VIVS_BLT_IMAGE_SIZE_WIDTH(x) (((x) << VIVS_BLT_IMAGE_SIZE_WIDTH__SHIFT) & VIVS_BLT_IMAGE_SIZE_WIDTH__MASK) 138 #define VIVS_BLT_IMAGE_SIZE_HEIGHT__MASK 0xffff0000 139 #define VIVS_BLT_IMAGE_SIZE_HEIGHT__SHIFT 16 140 #define VIVS_BLT_IMAGE_SIZE_HEIGHT(x) (((x) << VIVS_BLT_IMAGE_SIZE_HEIGHT__SHIFT) & VIVS_BLT_IMAGE_SIZE_HEIGHT__MASK) 141 142 #define VIVS_BLT_SRC_TS_CLEAR_VALUE0 0x00014034 143 144 #define VIVS_BLT_SRC_TS_CLEAR_VALUE1 0x00014038 145 146 #define VIVS_BLT_DEST_TS_CLEAR_VALUE0 0x0001403c 147 148 #define VIVS_BLT_DEST_TS_CLEAR_VALUE1 0x00014040 149 150 #define VIVS_BLT_CLEAR_COLOR0 0x00014044 151 152 #define VIVS_BLT_CLEAR_COLOR1 0x00014048 153 154 #define VIVS_BLT_CLEAR_BITS0 0x0001404c 155 156 #define VIVS_BLT_CLEAR_BITS1 0x00014050 157 158 #define VIVS_BLT_BUFFER_SIZE 0x00014054 159 160 #define VIVS_BLT_UNK14058 0x00014058 161 162 #define VIVS_BLT_UNK1405C 0x0001405c 163 164 #define VIVS_BLT_COMMAND 0x00014060 165 #define VIVS_BLT_COMMAND_COMMAND__MASK 0x0000000f 166 #define VIVS_BLT_COMMAND_COMMAND__SHIFT 0 167 #define VIVS_BLT_COMMAND_COMMAND_CLEAR_IMAGE 0x00000001 168 #define VIVS_BLT_COMMAND_COMMAND_COPY_IMAGE 0x00000002 169 #define VIVS_BLT_COMMAND_COMMAND_COPY_BUFFER 0x00000003 170 #define VIVS_BLT_COMMAND_COMMAND_INPLACE 0x00000004 171 #define VIVS_BLT_COMMAND_COMMAND_YUV_TILE 0x00000005 172 #define VIVS_BLT_COMMAND_COMMAND_GEN_MIPMAPS 0x00000006 173 174 #define VIVS_BLT_CONFIG 0x00014064 175 #define VIVS_BLT_CONFIG_SRC_ENDIAN__MASK 0x00000006 176 #define VIVS_BLT_CONFIG_SRC_ENDIAN__SHIFT 1 177 #define VIVS_BLT_CONFIG_SRC_ENDIAN(x) (((x) << VIVS_BLT_CONFIG_SRC_ENDIAN__SHIFT) & VIVS_BLT_CONFIG_SRC_ENDIAN__MASK) 178 #define VIVS_BLT_CONFIG_DEST_ENDIAN__MASK 0x00000018 179 #define VIVS_BLT_CONFIG_DEST_ENDIAN__SHIFT 3 180 #define VIVS_BLT_CONFIG_DEST_ENDIAN(x) (((x) << VIVS_BLT_CONFIG_DEST_ENDIAN__SHIFT) & VIVS_BLT_CONFIG_DEST_ENDIAN__MASK) 181 #define VIVS_BLT_CONFIG_UNK5 0x00000020 182 #define VIVS_BLT_CONFIG_UNK6 0x00000040 183 #define VIVS_BLT_CONFIG_CLEAR_BPP__MASK 0x00000380 184 #define VIVS_BLT_CONFIG_CLEAR_BPP__SHIFT 7 185 #define VIVS_BLT_CONFIG_CLEAR_BPP(x) (((x) << VIVS_BLT_CONFIG_CLEAR_BPP__SHIFT) & VIVS_BLT_CONFIG_CLEAR_BPP__MASK) 186 #define VIVS_BLT_CONFIG_INPLACE_CACHE_MODE__MASK 0x00000400 187 #define VIVS_BLT_CONFIG_INPLACE_CACHE_MODE__SHIFT 10 188 #define VIVS_BLT_CONFIG_INPLACE_CACHE_MODE(x) (((x) << VIVS_BLT_CONFIG_INPLACE_CACHE_MODE__SHIFT) & VIVS_BLT_CONFIG_INPLACE_CACHE_MODE__MASK) 189 #define VIVS_BLT_CONFIG_INPLACE_BOTH 0x00000800 190 #define VIVS_BLT_CONFIG_INPLACE_BPP__MASK 0x00038000 191 #define VIVS_BLT_CONFIG_INPLACE_BPP__SHIFT 15 192 #define VIVS_BLT_CONFIG_INPLACE_BPP_1 0x00000000 193 #define VIVS_BLT_CONFIG_INPLACE_BPP_2 0x00008000 194 #define VIVS_BLT_CONFIG_INPLACE_BPP_4 0x00010000 195 #define VIVS_BLT_CONFIG_INPLACE_BPP_8 0x00018000 196 #define VIVS_BLT_CONFIG_INPLACE_BPP_16 0x00020000 197 198 #define VIVS_BLT_INPLACE_TILE_COUNT 0x00014068 199 200 #define VIVS_BLT_YUV 0x00000000 201 202 #define VIVS_BLT_YUV_CONFIG 0x0001406c 203 204 #define VIVS_BLT_YUV_UNK14070 0x00014070 205 206 #define VIVS_BLT_YUV_SRC_YADDR 0x00014074 207 208 #define VIVS_BLT_YUV_SRC_YSTRIDE 0x00014078 209 210 #define VIVS_BLT_YUV_SRC_UADDR 0x0001407c 211 212 #define VIVS_BLT_YUV_SRC_USTRIDE 0x00014080 213 214 #define VIVS_BLT_YUV_SRC_VADDR 0x00014084 215 216 #define VIVS_BLT_YUV_SRC_VSTRIDE 0x00014088 217 218 #define VIVS_BLT_YUV_DEST_ADDR 0x0001408c 219 220 #define VIVS_BLT_YUV_DEST_STRIDE 0x00014090 221 222 #define VIVS_BLT_UNK1409C 0x0001409c 223 224 #define VIVS_BLT_UNK140A0 0x000140a0 225 226 #define VIVS_BLT_FENCE_OUT_ADDRESS 0x000140a4 227 228 #define VIVS_BLT_FENCE_OUT_DATA_LOW 0x000140a8 229 230 #define VIVS_BLT_SET_COMMAND 0x000140ac 231 232 #define VIVS_BLT_MIPMAP_CONFIG 0x000140b0 233 #define VIVS_BLT_MIPMAP_CONFIG_NUM__MASK 0x0000001f 234 #define VIVS_BLT_MIPMAP_CONFIG_NUM__SHIFT 0 235 #define VIVS_BLT_MIPMAP_CONFIG_NUM(x) (((x) << VIVS_BLT_MIPMAP_CONFIG_NUM__SHIFT) & VIVS_BLT_MIPMAP_CONFIG_NUM__MASK) 236 #define VIVS_BLT_MIPMAP_CONFIG_UNK5 0x00000020 237 238 #define VIVS_BLT_FENCE_OUT_DATA_HIGH 0x000140b4 239 240 #define VIVS_BLT_ENABLE 0x000140b8 241 #define VIVS_BLT_ENABLE_ENABLE 0x00000001 242 243 #define VIVS_BLT_SWIZZLE 0x000140bc 244 #define VIVS_BLT_SWIZZLE_SRC_R__MASK 0x00000007 245 #define VIVS_BLT_SWIZZLE_SRC_R__SHIFT 0 246 #define VIVS_BLT_SWIZZLE_SRC_R(x) (((x) << VIVS_BLT_SWIZZLE_SRC_R__SHIFT) & VIVS_BLT_SWIZZLE_SRC_R__MASK) 247 #define VIVS_BLT_SWIZZLE_SRC_G__MASK 0x00000038 248 #define VIVS_BLT_SWIZZLE_SRC_G__SHIFT 3 249 #define VIVS_BLT_SWIZZLE_SRC_G(x) (((x) << VIVS_BLT_SWIZZLE_SRC_G__SHIFT) & VIVS_BLT_SWIZZLE_SRC_G__MASK) 250 #define VIVS_BLT_SWIZZLE_SRC_B__MASK 0x000001c0 251 #define VIVS_BLT_SWIZZLE_SRC_B__SHIFT 6 252 #define VIVS_BLT_SWIZZLE_SRC_B(x) (((x) << VIVS_BLT_SWIZZLE_SRC_B__SHIFT) & VIVS_BLT_SWIZZLE_SRC_B__MASK) 253 #define VIVS_BLT_SWIZZLE_SRC_A__MASK 0x00000e00 254 #define VIVS_BLT_SWIZZLE_SRC_A__SHIFT 9 255 #define VIVS_BLT_SWIZZLE_SRC_A(x) (((x) << VIVS_BLT_SWIZZLE_SRC_A__SHIFT) & VIVS_BLT_SWIZZLE_SRC_A__MASK) 256 #define VIVS_BLT_SWIZZLE_DEST_R__MASK 0x00007000 257 #define VIVS_BLT_SWIZZLE_DEST_R__SHIFT 12 258 #define VIVS_BLT_SWIZZLE_DEST_R(x) (((x) << VIVS_BLT_SWIZZLE_DEST_R__SHIFT) & VIVS_BLT_SWIZZLE_DEST_R__MASK) 259 #define VIVS_BLT_SWIZZLE_DEST_G__MASK 0x00038000 260 #define VIVS_BLT_SWIZZLE_DEST_G__SHIFT 15 261 #define VIVS_BLT_SWIZZLE_DEST_G(x) (((x) << VIVS_BLT_SWIZZLE_DEST_G__SHIFT) & VIVS_BLT_SWIZZLE_DEST_G__MASK) 262 #define VIVS_BLT_SWIZZLE_DEST_B__MASK 0x001c0000 263 #define VIVS_BLT_SWIZZLE_DEST_B__SHIFT 18 264 #define VIVS_BLT_SWIZZLE_DEST_B(x) (((x) << VIVS_BLT_SWIZZLE_DEST_B__SHIFT) & VIVS_BLT_SWIZZLE_DEST_B__MASK) 265 #define VIVS_BLT_SWIZZLE_DEST_A__MASK 0x00e00000 266 #define VIVS_BLT_SWIZZLE_DEST_A__SHIFT 21 267 #define VIVS_BLT_SWIZZLE_DEST_A(x) (((x) << VIVS_BLT_SWIZZLE_DEST_A__SHIFT) & VIVS_BLT_SWIZZLE_DEST_A__MASK) 268 269 #define VIVS_BLT_MIP(i0) (0x00000000 + 0x4*(i0)) 270 #define VIVS_BLT_MIP__ESIZE 0x00000004 271 #define VIVS_BLT_MIP__LEN 0x0000000d 272 273 #define VIVS_BLT_MIP_ADDR(i0) (0x000140c0 + 0x4*(i0)) 274 275 #define VIVS_BLT_MIP_STRIDE(i0) (0x00014300 + 0x4*(i0)) 276 277 #define VIVS_BLT_SRC_END 0x000140f4 278 279 #define VIVS_BLT_DEST_END 0x00014334 280 281 282 #endif /* STATE_BLT_XML */ 283