63 #include <linux/types.h>
70 static const unsigned short ModeIndex_320x200[] = {0x59, 0x41, 0x00, 0x4f};
71 static const unsigned short ModeIndex_320x240[] = {0x50, 0x56, 0x00, 0x53};
72 static const unsigned short ModeIndex_320x240_FSTN[] = {0x5a, 0x5b, 0x00, 0x00};
73 static const unsigned short ModeIndex_400x300[] = {0x51, 0x57, 0x00, 0x54};
74 static const unsigned short ModeIndex_512x384[] = {0x52, 0x58, 0x00, 0x5c};
75 static const unsigned short ModeIndex_640x400[] = {0x2f, 0x5d, 0x00, 0x5e};
76 static const unsigned short ModeIndex_640x480[] = {0x2e, 0x44, 0x00, 0x62};
77 static const unsigned short ModeIndex_720x480[] = {0x31, 0x33, 0x00, 0x35};
78 static const unsigned short ModeIndex_720x576[] = {0x32, 0x34, 0x00, 0x36};
79 static const unsigned short ModeIndex_768x576[] = {0x5f, 0x60, 0x00, 0x61};
80 static const unsigned short ModeIndex_800x480[] = {0x70, 0x7a, 0x00, 0x76};
81 static const unsigned short ModeIndex_800x600[] = {0x30, 0x47, 0x00, 0x63};
82 static const unsigned short ModeIndex_848x480[] = {0x39, 0x3b, 0x00, 0x3e};
83 static const unsigned short ModeIndex_856x480[] = {0x3f, 0x42, 0x00, 0x45};
84 static const unsigned short ModeIndex_960x540[] = {0x1d, 0x1e, 0x00, 0x1f};
85 static const unsigned short ModeIndex_960x600[] = {0x20, 0x21, 0x00, 0x22};
86 static const unsigned short ModeIndex_1024x768[] = {0x38, 0x4a, 0x00, 0x64};
87 static const unsigned short ModeIndex_1024x576[] = {0x71, 0x74, 0x00, 0x77};
88 static const unsigned short ModeIndex_1024x600[] = {0x20, 0x21, 0x00, 0x22};
89 static const unsigned short ModeIndex_1280x1024[] = {0x3a, 0x4d, 0x00, 0x65};
90 static const unsigned short ModeIndex_1280x960[] = {0x7c, 0x7d, 0x00, 0x7e};
91 static const unsigned short ModeIndex_1152x768[] = {0x23, 0x24, 0x00, 0x25};
92 static const unsigned short ModeIndex_1152x864[] = {0x29, 0x2a, 0x00, 0x2b};
93 static const unsigned short ModeIndex_300_1280x768[] = {0x55, 0x5a, 0x00, 0x5b};
94 static const unsigned short ModeIndex_310_1280x768[] = {0x23, 0x24, 0x00, 0x25};
95 static const unsigned short ModeIndex_1280x720[] = {0x79, 0x75, 0x00, 0x78};
96 static const unsigned short ModeIndex_1280x800[] = {0x14, 0x15, 0x00, 0x16};
97 static const unsigned short ModeIndex_1280x854[] = {0x1a, 0x1b, 0x00, 0x1c};
98 static const unsigned short ModeIndex_1360x768[] = {0x48, 0x4b, 0x00, 0x4e};
99 static const unsigned short ModeIndex_300_1360x1024[]= {0x67, 0x6f, 0x00, 0x72};
100 static const unsigned short ModeIndex_1400x1050[] = {0x26, 0x27, 0x00, 0x28};
101 static const unsigned short ModeIndex_1680x1050[] = {0x17, 0x18, 0x00, 0x19};
102 static const unsigned short ModeIndex_1600x1200[] = {0x3c, 0x3d, 0x00, 0x66};
103 static const unsigned short ModeIndex_1920x1080[] = {0x2c, 0x2d, 0x00, 0x73};
104 static const unsigned short ModeIndex_1920x1440[] = {0x68, 0x69, 0x00, 0x6b};
105 static const unsigned short ModeIndex_300_2048x1536[]= {0x6c, 0x6d, 0x00, 0x00};
106 static const unsigned short ModeIndex_310_2048x1536[]= {0x6c, 0x6d, 0x00, 0x6e};
108 static const unsigned char SiS_MDA_DAC[] =
110 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
111 0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,
112 0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,
113 0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,
114 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
115 0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,
116 0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,
117 0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F,0x3F
120 static const unsigned char SiS_CGA_DAC[] =
122 0x00,0x10,0x04,0x14,0x01,0x11,0x09,0x15,
123 0x00,0x10,0x04,0x14,0x01,0x11,0x09,0x15,
124 0x2A,0x3A,0x2E,0x3E,0x2B,0x3B,0x2F,0x3F,
125 0x2A,0x3A,0x2E,0x3E,0x2B,0x3B,0x2F,0x3F,
126 0x00,0x10,0x04,0x14,0x01,0x11,0x09,0x15,
127 0x00,0x10,0x04,0x14,0x01,0x11,0x09,0x15,
128 0x2A,0x3A,0x2E,0x3E,0x2B,0x3B,0x2F,0x3F,
129 0x2A,0x3A,0x2E,0x3E,0x2B,0x3B,0x2F,0x3F
132 static const unsigned char SiS_EGA_DAC[] =
134 0x00,0x10,0x04,0x14,0x01,0x11,0x05,0x15,
135 0x20,0x30,0x24,0x34,0x21,0x31,0x25,0x35,
136 0x08,0x18,0x0C,0x1C,0x09,0x19,0x0D,0x1D,
137 0x28,0x38,0x2C,0x3C,0x29,0x39,0x2D,0x3D,
138 0x02,0x12,0x06,0x16,0x03,0x13,0x07,0x17,
139 0x22,0x32,0x26,0x36,0x23,0x33,0x27,0x37,
140 0x0A,0x1A,0x0E,0x1E,0x0B,0x1B,0x0F,0x1F,
141 0x2A,0x3A,0x2E,0x3E,0x2B,0x3B,0x2F,0x3F
144 static const unsigned char SiS_VGA_DAC[] =
146 0x00,0x10,0x04,0x14,0x01,0x11,0x09,0x15,
147 0x2A,0x3A,0x2E,0x3E,0x2B,0x3B,0x2F,0x3F,
148 0x00,0x05,0x08,0x0B,0x0E,0x11,0x14,0x18,
149 0x1C,0x20,0x24,0x28,0x2D,0x32,0x38,0x3F,
150 0x00,0x10,0x1F,0x2F,0x3F,0x1F,0x27,0x2F,
151 0x37,0x3F,0x2D,0x31,0x36,0x3A,0x3F,0x00,
152 0x07,0x0E,0x15,0x1C,0x0E,0x11,0x15,0x18,
153 0x1C,0x14,0x16,0x18,0x1A,0x1C,0x00,0x04,
154 0x08,0x0C,0x10,0x08,0x0A,0x0C,0x0E,0x10,
155 0x0B,0x0C,0x0D,0x0F,0x10
158 static const struct SiS_St SiS_SModeIDTable[] =
160 {0x01,0x9208,0x01,0x00,0x00,0x00,0x01,0x00,0x40},
161 {0x01,0x1210,0x14,0x01,0x01,0x00,0x01,0x00,0x40},
162 {0x01,0x1010,0x17,0x02,0x02,0x00,0x01,0x01,0x40},
163 {0x03,0x8208,0x03,0x00,0x00,0x00,0x01,0x02,0x40},
164 {0x03,0x0210,0x16,0x01,0x01,0x00,0x01,0x02,0x40},
165 {0x03,0x0010,0x18,0x02,0x02,0x00,0x01,0x03,0x40},
166 {0x05,0x9209,0x05,0x00,0x00,0x00,0x00,0x04,0x40},
167 {0x06,0x8209,0x06,0x00,0x00,0x00,0x00,0x05,0x40},
168 {0x07,0x0000,0x07,0x03,0x03,0x00,0x01,0x03,0x40},
169 {0x07,0x0000,0x19,0x02,0x02,0x00,0x01,0x03,0x40},
170 {0x0d,0x920a,0x0d,0x00,0x00,0x00,0x00,0x04,0x40},
171 {0x0e,0x820a,0x0e,0x00,0x00,0x00,0x00,0x05,0x40},
172 {0x0f,0x0202,0x11,0x01,0x01,0x00,0x00,0x05,0x40},
173 {0x10,0x0212,0x12,0x01,0x01,0x00,0x00,0x05,0x40},
174 {0x11,0x0212,0x1a,0x04,0x04,0x00,0x00,0x05,0x40},
175 {0x12,0x0212,0x1b,0x04,0x04,0x00,0x00,0x05,0x40},
176 {0x13,0x021b,0x1c,0x00,0x00,0x00,0x00,0x04,0x40},
177 {0x12,0x0010,0x18,0x02,0x02,0x00,0x00,0x05,0x40},
178 {0x12,0x0210,0x18,0x01,0x01,0x00,0x00,0x05,0x40},
179 {0xff,0x0000,0x00,0x00,0x00,0x00,0x00,0x00,0x00}
230 #if defined(CONFIG_FB_SIS_300) || defined(CONFIG_FB_SIS_315)
235 0x28,0x18,0x08,0x0800,
236 {0x09,0x03,0x00,0x02},
238 {0x2d,0x27,0x28,0x90,0x2b,0xa0,0xbf,0x1f,
239 0x00,0xc7,0x06,0x07,0x00,0x00,0x00,0x00,
240 0x9c,0x8e,0x8f,0x14,0x1f,0x96,0xb9,0xa3,
242 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
243 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,
244 0x08,0x00,0x0f,0x00},
245 {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00,
250 0x28,0x18,0x08,0x0800,
251 {0x09,0x03,0x00,0x02},
253 {0x2d,0x27,0x28,0x90,0x2b,0xa0,0xbf,0x1f,
254 0x00,0xc7,0x06,0x07,0x00,0x00,0x00,0x00,
255 0x9c,0x8e,0x8f,0x14,0x1f,0x96,0xb9,0xa3,
257 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
258 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,
259 0x08,0x00,0x0f,0x00},
260 {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00,
265 0x50,0x18,0x08,0x1000,
266 {0x01,0x03,0x00,0x02},
268 {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f,
269 0x00,0xc7,0x06,0x07,0x00,0x00,0x00,0x00,
270 0x9c,0x8e,0x8f,0x28,0x1f,0x96,0xb9,0xa3,
272 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
273 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,
274 0x08,0x00,0x0f,0x00},
275 {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00,
280 0x50,0x18,0x08,0x1000,
281 {0x01,0x03,0x00,0x02},
283 {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f,
284 0x00,0xc7,0x06,0x07,0x00,0x00,0x00,0x00,
285 0x9c,0x8e,0x8f,0x28,0x1f,0x96,0xb9,0xa3,
287 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
288 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,
289 0x08,0x00,0x0f,0x00},
290 {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00,
295 0x28,0x18,0x08,0x4000,
296 {0x09,0x03,0x00,0x02},
298 {0x2d,0x27,0x28,0x90,0x2c,0x80,0xbf,0x1f,
299 0x00,0xc1,0x00,0x00,0x00,0x00,0x00,0x00,
300 0x9c,0x8e,0x8f,0x14,0x00,0x96,0xb9,0xa2,
302 {0x00,0x13,0x15,0x17,0x02,0x04,0x06,0x07,
303 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,
304 0x01,0x00,0x03,0x00},
305 {0x00,0x00,0x00,0x00,0x00,0x30,0x0f,0x00,
310 0x28,0x18,0x08,0x4000,
311 {0x09,0x03,0x00,0x02},
313 {0x2d,0x27,0x28,0x90,0x2c,0x80,0xbf,0x1f,
314 0x00,0xc1,0x00,0x00,0x00,0x00,0x00,0x00,
315 0x9c,0x8e,0x8f,0x14,0x00,0x96,0xb9,0xa2,
317 {0x00,0x13,0x15,0x17,0x02,0x04,0x06,0x07,
318 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,
319 0x01,0x00,0x03,0x00},
320 {0x00,0x00,0x00,0x00,0x00,0x30,0x0f,0x00,
325 0x50,0x18,0x08,0x4000,
326 {0x01,0x01,0x00,0x06},
328 {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f,
329 0x00,0xc1,0x00,0x00,0x00,0x00,0x00,0x00,
330 0x9c,0x8e,0x8f,0x28,0x00,0x96,0xb9,0xc2,
332 {0x00,0x17,0x17,0x17,0x17,0x17,0x17,0x17,
333 0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17,
334 0x01,0x00,0x01,0x00},
335 {0x00,0x00,0x00,0x00,0x00,0x00,0x0d,0x00,
340 0x50,0x18,0x0e,0x1000,
341 {0x00,0x03,0x00,0x03},
343 {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f,
344 0x00,0x4d,0x0b,0x0c,0x00,0x00,0x00,0x00,
345 0x83,0x85,0x5d,0x28,0x0d,0x63,0xba,0xa3,
347 {0x00,0x08,0x08,0x08,0x08,0x08,0x08,0x08,
348 0x10,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
349 0x0e,0x00,0x0f,0x08},
350 {0x00,0x00,0x00,0x00,0x00,0x10,0x0a,0x00,
355 0x00,0x00,0x00,0x0000,
356 {0x00,0x00,0x00,0x15},
358 {0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,
359 0x15,0x15,0x15,0x15,0x15,0x15,0x3f,0x3f,
360 0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x00,0x00,
362 {0x00,0x00,0x00,0x00,0x00,0x15,0x15,0x15,
363 0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15,
364 0x15,0x15,0x15,0x15},
365 {0x15,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,
370 0x00,0x10,0x04,0x0114,
371 {0x11,0x09,0x15,0x00},
373 {0x04,0x14,0x01,0x11,0x09,0x15,0x2a,0x3a,
374 0x2e,0x3e,0x2b,0x3b,0x2f,0x3f,0x2a,0x3a,
375 0x2e,0x3e,0x2b,0x3b,0x2f,0x3f,0x00,0x10,
377 {0x14,0x01,0x11,0x09,0x15,0x00,0x10,0x04,
378 0x14,0x01,0x11,0x09,0x15,0x2a,0x3a,0x2e,
379 0x3e,0x2b,0x3b,0x2f},
380 {0x3f,0x2a,0x3a,0x2e,0x3e,0x2b,0x3b,0x2f,
385 0x00,0x10,0x04,0x0114,
386 {0x11,0x05,0x15,0x20},
388 {0x24,0x34,0x21,0x31,0x25,0x35,0x08,0x18,
389 0x0c,0x1c,0x09,0x19,0x0d,0x1d,0x28,0x38,
390 0x2c,0x3c,0x29,0x39,0x2d,0x3d,0x02,0x12,
392 {0x16,0x03,0x13,0x07,0x17,0x22,0x32,0x26,
393 0x36,0x23,0x33,0x27,0x37,0x0a,0x1a,0x0e,
394 0x1e,0x0b,0x1b,0x0f},
395 {0x1f,0x2a,0x3a,0x2e,0x3e,0x2b,0x3b,0x2f,
400 0x00,0x10,0x04,0x0114,
401 {0x11,0x09,0x15,0x2a},
403 {0x2e,0x3e,0x2b,0x3b,0x2f,0x3f,0x00,0x05,
404 0x08,0x0b,0x0e,0x11,0x14,0x18,0x1c,0x20,
405 0x24,0x28,0x2d,0x32,0x38,0x3f,0x00,0x10,
407 {0x2f,0x3f,0x1f,0x27,0x2f,0x37,0x3f,0x2d,
408 0x31,0x36,0x3a,0x3f,0x00,0x07,0x0e,0x15,
409 0x1c,0x0e,0x11,0x15},
410 {0x18,0x1c,0x14,0x16,0x18,0x1a,0x1c,0x00,
415 0x08,0x0c,0x10,0x0a08,
416 {0x0c,0x0e,0x10,0x0b},
418 {0x0d,0x0f,0x10,0x10,0x01,0x08,0x00,0x00,
419 0x00,0x00,0x01,0x00,0x02,0x02,0x01,0x00,
420 0x04,0x04,0x01,0x00,0x05,0x02,0x05,0x00,
422 {0x01,0x06,0x05,0x06,0x00,0x08,0x01,0x08,
423 0x00,0x07,0x02,0x07,0x06,0x07,0x00,0x00,
424 0x00,0x00,0x00,0x00},
425 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
430 0x28,0x18,0x08,0x2000,
431 {0x09,0x0f,0x00,0x06},
433 {0x2d,0x27,0x28,0x90,0x2c,0x80,0xbf,0x1f,
434 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,
435 0x9c,0x8e,0x8f,0x14,0x00,0x96,0xb9,0xe3,
437 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
438 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,
439 0x01,0x00,0x0f,0x00},
440 {0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f,
445 0x50,0x18,0x08,0x4000,
446 {0x01,0x0f,0x00,0x06},
448 {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f,
449 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,
450 0x9c,0x8e,0x8f,0x28,0x00,0x96,0xb9,0xe3,
452 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
453 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17,
454 0x01,0x00,0x0f,0x00},
455 {0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f,
460 0x00,0x00,0x00,0x0000,
461 {0x01,0x0f,0x00,0x0e},
463 {0x5f,0x4f,0x50,0x82,0x54,0x80,0x0b,0x3e,
464 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
465 0xea,0x8c,0xdf,0x28,0x40,0xe7,0x04,0xa3,
467 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
468 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,
469 0x01,0x00,0x00,0x00},
470 {0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0f,
475 0x9f,0x3b,0x00,0x00c0,
476 {0x00,0x00,0x00,0x00},
478 {0x00,0x00,0x00,0x00,0x00,0x00,0xbb,0x3f,
479 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00,
480 0x00,0x00,0x1a,0x00,0xac,0x3e,0x00,0xc0,
482 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
483 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
484 0x00,0x00,0x00,0x00},
485 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
490 0x50,0x18,0x0e,0x8000,
491 {0x01,0x0f,0x00,0x06},
493 {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f,
494 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
495 0x82,0x84,0x5d,0x28,0x0f,0x63,0xba,0xe3,
497 {0x00,0x08,0x00,0x00,0x18,0x18,0x00,0x00,
498 0x00,0x08,0x00,0x00,0x00,0x18,0x00,0x00,
499 0x0b,0x00,0x05,0x00},
500 {0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x05,
505 0x50,0x18,0x0e,0x8000,
506 {0x01,0x0f,0x00,0x06},
508 {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f,
509 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
510 0x82,0x84,0x5d,0x28,0x0f,0x63,0xba,0xe3,
512 {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,
513 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,
514 0x01,0x00,0x0f,0x00},
515 {0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f,
520 0x28,0x18,0x0e,0x0800,
521 {0x09,0x03,0x00,0x02},
523 {0x2d,0x27,0x28,0x90,0x2b,0xb1,0xbf,0x1f,
524 0x00,0x4d,0x0b,0x0c,0x00,0x00,0x00,0x00,
525 0x83,0x85,0x5d,0x14,0x1f,0x63,0xba,0xa3,
527 {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,
528 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,
529 0x08,0x00,0x0f,0x00},
530 {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00,
535 0x28,0x18,0x0e,0x0800,
536 {0x09,0x03,0x00,0x02},
538 {0x2d,0x27,0x28,0x90,0x2b,0xa0,0xbf,0x1f,
539 0x00,0x4d,0x0b,0x0c,0x00,0x00,0x00,0x00,
540 0x83,0x85,0x5d,0x14,0x1f,0x63,0xba,0xa3,
542 {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,
543 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,
544 0x08,0x00,0x0f,0x00},
545 {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00,
550 0x50,0x18,0x0e,0x1000,
551 {0x01,0x03,0x00,0x02},
553 {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f,
554 0x00,0x4d,0x0b,0x0c,0x00,0x00,0x00,0x00,
555 0x83,0x85,0x5d,0x28,0x1f,0x63,0xba,0xa3,
557 {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,
558 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,
559 0x08,0x00,0x0f,0x00},
560 {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00,
565 0x50,0x18,0x0e,0x1000,
566 {0x01,0x03,0x00,0x02},
568 {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f,
569 0x00,0x4d,0x0b,0x0c,0x00,0x00,0x00,0x00,
570 0x83,0x85,0x5d,0x28,0x1f,0x63,0xba,0xa3,
572 {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,
573 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,
574 0x08,0x00,0x0f,0x00},
575 {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00,
580 0x28,0x18,0x10,0x0800,
581 {0x08,0x03,0x00,0x02},
583 {0x2d,0x27,0x28,0x90,0x2b,0xb1,0xbf,0x1f,
584 0x00,0x4f,0x0d,0x0e,0x00,0x00,0x00,0x00,
585 0x9c,0x8e,0x8f,0x14,0x1f,0x96,0xb9,0xa3,
587 {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,
588 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,
589 0x0c,0x00,0x0f,0x08},
590 {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00,
595 0x50,0x18,0x10,0x1000,
596 {0x00,0x03,0x00,0x02},
598 {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f,
599 0x00,0x4f,0x0d,0x0e,0x00,0x00,0x00,0x00,
600 0x9c,0x8e,0x8f,0x28,0x1f,0x96,0xb9,0xa3,
602 {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,
603 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,
604 0x0c,0x00,0x0f,0x08},
605 {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00,
610 0x50,0x18,0x10,0x1000,
611 {0x00,0x03,0x00,0x02},
613 {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f,
614 0x00,0x4f,0x0d,0x0e,0x00,0x00,0x00,0x00,
615 0x9c,0x8e,0x8f,0x28,0x0f,0x96,0xb9,0xa3,
617 {0x00,0x08,0x08,0x08,0x08,0x08,0x08,0x08,
618 0x10,0x18,0x18,0x18,0x18,0x18,0x18,0x18,
619 0x0e,0x00,0x0f,0x08},
620 {0x00,0x00,0x00,0x00,0x00,0x10,0x0a,0x00,
625 0x50,0x1d,0x10,0xa000,
626 {0x01,0x0f,0x00,0x06},
628 {0x5f,0x4f,0x50,0x82,0x55,0x81,0x0b,0x3e,
629 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
630 0xe9,0x8b,0xdf,0x28,0x00,0xe7,0x04,0xc3,
632 {0x00,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,
633 0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,
634 0x01,0x00,0x0f,0x00},
635 {0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x01,
640 0x50,0x1d,0x10,0xa000,
641 {0x01,0x0f,0x00,0x06},
643 {0x5f,0x4f,0x50,0x82,0x55,0x81,0x0b,0x3e,
644 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00,
645 0xe9,0x8b,0xdf,0x28,0x00,0xe7,0x04,0xe3,
647 {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07,
648 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f,
649 0x01,0x00,0x0f,0x00},
650 {0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f,
655 0x28,0x18,0x08,0x2000,
656 {0x01,0x0f,0x00,0x0e},
658 {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f,
659 0x00,0x41,0x00,0x00,0x00,0x00,0x00,0x00,
660 0x9c,0x8e,0x8f,0x28,0x40,0x96,0xb9,0xa3,
662 {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07,
663 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f,
664 0x41,0x00,0x0f,0x00},
665 {0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0f,
675 static const unsigned char SiS_SoftSetting = 0x30;
677 static const unsigned char SiS_OutputSelect = 0x40;
679 static const unsigned char SiS_NTSCTiming[] = {
680 0x17,0x1d,0x03,0x09,0x05,0x06,0x0c,0x0c,
681 0x94,0x49,0x01,0x0a,0x06,0x0d,0x04,0x0a,
682 0x06,0x14,0x0d,0x04,0x0a,0x00,0x85,0x1b,
683 0x0c,0x50,0x00,0x97,0x00,0xda,0x4a,0x17,
684 0x7d,0x05,0x4b,0x00,0x00,0xe2,0x00,0x02,
685 0x03,0x0a,0x65,0x9d,0x08,0x92,0x8f,0x40,
686 0x60,0x80,0x14,0x90,0x8c,0x60,0x14,0x50,
687 0x00,0x40,0x44,0x00,0xdb,0x02,0x3b,0x00
690 static const unsigned char SiS_PALTiming[] = {
691 0x19,0x52,0x35,0x6e,0x04,0x38,0x3d,0x70,
692 0x94,0x49,0x01,0x12,0x06,0x3e,0x35,0x6d,
693 0x06,0x14,0x3e,0x35,0x6d,0x00,0x45,0x2b,
694 0x70,0x50,0x00,0x9b,0x00,0xd9,0x5d,0x17,
695 0x7d,0x05,0x45,0x00,0x00,0xe8,0x00,0x02,
696 0x0d,0x00,0x68,0xb0,0x0b,0x92,0x8f,0x40,
697 0x60,0x80,0x14,0x90,0x8c,0x60,0x14,0x63,
698 0x00,0x40,0x3e,0x00,0xe1,0x02,0x28,0x00
701 static const unsigned char SiS_HiTVExtTiming[] = {
702 0x32,0x65,0x2c,0x5f,0x08,0x31,0x3a,0x64,
703 0x28,0x02,0x01,0x3d,0x06,0x3e,0x35,0x6d,
704 0x06,0x14,0x3e,0x35,0x6d,0x00,0xc5,0x3f,
705 0x64,0x90,0x33,0x8c,0x18,0x36,0x3e,0x13,
706 0x2a,0xde,0x2a,0x44,0x40,0x2a,0x44,0x40,
707 0x8e,0x8e,0x82,0x07,0x0b,0x92,0x0f,0x40,
708 0x60,0x80,0x14,0x90,0x8c,0x60,0x14,0x3d,
709 0x63,0x4f,0x27,0x00,0xfc,0xff,0x6a,0x00
712 static const unsigned char SiS_HiTVSt1Timing[] = {
713 0x32,0x65,0x2c,0x5f,0x08,0x31,0x3a,0x65,
714 0x28,0x02,0x01,0x3d,0x06,0x3e,0x35,0x6d,
715 0x06,0x14,0x3e,0x35,0x6d,0x00,0xc5,0x3f,
716 0x65,0x90,0x7b,0xa8,0x03,0xf0,0x87,0x03,
717 0x11,0x15,0x11,0xcf,0x10,0x11,0xcf,0x10,
718 0x35,0x35,0x3b,0x69,0x1d,0x92,0x0f,0x40,
719 0x60,0x80,0x14,0x90,0x8c,0x60,0x04,0x86,
720 0xaf,0x5d,0x0e,0x00,0xfc,0xff,0x2d,0x00
723 static const unsigned char SiS_HiTVSt2Timing[] = {
724 0x32,0x65,0x2c,0x5f,0x08,0x31,0x3a,0x64,
725 0x28,0x02,0x01,0x3d,0x06,0x3e,0x35,0x6d,
726 0x06,0x14,0x3e,0x35,0x6d,0x00,0xc5,0x3f,
727 0x64,0x90,0x33,0x8c,0x18,0x36,0x3e,0x13,
728 0x2a,0xde,0x2a,0x44,0x40,0x2a,0x44,0x40,
729 0x8e,0x8e,0x82,0x07,0x0b,0x92,0x0f,0x40,
730 0x60,0x80,0x14,0x90,0x8c,0x60,0x14,0x3d,
731 0x63,0x4f,0x27,0x00,0xfc,0xff,0x6a,0x00
735 static const unsigned char SiS_HiTVTextTiming[] = {
736 0x32,0x65,0x2c,0x5f,0x08,0x31,0x3a,0x65,
737 0x28,0x02,0x01,0x3d,0x06,0x3e,0x35,0x6d,
738 0x06,0x14,0x3e,0x35,0x6d,0x00,0xc5,0x3f,
739 0x65,0x90,0xe7,0xbc,0x03,0x0c,0x97,0x03,
740 0x14,0x78,0x14,0x08,0x20,0x14,0x08,0x20,
741 0xc8,0xc8,0x3b,0xd2,0x26,0x92,0x0f,0x40,
742 0x60,0x80,0x14,0x90,0x8c,0x60,0x04,0x96,
743 0x72,0x5c,0x11,0x00,0xfc,0xff,0x32,0x00
747 static const unsigned char SiS_HiTVGroup3Data[] = {
748 0x00,0x1a,0x22,0x63,0x62,0x22,0x08,0x5f,
749 0x05,0x21,0xb2,0xb2,0x55,0x77,0x2a,0xa6,
750 0x25,0x2f,0x47,0xfa,0xc8,0xff,0x8e,0x20,
751 0x8c,0x6e,0x60,0x2e,0x58,0x48,0x72,0x44,
752 0x56,0x36,0x4f,0x6e,0x3f,0x80,0x00,0x80,
753 0x4f,0x7f,0x03,0xa8,0x7d,0x20,0x1a,0xa9,
754 0x14,0x05,0x03,0x7e,0x64,0x31,0x14,0x75,
755 0x18,0x05,0x18,0x05,0x4c,0xa8,0x01
758 static const unsigned char SiS_HiTVGroup3Simu[] = {
759 0x00,0x1a,0x22,0x63,0x62,0x22,0x08,0x95,
760 0xdb,0x20,0xb8,0xb8,0x55,0x47,0x2a,0xa6,
761 0x25,0x2f,0x47,0xfa,0xc8,0xff,0x8e,0x20,
762 0x8c,0x6e,0x60,0x15,0x26,0xd3,0xe4,0x11,
763 0x56,0x36,0x4f,0x6e,0x3f,0x80,0x00,0x80,
764 0x67,0x36,0x01,0x47,0x0e,0x10,0xbe,0xb4,
765 0x01,0x05,0x03,0x7e,0x65,0x31,0x14,0x75,
766 0x18,0x05,0x18,0x05,0x4c,0xa8,0x01
770 static const unsigned char SiS_HiTVGroup3Text[] = {
771 0x00,0x1a,0x22,0x63,0x62,0x22,0x08,0xa7,
772 0xf5,0x20,0xce,0xce,0x55,0x47,0x2a,0xa6,
773 0x25,0x2f,0x47,0xfa,0xc8,0xff,0x8e,0x20,
774 0x8c,0x6e,0x60,0x18,0x2c,0x0c,0x20,0x22,
775 0x56,0x36,0x4f,0x6e,0x3f,0x80,0x00,0x80,
776 0x93,0x3c,0x01,0x50,0x2f,0x10,0xf4,0xca,
777 0x01,0x05,0x03,0x7e,0x65,0x31,0x14,0x75,
778 0x18,0x05,0x18,0x05,0x4c,0xa8,0x01
782 static const struct SiS_TVData SiS_StPALData[] =
784 { 1, 1, 864, 525,1270, 400, 100, 0, 760, 0,0xf4,0xff,0x1c,0x22},
785 { 1, 1, 864, 525,1270, 350, 100, 0, 760, 0,0xf4,0xff,0x1c,0x22},
786 { 1, 1, 864, 525,1270, 400, 0, 0, 720, 0,0xf1,0x04,0x1f,0x18},
787 { 1, 1, 864, 525,1270, 350, 0, 0, 720, 0,0xf4,0x0b,0x1c,0x0a},
788 { 1, 1, 864, 525,1270, 480, 50, 0, 760, 0,0xf4,0xff,0x1c,0x22},
789 { 1, 1, 864, 525,1270, 600, 50, 0, 0,0x300,0xf4,0xff,0x1c,0x22}
792 static const struct SiS_TVData SiS_ExtPALData[] =
794 { 27, 10, 848, 448,1270, 530, 50, 0, 50, 0,0xf4,0xff,0x1c,0x22},
795 { 108, 35, 848, 398,1270, 530, 50, 0, 50, 0,0xf4,0xff,0x1c,0x22},
796 { 12, 5, 954, 448,1270, 530, 50, 0, 50, 0,0xf1,0x04,0x1f,0x18},
797 { 9, 4, 960, 463,1644, 438, 50, 0, 50, 0,0xf4,0x0b,0x1c,0x0a},
798 { 9, 4, 848, 528,1270, 530, 0, 0, 50, 0,0xf5,0xfb,0x1b,0x2a},
799 { 36, 25,1060, 648,1270, 530, 438, 0, 438, 0,0xeb,0x05,0x25,0x16},
800 { 3, 2,1080, 619,1270, 540, 438, 0, 438, 0,0xf3,0x00,0x1d,0x20},
801 { 1, 1,1170, 821,1270, 520, 686, 0, 686, 0,0xF3,0x00,0x1D,0x20},
802 { 1, 1,1170, 821,1270, 520, 686, 0, 686, 0,0xF3,0x00,0x1D,0x20},
803 { 9, 4, 848, 528,1270, 530, 0, 0, 50, 0,0xf5,0xfb,0x1b,0x2a}
806 static const struct SiS_TVData SiS_StNTSCData[] =
808 { 1, 1, 858, 525,1270, 400, 50, 0, 760, 0,0xf1,0x04,0x1f,0x18},
809 { 1, 1, 858, 525,1270, 350, 50, 0, 640, 0,0xf1,0x04,0x1f,0x18},
810 { 1, 1, 858, 525,1270, 400, 0, 0, 720, 0,0xf1,0x04,0x1f,0x18},
811 { 1, 1, 858, 525,1270, 350, 0, 0, 720, 0,0xf4,0x0b,0x1c,0x0a},
812 { 1, 1, 858, 525,1270, 480, 0, 0, 760, 0,0xf1,0x04,0x1f,0x18}
815 static const struct SiS_TVData SiS_ExtNTSCData[] =
817 { 143, 65, 858, 443,1270, 440, 171, 0, 171, 0,0xf1,0x04,0x1f,0x18},
818 { 88, 35, 858, 393,1270, 440, 171, 0, 171, 0,0xf1,0x04,0x1f,0x18},
819 { 143, 70, 924, 443,1270, 440, 92, 0, 92, 0,0xf1,0x04,0x1f,0x18},
820 { 143, 70, 924, 393,1270, 440, 92, 0, 92, 0,0xf4,0x0b,0x1c,0x0a},
821 { 143, 76, 836, 523,1270, 440, 224, 0, 0, 0,0xf1,0x05,0x1f,0x16},
822 { 143, 120,1056, 643,1270, 440, 0, 1, 0, 0,0xf4,0x10,0x1c,0x00},
823 { 143, 76, 836, 523,1270, 440, 0, 1, 0, 0,0xee,0x0c,0x22,0x08},
824 { 1, 1,1100, 811,1412, 440, 0, 1, 0, 0,0xee,0x0c,0x22,0x08},
826 { 65, 64,1056, 791,1270, 480, 455, 0, 0, 0,0x00,0x00,0x00,0x00}
829 { 1, 1,1100, 811,1412, 440, 0, 1, 0, 0,0x00,0x00,0x00,0x00}
832 { 1, 1,1120, 821,1516, 420, 0, 1, 0, 0,0x00,0x00,0x00,0x00}
835 { 1, 1, 938, 821,1516, 420, 0, 1, 0, 0,0x00,0x00,0x00,0x00}
838 { 1, 1,1072, 791,1270, 480, 455, 0, 0, 0,0x00,0x00,0x00,0x00}
841 { 1, 1,1100, 846,1270, 440, 455, 0, 0, 0,0x00,0x00,0x00,0x00}
844 { 1, 1,1100, 846,1412, 440, 455, 0, 0, 0,0x00,0x00,0x00,0x00}
848 static const struct SiS_TVData SiS_StHiTVData[] =
850 { 1, 1, 0x37c,0x233,0x2b2,0x320, 0, 0, 0, 0, 0, 0, 0, 0},
851 { 1, 1, 0x37c,0x233,0x2b2,0x2bc, 0, 0, 0, 0, 0, 0, 0, 0},
852 { 1, 1, 0x37c,0x233,0x2b2,0x320, 0, 0, 0, 0, 0, 0, 0, 0},
853 { 1, 1, 0x37c,0x233,0x2b2,0x2bc, 0, 0, 0, 0, 0, 0, 0, 0},
854 { 1, 1, 0x37c,0x233,0x2b2,0x3c0, 0, 0, 0, 0, 0, 0, 0, 0},
855 { 8, 5, 0x41a,0x2ab,0x670,0x3c0,0x150, 1, 0, 0, 0, 0, 0, 0}
858 static const struct SiS_TVData SiS_St2HiTVData[] =
860 { 3, 1, 0x348,0x1e3,0x670,0x3c0,0x032, 0, 0, 0, 0, 0, 0, 0},
861 { 1, 1, 0x37c,0x233,0x2b2,0x2bc, 0, 0, 0, 0, 0, 0, 0, 0},
862 { 3, 1, 0x348,0x1e3,0x670,0x3c0,0x032, 0, 0, 0, 0, 0, 0, 0},
863 { 1, 1, 0x37c,0x233,0x2b2,0x2bc, 0, 0, 0, 0, 0, 0, 0, 0},
864 { 5, 2, 0x348,0x233,0x670,0x3c0,0x08d, 1, 0, 0, 0, 0, 0, 0},
865 { 8, 5, 0x41a,0x2ab,0x670,0x3c0,0x17c, 1, 0, 0, 0, 0, 0, 0}
868 static const struct SiS_TVData SiS_ExtHiTVData[] =
870 { 6, 1, 0x348,0x233,0x660,0x3c0, 0, 0, 0, 0, 0, 0, 0, 0},
871 { 3, 1, 0x3c0,0x233,0x660,0x3c0, 0, 0, 0, 0, 0, 0, 0, 0},
872 { 6, 1, 0x348,0x233,0x660,0x3c0, 0, 0, 0, 0, 0, 0, 0, 0},
873 { 3, 1, 0x3c0,0x233,0x660,0x3c0, 0, 0, 0, 0, 0, 0, 0, 0},
874 { 5, 1, 0x348,0x233,0x670,0x3c0,0x166, 1, 0, 0, 0, 0, 0, 0},
875 { 16, 5, 0x41a,0x2ab,0x670,0x3c0,0x143, 1, 0, 0, 0, 0, 0, 0},
876 { 25, 12, 0x4ec,0x353,0x670,0x3c0,0x032, 0, 0, 0, 0, 0, 0, 0},
877 { 5, 4, 0x627,0x464,0x670,0x3c0,0x128, 0, 0, 0, 0, 0, 0, 0},
878 { 4, 1, 0x41a,0x233,0x60c,0x3c0,0x143, 1, 0, 0, 0, 0, 0, 0},
879 { 5, 2, 0x578,0x293,0x670,0x3c0,0x032, 0, 0, 0, 0, 0, 0, 0},
880 { 8, 5, 0x6d6,0x323,0x670,0x3c0,0x128, 0, 0, 0, 0, 0, 0, 0},
881 { 8, 3, 0x4ec,0x353,0x670,0x3c0,0x032, 0, 0, 0, 0, 0, 0, 0},
884 static const struct SiS_TVData SiS_St525pData[] =
886 { 1, 1, 0x6b4,0x20d,0x4f6,0x190, 50, 0, 0x2f8, 0, 0, 0, 0, 0},
887 { 1, 1, 0x6b4,0x20d,0x4f6,0x15e, 50, 0, 0x280, 0, 0, 0, 0, 0},
888 { 1, 1, 0x6b4,0x20d,0x4f6,0x190, 50, 0, 0x2f8, 0, 0, 0, 0, 0},
889 { 1, 1, 0x6b4,0x20d,0x4f6,0x15e, 50, 0, 0x280, 0, 0, 0, 0, 0},
890 { 1, 1, 0x6b4,0x20d,0x4f6,0x1e0, 0, 0, 0x2f8, 0, 0, 0, 0, 0}
893 static const struct SiS_TVData SiS_St750pData[] =
895 { 1, 1, 0x672,0x2ee,0x500,0x190, 50, 0, 0x2f8, 0, 0, 0, 0, 0},
896 { 1, 1, 0x672,0x2ee,0x500,0x15e, 50, 0, 0x280, 0, 0, 0, 0, 0},
897 { 1, 1, 0x672,0x2ee,0x500,0x190, 0, 0, 0x2d0, 0, 0, 0, 0, 0},
898 { 1, 1, 0x672,0x2ee,0x500,0x15e, 0, 0, 0x2d0, 0, 0, 0, 0, 0},
899 { 1, 1, 0x672,0x2ee,0x500,0x1e0, 0, 0, 0x2f8, 0, 0, 0, 0, 0}
902 static const struct SiS_TVData SiS_Ext750pData[] =
904 { 3, 1, 935, 470, 1130, 680, 50, 0, 0, 0, 0, 0, 0, 0},
905 { 24, 7, 935, 420, 1130, 680, 50, 0, 0, 0, 0, 0, 0, 0},
906 { 3, 1, 935, 470, 1130, 680, 50, 0, 0, 0, 0, 0, 0, 0},
907 { 24, 7, 935, 420, 1130, 680, 50, 0, 0, 0, 0, 0, 0, 0},
908 { 2, 1, 1100, 590, 1130, 640, 50, 0, 0, 0, 0, 0, 0, 0},
909 { 3, 2, 1210, 690, 1130, 660, 50, 0, 0, 0, 0, 0, 0, 0},
910 { 2, 1, 1100, 562, 1130, 640, 0, 1, 0, 0, 0, 0, 0, 0},
911 { 1, 1, 1375, 878, 1130, 640, 638, 0, 0, 0, 0, 0, 0, 0},
912 { 5, 3, 1100, 675, 1130, 640, 0, 1, 0, 0, 0, 0, 0, 0},
913 { 25, 24, 1496, 755, 1120, 680, 50, 0, 0, 0, 0, 0, 0, 0}
916 static const struct SiS_LCDData SiS_LCD1280x720Data[] =
918 { 44, 15, 864, 430, 1408, 806 },
919 { 128, 35, 792, 385, 1408, 806 },
920 { 44, 15, 864, 430, 1408, 806 },
921 { 128, 35, 792, 385, 1408, 806 },
922 { 22, 9, 864, 516, 1408, 806 },
923 { 8, 5, 1056, 655, 1408, 806 },
924 { 0, 0, 0, 0, 0, 0 },
925 { 0, 0, 0, 0, 0, 0 },
926 { 0, 0, 0, 0, 0, 0 },
927 { 0, 0, 0, 0, 0, 0 },
928 { 1, 1, 1408, 806, 1408, 806 }
938 static const struct SiS_LCDData SiS_StLCD1280x768_2Data[] =
940 { 64, 21, 858, 434, 1408, 806 },
941 { 32, 9, 858, 372, 1408, 806 },
942 { 64, 21, 858, 434, 1408, 806 },
943 { 32, 9, 858, 372, 1408, 806 },
944 { 143, 68, 1024, 527, 1408, 806 },
945 { 64, 51, 1364, 663, 1408, 806 },
946 { 88, 81, 1296, 806, 1408, 806 },
947 { 0, 0, 0, 0, 0, 0 },
948 { 1, 1, 1408, 806, 1408, 806 },
949 { 0, 0, 0, 0, 0, 0 },
950 { 16, 15, 1600, 750, 1600, 806 }
953 static const struct SiS_LCDData SiS_ExtLCD1280x768_2Data[] =
955 { 16, 5, 960, 410, 1600, 806 },
956 { 64, 21, 1152, 364, 1600, 806 },
957 { 16, 5, 960, 410, 1600, 806 },
958 { 64, 21, 1152, 364, 1600, 806 },
959 { 32, 13, 1040, 493, 1600, 806 },
960 { 16, 9, 1152, 618, 1600, 806 },
961 { 25, 21, 1344, 796, 1600, 806 },
962 { 0, 0, 0, 0, 0, 0 },
963 { 1, 1, 1600, 806, 1600, 806 },
964 { 0, 0, 0, 0, 0, 0 },
965 { 16, 15, 1600, 750, 1600, 806 }
969 static const struct SiS_LCDData SiS_LCD1280x768_3Data[] =
971 { 64, 25, 1056, 422, 1664, 798 },
972 { 128, 39, 884, 396, 1408, 806 },
973 { 64, 25, 1056, 422, 1664, 798 },
974 { 128, 39, 884, 396, 1408, 806 },
975 { 32, 15, 1056, 513, 1408, 806 },
976 { 176, 125, 1280, 640, 1408, 806 },
977 { 64, 61, 1342, 806, 1408, 806 },
978 { 0, 0, 0, 0, 0, 0 },
979 { 1, 1, 1408, 806, 1408, 806 },
980 { 0, 0, 0, 0, 0, 0 },
981 { 16, 15, 1600, 750, 1600, 806 }
985 static const struct SiS_LCDData SiS_LCD1280x800Data[] =
987 { 128, 51, 1122, 412, 1408, 816 },
988 { 128, 49, 1232, 361, 1408, 816 },
989 { 128, 51, 1122, 412, 1408, 816 },
990 { 128, 49, 1232, 361, 1408, 816 },
991 { 8, 3, 880, 491, 1408, 816 },
992 { 11, 6, 1024, 612, 1408, 816 },
993 { 22, 21, 1400, 784, 1408, 816 },
994 { 0, 0, 0, 0, 0, 0 },
995 { 1, 1, 1408, 816, 1408, 816 },
996 { 0, 0, 0, 0, 0, 0 },
1000 static const struct SiS_LCDData SiS_LCD1280x800_2Data[] =
1002 { 97, 42, 1344, 409, 1552, 812 },
1003 { 97, 35, 1280, 358, 1552, 812 },
1004 { 97, 42, 1344, 409, 1552, 812 },
1005 { 97, 35, 1280, 358, 1552, 812 },
1006 { 97, 39, 1040, 488, 1552, 812 },
1007 { 194, 105, 1120, 608, 1552, 812 },
1008 { 97, 84, 1400, 780, 1552, 812 },
1009 { 0, 0, 0, 0, 0, 0 },
1010 { 1, 1, 1552, 812, 1552, 812 },
1011 { 97, 96, 1600, 780, 1552, 812 },
1012 { 97, 90, 1600, 730, 1552, 812 }
1016 static const struct SiS_LCDData SiS_LCD1280x800_3Data[] =
1018 { 128, 51, 1122, 412, 1408, 816 },
1019 { 128, 49, 1232, 361, 1408, 816 },
1020 { 128, 51, 1122, 412, 1408, 816 },
1021 { 128, 49, 1232, 361, 1408, 816 },
1022 { 8, 3, 880, 491, 1408, 816 },
1023 { 11, 6, 1024, 612, 1408, 816 },
1024 { 22, 21, 1400, 784, 1408, 816 },
1025 { 0, 0, 0, 0, 0, 0 },
1026 { 1, 1, 1408, 816, 1408, 816 },
1027 { 0, 0, 0, 0, 0, 0 },
1028 { 0, 0, 0, 0, 0, 0 }
1032 static const struct SiS_LCDData SiS_LCD1280x854Data[] =
1034 { 56, 15, 936, 410, 1664, 861 },
1035 { 64, 25, 1586, 355, 1664, 861 },
1036 { 56, 15, 936, 410, 1664, 861 },
1037 { 64, 25, 1586, 355, 1664, 861 },
1038 { 91, 45, 1464, 485, 1664, 861 },
1039 { 182, 75, 976, 605, 1664, 861 },
1040 { 91, 66, 1342, 774, 1664, 861 },
1041 { 0, 0, 0, 0, 0, 0 },
1042 { 26, 25, 1708, 807, 1664, 861 },
1043 { 13, 12, 1708, 774, 1664, 861 },
1044 { 52, 45, 1708, 725, 1664, 861 },
1045 { 0, 0, 0, 0, 0, 0 },
1046 { 0, 0, 0, 0, 0, 0 },
1047 { 1, 1, 1664, 861, 1664, 861 }
1050 static const struct SiS_LCDData SiS_LCD1280x960Data[] =
1052 { 9, 2, 800, 500, 1800, 1000 },
1053 { 9, 2, 800, 500, 1800, 1000 },
1054 { 4, 1, 900, 500, 1800, 1000 },
1055 { 4, 1, 900, 500, 1800, 1000 },
1056 { 9, 2, 800, 500, 1800, 1000 },
1057 { 30, 11, 1056, 625, 1800, 1000 },
1058 { 5, 3, 1350, 800, 1800, 1000 },
1059 { 1, 1, 1576, 1050, 1576, 1050 },
1060 { 1, 1, 1800, 1000, 1800, 1000 },
1061 { 0, 0, 0, 0, 0, 0 },
1062 { 0, 0, 0, 0, 0, 0 },
1063 { 0, 0, 0, 0, 0, 0 },
1064 { 0, 0, 0, 0, 0, 0 },
1065 { 0, 0, 0, 0, 0, 0 }
1068 static const struct SiS_LCDData SiS_StLCD1400x1050Data[] =
1070 { 211, 100, 2100, 408, 1688, 1066 },
1071 { 211, 64, 1536, 358, 1688, 1066 },
1072 { 211, 100, 2100, 408, 1688, 1066 },
1073 { 211, 64, 1536, 358, 1688, 1066 },
1074 { 211, 48, 840, 488, 1688, 1066 },
1075 { 211, 72, 1008, 609, 1688, 1066 },
1076 { 211, 128, 1400, 776, 1688, 1066 },
1077 { 211, 205, 1680, 1041, 1688, 1066 },
1078 { 1, 1, 1688, 1066, 1688, 1066 },
1079 { 0, 0, 0, 0, 0, 0 },
1080 { 0, 0, 0, 0, 0, 0 },
1081 { 0, 0, 0, 0, 0, 0 },
1082 { 0, 0, 0, 0, 0, 0 },
1083 { 0, 0, 0, 0, 0, 0 }
1086 static const struct SiS_LCDData SiS_ExtLCD1400x1050Data[] =
1089 { 211, 100, 2100, 408, 1688, 1066 },
1090 { 211, 64, 1536, 358, 1688, 1066 },
1091 { 211, 100, 2100, 408, 1688, 1066 },
1092 { 211, 64, 1536, 358, 1688, 1066 },
1094 { 211, 48, 840, 488, 1688, 1066 },
1096 { 211, 72, 1008, 609, 1688, 1066 },
1097 { 211, 128, 1400, 776, 1688, 1066 },
1098 { 211, 205, 1680, 1041, 1688, 1066 },
1099 { 1, 1, 1688, 1066, 1688, 1066 },
1100 { 0, 0, 0, 0, 0, 0 },
1101 { 211, 120, 1400, 730, 1688, 1066 },
1102 { 0, 0, 0, 0, 0, 0 },
1103 { 0, 0, 0, 0, 0, 0 },
1104 { 0, 0, 0, 0, 0, 0 }
1107 static const struct SiS_LCDData SiS_LCD1680x1050Data[] =
1109 { 95, 24, 1260, 410, 1900, 1066 },
1110 { 10, 3, 1710, 362, 1900, 1066 },
1111 { 95, 24, 1260, 410, 1900, 1066 },
1112 { 10, 3, 1710, 362, 1900, 1066 },
1113 { 95, 32, 1400, 490, 1900, 1066 },
1114 { 95, 42, 1470, 610, 1900, 1066 },
1115 { 95, 64, 1750, 784, 1900, 1066 },
1116 { 95, 94, 1900, 1055, 1900, 1066 },
1117 { 41, 31, 1900, 806, 1900, 1066 },
1118 { 95, 69, 1800, 817, 1900, 1066 },
1119 { 13, 9, 1900, 739, 1900, 1066 },
1120 { 95, 94, 1880, 1066, 1900, 1066 },
1121 { 1, 1, 1900, 1066, 1900, 1066 },
1122 { 0, 0, 0, 0, 0, 0 }
1125 static const struct SiS_LCDData SiS_StLCD1600x1200Data[] =
1127 {27, 4, 800, 500, 2160, 1250 },
1128 {27, 4, 800, 500, 2160, 1250 },
1129 { 6, 1, 900, 500, 2160, 1250 },
1130 { 6, 1, 900, 500, 2160, 1250 },
1131 {27, 1, 800, 500, 2160, 1250 },
1132 { 4, 1,1080, 625, 2160, 1250 },
1133 { 5, 2,1350, 800, 2160, 1250 },
1134 {135,88,1600,1100, 2160, 1250 },
1135 {72, 49,1680,1092, 2160, 1250 },
1136 { 1, 1,2160,1250, 2160, 1250 },
1137 { 0, 0, 0, 0, 0, 0 },
1138 { 0, 0, 0, 0, 0, 0 },
1139 { 0, 0, 0, 0, 0, 0 },
1140 { 0, 0, 0, 0, 0, 0 }
1143 static const struct SiS_LCDData SiS_ExtLCD1600x1200Data[] =
1145 {72,11, 990, 422, 2160, 1250 },
1147 {27, 4, 800, 500, 2160, 1250 },
1148 { 6, 1, 900, 500, 2160, 1250 },
1149 { 6, 1, 900, 500, 2160, 1250 },
1150 {45, 8, 960, 505, 2160, 1250 },
1152 { 4, 1,1080, 625, 2160, 1250 },
1153 { 5, 2,1350, 800, 2160, 1250 },
1154 {27,16,1500,1064, 2160, 1250 },
1155 {72,49,1680,1092, 2160, 1250 },
1156 { 1, 1,2160,1250, 2160, 1250 },
1157 { 0, 0, 0, 0, 0, 0 },
1158 { 0, 0, 0, 0, 0, 0 },
1159 { 0, 0, 0, 0, 0, 0 },
1160 { 0, 0, 0, 0, 0, 0 }
1163 static const struct SiS_LCDData SiS_NoScaleData[] =
1165 { 1, 1, 800, 449, 800, 449 },
1166 { 1, 1, 800, 449, 800, 449 },
1167 { 1, 1, 900, 449, 900, 449 },
1168 { 1, 1, 900, 449, 900, 449 },
1169 { 1, 1, 800, 525, 800, 525 },
1170 { 1, 1,1056, 628,1056, 628 },
1171 { 1, 1,1344, 806,1344, 806 },
1172 { 1, 1,1688,1066,1688,1066 },
1173 { 1, 1,1688, 802,1688, 802 },
1174 { 1, 1,2160,1250,2160,1250 },
1175 { 1, 1,1800,1000,1800,1000 },
1176 { 1, 1,1688,1066,1688,1066 },
1177 { 1, 1,1650, 750,1650, 750 },
1178 { 1, 1,1552, 812,1552, 812 },
1179 { 1, 1,1900,1066,1900,1066 },
1180 { 1, 1,1660, 806,1660, 806 },
1181 { 1, 1,1664, 798,1664, 798 },
1182 { 1, 1,1688, 802,1688, 802 },
1183 { 1, 1,1408, 806,1408, 806 },
1184 { 1, 1, 896, 497, 896, 497 },
1185 { 1, 1, 912, 597, 912, 597 },
1186 { 1, 1, 912, 597, 912, 597 },
1187 { 1, 1,1056, 497,1056, 497 },
1188 { 1, 1,1064, 497,1064, 497 },
1189 { 1, 1,1056, 497,1056, 497 },
1190 { 1, 1,1328, 739,1328, 739 },
1191 { 1, 1,1680, 892,1680, 892 },
1192 { 1, 1,1808, 808,1808, 808 },
1193 { 1, 1,1104, 563,1104, 563 },
1194 { 1, 1,1120, 618,1120, 618 },
1195 { 1, 1,1408, 816,1408, 816 },
1196 { 1, 1,1760,1235,1760,1235 },
1197 { 1, 1,2048,1320,2048,1320 },
1198 { 1, 1,1664, 861,1664, 861 }
1206 static const struct SiS_LVDSData SiS_LVDS320x240Data_1[]=
1208 { 848, 433, 400, 525},
1209 { 848, 389, 400, 525},
1210 { 848, 433, 400, 525},
1211 { 848, 389, 400, 525},
1212 { 848, 518, 400, 525},
1213 {1056, 628, 400, 525},
1214 { 400, 525, 400, 525}
1217 static const struct SiS_LVDSData SiS_LVDS320x240Data_2[]=
1219 { 800, 445, 800, 525},
1220 { 800, 395, 800, 525},
1221 { 800, 445, 800, 525},
1222 { 800, 395, 800, 525},
1223 { 800, 525, 800, 525},
1224 {1056, 628,1056, 628},
1225 { 480, 525, 480, 525}
1228 static const struct SiS_LVDSData SiS_LVDS640x480Data_1[]=
1230 { 800, 445, 800, 525},
1231 { 800, 395, 800, 525},
1232 { 800, 445, 800, 525},
1233 { 800, 395, 800, 525},
1234 { 800, 525, 800, 525}
1237 static const struct SiS_LVDSData SiS_LVDS800x600Data_1[]=
1239 { 848, 433,1060, 629},
1240 { 848, 389,1060, 629},
1241 { 848, 433,1060, 629},
1242 { 848, 389,1060, 629},
1243 { 848, 518,1060, 629},
1244 {1056, 628,1056, 628}
1247 static const struct SiS_LVDSData SiS_LVDS1024x600Data_1[] =
1249 { 840, 604,1344, 800},
1250 { 840, 560,1344, 800},
1251 { 840, 604,1344, 800},
1252 { 840, 560,1344, 800},
1253 { 840, 689,1344, 800},
1254 {1050, 800,1344, 800},
1255 {1344, 800,1344, 800}
1258 static const struct SiS_LVDSData SiS_LVDS1024x768Data_1[]=
1260 { 840, 438,1344, 806},
1261 { 840, 409,1344, 806},
1262 { 840, 438,1344, 806},
1263 { 840, 409,1344, 806},
1264 { 840, 518,1344, 806},
1265 {1050, 638,1344, 806},
1266 {1344, 806,1344, 806},
1271 { 840, 600, 840, 600},
1272 { 840, 600, 840, 600},
1273 { 840, 600, 840, 600},
1274 { 840, 600, 840, 600},
1275 { 784, 600, 784, 600},
1276 {1064, 750,1064, 750},
1277 {1160, 945,1160, 945}
1282 { 840, 525, 840, 525},
1283 { 840, 525, 840, 525},
1284 { 840, 525, 840, 525},
1285 { 840, 525, 840, 525},
1286 { 784, 525, 784, 525},
1287 {1040, 700,1040, 700},
1288 {1160, 840,1160, 840}
1295 {{0x65,0x4f,0x89,0x56,0x83,0xaa,0x1f,
1296 0x90,0x85,0x8f,0xab,0x30,0x00,0x05,
1298 {{0x65,0x4f,0x89,0x56,0x83,0x83,0x1f,
1299 0x5e,0x83,0x5d,0x79,0x10,0x00,0x05,
1301 {{0x65,0x4f,0x89,0x54,0x9f,0xc4,0x1f,
1302 0x92,0x89,0x8f,0xb5,0x30,0x00,0x01,
1304 {{0x65,0x4f,0x89,0x56,0x83,0x83,0x1f,
1305 0x5e,0x83,0x5d,0x79,0x10,0x00,0x05,
1307 {{0x65,0x4f,0x89,0x56,0x83,0x04,0x3e,
1308 0xe0,0x85,0xdf,0xfb,0x10,0x00,0x05,
1310 {{0x7f,0x63,0x83,0x6c,0x1c,0x72,0xf0,
1311 0x58,0x8c,0x57,0x73,0x20,0x00,0x06,
1313 {{0x2d,0x27,0x90,0x2c,0x80,0x0b,0x3e,
1314 0xe9,0x8b,0xe7,0x04,0x00,0x00,0x00,
1320 {{0x5f,0x4f,0x82,0x55,0x81,0x0b,0x3e,
1321 0xe9,0x8b,0xdf,0x04,0x30,0x00,0x05,
1323 {{0x5f,0x4f,0x82,0x55,0x81,0x0b,0x3e,
1324 0xe9,0x8b,0xdf,0x04,0x30,0x00,0x05,
1326 {{0x5f,0x4f,0x82,0x55,0x81,0x0b,0x3e,
1327 0xe9,0x8b,0xdf,0x04,0x30,0x00,0x05,
1329 {{0x5f,0x4f,0x82,0x55,0x81,0x0b,0x3e,
1330 0xe9,0x8b,0xdf,0x04,0x30,0x00,0x05,
1332 {{0x5f,0x4f,0x82,0x55,0x81,0x0b,0x3e,
1333 0xe9,0x8b,0xdf,0x04,0x30,0x00,0x05,
1335 {{0x7f,0x63,0x83,0x6c,0x1c,0x72,0xf0,
1336 0x58,0x8c,0x57,0x73,0x20,0x00,0x06,
1339 {{0x2d,0x27,0x90,0x2c,0x80,0x0b,0x3e,
1340 0xe9,0x8b,0xe7,0x04,0x00,0x00,0x00,
1343 {{0x5f,0x4f,0x83,0x55,0x81,0x0b,0x3e,
1344 0xe9,0x8b,0xe8,0x0c,0x00,0x00,0x05,
1350 {{0x65,0x4f,0x89,0x56,0x83,0xaa,0x1f,
1351 0x90,0x85,0x8f,0xab,0x30,0x00,0x05,
1353 {{0x65,0x4f,0x89,0x56,0x83,0x83,0x1f,
1354 0x5e,0x83,0x5d,0x79,0x10,0x00,0x05,
1356 {{0x65,0x4f,0x89,0x54,0x9f,0xc4,0x1f,
1357 0x92,0x89,0x8f,0xb5,0x30,0x00,0x01,
1359 {{0x65,0x4f,0x89,0x56,0x83,0x83,0x1f,
1360 0x5e,0x83,0x5d,0x79,0x10,0x00,0x05,
1362 {{0x65,0x4f,0x89,0x56,0x83,0x04,0x3e,
1363 0xe0,0x85,0xdf,0xfb,0x10,0x00,0x05,
1365 {{0x7f,0x63,0x83,0x6c,0x1c,0x72,0xf0,
1366 0x58,0x8c,0x57,0x73,0x20,0x00,0x06,
1368 {{0x2d,0x27,0x90,0x2c,0x80,0x0b,0x3e,
1369 0xe9,0x8b,0xe7,0x04,0x00,0x00,0x00,
1375 {{0x5f,0x4f,0x82,0x55,0x81,0x0b,0x3e,
1376 0xe9,0x8b,0xdf,0x04,0x00,0x00,0x05,
1378 {{0x5f,0x4f,0x82,0x55,0x81,0x0b,0x3e,
1379 0xe9,0x8b,0xdf,0x04,0x00,0x00,0x05,
1381 {{0x5f,0x4f,0x82,0x55,0x81,0x0b,0x3e,
1382 0xe9,0x8b,0xdf,0x04,0x00,0x00,0x05,
1384 {{0x5f,0x4f,0x82,0x55,0x81,0x0b,0x3e,
1385 0xe9,0x8b,0xdf,0x04,0x00,0x00,0x05,
1387 {{0x5f,0x4f,0x82,0x55,0x81,0x0b,0x3e,
1388 0xe9,0x8b,0xdf,0x04,0x00,0x00,0x05,
1390 {{0x7f,0x63,0x83,0x6c,0x1c,0x72,0xf0,
1391 0x58,0x8c,0x57,0x73,0x20,0x00,0x06,
1393 {{0x2d,0x27,0x90,0x2c,0x80,0x0b,0x3e,
1394 0xe9,0x8b,0xe7,0x04,0x00,0x00,0x00,
1400 {{0x65,0x4f,0x89,0x56,0x83,0xaa,0x1f,
1401 0x90,0x85,0x8f,0xab,0x30,0x00,0x05,
1403 {{0x65,0x4f,0x89,0x56,0x83,0x83,0x1f,
1404 0x5e,0x83,0x5d,0x79,0x10,0x00,0x05,
1406 {{0x65,0x4f,0x89,0x54,0x9f,0xc4,0x1f,
1407 0x92,0x89,0x8f,0xb5,0x30,0x00,0x01,
1409 {{0x65,0x4f,0x89,0x56,0x83,0x83,0x1f,
1410 0x5e,0x83,0x5d,0x79,0x10,0x00,0x05,
1412 {{0x65,0x4f,0x89,0x56,0x83,0x04,0x3e,
1413 0xe0,0x85,0xdf,0xfb,0x10,0x00,0x05,
1415 {{0x7f,0x63,0x83,0x6c,0x1c,0x72,0xf0,
1416 0x58,0x8c,0x57,0x73,0x20,0x00,0x06,
1418 {{0x2d,0x27,0x90,0x2c,0x80,0x0b,0x3e,
1419 0xe9,0x8b,0xe7,0x04,0x00,0x00,0x00,
1425 {{0x5f,0x4f,0x82,0x55,0x81,0x0b,0x3e,
1426 0xe9,0x8b,0xdf,0x04,0x30,0x00,0x05,
1428 {{0x5f,0x4f,0x82,0x55,0x81,0x0b,0x3e,
1429 0xe9,0x8b,0xdf,0x04,0x30,0x00,0x05,
1431 {{0x5f,0x4f,0x82,0x55,0x81,0x0b,0x3e,
1432 0xe9,0x8b,0xdf,0x04,0x30,0x00,0x05,
1434 {{0x5f,0x4f,0x82,0x55,0x81,0x0b,0x3e,
1435 0xe9,0x8b,0xdf,0x04,0x30,0x00,0x05,
1437 {{0x5f,0x4f,0x82,0x55,0x81,0x0b,0x3e,
1438 0xe9,0x8b,0xdf,0x04,0x30,0x00,0x05,
1440 {{0x7f,0x63,0x83,0x6c,0x1c,0x72,0xf0,
1441 0x58,0x8c,0x57,0x73,0x20,0x00,0x06,
1447 {{0x2d,0x28,0x90,0x2b,0xa0,0xbf,0x1f,
1448 0x9c,0x8e,0x96,0xb9,0x00,0x00,0x00,
1450 {{0x2d,0x28,0x90,0x2b,0xa0,0xbf,0x1f,
1451 0x83,0x85,0x63,0xba,0x00,0x00,0x00,
1453 {{0x2d,0x28,0x90,0x2b,0xa0,0xbf,0x1f,
1454 0x9c,0x8e,0x96,0xb9,0x00,0x00,0x00,
1456 {{0x2d,0x28,0x90,0x2b,0xa0,0xbf,0x1f,
1457 0x83,0x85,0x63,0xba,0x00,0x00,0x00,
1459 {{0x2d,0x28,0x90,0x2c,0x80,0x0b,0x3e,
1460 0xe9,0x8b,0xe7,0x04,0x00,0x00,0x00,
1465 unsigned short SiS_GetModeID_LCD(
int VGAEngine,
unsigned int VBFlags,
int HDisplay,
1466 int VDisplay,
int Depth,
bool FSTN,
1467 unsigned short CustomT,
int LCDwith,
int LCDheight,
1468 unsigned int VBFlags2);
1469 unsigned short SiS_GetModeID_TV(
int VGAEngine,
unsigned int VBFlags,
int HDisplay,
1470 int VDisplay,
int Depth,
unsigned int VBFlags2);
1472 int VDisplay,
int Depth,
unsigned int VBFlags2);
1480 unsigned short ModeIdIndex);
1484 unsigned short *ModeIdIndex);
1486 unsigned short ModeIdIndex);
1490 unsigned short ModeIdIndex);
1492 unsigned short ModeIdIndex,
unsigned short RRTI);
1493 #ifdef CONFIG_FB_SIS_300
1494 void SiS_GetFIFOThresholdIndex300(
struct SiS_Private *SiS_Pr,
unsigned short *idx1,
1495 unsigned short *idx2);
1496 unsigned short SiS_GetFIFOThresholdB300(
unsigned short idx1,
unsigned short idx2);
1497 unsigned short SiS_GetLatencyFactor630(
struct SiS_Private *SiS_Pr,
unsigned short index);
1503 unsigned short ModeIdIndex);
1509 unsigned short ModeIdIndex,
int chkcrt2mode);
1511 unsigned short ModeIdIndex);
1514 unsigned short ModeIdIndex);
1519 unsigned short ModeIdIndex);
1522 unsigned short ModeIdIndex);
1525 unsigned short ModeIdIndex,
unsigned short RRTI);
1529 #ifdef CONFIG_FB_SIS_300
1530 extern unsigned int sisfb_read_nbridge_pci_dword(
struct SiS_Private *SiS_Pr,
int reg);
1531 extern void sisfb_write_nbridge_pci_dword(
struct SiS_Private *SiS_Pr,
int reg,
1534 #ifdef CONFIG_FB_SIS_315
1535 extern void sisfb_write_nbridge_pci_byte(
struct SiS_Private *SiS_Pr,
int reg,
1537 extern unsigned int sisfb_read_mio_pci_word(
struct SiS_Private *SiS_Pr,
int reg);