Lines Matching +full:0 +full:x8200
39 #define PATREGSIZE 384 /* Pattern register size. 384 bytes @ 0x8300 */
40 #define BR(x) (0x8200 | (x) << 2)
41 #define PBR(x) (0x8300 | (x) << 2)
44 #define BITBLT 0x00000000 /* Blit */
45 #define COLOREXP 0x00000001 /* Color expand */
46 #define ENCOLOREXP 0x00000002 /* Enhanced color expand */
47 #define MULTIPLE_SCANLINE 0x00000003 /* ? */
48 #define LINE 0x00000004 /* Draw line */
49 #define TRAPAZOID_FILL 0x00000005 /* Fill trapezoid */
50 #define TRANSPARENT_BITBLT 0x00000006 /* Transparent Blit */
53 #define ALPHA_BLEND 0x00000007 /* Alpha blend ? */
54 #define A3D_FUNCTION 0x00000008 /* 3D command ? */
55 #define CLEAR_Z_BUFFER 0x00000009 /* ? */
56 #define GRADIENT_FILL 0x0000000A /* Gradient fill */
59 #define SRCVIDEO 0x00000000 /* source is video RAM */
60 #define SRCSYSTEM 0x00000010 /* source is system memory */
62 #define SRCAGP 0x00000020 /* source is AGP memory (?) */
65 #define PATFG 0x00000000 /* foreground color */
66 #define PATPATREG 0x00000040 /* pattern in pattern buffer (0x8300) */
67 #define PATMONO 0x00000080 /* mono pattern */
70 #define X_INC 0x00010000
71 #define X_DEC 0x00000000
72 #define Y_INC 0x00020000
73 #define Y_DEC 0x00000000
76 #define NOCLIP 0x00000000
77 #define NOMERGECLIP 0x04000000
78 #define CLIPENABLE 0x00040000
79 #define CLIPWITHOUTMERGE 0x04040000
82 #define OPAQUE 0x00000000
83 #define TRANSPARENT 0x00100000
86 #define DSTAGP 0x02000000
87 #define DSTVIDEO 0x02000000
90 #define COLOR_TO_MONO 0x00100000
91 #define AA_TEXT 0x00200000
94 #define SRC_ADDR 0x8200
95 #define SRC_PITCH 0x8204
96 #define AGP_BASE 0x8206 /* color-depth dependent value */
97 #define SRC_Y 0x8208
98 #define SRC_X 0x820A
99 #define DST_Y 0x820C
100 #define DST_X 0x820E
101 #define DST_ADDR 0x8210
102 #define DST_PITCH 0x8214
103 #define DST_HEIGHT 0x8216
104 #define RECT_WIDTH 0x8218
105 #define RECT_HEIGHT 0x821A
106 #define PAT_FGCOLOR 0x821C
107 #define PAT_BGCOLOR 0x8220
108 #define SRC_FGCOLOR 0x8224
109 #define SRC_BGCOLOR 0x8228
110 #define MONO_MASK 0x822C
111 #define LEFT_CLIP 0x8234
112 #define TOP_CLIP 0x8236
113 #define RIGHT_CLIP 0x8238
114 #define BOTTOM_CLIP 0x823A
115 #define COMMAND_READY 0x823C
116 #define FIRE_TRIGGER 0x8240
118 #define PATTERN_REG 0x8300 /* 384 bytes pattern buffer */
131 /* BR(16) (0x8240):
136 bits 28:24: Current CPU driven BitBlt buffer stage bit[4:0]
137 bits 15:0: Current command queue length
143 while((MMIO_IN16(ivideo->mmio_vbase, BR(16)+2) & 0xE000) != 0xE000){} \
144 while((MMIO_IN16(ivideo->mmio_vbase, BR(16)+2) & 0xE000) != 0xE000){} \
145 while((MMIO_IN16(ivideo->mmio_vbase, BR(16)+2) & 0xE000) != 0xE000){} \
146 CmdQueLen = MMIO_IN16(ivideo->mmio_vbase, 0x8240); \
151 if(CmdQueLen <= 0) SiS300Idle;\
152 MMIO_OUT32(ivideo->mmio_vbase, BR(0), base);\
156 if(CmdQueLen <= 0) SiS300Idle;\
161 if(CmdQueLen <= 0) SiS300Idle;\
166 if(CmdQueLen <= 0) SiS300Idle;\
171 if(CmdQueLen <= 0) SiS300Idle;\
176 if(CmdQueLen <= 0) SiS300Idle;\
181 if(CmdQueLen <= 0) SiS300Idle;\
186 if(CmdQueLen <= 0) SiS300Idle;\
191 if(CmdQueLen <= 0) SiS300Idle;\
196 if(CmdQueLen <= 0) SiS300Idle;\
201 if(CmdQueLen <= 0) SiS300Idle;\
206 if(CmdQueLen <= 0) SiS300Idle;\
210 /* 0x8224 src colorkey high */
211 /* 0x8228 src colorkey low */
212 /* 0x821c dest colorkey high */
213 /* 0x8220 dest colorkey low */
216 MMIO_OUT32(ivideo->mmio_vbase, 0x8224, color);\
217 MMIO_OUT32(ivideo->mmio_vbase, 0x8228, color);\
222 MMIO_OUT32(ivideo->mmio_vbase, 0x821C, color); \
223 MMIO_OUT32(ivideo->mmio_vbase, 0x8220, color); \
233 if(CmdQueLen <= 0) SiS300Idle;\
234 MMIO_OUT32(ivideo->mmio_vbase, BR(13), ((left) & 0xFFFF) | (top)<<16 );\
238 if(CmdQueLen <= 0) SiS300Idle;\
239 MMIO_OUT32(ivideo->mmio_vbase, BR(14), ((right) & 0xFFFF) | (bottom)<<16 );\
252 MMIO_OUT32(ivideo->mmio_vbase, BR(16), 0);\
268 bits 7:0: 2D counter 1
273 while( (MMIO_IN16(ivideo->mmio_vbase, Q_STATUS+2) & 0x8000) != 0x8000){} \
274 while( (MMIO_IN16(ivideo->mmio_vbase, Q_STATUS+2) & 0x8000) != 0x8000){} \
275 while( (MMIO_IN16(ivideo->mmio_vbase, Q_STATUS+2) & 0x8000) != 0x8000){} \
276 while( (MMIO_IN16(ivideo->mmio_vbase, Q_STATUS+2) & 0x8000) != 0x8000){} \
277 CmdQueLen = 0; \
281 if(CmdQueLen <= 0) SiS310Idle;\
286 if(CmdQueLen <= 0) SiS310Idle;\
291 if(CmdQueLen <= 0) SiS310Idle;\
296 if(CmdQueLen <= 0) SiS310Idle;\
301 if(CmdQueLen <= 0) SiS310Idle;\
306 if(CmdQueLen <= 0) SiS310Idle;\
311 if(CmdQueLen <= 0) SiS310Idle;\
316 if(CmdQueLen <= 0) SiS310Idle;\
321 if(CmdQueLen <= 0) SiS310Idle;\
326 if(CmdQueLen <= 0) SiS310Idle;\
331 if(CmdQueLen <= 0) SiS310Idle;\
336 if(CmdQueLen <= 0) SiS310Idle;\
359 if(CmdQueLen <= 0) SiS310Idle;\
360 MMIO_OUT32(ivideo->mmio_vbase, LEFT_CLIP, ((left) & 0xFFFF) | (top)<<16 );\
364 if(CmdQueLen <= 0) SiS310Idle;\
365 MMIO_OUT32(ivideo->mmio_vbase, RIGHT_CLIP, ((right) & 0xFFFF) | (bottom)<<16 );\
377 MMIO_OUT32(ivideo->mmio_vbase, FIRE_TRIGGER, 0); \