• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef GEN_BLITTER_XML
2 #define GEN_BLITTER_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 https://github.com/olvaffe/envytools/
8 git clone https://github.com/olvaffe/envytools.git
9 
10 Copyright (C) 2014-2015 by the following authors:
11 - Chia-I Wu <olvaffe@gmail.com> (olv)
12 
13 Permission is hereby granted, free of charge, to any person obtaining
14 a copy of this software and associated documentation files (the
15 "Software"), to deal in the Software without restriction, including
16 without limitation the rights to use, copy, modify, merge, publish,
17 distribute, sublicense, and/or sell copies of the Software, and to
18 permit persons to whom the Software is furnished to do so, subject to
19 the following conditions:
20 
21 The above copyright notice and this permission notice (including the
22 next paragraph) shall be included in all copies or substantial
23 portions of the Software.
24 
25 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
26 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
27 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
28 IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
29 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
30 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
31 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 */
33 
34 
35 #define GEN6_BLITTER_TYPE__MASK					0xe0000000
36 #define GEN6_BLITTER_TYPE__SHIFT				29
37 #define GEN6_BLITTER_TYPE_BLITTER				(0x2 << 29)
38 #define GEN6_BLITTER_OPCODE__MASK				0x1fc00000
39 #define GEN6_BLITTER_OPCODE__SHIFT				22
40 #define GEN6_BLITTER_OPCODE_COLOR_BLT				(0x40 << 22)
41 #define GEN6_BLITTER_OPCODE_SRC_COPY_BLT			(0x43 << 22)
42 #define GEN6_BLITTER_OPCODE_XY_COLOR_BLT			(0x50 << 22)
43 #define GEN6_BLITTER_OPCODE_XY_SRC_COPY_BLT			(0x53 << 22)
44 #define GEN6_BLITTER_BR00_WRITE_A				(0x1 << 21)
45 #define GEN6_BLITTER_BR00_WRITE_RGB				(0x1 << 20)
46 #define GEN6_BLITTER_BR00_SRC_TILED				(0x1 << 15)
47 #define GEN6_BLITTER_BR00_DST_TILED				(0x1 << 11)
48 #define GEN6_BLITTER_LENGTH__MASK				0x0000003f
49 #define GEN6_BLITTER_LENGTH__SHIFT				0
50 #define GEN6_BLITTER_BR13_DIR_RTL				(0x1 << 30)
51 #define GEN6_BLITTER_BR13_CLIP_ENABLE				(0x1 << 30)
52 #define GEN6_BLITTER_BR13_FORMAT__MASK				0x03000000
53 #define GEN6_BLITTER_BR13_FORMAT__SHIFT				24
54 #define GEN6_BLITTER_BR13_FORMAT_8				(0x0 << 24)
55 #define GEN6_BLITTER_BR13_FORMAT_565				(0x1 << 24)
56 #define GEN6_BLITTER_BR13_FORMAT_1555				(0x2 << 24)
57 #define GEN6_BLITTER_BR13_FORMAT_8888				(0x3 << 24)
58 #define GEN6_BLITTER_BR13_ROP__MASK				0x00ff0000
59 #define GEN6_BLITTER_BR13_ROP__SHIFT				16
60 #define GEN6_BLITTER_BR13_ROP_SRCCOPY				(0xcc << 16)
61 #define GEN6_BLITTER_BR13_ROP_PATCOPY				(0xf0 << 16)
62 #define GEN6_BLITTER_BR13_DST_PITCH__MASK			0x0000ffff
63 #define GEN6_BLITTER_BR13_DST_PITCH__SHIFT			0
64 #define GEN6_BLITTER_BR11_SRC_PITCH__MASK			0x0000ffff
65 #define GEN6_BLITTER_BR11_SRC_PITCH__SHIFT			0
66 #define GEN6_BLITTER_BR14_DST_HEIGHT__MASK			0xffff0000
67 #define GEN6_BLITTER_BR14_DST_HEIGHT__SHIFT			16
68 #define GEN6_BLITTER_BR14_DST_WIDTH__MASK			0x0000ffff
69 #define GEN6_BLITTER_BR14_DST_WIDTH__SHIFT			0
70 #define GEN6_BLITTER_BR22_DST_Y1__MASK				0xffff0000
71 #define GEN6_BLITTER_BR22_DST_Y1__SHIFT				16
72 #define GEN6_BLITTER_BR22_DST_X1__MASK				0x0000ffff
73 #define GEN6_BLITTER_BR22_DST_X1__SHIFT				0
74 #define GEN6_BLITTER_BR23_DST_Y2__MASK				0xffff0000
75 #define GEN6_BLITTER_BR23_DST_Y2__SHIFT				16
76 #define GEN6_BLITTER_BR23_DST_X2__MASK				0x0000ffff
77 #define GEN6_BLITTER_BR23_DST_X2__SHIFT				0
78 #define GEN6_BLITTER_BR26_SRC_Y1__MASK				0xffff0000
79 #define GEN6_BLITTER_BR26_SRC_Y1__SHIFT				16
80 #define GEN6_BLITTER_BR26_SRC_X1__MASK				0x0000ffff
81 #define GEN6_BLITTER_BR26_SRC_X1__SHIFT				0
82 #define GEN6_COLOR_BLT__SIZE					6
83 
84 
85 
86 
87 
88 
89 
90 
91 #define GEN6_SRC_COPY_BLT__SIZE					8
92 
93 
94 
95 
96 
97 
98 
99 
100 
101 
102 
103 #define GEN6_XY_COLOR_BLT__SIZE					7
104 
105 
106 
107 
108 
109 
110 
111 
112 
113 #define GEN6_XY_SRC_COPY_BLT__SIZE				10
114 
115 
116 
117 
118 
119 
120 
121 
122 
123 
124 
125 
126 
127 
128 
129 #endif /* GEN_BLITTER_XML */
130