diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/video/sis/300vtbl.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'drivers/video/sis/300vtbl.h')
-rw-r--r-- | drivers/video/sis/300vtbl.h | 1965 |
1 files changed, 1965 insertions, 0 deletions
diff --git a/drivers/video/sis/300vtbl.h b/drivers/video/sis/300vtbl.h new file mode 100644 index 000000000000..b6d5c71b2563 --- /dev/null +++ b/drivers/video/sis/300vtbl.h | |||
@@ -0,0 +1,1965 @@ | |||
1 | /* $XFree86$ */ | ||
2 | /* $XdotOrg$ */ | ||
3 | /* | ||
4 | * Register settings for SiS 300 series | ||
5 | * | ||
6 | * Copyright (C) 2001-2004 by Thomas Winischhofer, Vienna, Austria | ||
7 | * | ||
8 | * If distributed as part of the Linux kernel, the following license terms | ||
9 | * apply: | ||
10 | * | ||
11 | * * This program is free software; you can redistribute it and/or modify | ||
12 | * * it under the terms of the GNU General Public License as published by | ||
13 | * * the Free Software Foundation; either version 2 of the named License, | ||
14 | * * or any later version. | ||
15 | * * | ||
16 | * * This program is distributed in the hope that it will be useful, | ||
17 | * * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
18 | * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
19 | * * GNU General Public License for more details. | ||
20 | * * | ||
21 | * * You should have received a copy of the GNU General Public License | ||
22 | * * along with this program; if not, write to the Free Software | ||
23 | * * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA | ||
24 | * | ||
25 | * Otherwise, the following license terms apply: | ||
26 | * | ||
27 | * * Redistribution and use in source and binary forms, with or without | ||
28 | * * modification, are permitted provided that the following conditions | ||
29 | * * are met: | ||
30 | * * 1) Redistributions of source code must retain the above copyright | ||
31 | * * notice, this list of conditions and the following disclaimer. | ||
32 | * * 2) Redistributions in binary form must reproduce the above copyright | ||
33 | * * notice, this list of conditions and the following disclaimer in the | ||
34 | * * documentation and/or other materials provided with the distribution. | ||
35 | * * 3) The name of the author may not be used to endorse or promote products | ||
36 | * * derived from this software without specific prior written permission. | ||
37 | * * | ||
38 | * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR | ||
39 | * * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
40 | * * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. | ||
41 | * * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
42 | * * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT | ||
43 | * * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
44 | * * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | ||
45 | * * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
46 | * * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | ||
47 | * * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
48 | * | ||
49 | * Author: Thomas Winischhofer <thomas@winischhofer.net> | ||
50 | * | ||
51 | */ | ||
52 | |||
53 | static const SiS_StStruct SiS300_SModeIDTable[] = | ||
54 | { | ||
55 | {0x01,0x9208,0x01,0x00,0x00,0x00,0x00,0x00, 0}, | ||
56 | {0x01,0x1210,0x14,0x01,0x01,0x00,0x00,0x00, 0}, | ||
57 | {0x01,0x1010,0x17,0x02,0x02,0x00,0x00,0x00, 0}, | ||
58 | {0x03,0x8208,0x03,0x00,0x00,0x00,0x00,0x00, 0}, | ||
59 | {0x03,0x0210,0x16,0x01,0x01,0x00,0x00,0x00, 0}, | ||
60 | {0x03,0x0010,0x18,0x02,0x02,0x00,0x00,0x00, 0}, | ||
61 | {0x05,0x9209,0x05,0x00,0x00,0x00,0x00,0x00, 0}, | ||
62 | {0x06,0x8209,0x06,0x00,0x00,0x00,0x00,0x00, 0}, | ||
63 | {0x07,0x0000,0x07,0x03,0x03,0x00,0x00,0x00, 0}, | ||
64 | {0x07,0x0000,0x19,0x02,0x02,0x00,0x00,0x00, 0}, | ||
65 | {0x0d,0x920a,0x0d,0x00,0x00,0x00,0x00,0x00, 0}, | ||
66 | {0x0e,0x820a,0x0e,0x00,0x00,0x00,0x00,0x00, 0}, | ||
67 | {0x0f,0x0202,0x11,0x01,0x01,0x00,0x00,0x00, 0}, | ||
68 | {0x10,0x0212,0x12,0x01,0x01,0x00,0x00,0x00, 0}, | ||
69 | {0x11,0x0212,0x1a,0x04,0x04,0x00,0x00,0x00, 0}, | ||
70 | {0x12,0x0212,0x1b,0x04,0x04,0x00,0x00,0x00, 0}, | ||
71 | {0x13,0x021b,0x1c,0x00,0x00,0x00,0x00,0x00, 0}, | ||
72 | {0x12,0x0010,0x18,0x02,0x02,0x00,0x00,0x00, 0}, | ||
73 | {0x12,0x0210,0x18,0x01,0x01,0x00,0x00,0x00, 0}, | ||
74 | {0xff, 0, 0, 0, 0, 0, 0, 0, 0} | ||
75 | }; | ||
76 | |||
77 | static const SiS_ExtStruct SiS300_EModeIDTable[] = | ||
78 | { | ||
79 | {0x6a,0x2212,0x0102,SIS_RI_800x600, 0x00,0x00,0x00,0x00,0x00,-1}, /* 800x600x? */ | ||
80 | {0x2e,0x0a1b,0x0101,SIS_RI_640x480, 0x00,0x00,0x00,0x00,0x08,-1}, | ||
81 | {0x2f,0x021b,0x0100,SIS_RI_640x400, 0x00,0x00,0x00,0x00,0x10,-1}, /* 640x400x8 */ | ||
82 | {0x30,0x2a1b,0x0103,SIS_RI_800x600, 0x00,0x00,0x00,0x00,0x00,-1}, | ||
83 | {0x31,0x4a1b,0x0000,SIS_RI_720x480, 0x00,0x00,0x00,0x00,0x11,-1}, /* 720x480x8 */ | ||
84 | {0x32,0x6a1b,0x0000,SIS_RI_720x576, 0x00,0x00,0x00,0x00,0x12,-1}, /* 720x576x8 */ | ||
85 | {0x33,0x4a1d,0x0000,SIS_RI_720x480, 0x00,0x00,0x00,0x00,0x11,-1}, /* 720x480x16 */ | ||
86 | {0x34,0x6a1d,0x0000,SIS_RI_720x576, 0x00,0x00,0x00,0x00,0x12,-1}, /* 720x576x16 */ | ||
87 | {0x35,0x4a1f,0x0000,SIS_RI_720x480, 0x00,0x00,0x00,0x00,0x11,-1}, /* 720x480x32 */ | ||
88 | {0x36,0x6a1f,0x0000,SIS_RI_720x576, 0x00,0x00,0x00,0x00,0x12,-1}, /* 720x576x32 */ | ||
89 | {0x37,0x0212,0x0104,SIS_RI_1024x768, 0x00,0x00,0x00,0x00,0x13,-1}, /* 1024x768x? */ | ||
90 | {0x38,0x0a1b,0x0105,SIS_RI_1024x768, 0x00,0x00,0x00,0x00,0x13,-1}, /* 1024x768x8 */ | ||
91 | {0x3a,0x0e3b,0x0107,SIS_RI_1280x1024,0x00,0x00,0x00,0x00,0x1a,-1}, /* 1280x1024x8 */ | ||
92 | {0x3c,0x063b,0x0130,SIS_RI_1600x1200,0x00,0x00,0x00,0x00,0x1e,-1}, | ||
93 | {0x3d,0x067d,0x0131,SIS_RI_1600x1200,0x00,0x00,0x00,0x00,0x1e,-1}, | ||
94 | {0x40,0x921c,0x010d,SIS_RI_320x200, 0x00,0x00,0x00,0x00,0x23,-1}, /* 320x200x15 */ | ||
95 | {0x41,0x921d,0x010e,SIS_RI_320x200, 0x00,0x00,0x00,0x00,0x23,-1}, /* 320x200x16 */ | ||
96 | {0x43,0x0a1c,0x0110,SIS_RI_640x480, 0x00,0x00,0x00,0x00,0x08,-1}, | ||
97 | {0x44,0x0a1d,0x0111,SIS_RI_640x480, 0x00,0x00,0x00,0x00,0x08,-1}, | ||
98 | {0x46,0x2a1c,0x0113,SIS_RI_800x600, 0x00,0x00,0x00,0x00,0x00,-1}, /* 800x600x15 */ | ||
99 | {0x47,0x2a1d,0x0114,SIS_RI_800x600, 0x00,0x00,0x00,0x00,0x00,-1}, /* 800x600x16 */ | ||
100 | {0x49,0x0a3c,0x0116,SIS_RI_1024x768, 0x00,0x00,0x00,0x00,0x13,-1}, | ||
101 | {0x4a,0x0a3d,0x0117,SIS_RI_1024x768, 0x00,0x00,0x00,0x00,0x13,-1}, | ||
102 | {0x4c,0x0e7c,0x0119,SIS_RI_1280x1024,0x00,0x00,0x00,0x00,0x1a,-1}, | ||
103 | {0x4d,0x0e7d,0x011a,SIS_RI_1280x1024,0x00,0x00,0x00,0x00,0x1a,-1}, | ||
104 | {0x50,0x921b,0x0132,SIS_RI_320x240, 0x00,0x00,0x00,0x00,0x24,-1}, /* 320x240x8 */ | ||
105 | {0x51,0xb21b,0x0133,SIS_RI_400x300, 0x00,0x00,0x00,0x00,0x25,-1}, /* 400x300x8 */ | ||
106 | {0x52,0x921b,0x0134,SIS_RI_512x384, 0x00,0x00,0x00,0x00,0x26,-1}, /* 512x384x8 */ | ||
107 | {0x56,0x921d,0x0135,SIS_RI_320x240, 0x00,0x00,0x00,0x00,0x24,-1}, /* 320x240x16 */ | ||
108 | {0x57,0xb21d,0x0136,SIS_RI_400x300, 0x00,0x00,0x00,0x00,0x25,-1}, /* 400x300x16 */ | ||
109 | {0x58,0x921d,0x0137,SIS_RI_512x384, 0x00,0x00,0x00,0x00,0x26,-1}, /* 512x384x16 */ | ||
110 | {0x59,0x921b,0x0138,SIS_RI_320x200, 0x00,0x00,0x00,0x00,0x23,-1}, /* 320x200x8 */ | ||
111 | {0x5c,0x921f,0x0000,SIS_RI_512x384, 0x00,0x00,0x00,0x00,0x26,-1}, /* 512x384x32 */ | ||
112 | {0x5d,0x021d,0x0139,SIS_RI_640x400, 0x00,0x00,0x00,0x00,0x10,-1}, /* 640x400x16 */ | ||
113 | {0x5e,0x021f,0x0000,SIS_RI_640x400, 0x00,0x00,0x00,0x00,0x10,-1}, /* 640x400x32 */ | ||
114 | {0x62,0x0a3f,0x013a,SIS_RI_640x480, 0x00,0x00,0x00,0x00,0x08,-1}, | ||
115 | {0x63,0x2a3f,0x013b,SIS_RI_800x600, 0x00,0x00,0x00,0x00,0x00,-1}, /* 800x600x32 */ | ||
116 | {0x64,0x0a7f,0x013c,SIS_RI_1024x768, 0x00,0x00,0x00,0x00,0x13,-1}, | ||
117 | {0x65,0x0eff,0x013d,SIS_RI_1280x1024,0x00,0x00,0x00,0x00,0x1a,-1}, | ||
118 | {0x66,0x06ff,0x013e,SIS_RI_1600x1200,0x00,0x00,0x00,0x00,0x1e,-1}, | ||
119 | {0x68,0x067b,0x013f,SIS_RI_1920x1440,0x00,0x00,0x00,0x00,0x27,-1}, | ||
120 | {0x69,0x06fd,0x0140,SIS_RI_1920x1440,0x00,0x00,0x00,0x00,0x27,-1}, | ||
121 | {0x6b,0x07ff,0x0000,SIS_RI_1920x1440,0x00,0x00,0x00,0x00,0x27,-1}, | ||
122 | {0x6c,0x067b,0x0000,SIS_RI_2048x1536,0x00,0x00,0x00,0x00,0x28,-1}, /* 2048x1536x8 - not in BIOS! */ | ||
123 | {0x6d,0x06fd,0x0000,SIS_RI_2048x1536,0x00,0x00,0x00,0x00,0x28,-1}, /* 2048x1536x16 - not in BIOS! */ | ||
124 | {0x70,0x6a1b,0x0000,SIS_RI_800x480, 0x00,0x00,0x07,0x00,0x2d,-1}, /* 800x480x8 */ | ||
125 | {0x71,0x4a1b,0x0000,SIS_RI_1024x576, 0x00,0x00,0x00,0x00,0x30,-1}, /* 1024x576x8 */ | ||
126 | {0x74,0x4a1d,0x0000,SIS_RI_1024x576, 0x00,0x00,0x00,0x00,0x30,-1}, /* 1024x576x16 */ | ||
127 | {0x75,0x0e3d,0x0000,SIS_RI_1280x720, 0x00,0x00,0x00,0x00,0x33,-1}, /* 1280x720x16 */ | ||
128 | {0x76,0x6a1f,0x0000,SIS_RI_800x480, 0x00,0x00,0x07,0x00,0x2d,-1}, /* 800x480x32 */ | ||
129 | {0x77,0x4a3f,0x0000,SIS_RI_1024x576, 0x00,0x00,0x00,0x00,0x30,-1}, /* 1024x576x32 */ | ||
130 | {0x78,0x0eff,0x0000,SIS_RI_1280x720, 0x00,0x00,0x00,0x00,0x33,-1}, /* 1280x720x32 */ | ||
131 | {0x79,0x0e3b,0x0000,SIS_RI_1280x720, 0x00,0x00,0x00,0x00,0x33,-1}, /* 1280x720x8 */ | ||
132 | {0x7a,0x6a1d,0x0000,SIS_RI_800x480, 0x00,0x00,0x07,0x00,0x2d,-1}, /* 800x480x16 */ | ||
133 | {0x7c,0x0a3b,0x0000,SIS_RI_1280x960, 0x00,0x00,0x00,0x00,0x29,-1}, /* 1280x960x8 */ | ||
134 | {0x7d,0x0a7d,0x0000,SIS_RI_1280x960, 0x00,0x00,0x00,0x00,0x29,-1}, /* 1280x960x16 */ | ||
135 | {0x7e,0x0aff,0x0000,SIS_RI_1280x960, 0x00,0x00,0x00,0x00,0x29,-1}, /* 1280x960x32 */ | ||
136 | {0x20,0x4a1b,0x0000,SIS_RI_1024x600, 0x00,0x00,0x00,0x00,0x2b,-1}, /* 1024x600 */ | ||
137 | {0x21,0x4a3d,0x0000,SIS_RI_1024x600, 0x00,0x00,0x00,0x00,0x2b,-1}, | ||
138 | {0x22,0x4a7f,0x0000,SIS_RI_1024x600, 0x00,0x00,0x00,0x00,0x2b,-1}, | ||
139 | {0x23,0x4a1b,0x0000,SIS_RI_1152x768, 0x00,0x00,0x00,0x00,0x2c,-1}, /* 1152x768 */ | ||
140 | {0x24,0x4a3d,0x0000,SIS_RI_1152x768, 0x00,0x00,0x00,0x00,0x2c,-1}, | ||
141 | {0x25,0x4a7f,0x0000,SIS_RI_1152x768, 0x00,0x00,0x00,0x00,0x2c,-1}, | ||
142 | {0x29,0x4e1b,0x0000,SIS_RI_1152x864, 0x00,0x00,0x00,0x00,0x36,-1}, /* 1152x864 */ | ||
143 | {0x2a,0x4e3d,0x0000,SIS_RI_1152x864, 0x00,0x00,0x00,0x00,0x36,-1}, | ||
144 | {0x2b,0x4e7f,0x0000,SIS_RI_1152x864, 0x00,0x00,0x00,0x00,0x36,-1}, | ||
145 | {0x39,0x6a1b,0x0000,SIS_RI_848x480, 0x00,0x00,0x00,0x00,0x39,-1}, /* 848x480 */ | ||
146 | {0x3b,0x6a3d,0x0000,SIS_RI_848x480, 0x00,0x00,0x00,0x00,0x39,-1}, | ||
147 | {0x3e,0x6a7f,0x0000,SIS_RI_848x480, 0x00,0x00,0x00,0x00,0x39,-1}, | ||
148 | {0x3f,0x6a1b,0x0000,SIS_RI_856x480, 0x00,0x00,0x00,0x00,0x3b,-1}, /* 856x480 */ | ||
149 | {0x42,0x6a3d,0x0000,SIS_RI_856x480, 0x00,0x00,0x00,0x00,0x3b,-1}, | ||
150 | {0x45,0x6a7f,0x0000,SIS_RI_856x480, 0x00,0x00,0x00,0x00,0x3b,-1}, | ||
151 | {0x48,0x6a3b,0x0000,SIS_RI_1360x768, 0x00,0x00,0x00,0x00,0x3d,-1}, /* 1360x768 */ | ||
152 | {0x4b,0x6a7d,0x0000,SIS_RI_1360x768, 0x00,0x00,0x00,0x00,0x3d,-1}, | ||
153 | {0x4e,0x6aff,0x0000,SIS_RI_1360x768, 0x00,0x00,0x00,0x00,0x3d,-1}, | ||
154 | {0x4f,0x921f,0x0000,SIS_RI_320x200, 0x00,0x00,0x00,0x00,0x23,-1}, /* 320x200x32 */ | ||
155 | {0x53,0x921f,0x0000,SIS_RI_320x240, 0x00,0x00,0x00,0x00,0x24,-1}, /* 320x240x32 */ | ||
156 | {0x54,0xb21f,0x0000,SIS_RI_400x300, 0x00,0x00,0x00,0x00,0x25,-1}, /* 400x300x32 */ | ||
157 | {0x55,0x2e3b,0x0000,SIS_RI_1280x768, 0x00,0x00,0x00,0x00,0x3e,-1}, /* 1280x768 */ | ||
158 | {0x5a,0x2e7d,0x0000,SIS_RI_1280x768, 0x00,0x00,0x00,0x00,0x3e,-1}, | ||
159 | {0x5b,0x2eff,0x0000,SIS_RI_1280x768, 0x00,0x00,0x00,0x00,0x3e,-1}, | ||
160 | {0x5f,0x6a1b,0x0000,SIS_RI_768x576, 0x00,0x00,0x00,0x00,0x3f,-1}, /* 768x576x8 */ | ||
161 | {0x60,0x6a1d,0x0000,SIS_RI_768x576, 0x00,0x00,0x00,0x00,0x3f,-1}, /* 768x576x16 */ | ||
162 | {0x61,0x6a1f,0x0000,SIS_RI_768x576, 0x00,0x00,0x00,0x00,0x3f,-1}, /* 768x576x32 */ | ||
163 | {0x67,0x6e3b,0x0000,SIS_RI_1360x1024,0x00,0x00,0x00,0x00,0x40,-1}, /* 1360x1024x8 (BARCO) */ | ||
164 | {0x6f,0x6e7d,0x0000,SIS_RI_1360x1024,0x00,0x00,0x00,0x00,0x40,-1}, /* 1360x1024x16 (BARCO) */ | ||
165 | {0x72,0x6eff,0x0000,SIS_RI_1360x1024,0x00,0x00,0x00,0x00,0x40,-1}, /* 1360x1024x32 (BARCO) */ | ||
166 | {0xff,0x0000,0xffff,0, 0x00,0x00,0x00,0x00,0x00} | ||
167 | }; | ||
168 | |||
169 | static const SiS_Ext2Struct SiS300_RefIndex[] = | ||
170 | { | ||
171 | {0x085f,0x0d,0x03,0x05,0x05,0x6a, 800, 600, 0}, /* 00 */ | ||
172 | {0x0467,0x0e,0x44,0x05,0x05,0x6a, 800, 600, 0}, /* 01 */ | ||
173 | {0x0067,0x0f,0x07,0x48,0x05,0x6a, 800, 600, 0}, /* 02 - CRT1CRTC was 0x4f */ | ||
174 | {0x0067,0x10,0x06,0x8b,0x05,0x6a, 800, 600, 0}, /* 03 */ | ||
175 | {0x0147,0x11,0x08,0x00,0x05,0x6a, 800, 600, 0}, /* 04 */ | ||
176 | {0x0147,0x12,0x0c,0x00,0x05,0x6a, 800, 600, 0}, /* 05 */ | ||
177 | {0x0047,0x11,0x4e,0x00,0x05,0x6a, 800, 600, 0}, /* 06 - CRT1CRTC was 0x51 */ | ||
178 | {0x0047,0x11,0x13,0x00,0x05,0x6a, 800, 600, 0}, /* 07 */ | ||
179 | {0xc85f,0x05,0x00,0x04,0x04,0x2e, 640, 480, 0}, /* 08 */ | ||
180 | {0xc067,0x06,0x02,0x04,0x04,0x2e, 640, 480, 0}, /* 09 */ | ||
181 | {0xc067,0x07,0x02,0x47,0x04,0x2e, 640, 480, 0}, /* 0a */ | ||
182 | {0xc067,0x08,0x03,0x8a,0x04,0x2e, 640, 480, 0}, /* 0b */ | ||
183 | {0xc047,0x09,0x05,0x00,0x04,0x2e, 640, 480, 0}, /* 0c */ | ||
184 | {0xc047,0x0a,0x08,0x00,0x04,0x2e, 640, 480, 0}, /* 0d */ | ||
185 | {0xc047,0x0b,0x0a,0x00,0x04,0x2e, 640, 480, 0}, /* 0e */ | ||
186 | {0xc047,0x0c,0x10,0x00,0x04,0x2e, 640, 480, 0}, /* 0f */ | ||
187 | {0x487f,0x04,0x00,0x00,0x00,0x2f, 640, 400, 0}, /* 10 */ | ||
188 | {0xc06f,0x31,0x01,0x06,0x13,0x31, 720, 480, 0}, /* 11 */ | ||
189 | {0x006f,0x32,0x03,0x06,0x14,0x32, 720, 576, 0}, /* 12 */ | ||
190 | {0x0187,0x15,0x05,0x00,0x06,0x37,1024, 768, 0}, /* 13 */ | ||
191 | {0xc877,0x16,0x09,0x06,0x06,0x37,1024, 768, 0}, /* 14 */ | ||
192 | {0xc067,0x17,0x0b,0x49,0x06,0x37,1024, 768, 0}, /* 15 - CRT1CRTC was 0x97 */ | ||
193 | {0x0267,0x18,0x0d,0x00,0x06,0x37,1024, 768, 0}, /* 16 */ | ||
194 | {0x0047,0x19,0x11,0x8c,0x06,0x37,1024, 768, 0}, /* 17 - CRT1CRTC was 0x59 */ | ||
195 | {0x0047,0x1a,0x52,0x00,0x06,0x37,1024, 768, 0}, /* 18 */ | ||
196 | {0x0007,0x1b,0x16,0x00,0x06,0x37,1024, 768, 0}, /* 19 - CRT1CRTC was 0x5b */ | ||
197 | {0x0387,0x1c,0x4d,0x00,0x07,0x3a,1280,1024, 0}, /* 1a - CRT1CRTC was 0x5c */ | ||
198 | {0x0077,0x1d,0x14,0x07,0x07,0x3a,1280,1024, 0}, /* 1b */ | ||
199 | {0x0047,0x1e,0x17,0x00,0x07,0x3a,1280,1024, 0}, /* 1c */ | ||
200 | {0x0007,0x1f,0x98,0x00,0x07,0x3a,1280,1024, 0}, /* 1d */ | ||
201 | {0x0007,0x20,0x59,0x00,0x00,0x3c,1600,1200, 0}, /* 1e - CRT1CRTC was 0x60 */ | ||
202 | {0x0007,0x21,0x5a,0x00,0x00,0x3c,1600,1200, 0}, /* 1f */ | ||
203 | {0x0007,0x22,0x1b,0x00,0x00,0x3c,1600,1200, 0}, /* 20 */ | ||
204 | {0x0007,0x23,0x1d,0x00,0x00,0x3c,1600,1200, 0}, /* 21 - CRT1CRTC was 0x63 */ | ||
205 | {0x0007,0x24,0x1e,0x00,0x00,0x3c,1600,1200, 0}, /* 22 */ | ||
206 | {0x407f,0x00,0x00,0x00,0x00,0x40, 320, 200, 0}, /* 23 */ | ||
207 | {0xc07f,0x01,0x00,0x04,0x04,0x50, 320, 240, 0}, /* 24 */ | ||
208 | {0x0077,0x02,0x04,0x05,0x05,0x51, 400, 300, 0}, /* 25 */ | ||
209 | {0xc877,0x03,0x09,0x06,0x06,0x52, 512, 384, 0}, /* 26 */ /* was c077 */ | ||
210 | {0x8207,0x25,0x1f,0x00,0x00,0x68,1920,1440, 0}, /* 27 */ | ||
211 | {0x0007,0x26,0x20,0x00,0x00,0x6c,2048,1536, 0}, /* 28 */ | ||
212 | {0x0067,0x27,0x14,0x08,0x0a,0x6e,1280, 960, 0}, /* 29 - 1280x960-60 */ | ||
213 | {0x0027,0x45,0x3c,0x08,0x0a,0x6e,1280, 960, 0}, /* 2a - 1280x960-85 */ | ||
214 | {0xc077,0x33,0x09,0x06,0x00,0x20,1024, 600, 0}, /* 2b */ | ||
215 | {0xc077,0x34,0x0b,0x06,0x00,0x23,1152, 768, 0}, /* 2c */ /* VCLK 0x09 */ | ||
216 | {0x0077,0x35,0x27,0x08,0x18,0x70, 800, 480, 0}, /* 2d */ | ||
217 | {0x0047,0x36,0x37,0x08,0x18,0x70, 800, 480, 0}, /* 2e */ | ||
218 | {0x0047,0x37,0x08,0x08,0x18,0x70, 800, 480, 0}, /* 2f */ | ||
219 | {0x0077,0x38,0x09,0x09,0x19,0x71,1024, 576, 0}, /* 30 */ | ||
220 | {0x0047,0x39,0x38,0x09,0x19,0x71,1024, 576, 0}, /* 31 */ | ||
221 | {0x0047,0x3a,0x11,0x09,0x19,0x71,1024, 576, 0}, /* 32 */ | ||
222 | {0x0077,0x3b,0x39,0x0a,0x0c,0x75,1280, 720, 0}, /* 33 */ | ||
223 | {0x0047,0x3c,0x3a,0x0a,0x0c,0x75,1280, 720, 0}, /* 34 */ | ||
224 | {0x0007,0x3d,0x3b,0x0a,0x0c,0x75,1280, 720, 0}, /* 35 */ | ||
225 | {0x0067,0x49,0x35,0x06,0x1a,0x29,1152, 864, 0}, /* 36 1152x864-60Hz */ | ||
226 | {0x0067,0x3e,0x34,0x06,0x1a,0x29,1152, 864, 0}, /* 37 1152x864-75Hz */ | ||
227 | {0x0047,0x44,0x3a,0x06,0x1a,0x29,1152, 864, 0}, /* 38 1152x864-85Hz */ | ||
228 | {0x00c7,0x3f,0x28,0x00,0x16,0x39, 848, 480, 0}, /* 39 848x480-38Hzi */ | ||
229 | {0xc067,0x40,0x3d,0x0b,0x16,0x39, 848, 480, 0}, /* 3a 848x480-60Hz */ | ||
230 | {0x00c7,0x41,0x28,0x00,0x17,0x3f, 856, 480, 0}, /* 3b 856x480-38Hzi */ | ||
231 | {0xc047,0x42,0x28,0x00,0x17,0x3f, 856, 480, 0}, /* 3c 856x480-60Hz */ | ||
232 | {0x0067,0x43,0x3e,0x0c,0x1b,0x48,1360, 768, 0}, /* 3d 1360x768-60Hz */ | ||
233 | {0x0077,0x46,0x3f,0x08,0x08,0x55,1280, 768, 0}, /* 3e 1280x768-60Hz */ | ||
234 | {0x006f,0x47,0x03,0x06,0x15,0x5f, 768, 576, 0}, /* 3f 768x576 */ | ||
235 | {0x0027,0x48,0x13,0x08,0x00,0x67,1360,1024, 0}, /* 40 1360x1024-59Hz (BARCO1366 only) */ | ||
236 | {0xffff, 0, 0, 0, 0, 0, 0, 0, 0} | ||
237 | }; | ||
238 | |||
239 | static const SiS_VBModeStruct SiS300_VBModeIDTable[] = | ||
240 | { | ||
241 | {0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, | ||
242 | {0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01}, | ||
243 | {0x01,0x00,0x00,0x00,0x01,0x00,0x01,0x02}, | ||
244 | {0x03,0x00,0x00,0x00,0x02,0x00,0x02,0x00}, | ||
245 | {0x03,0x00,0x00,0x00,0x02,0x00,0x02,0x01}, | ||
246 | {0x03,0x00,0x00,0x00,0x03,0x00,0x03,0x02}, | ||
247 | {0x05,0x00,0x00,0x01,0x04,0x00,0x00,0x00}, | ||
248 | {0x06,0x00,0x00,0x01,0x05,0x00,0x02,0x00}, | ||
249 | {0x07,0x00,0x00,0x00,0x03,0x00,0x03,0x01}, | ||
250 | {0x07,0x00,0x00,0x00,0x03,0x00,0x03,0x02}, | ||
251 | {0x0d,0x00,0x00,0x01,0x04,0x00,0x00,0x00}, | ||
252 | {0x0e,0x00,0x00,0x01,0x05,0x00,0x02,0x00}, | ||
253 | {0x0f,0x00,0x00,0x01,0x05,0x00,0x02,0x01}, | ||
254 | {0x10,0x00,0x00,0x01,0x05,0x00,0x02,0x01}, | ||
255 | {0x11,0x00,0x00,0x01,0x05,0x00,0x02,0x03}, | ||
256 | {0x12,0x00,0x00,0x01,0x05,0x00,0x02,0x03}, | ||
257 | {0x13,0x00,0x00,0x01,0x04,0x00,0x04,0x00}, | ||
258 | {0x6a,0x00,0x00,0x01,0x07,0x00,0x08,0x0a}, | ||
259 | {0x2e,0x00,0x00,0x01,0x05,0x00,0x06,0x08}, | ||
260 | {0x2f,0x00,0x00,0x01,0x05,0x00,0x06,0x06}, | ||
261 | {0x30,0x00,0x00,0x01,0x07,0x00,0x08,0x0a}, | ||
262 | {0x31,0x00,0x00,0x01,0x06,0x00,0x00,0x00}, | ||
263 | {0x32,0x00,0x00,0x01,0x06,0x00,0x00,0x00}, | ||
264 | {0x33,0x00,0x00,0x01,0x06,0x00,0x00,0x00}, | ||
265 | {0x34,0x00,0x00,0x01,0x06,0x00,0x00,0x00}, | ||
266 | {0x35,0x00,0x00,0x01,0x06,0x00,0x00,0x00}, | ||
267 | {0x36,0x00,0x00,0x01,0x06,0x00,0x00,0x00}, | ||
268 | {0x37,0x00,0x00,0x01,0x00,0x00,0x0a,0x0c}, | ||
269 | {0x38,0x00,0x00,0x01,0x00,0x00,0x0a,0x0c}, | ||
270 | {0x3a,0x00,0x00,0x01,0x00,0x00,0x0b,0x0d}, | ||
271 | {0x40,0x00,0x00,0x01,0x04,0x00,0x05,0x05}, | ||
272 | {0x41,0x00,0x00,0x01,0x04,0x00,0x05,0x05}, | ||
273 | {0x43,0x00,0x00,0x01,0x05,0x00,0x06,0x08}, | ||
274 | {0x44,0x00,0x00,0x01,0x05,0x00,0x06,0x08}, | ||
275 | {0x46,0x00,0x00,0x01,0x07,0x00,0x08,0x0a}, | ||
276 | {0x47,0x00,0x00,0x01,0x07,0x00,0x08,0x0a}, | ||
277 | {0x49,0x00,0x00,0x01,0x00,0x00,0x0a,0x0c}, | ||
278 | {0x4a,0x00,0x00,0x01,0x00,0x00,0x0a,0x0c}, | ||
279 | {0x4c,0x00,0x00,0x01,0x00,0x00,0x0b,0x0d}, | ||
280 | {0x4d,0x00,0x00,0x01,0x00,0x00,0x0b,0x0d}, | ||
281 | {0x4f,0x00,0x00,0x01,0x04,0x00,0x05,0x05}, | ||
282 | {0x50,0x00,0x00,0x01,0x04,0x00,0x05,0x07}, | ||
283 | {0x51,0x00,0x00,0x01,0x07,0x00,0x07,0x09}, | ||
284 | {0x52,0x00,0x00,0x01,0x00,0x00,0x09,0x0b}, | ||
285 | {0x53,0x00,0x00,0x01,0x04,0x00,0x05,0x07}, | ||
286 | {0x54,0x00,0x00,0x01,0x07,0x00,0x07,0x09}, | ||
287 | {0x56,0x00,0x00,0x01,0x04,0x00,0x05,0x07}, | ||
288 | {0x57,0x00,0x00,0x01,0x07,0x00,0x07,0x09}, | ||
289 | {0x58,0x00,0x00,0x01,0x00,0x00,0x09,0x0b}, | ||
290 | {0x59,0x00,0x00,0x01,0x04,0x00,0x05,0x05}, | ||
291 | {0x5c,0x00,0x00,0x01,0x00,0x00,0x09,0x0b}, | ||
292 | {0x5d,0x00,0x00,0x01,0x05,0x00,0x06,0x06}, | ||
293 | {0x5e,0x00,0x00,0x01,0x05,0x00,0x06,0x06}, | ||
294 | {0x5f,0x00,0x00,0x01,0x06,0x00,0x00,0x00}, | ||
295 | {0x60,0x00,0x00,0x01,0x06,0x00,0x00,0x00}, | ||
296 | {0x61,0x00,0x00,0x01,0x06,0x00,0x00,0x00}, | ||
297 | {0x62,0x00,0x00,0x01,0x05,0x00,0x06,0x08}, | ||
298 | {0x63,0x00,0x00,0x01,0x07,0x00,0x08,0x0a}, | ||
299 | {0x64,0x00,0x00,0x01,0x00,0x00,0x0a,0x0c}, | ||
300 | {0x65,0x00,0x00,0x01,0x00,0x00,0x0b,0x0d}, | ||
301 | {0x6c,0x00,0x00,0x01,0x00,0x00,0x0b,0x0d}, | ||
302 | {0x6d,0x00,0x00,0x01,0x00,0x00,0x0b,0x0d}, | ||
303 | {0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00} | ||
304 | }; | ||
305 | |||
306 | static const SiS_CRT1TableStruct SiS300_CRT1Table[] = | ||
307 | { | ||
308 | #if 1 | ||
309 | {{0x2d,0x27,0x28,0x90,0x2c,0x80,0xbf,0x1f, /* 0x00 - 320x200 */ | ||
310 | 0x9c,0x8e,0x8f,0x96,0xb9,0x30,0x00,0x00, /* HRE [4],[15] is invalid - but correcting it does not work */ | ||
311 | 0x00}}, | ||
312 | #endif | ||
313 | #if 0 | ||
314 | {{0x2d,0x27,0x27,0x91,0x2c,0x92,0xbf,0x1f, /* 0x00 - corrected 320x200-72 - does not work */ | ||
315 | 0x9c,0x8e,0x8f,0x96,0xb9,0x30,0x00,0x04, | ||
316 | 0x00}}, | ||
317 | #endif | ||
318 | {{0x2d,0x27,0x28,0x90,0x2c,0x80,0x0b,0x3e, /* 0x01 */ | ||
319 | 0xe9,0x8b,0xdf,0xe7,0x04,0x00,0x00,0x00, /* HRE [4],[15] is invalid - but correcting it does not work */ | ||
320 | 0x00}}, | ||
321 | #if 0 | ||
322 | {{0x2d,0x27,0x27,0x91,0x2c,0x92,0x0b,0x3e, /* 0x01 - corrected 320x240-60 - does not work */ | ||
323 | 0xe9,0x8b,0xdf,0xe7,0x04,0x00,0x00,0x04, | ||
324 | 0x00}}, | ||
325 | #endif | ||
326 | {{0x3d,0x31,0x31,0x81,0x37,0x1f,0x72,0xf0, /* 0x02 */ | ||
327 | 0x58,0x8c,0x57,0x57,0x73,0x20,0x00,0x05, | ||
328 | 0x01}}, | ||
329 | #if 0 | ||
330 | {{0x3d,0x31,0x31,0x81,0x37,0x1f,0x72,0xf0, /* 0x02 - corrected 400x300-60 */ | ||
331 | 0x58,0x8c,0x57,0x57,0x73,0x20,0x00,0x05, | ||
332 | 0x01}}, | ||
333 | #endif | ||
334 | {{0x4f,0x3f,0x3f,0x93,0x45,0x0d,0x24,0xf5, | ||
335 | 0x02,0x88,0xff,0xff,0x25,0x10,0x00,0x01, | ||
336 | 0x01}}, | ||
337 | {{0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f, | ||
338 | 0x9c,0x8e,0x8f,0x96,0xb9,0x30,0x00,0x05, | ||
339 | 0x00}}, | ||
340 | #if 0 | ||
341 | {{0x5f,0x4f,0x50,0x82,0x55,0x81,0x0b,0x3e, /* 0x05 */ | ||
342 | 0xe9,0x8b,0xdf,0xe7,0x04,0x00,0x00,0x05, | ||
343 | 0x00}}, | ||
344 | #endif | ||
345 | {{0x5f,0x4f,0x4f,0x83,0x55,0x81,0x0b,0x3e, /* 0x05 - corrected 640x480-60 */ | ||
346 | 0xe9,0x8b,0xdf,0xe8,0x0c,0x00,0x00,0x05, | ||
347 | 0x00}}, | ||
348 | #if 0 | ||
349 | {{0x63,0x4f,0x50,0x86,0x56,0x9b,0x06,0x3e, /* 0x06 */ | ||
350 | 0xe8,0x8b,0xdf,0xe7,0xff,0x10,0x00,0x01, | ||
351 | 0x00}}, | ||
352 | #endif | ||
353 | {{0x63,0x4f,0x4f,0x87,0x56,0x9b,0x06,0x3e, /* 0x06 - corrected 640x480-72 */ | ||
354 | 0xe8,0x8a,0xdf,0xe7,0x07,0x00,0x00,0x01, | ||
355 | 0x00}}, | ||
356 | {{0x64,0x4f,0x4f,0x88,0x55,0x9d,0xf2,0x1f, | ||
357 | 0xe0,0x83,0xdf,0xdf,0xf3,0x10,0x00,0x01, | ||
358 | 0x00}}, | ||
359 | {{0x63,0x4f,0x4f,0x87,0x5a,0x81,0xfb,0x1f, | ||
360 | 0xe0,0x83,0xdf,0xdf,0xfc,0x10,0x00,0x05, | ||
361 | 0x00}}, | ||
362 | #if 0 | ||
363 | {{0x66,0x4f,0x4f,0x86,0x56,0x9e,0x03,0x3e, /* 0x09 */ | ||
364 | 0xe4,0x87,0xdf,0xdf,0x04,0x00,0x00,0x01, | ||
365 | 0x00}}, | ||
366 | #endif | ||
367 | {{0x67,0x4f,0x4f,0x8b,0x57,0x83,0x10,0x3e, /* 0x09 - corrected 640x480-100 */ | ||
368 | 0xe7,0x8d,0xdf,0xe6,0x11,0x00,0x00,0x05, | ||
369 | 0x00}}, | ||
370 | #if 0 | ||
371 | {{0x6c,0x4f,0x4f,0x83,0x59,0x9e,0x00,0x3e, /* 0x0a */ | ||
372 | 0xe5,0x8d,0xdf,0xdf,0x01,0x00,0x00,0x01, | ||
373 | 0x00}}, | ||
374 | #endif | ||
375 | {{0x67,0x4f,0x4f,0x8b,0x57,0x83,0x10,0x3e, /* 0x0a - corrected 640x480-120 */ | ||
376 | 0xe7,0x8d,0xdf,0xe6,0x11,0x00,0x00,0x05, | ||
377 | 0x00}}, | ||
378 | {{0x63,0x4f,0x4f,0x87,0x56,0x9d,0xfb,0x1f, | ||
379 | 0xe0,0x83,0xdf,0xdf,0xfc,0x10,0x00,0x01, | ||
380 | 0x00}}, | ||
381 | {{0x65,0x4f,0x4f,0x89,0x57,0x9f,0xfb,0x1f, | ||
382 | 0xe6,0x8a,0xdf,0xdf,0xfc,0x10,0x00,0x01, /* Corrected VDE, VBE */ | ||
383 | 0x00}}, | ||
384 | {{0x7b,0x63,0x63,0x9f,0x6a,0x93,0x6f,0xf0, | ||
385 | 0x58,0x8a,0x57,0x57,0x70,0x20,0x00,0x05, | ||
386 | 0x01}}, | ||
387 | {{0x7f,0x63,0x63,0x83,0x6c,0x1c,0x72,0xf0, | ||
388 | 0x58,0x8c,0x57,0x57,0x73,0x20,0x00,0x06, | ||
389 | 0x01}}, | ||
390 | {{0x7d,0x63,0x63,0x81,0x6e,0x1d,0x98,0xf0, | ||
391 | 0x7c,0x82,0x57,0x57,0x99,0x00,0x00,0x06, | ||
392 | 0x01}}, | ||
393 | {{0x7f,0x63,0x63,0x83,0x69,0x13,0x6f,0xf0, | ||
394 | 0x58,0x8b,0x57,0x57,0x70,0x20,0x00,0x06, | ||
395 | 0x01}}, | ||
396 | {{0x7e,0x63,0x63,0x82,0x6b,0x13,0x75,0xf0, | ||
397 | 0x58,0x8b,0x57,0x57,0x76,0x20,0x00,0x06, | ||
398 | 0x01}}, | ||
399 | {{0x8c,0x63,0x63,0x87,0x72,0x16,0x7e,0xf0, | ||
400 | 0x59,0x8d,0x57,0x57,0x7f,0x00,0x00,0x06, | ||
401 | 0x01}}, | ||
402 | {{0x7e,0x63,0x63,0x82,0x6c,0x14,0x75,0xe0, | ||
403 | 0x58,0x0b,0x57,0x57,0x76,0x20,0x00,0x06, | ||
404 | 0x01}}, | ||
405 | {{0x7e,0x63,0x63,0x82,0x6c,0x14,0x75,0xe0, /* 0x14 */ | ||
406 | 0x58,0x0b,0x57,0x57,0x76,0x20,0x00,0x06, | ||
407 | 0x01}}, | ||
408 | {{0x99,0x7f,0x7f,0x9d,0x84,0x1a,0x96,0x1f, | ||
409 | 0x7f,0x83,0x7f,0x7f,0x97,0x10,0x00,0x02, | ||
410 | 0x00}}, | ||
411 | {{0xa3,0x7f,0x7f,0x87,0x86,0x97,0x24,0xf5, | ||
412 | 0x02,0x88,0xff,0xff,0x25,0x10,0x00,0x02, | ||
413 | 0x01}}, | ||
414 | {{0xa1,0x7f,0x7f,0x85,0x86,0x97,0x24,0xf5, | ||
415 | 0x02,0x88,0xff,0xff,0x25,0x10,0x00,0x02, | ||
416 | 0x01}}, | ||
417 | {{0x9f,0x7f,0x7f,0x83,0x85,0x91,0x1e,0xf5, | ||
418 | 0x00,0x83,0xff,0xff,0x1f,0x10,0x00,0x02, | ||
419 | 0x01}}, | ||
420 | {{0xa7,0x7f,0x7f,0x8b,0x89,0x95,0x26,0xf5, | ||
421 | 0x00,0x83,0xff,0xff,0x27,0x10,0x00,0x02, | ||
422 | 0x01}}, | ||
423 | {{0x9f,0x7f,0x7f,0x83,0x83,0x93,0x1e,0xf5, /* 0x1a */ | ||
424 | 0x00,0x84,0xff,0xff,0x1f,0x10,0x00,0x02, | ||
425 | 0x01}}, | ||
426 | {{0xa2,0x7f,0x7f,0x86,0x84,0x94,0x37,0xf5, | ||
427 | 0x0b,0x82,0xff,0xff,0x38,0x10,0x00,0x02, | ||
428 | 0x01}}, | ||
429 | {{0xcf,0x9f,0x9f,0x93,0xb2,0x01,0x14,0xba, | ||
430 | 0x00,0x83,0xff,0xff,0x15,0x00,0x00,0x03, | ||
431 | 0x00}}, | ||
432 | {{0xce,0x9f,0x9f,0x92,0xa9,0x17,0x28,0x5a, | ||
433 | 0x00,0x83,0xff,0xff,0x29,0x09,0x00,0x07, | ||
434 | 0x01}}, | ||
435 | {{0xce,0x9f,0x9f,0x92,0xa5,0x17,0x28,0x5a, /* 0x1e */ | ||
436 | 0x00,0x83,0xff,0xff,0x29,0x09,0x00,0x07, | ||
437 | 0x01}}, | ||
438 | {{0xd3,0x9f,0x9f,0x97,0xab,0x1f,0x2e,0x5a, | ||
439 | 0x00,0x83,0xff,0xff,0x2f,0x09,0x00,0x07, | ||
440 | 0x01}}, | ||
441 | {{0x09,0xc7,0xc7,0x8d,0xd3,0x0b,0xe0,0x10, | ||
442 | 0xb0,0x83,0xaf,0xaf,0xe1,0x2f,0x01,0x04, | ||
443 | 0x00}}, | ||
444 | {{0x09,0xc7,0xc7,0x8d,0xd3,0x0b,0xe0,0x10, | ||
445 | 0xb0,0x83,0xaf,0xaf,0xe1,0x2f,0x01,0x04, | ||
446 | 0x00}}, | ||
447 | {{0x09,0xc7,0xc7,0x8d,0xd3,0x0b,0xe0,0x10, | ||
448 | 0xb0,0x83,0xaf,0xaf,0xe1,0x2f,0x01,0x04, | ||
449 | 0x00}}, | ||
450 | {{0x09,0xc7,0xc7,0x8d,0xd3,0x0b,0xe0,0x10, | ||
451 | 0xb0,0x83,0xaf,0xaf,0xe1,0x2f,0x01,0x04, | ||
452 | 0x00}}, | ||
453 | {{0x09,0xc7,0xc7,0x8d,0xd3,0x0b,0xe0,0x10, /* 36: 1600x1200x85Hz */ | ||
454 | 0xb0,0x83,0xaf,0xaf,0xe1,0x2f,0x01,0x04, | ||
455 | 0x00}}, | ||
456 | {{0x3f,0xef,0xef,0x83,0xfd,0x1a,0xda,0x1f, /* 37: 1920x1440x60Hz */ | ||
457 | 0xa0,0x84,0x9f,0x9f,0xdb,0x1f,0x01,0x01, | ||
458 | 0x00}}, | ||
459 | {{0x55,0xff,0xff,0x99,0x0d,0x0c,0x3e,0xba, | ||
460 | 0x00,0x84,0xff,0xff,0x3f,0x0f,0x41,0x05, | ||
461 | 0x00}}, | ||
462 | #if 0 | ||
463 | {{0xdc,0x9f,0x9f,0x00,0xab,0x19,0xe6,0xef, /* 0x27: 1280x960-70 - invalid! */ | ||
464 | 0xc0,0xc3,0xbf,0xbf,0xe7,0x10,0x00,0x07, | ||
465 | 0x01}}, | ||
466 | #endif | ||
467 | {{0xdc,0x9f,0x9f,0x80,0xaf,0x9d,0xe6,0xff, /* 0x27: 1280x960-60 - correct */ | ||
468 | 0xc0,0x83,0xbf,0xbf,0xe7,0x10,0x00,0x07, | ||
469 | 0x01}}, | ||
470 | {{0x7f,0x63,0x63,0x83,0x6c,0x1c,0x72,0xba, /* 0x28 */ | ||
471 | 0x27,0x8b,0xdf,0xdf,0x73,0x00,0x00,0x06, | ||
472 | 0x01}}, | ||
473 | {{0x7f,0x63,0x63,0x83,0x69,0x13,0x6f,0xba, | ||
474 | 0x26,0x89,0xdf,0xdf,0x6f,0x00,0x00,0x06, | ||
475 | 0x01}}, | ||
476 | {{0x7f,0x63,0x63,0x82,0x6b,0x13,0x75,0xba, | ||
477 | 0x29,0x8c,0xdf,0xdf,0x75,0x00,0x00,0x06, | ||
478 | 0x01}}, | ||
479 | {{0xa3,0x7f,0x7f,0x87,0x86,0x97,0x24,0xf1, | ||
480 | 0xaf,0x85,0x3f,0x3f,0x25,0x30,0x00,0x02, | ||
481 | 0x01}}, | ||
482 | {{0x9f,0x7f,0x7f,0x83,0x85,0x91,0x1e,0xf1, | ||
483 | 0xad,0x81,0x3f,0x3f,0x1f,0x30,0x00,0x02, | ||
484 | 0x01}}, | ||
485 | {{0xa7,0x7f,0x7f,0x88,0x89,0x15,0x26,0xf1, | ||
486 | 0xb1,0x85,0x3f,0x3f,0x27,0x30,0x00,0x02, | ||
487 | 0x01}}, | ||
488 | {{0xce,0x9f,0x9f,0x92,0xa9,0x17,0x28,0xc4, | ||
489 | 0x7a,0x8e,0xcf,0xcf,0x29,0x21,0x00,0x07, | ||
490 | 0x01}}, | ||
491 | {{0xce,0x9f,0x9f,0x92,0xa5,0x17,0x28,0xd4, | ||
492 | 0x7a,0x8e,0xcf,0xcf,0x29,0x21,0x00,0x07, | ||
493 | 0x01}}, | ||
494 | {{0xd3,0x9f,0x9f,0x97,0xab,0x1f,0x2e,0xd4, | ||
495 | 0x7d,0x81,0xcf,0xcf,0x2f,0x21,0x00,0x07, | ||
496 | 0x01}}, | ||
497 | {{0x6b,0x59,0x59,0x8f,0x5e,0x8c,0x0b,0x3e, | ||
498 | 0xe9,0x8b,0xdf,0xe7,0x04,0x00,0x00,0x05, | ||
499 | 0x00}}, | ||
500 | {{0x7b,0x59,0x63,0x9f,0x6a,0x93,0x6f,0xf0, /* 0x32 */ | ||
501 | 0x58,0x8a,0x3f,0x57,0x70,0x20,0x00,0x05, | ||
502 | 0x01}}, | ||
503 | {{0xa3,0x7f,0x7f,0x87,0x86,0x97,0x1e,0xf1, /* 0x33 - 1024x600 */ | ||
504 | 0xae,0x85,0x57,0x57,0x1f,0x30,0x00,0x02, | ||
505 | 0x01}}, | ||
506 | {{0xa3,0x8f,0x8f,0x97,0x96,0x97,0x24,0xf5, /* 0x34 - 1152x768 - corrected */ | ||
507 | 0x02,0x88,0xff,0xff,0x25,0x10,0x00,0x02, | ||
508 | 0x01}}, | ||
509 | {{0x7f,0x63,0x63,0x83,0x6c,0x1c,0x72,0xba, /* 0x35 */ | ||
510 | 0x27,0x8b,0xdf,0xdf,0x73,0x00,0x00,0x06, | ||
511 | 0x01}}, /* 0x35 */ | ||
512 | {{0x7f,0x63,0x63,0x83,0x69,0x13,0x6f,0xba, | ||
513 | 0x26,0x89,0xdf,0xdf,0x6f,0x00,0x00,0x06, | ||
514 | 0x01}}, /* 0x36 */ | ||
515 | {{0x7f,0x63,0x63,0x82,0x6b,0x13,0x75,0xba, | ||
516 | 0x29,0x8c,0xdf,0xdf,0x75,0x00,0x00,0x06, | ||
517 | 0x01}}, /* 0x37 */ | ||
518 | {{0xa3,0x7f,0x7f,0x87,0x86,0x97,0x24,0xf1, | ||
519 | 0xaf,0x85,0x3f,0x3f,0x25,0x30,0x00,0x02, | ||
520 | 0x01}}, /* 0x38 */ | ||
521 | {{0x9f,0x7f,0x7f,0x83,0x85,0x91,0x1e,0xf1, | ||
522 | 0xad,0x81,0x3f,0x3f,0x1f,0x30,0x00,0x02, | ||
523 | 0x01}}, /* 0x39 */ | ||
524 | {{0xa7,0x7f,0x7f,0x88,0x89,0x95,0x26,0xf1, /* 95 was 15 - illegal HBE! */ | ||
525 | 0xb1,0x85,0x3f,0x3f,0x27,0x30,0x00,0x02, | ||
526 | 0x01}}, /* 0x3a */ | ||
527 | {{0xce,0x9f,0x9f,0x92,0xa9,0x17,0x28,0xc4, | ||
528 | 0x7a,0x8e,0xcf,0xcf,0x29,0x21,0x00,0x07, | ||
529 | 0x01}}, /* 0x3b */ | ||
530 | {{0xce,0x9f,0x9f,0x92,0xa5,0x17,0x28,0xd4, | ||
531 | 0x7a,0x8e,0xcf,0xcf,0x29,0x21,0x00,0x07, | ||
532 | 0x01}}, /* 0x3c */ | ||
533 | {{0xd3,0x9f,0x9f,0x97,0xab,0x1f,0x2e,0xd4, | ||
534 | 0x7d,0x81,0xcf,0xcf,0x2f,0x21,0x00,0x07, | ||
535 | 0x01}}, /* 0x3d */ | ||
536 | {{0xc3,0x8f,0x8f,0x87,0x9b,0x0b,0x82,0xef, /* 1152x864-75 */ | ||
537 | 0x60,0x83,0x5f,0x5f,0x83,0x10,0x00,0x07, | ||
538 | 0x01}}, /* 0x3e */ | ||
539 | {{0x86,0x69,0x69,0x8A,0x74,0x06,0x8C,0x15, /* 848x480-38i */ | ||
540 | 0x4F,0x83,0xEF,0xEF,0x8D,0x30,0x00,0x02, | ||
541 | 0x00}}, /* 0x3f */ | ||
542 | {{0x83,0x69,0x69,0x87,0x6f,0x1d,0x03,0x3E, /* 848x480-60 */ | ||
543 | 0xE5,0x8d,0xDF,0xe4,0x04,0x00,0x00,0x06, | ||
544 | 0x00}}, /* 0x40 */ | ||
545 | {{0x86,0x6A,0x6A,0x8A,0x74,0x06,0x8C,0x15, /* 856x480-38i */ | ||
546 | 0x4F,0x83,0xEF,0xEF,0x8D,0x30,0x00,0x02, | ||
547 | 0x00}}, /* 0x41 */ | ||
548 | {{0x81,0x6A,0x6A,0x85,0x70,0x00,0x0F,0x3E, /* 856x480-60 */ | ||
549 | 0xEB,0x8E,0xDF,0xDF,0x10,0x00,0x00,0x02, | ||
550 | 0x00}}, /* 0x42 */ | ||
551 | {{0xdd,0xa9,0xa9,0x81,0xb4,0x97,0x26,0xfd, /* 1360x768-60 */ | ||
552 | 0x01,0x8d,0xff,0x00,0x27,0x10,0x00,0x03, | ||
553 | 0x01}}, /* 0x43 */ | ||
554 | {{0xd9,0x8f,0x8f,0x9d,0xba,0x0a,0x8a,0xff, /* 1152x864-84 */ | ||
555 | 0x60,0x8b,0x5f,0x5f,0x8b,0x10,0x00,0x03, | ||
556 | 0x01}}, /* 0x44 */ | ||
557 | {{0xd3,0x9f,0x9f,0x97,0xab,0x1f,0xf1,0xff, /* 1280x960-85 */ | ||
558 | 0xc0,0x83,0xbf,0xbf,0xf2,0x10,0x00,0x07, | ||
559 | 0x01}}, /* 0x45 */ | ||
560 | {{0xce,0x9f,0x9f,0x92,0xa9,0x17,0x20,0xf5, /* 1280x768-60 */ | ||
561 | 0x03,0x88,0xff,0xff,0x21,0x10,0x00,0x07, | ||
562 | 0x01}}, /* 0x46 */ | ||
563 | {{0x7b,0x5f,0x63,0x9f,0x6a,0x93,0x6f,0xf0, /* 768x576 */ | ||
564 | 0x58,0x8a,0x3f,0x57,0x70,0x20,0x00,0x05, | ||
565 | 0x01}}, /* 0x47 */ | ||
566 | {{0xce,0xa9,0xa9,0x92,0xb1,0x07,0x28,0x52, /* 1360x1024 (Barco iQ Pro R300) */ | ||
567 | 0x02,0x8e,0xff,0x00,0x29,0x0d,0x00,0x03, | ||
568 | 0x00}}, /* 0x48 */ | ||
569 | {{0xcd,0x8f,0x8f,0x91,0x9b,0x1b,0x7a,0xff, /* 1152x864-60 */ | ||
570 | 0x64,0x8c,0x5f,0x62,0x7b,0x10,0x00,0x07, | ||
571 | 0x41}} /* 0x49 */ | ||
572 | }; | ||
573 | |||
574 | static const SiS_MCLKDataStruct SiS300_MCLKData_630[] = | ||
575 | { | ||
576 | { 0x5a,0x64,0x80, 66}, | ||
577 | { 0xb3,0x45,0x80, 83}, | ||
578 | { 0x37,0x61,0x80,100}, | ||
579 | { 0x37,0x22,0x80,133}, | ||
580 | { 0x37,0x61,0x80,100}, | ||
581 | { 0x37,0x61,0x80,100}, | ||
582 | { 0x37,0x61,0x80,100}, | ||
583 | { 0x37,0x61,0x80,100} | ||
584 | }; | ||
585 | |||
586 | static const SiS_MCLKDataStruct SiS300_MCLKData_300[] = | ||
587 | { | ||
588 | { 0x68,0x43,0x80,125}, | ||
589 | { 0x68,0x43,0x80,125}, | ||
590 | { 0x68,0x43,0x80,125}, | ||
591 | { 0x37,0x61,0x80,100}, | ||
592 | { 0x37,0x61,0x80,100}, | ||
593 | { 0x37,0x61,0x80,100}, | ||
594 | { 0x37,0x61,0x80,100}, | ||
595 | { 0x37,0x61,0x80,100} | ||
596 | }; | ||
597 | |||
598 | static SiS_VCLKDataStruct SiS300_VCLKData[] = | ||
599 | { | ||
600 | { 0x1b,0xe1, 25}, /* 0x00 */ | ||
601 | { 0x4e,0xe4, 28}, /* 0x01 */ | ||
602 | { 0x57,0xe4, 32}, /* 0x02 */ | ||
603 | { 0xc3,0xc8, 36}, /* 0x03 */ | ||
604 | { 0x42,0xc3, 40}, /* 0x04 */ | ||
605 | { 0x5d,0xc4, 45}, /* 0x05 */ | ||
606 | { 0x52,0x65, 50}, /* 0x06 */ | ||
607 | { 0x53,0x65, 50}, /* 0x07 */ | ||
608 | { 0x6d,0x66, 56}, /* 0x08 */ | ||
609 | { 0x5a,0x64, 65}, /* 0x09 */ | ||
610 | { 0x46,0x44, 68}, /* 0x0a */ | ||
611 | { 0x3e,0x43, 75}, /* 0x0b */ | ||
612 | { 0x6d,0x46, 76}, /* 0x0c */ /* 800x600 | LVDS_2(CH), MITAC(CH); - 730, A901(301B): 0xb1,0x46, 76 */ | ||
613 | { 0x41,0x43, 79}, /* 0x0d */ | ||
614 | { 0x31,0x42, 79}, /* 0x0e */ | ||
615 | { 0x46,0x25, 85}, /* 0x0f */ | ||
616 | { 0x78,0x29, 87}, /* 0x10 */ | ||
617 | { 0x62,0x44, 95}, /* 0x11 */ | ||
618 | { 0x2b,0x22,105}, /* 0x12 */ | ||
619 | { 0x49,0x24,106}, /* 0x13 */ | ||
620 | { 0xc3,0x28,108}, /* 0x14 */ | ||
621 | { 0x3c,0x23,109}, /* 0x15 */ | ||
622 | { 0xf7,0x2c,132}, /* 0x16 */ | ||
623 | { 0xd4,0x28,136}, /* 0x17 */ | ||
624 | { 0x41,0x05,158}, /* 0x18 */ | ||
625 | { 0x43,0x05,162}, /* 0x19 */ | ||
626 | { 0xe1,0x0f,175}, /* 0x1a */ | ||
627 | { 0xfc,0x12,189}, /* 0x1b */ | ||
628 | { 0xde,0x26,194}, /* 0x1c */ | ||
629 | { 0x54,0x05,203}, /* 0x1d */ | ||
630 | { 0x3f,0x03,230}, /* 0x1e */ | ||
631 | { 0x30,0x02,234}, /* 0x1f */ | ||
632 | { 0x24,0x01,266}, /* 0x20 */ | ||
633 | { 0x52,0x2a, 54}, /* 0x21 */ /* 301 TV */ | ||
634 | { 0x52,0x6a, 27}, /* 0x22 */ /* 301 TV */ | ||
635 | { 0x62,0x24, 70}, /* 0x23 */ /* 301 TV */ | ||
636 | { 0x62,0x64, 70}, /* 0x24 */ /* 301 TV */ | ||
637 | { 0xa8,0x4c, 30}, /* 0x25 */ /* 301 TV */ | ||
638 | { 0x20,0x26, 33}, /* 0x26 */ /* 301 TV */ | ||
639 | { 0x31,0xc2, 39}, /* 0x27 */ | ||
640 | { 0xbf,0xc8, 35}, /* 0x28 */ /* 856x480 */ | ||
641 | { 0x60,0x36, 30}, /* 0x29 */ /* CH/UNTSC TEXT | LVDS_2(CH) - 730, A901(301B), Mitac(CH): 0xe0, 0xb6, 30 */ | ||
642 | { 0x40,0x4a, 28}, /* 0x2a */ /* CH-TV */ | ||
643 | { 0x9f,0x46, 44}, /* 0x2b */ /* CH-TV */ | ||
644 | { 0x97,0x2c, 26}, /* 0x2c */ /* CH-TV */ | ||
645 | { 0x44,0xe4, 25}, /* 0x2d */ /* CH-TV */ | ||
646 | { 0x7e,0x32, 47}, /* 0x2e */ /* CH-TV */ | ||
647 | { 0x8a,0x24, 31}, /* 0x2f */ /* CH/PAL TEXT | LVDS_2(CH), Mitac(CH) - 730, A901(301B): 0x57, 0xe4, 31 */ | ||
648 | { 0x97,0x2c, 26}, /* 0x30 */ /* CH-TV */ | ||
649 | { 0xce,0x3c, 39}, /* 0x31 */ /* CH-TV */ | ||
650 | { 0x52,0x4a, 36}, /* 0x32 */ /* CH/PAL 800x600 5/6 */ | ||
651 | { 0x34,0x61, 95}, /* 0x33 */ | ||
652 | { 0x78,0x27,108}, /* 0x34 */ /* Replacement for index 0x14 for 630 (?) */ | ||
653 | { 0x70,0x28, 90}, /* 0x35 */ /* 1152x864@60 */ | ||
654 | { 0x45,0x6b, 21}, /* 0x36 */ /* Chrontel SuperOverscan */ | ||
655 | { 0x52,0xe2, 49}, /* 0x37 */ /* 16:9 modes */ | ||
656 | { 0x2b,0x61, 78}, /* 0x38 */ /* 16:9 modes */ | ||
657 | { 0x70,0x44,108}, /* 0x39 */ /* 16:9 modes */ | ||
658 | { 0x54,0x42,135}, /* 0x3a */ /* 16:9 modes */ | ||
659 | { 0x41,0x22,157}, /* 0x3b */ /* 16:9 modes */ | ||
660 | { 0x52,0x07,149}, /* 0x3c */ /* 1280x960-85 */ | ||
661 | { 0x62,0xc6, 34}, /* 0x3d */ /* 848x480-60 */ | ||
662 | { 0x30,0x23, 88}, /* 0x3e */ /* 1360x768-60 */ | ||
663 | { 0x70,0x29, 81}, /* 0x3f */ /* 1280x768-60 */ | ||
664 | { 0x72,0x2a, 76}, /* 0x40 */ /* test for SiS730 --- LIMIT for table (&0x3f) */ | ||
665 | { 0x15,0x21, 79}, /* 0x41 */ /* test for SiS730 */ | ||
666 | { 0xa1,0x42,108}, /* 0x42 */ /* 1280x960 LCD */ | ||
667 | { 0x37,0x61,100}, /* 0x43 */ /* 1280x960 LCD */ | ||
668 | { 0xe3,0x9a,106}, /* 0x44 */ /* 1360x1024 - special for Barco iQ R300 */ | ||
669 | { 0xe2,0x46,135}, /* 0x45 */ /* 1280x1024-75, better clock for VGA2 */ | ||
670 | { 0x70,0x29, 81}, /* 0x46 */ /* unused */ | ||
671 | { 0, 0, 0}, /* 0x47 custom (will be filled out) */ | ||
672 | { 0xce,0x25,189} /* 0x48 */ /* Replacement for index 0x1b for 730 (and 540?) */ | ||
673 | }; | ||
674 | |||
675 | #ifdef LINUX_KERNEL | ||
676 | static UCHAR SiS300_SR07 = 0x10; | ||
677 | #endif | ||
678 | |||
679 | static const DRAM4Type SiS300_SR15[8] = | ||
680 | { | ||
681 | {0x01,0x09,0xa3,0x00}, | ||
682 | {0x43,0x43,0x43,0x00}, | ||
683 | {0x1e,0x1e,0x1e,0x00}, | ||
684 | {0x2a,0x2a,0x2a,0x00}, | ||
685 | {0x06,0x06,0x06,0x00}, | ||
686 | {0x00,0x00,0x00,0x00}, | ||
687 | {0x00,0x00,0x00,0x00}, | ||
688 | {0x00,0x00,0x00,0x00} | ||
689 | }; | ||
690 | |||
691 | #ifdef LINUX_KERNEL | ||
692 | static UCHAR SiS300_SR1F = 0x00; | ||
693 | static UCHAR SiS300_SR21 = 0x16; | ||
694 | static UCHAR SiS300_SR22 = 0xb2; | ||
695 | static UCHAR SiS300_SR23 = 0xf6; | ||
696 | static UCHAR SiS300_SR24 = 0x0d; | ||
697 | static UCHAR SiS300_SR25[] = {0x0,0x0}; | ||
698 | static UCHAR SiS300_SR31 = 0x00; | ||
699 | static UCHAR SiS300_SR32 = 0x11; | ||
700 | static UCHAR SiS300_SR33 = 0x00; | ||
701 | static UCHAR SiS300_CRT2Data_1_2 = 0x40; | ||
702 | static UCHAR SiS300_CRT2Data_4_D = 0x00; | ||
703 | static UCHAR SiS300_CRT2Data_4_E = 0x00; | ||
704 | static UCHAR SiS300_CRT2Data_4_10 = 0x80; | ||
705 | |||
706 | static const USHORT SiS300_RGBSenseData = 0xd1; | ||
707 | static const USHORT SiS300_VideoSenseData = 0xb3; | ||
708 | static const USHORT SiS300_YCSenseData = 0xb9; | ||
709 | static const USHORT SiS300_RGBSenseData2 = 0x0190; | ||
710 | static const USHORT SiS300_VideoSenseData2 = 0x0174; | ||
711 | static const USHORT SiS300_YCSenseData2 = 0x016b; | ||
712 | |||
713 | static const DRAM4Type SiS300_CR40[5]; | ||
714 | |||
715 | static UCHAR SiS300_CR49[2]; | ||
716 | #endif | ||
717 | |||
718 | static const SiS_PanelDelayTblStruct SiS300_PanelDelayTbl[] = | ||
719 | { | ||
720 | {{0x05,0xaa}}, | ||
721 | {{0x05,0x14}}, | ||
722 | {{0x05,0x36}}, | ||
723 | {{0x05,0x14}}, | ||
724 | {{0x05,0x14}}, | ||
725 | {{0x05,0x14}}, | ||
726 | {{0x05,0x90}}, | ||
727 | {{0x05,0x90}}, | ||
728 | {{0x05,0x14}}, | ||
729 | {{0x05,0x14}}, | ||
730 | {{0x05,0x14}}, | ||
731 | {{0x05,0x14}}, | ||
732 | {{0x20,0x80}}, | ||
733 | {{0x05,0x14}}, | ||
734 | {{0x05,0x40}}, | ||
735 | {{0x05,0x60}} | ||
736 | }; | ||
737 | |||
738 | #if 0 | ||
739 | static const SiS_PanelDelayTblStruct SiS300_PanelDelayTblLVDS[] = | ||
740 | { | ||
741 | {{0x05,0xaa}}, | ||
742 | {{0x05,0x14}}, | ||
743 | {{0x05,0x36}}, | ||
744 | {{0x05,0x14}}, | ||
745 | {{0x05,0x14}}, | ||
746 | {{0x05,0x14}}, | ||
747 | {{0x05,0x90}}, | ||
748 | {{0x05,0x90}}, | ||
749 | {{0x05,0x14}}, | ||
750 | {{0x05,0x14}}, | ||
751 | {{0x05,0x14}}, | ||
752 | {{0x05,0x14}}, /* 2.07a (JVC): 14,96 */ | ||
753 | {{0x05,0x28}}, /* 2.04.5c: 20, 80 - Clevo (2.04.2c): 05, 28 */ | ||
754 | {{0x05,0x14}}, | ||
755 | {{0x05,0x14}}, /* Some BIOSes: 05, 40 */ | ||
756 | {{0x05,0x60}} | ||
757 | }; | ||
758 | #endif | ||
759 | |||
760 | /**************************************************************/ | ||
761 | /* SIS VIDEO BRIDGE ----------------------------------------- */ | ||
762 | /**************************************************************/ | ||
763 | |||
764 | static const SiS_LCDDataStruct SiS300_St2LCD1024x768Data[] = | ||
765 | { | ||
766 | { 62, 25, 800, 546,1344, 806}, | ||
767 | { 32, 15, 930, 546,1344, 806}, | ||
768 | { 32, 15, 930, 546,1344, 806}, | ||
769 | { 104, 45, 945, 496,1344, 806}, | ||
770 | { 62, 25, 800, 546,1344, 806}, | ||
771 | { 31, 18,1008, 624,1344, 806}, | ||
772 | { 1, 1,1344, 806,1344, 806} | ||
773 | }; | ||
774 | |||
775 | static const SiS_LCDDataStruct SiS300_ExtLCD1024x768Data[] = | ||
776 | { | ||
777 | { 12, 5, 896, 512,1344, 806}, | ||
778 | { 12, 5, 896, 510,1344, 806}, | ||
779 | { 32, 15,1008, 505,1344, 806}, | ||
780 | { 32, 15,1008, 514,1344, 806}, | ||
781 | { 12, 5, 896, 500,1344, 806}, | ||
782 | { 42, 25,1024, 625,1344, 806}, | ||
783 | { 1, 1,1344, 806,1344, 806}, | ||
784 | { 12, 5, 896, 500,1344, 806}, | ||
785 | { 42, 25,1024, 625,1344, 806}, | ||
786 | { 1, 1,1344, 806,1344, 806}, | ||
787 | { 12, 5, 896, 500,1344, 806}, | ||
788 | { 42, 25,1024, 625,1344, 806}, | ||
789 | { 1, 1,1344, 806,1344, 806} | ||
790 | }; | ||
791 | |||
792 | static const SiS_LCDDataStruct SiS300_St2LCD1280x1024Data[] = | ||
793 | { | ||
794 | { 22, 5, 800, 510,1650,1088}, | ||
795 | { 22, 5, 800, 510,1650,1088}, | ||
796 | { 176, 45, 900, 510,1650,1088}, | ||
797 | { 176, 45, 900, 510,1650,1088}, | ||
798 | { 22, 5, 800, 510,1650,1088}, | ||
799 | { 13, 5,1024, 675,1560,1152}, | ||
800 | { 16, 9,1266, 804,1688,1072}, | ||
801 | { 1, 1,1688,1066,1688,1066} | ||
802 | }; | ||
803 | |||
804 | static const SiS_LCDDataStruct SiS300_ExtLCD1280x1024Data[] = | ||
805 | { | ||
806 | { 211, 60,1024, 501,1688,1066}, | ||
807 | { 211, 60,1024, 508,1688,1066}, | ||
808 | { 211, 60,1024, 501,1688,1066}, | ||
809 | { 211, 60,1024, 508,1688,1066}, | ||
810 | { 211, 60,1024, 500,1688,1066}, | ||
811 | { 211, 75,1024, 625,1688,1066}, | ||
812 | { 211, 120,1280, 798,1688,1066}, | ||
813 | { 1, 1,1688,1066,1688,1066} | ||
814 | }; | ||
815 | |||
816 | static const SiS_Part2PortTblStruct SiS300_CRT2Part2_1024x768_1[] = | ||
817 | { /* VESA Timing */ | ||
818 | {{0x21,0x12,0xbf,0xe4,0xc0,0x21,0x45,0x09,0x00,0xa9,0x09,0x04}}, | ||
819 | {{0x2c,0x12,0x9a,0xae,0x88,0x21,0x45,0x09,0x00,0xa9,0x09,0x04}}, | ||
820 | {{0x21,0x12,0xbf,0xe4,0xc0,0x21,0x45,0x09,0x00,0xa9,0x09,0x04}}, | ||
821 | {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}}, | ||
822 | {{0x22,0x13,0xfe,0x25,0xff,0x21,0x45,0x0a,0x00,0xa9,0x0d,0x04}}, | ||
823 | {{0x22,0x13,0xfe,0x25,0xff,0x21,0x45,0x0a,0x00,0xa9,0x0d,0x04}}, | ||
824 | {{0x22,0x13,0xfe,0x25,0xff,0x21,0x45,0x0a,0x00,0xa9,0x0d,0x04}} | ||
825 | }; | ||
826 | |||
827 | static const SiS_Part2PortTblStruct SiS300_CRT2Part2_1024x768_2[] = | ||
828 | { /* Non-VESA */ | ||
829 | {{0x28,0x12,0xa3,0xd0,0xaa,0x5a,0x45,0x0a,0x07,0xfa,0x0a,0x24}}, | ||
830 | {{0x2c,0x12,0x9a,0xae,0x88,0x5a,0x45,0x0a,0x07,0xfa,0x0a,0x24}}, | ||
831 | {{0x28,0x12,0xa3,0xd0,0xaa,0x5a,0x45,0x0a,0x07,0xfa,0x0a,0x24}}, | ||
832 | {{0x2c,0x12,0x9a,0xae,0x88,0x5a,0x45,0x0a,0x07,0xfa,0x0a,0x24}}, | ||
833 | {{0x28,0x13,0xe7,0x0b,0xe8,0x5a,0x45,0x0a,0x07,0xfa,0x0a,0x24}}, | ||
834 | {{0x38,0x18,0x16,0x00,0x00,0x5a,0x45,0x0a,0x07,0xfa,0x0a,0x24}}, | ||
835 | {{0x36,0x13,0x13,0x25,0xff,0x5a,0x45,0x0a,0x07,0xfa,0x0a,0x24}} | ||
836 | }; | ||
837 | |||
838 | static const SiS_Part2PortTblStruct SiS300_CRT2Part2_1024x768_3[] = | ||
839 | { | ||
840 | {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}} | ||
841 | }; | ||
842 | |||
843 | static const SiS_Part2PortTblStruct SiS300_CRT2Part2_1280x1024_1[] = | ||
844 | { | ||
845 | {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}} | ||
846 | }; | ||
847 | |||
848 | static const SiS_Part2PortTblStruct SiS300_CRT2Part2_1280x1024_2[] = | ||
849 | { | ||
850 | {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}} | ||
851 | }; | ||
852 | |||
853 | static const SiS_Part2PortTblStruct SiS300_CRT2Part2_1280x1024_3[] = | ||
854 | { | ||
855 | {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}} | ||
856 | }; | ||
857 | |||
858 | /**************************************************************/ | ||
859 | /* LVDS/Chrontel -------------------------------------------- */ | ||
860 | /**************************************************************/ | ||
861 | |||
862 | static const SiS_LVDSDataStruct SiS300_CHTVUPALData[] = | ||
863 | { | ||
864 | {1008, 625,1008, 625}, | ||
865 | {1008, 625,1008, 625}, | ||
866 | {1008, 625,1008, 625}, | ||
867 | {1008, 625,1008, 625}, | ||
868 | { 840, 750, 840, 750}, | ||
869 | { 936, 836, 936, 836} | ||
870 | }; | ||
871 | |||
872 | static const SiS_LVDSDataStruct SiS300_CHTVOPALData[] = | ||
873 | { | ||
874 | {1008, 625,1008, 625}, | ||
875 | {1008, 625,1008, 625}, | ||
876 | {1008, 625,1008, 625}, | ||
877 | {1008, 625,1008, 625}, | ||
878 | { 840, 625, 840, 625}, | ||
879 | { 960, 750, 960, 750} | ||
880 | }; | ||
881 | |||
882 | static const SiS_LVDSDataStruct SiS300_CHTVSOPALData[] = | ||
883 | { | ||
884 | {1008, 625,1008, 625}, | ||
885 | {1008, 625,1008, 625}, | ||
886 | {1008, 625,1008, 625}, | ||
887 | {1008, 625,1008, 625}, | ||
888 | { 840, 500, 840, 500}, | ||
889 | { 944, 625, 944, 625} | ||
890 | }; | ||
891 | |||
892 | |||
893 | static const SiS_LVDSDesStruct SiS300_PanelType00_1[] = | ||
894 | { | ||
895 | { 1059, 626 }, /* 2.08 */ | ||
896 | { 1059, 624 }, | ||
897 | { 1059, 626 }, | ||
898 | { 1059, 624 }, | ||
899 | { 1059, 624 }, | ||
900 | { 0, 627 }, | ||
901 | { 0, 627 }, | ||
902 | { 0, 0 }, | ||
903 | { 0, 0 } | ||
904 | #if 0 | ||
905 | {0, 626}, | ||
906 | {0, 624}, | ||
907 | {0, 626}, | ||
908 | {0, 624}, | ||
909 | {0, 624}, | ||
910 | {0, 627}, | ||
911 | {0, 627}, | ||
912 | {0, 0}, | ||
913 | {0, 0} | ||
914 | #endif | ||
915 | }; | ||
916 | |||
917 | static const SiS_LVDSDesStruct SiS300_PanelType01_1[] = | ||
918 | { | ||
919 | { 0, 0 }, /* 2.08 */ | ||
920 | { 0, 0 }, | ||
921 | { 0, 0 }, | ||
922 | { 0, 0 }, | ||
923 | { 0, 0 }, | ||
924 | { 0, 0 }, | ||
925 | { 0, 0 }, | ||
926 | { 0, 0 }, | ||
927 | { 0, 0 } | ||
928 | #if 0 | ||
929 | {1343, 798}, | ||
930 | {1343, 794}, | ||
931 | {1343, 798}, | ||
932 | {1343, 794}, | ||
933 | {1343, 0}, | ||
934 | {1343, 0}, | ||
935 | { 0, 805}, | ||
936 | { 0, 794}, | ||
937 | { 0, 0} | ||
938 | #endif | ||
939 | }; | ||
940 | |||
941 | static const SiS_LVDSDesStruct SiS300_PanelType02_1[] = | ||
942 | { | ||
943 | { 1059, 626 }, /* 2.08 */ | ||
944 | { 1059, 624 }, | ||
945 | { 1059, 626 }, | ||
946 | { 1059, 624 }, | ||
947 | { 1059, 624 }, | ||
948 | { 0, 627 }, | ||
949 | { 0, 627 }, | ||
950 | { 0, 0 }, | ||
951 | { 0, 0 } | ||
952 | #if 0 | ||
953 | {0, 626}, | ||
954 | {0, 624}, | ||
955 | {0, 626}, | ||
956 | {0, 624}, | ||
957 | {0, 624}, | ||
958 | {0, 627}, | ||
959 | {0, 627}, | ||
960 | {0, 0}, | ||
961 | {0, 0} | ||
962 | #endif | ||
963 | }; | ||
964 | |||
965 | static const SiS_LVDSDesStruct SiS300_PanelType03_1[] = | ||
966 | { | ||
967 | { 8, 436}, | ||
968 | { 8, 440}, | ||
969 | { 8, 436}, | ||
970 | { 8, 440}, | ||
971 | { 8, 512}, | ||
972 | {1343, 798}, | ||
973 | {1343, 794}, | ||
974 | {1343, 798}, | ||
975 | {1343, 794} | ||
976 | }; | ||
977 | |||
978 | static const SiS_LVDSDesStruct SiS300_PanelType04_1[] = /* 1280x1024 */ | ||
979 | { | ||
980 | {1343, 798}, | ||
981 | {1343, 794}, | ||
982 | {1343, 798}, | ||
983 | {1343, 794}, | ||
984 | {1343, 0}, | ||
985 | {1343, 0}, | ||
986 | { 0, 805}, | ||
987 | { 0, 794}, | ||
988 | { 0, 0} | ||
989 | }; | ||
990 | |||
991 | static const SiS_LVDSDesStruct SiS300_PanelType05_1[] = | ||
992 | { | ||
993 | {1343, 798}, | ||
994 | {1343, 794}, | ||
995 | {1343, 798}, | ||
996 | {1343, 794}, | ||
997 | {1343, 0}, | ||
998 | {1343, 0}, | ||
999 | { 0, 805}, | ||
1000 | { 0, 794}, | ||
1001 | { 0, 0} | ||
1002 | }; | ||
1003 | |||
1004 | static const SiS_LVDSDesStruct SiS300_PanelType06_1[] = /* Clevo Trumpion 1024x768 */ | ||
1005 | { | ||
1006 | {1343, 798}, | ||
1007 | {1343, 794}, | ||
1008 | {1343, 798}, | ||
1009 | {1343, 794}, | ||
1010 | {1343, 0}, | ||
1011 | {1343, 0}, | ||
1012 | { 0, 805}, | ||
1013 | { 0, 794}, | ||
1014 | { 0, 0} | ||
1015 | }; | ||
1016 | |||
1017 | static const SiS_LVDSDesStruct SiS300_PanelType07_1[] = | ||
1018 | { | ||
1019 | {1343, 798}, | ||
1020 | {1343, 794}, | ||
1021 | {1343, 798}, | ||
1022 | {1343, 794}, | ||
1023 | {1343, 0}, | ||
1024 | {1343, 0}, | ||
1025 | { 0, 805}, | ||
1026 | { 0, 794}, | ||
1027 | { 0, 0} | ||
1028 | }; | ||
1029 | |||
1030 | static const SiS_LVDSDesStruct SiS300_PanelType08_1[] = | ||
1031 | { | ||
1032 | {1059, 626}, | ||
1033 | {1059, 624}, | ||
1034 | {1059, 626}, | ||
1035 | {1059, 624}, | ||
1036 | {1059, 624}, | ||
1037 | { 0, 627}, | ||
1038 | { 0, 627}, | ||
1039 | { 0, 0}, | ||
1040 | { 0, 0} | ||
1041 | }; | ||
1042 | |||
1043 | static const SiS_LVDSDesStruct SiS300_PanelType09_1[] = | ||
1044 | { | ||
1045 | {1343, 798}, | ||
1046 | {1343, 794}, | ||
1047 | {1343, 798}, | ||
1048 | {1343, 794}, | ||
1049 | {1343, 0}, | ||
1050 | {1343, 0}, | ||
1051 | { 0, 805}, | ||
1052 | { 0, 794}, | ||
1053 | { 0, 0} | ||
1054 | }; | ||
1055 | |||
1056 | static const SiS_LVDSDesStruct SiS300_PanelType0a_1[] = | ||
1057 | { | ||
1058 | {1059, 626}, | ||
1059 | {1059, 624}, | ||
1060 | {1059, 626}, | ||
1061 | {1059, 624}, | ||
1062 | {1059, 624}, | ||
1063 | { 0, 627}, | ||
1064 | { 0, 627}, | ||
1065 | { 0, 0}, | ||
1066 | { 0, 0} | ||
1067 | }; | ||
1068 | |||
1069 | static const SiS_LVDSDesStruct SiS300_PanelType0b_1[] = | ||
1070 | { | ||
1071 | {1343, 0}, | ||
1072 | {1343, 0}, | ||
1073 | {1343, 0}, | ||
1074 | {1343, 0}, | ||
1075 | {1343, 0}, | ||
1076 | {1343, 0}, | ||
1077 | { 0, 799}, | ||
1078 | { 0, 0}, | ||
1079 | { 0, 0} | ||
1080 | }; | ||
1081 | |||
1082 | static const SiS_LVDSDesStruct SiS300_PanelType0c_1[] = | ||
1083 | { | ||
1084 | {1343, 798}, | ||
1085 | {1343, 794}, | ||
1086 | {1343, 798}, | ||
1087 | {1343, 794}, | ||
1088 | {1343, 0}, | ||
1089 | {1343, 0}, | ||
1090 | { 0, 805}, | ||
1091 | { 0, 794}, | ||
1092 | { 0, 0} | ||
1093 | }; | ||
1094 | |||
1095 | static const SiS_LVDSDesStruct SiS300_PanelType0d_1[] = | ||
1096 | { | ||
1097 | {1343, 798}, | ||
1098 | {1343, 794}, | ||
1099 | {1343, 798}, | ||
1100 | {1343, 794}, | ||
1101 | {1343, 0}, | ||
1102 | {1343, 0}, | ||
1103 | { 0, 805}, | ||
1104 | { 0, 794}, | ||
1105 | { 0, 0} | ||
1106 | }; | ||
1107 | |||
1108 | static const SiS_LVDSDesStruct SiS300_PanelType0e_1[] = | ||
1109 | { | ||
1110 | {1343, 798}, | ||
1111 | {1343, 794}, | ||
1112 | {1343, 798}, | ||
1113 | {1343, 794}, | ||
1114 | {1343, 0}, /* 640x480 */ | ||
1115 | {1343, 0}, /* 800x600 */ | ||
1116 | { 0, 805}, /* 1024x768 */ | ||
1117 | { 0, 794}, /* 1280x1024 */ | ||
1118 | { 0, 0} /* 1280x960 - not applicable */ | ||
1119 | }; | ||
1120 | |||
1121 | static const SiS_LVDSDesStruct SiS300_PanelType0f_1[] = | ||
1122 | { | ||
1123 | {1343, 798}, | ||
1124 | {1343, 794}, | ||
1125 | {1343, 798}, | ||
1126 | {1343, 794}, | ||
1127 | {1343, 0}, | ||
1128 | {1343, 0}, | ||
1129 | { 0, 805}, | ||
1130 | { 0, 794}, | ||
1131 | { 0, 0} | ||
1132 | }; | ||
1133 | |||
1134 | static const SiS_LVDSDesStruct SiS300_PanelType00_2[] = | ||
1135 | { | ||
1136 | {976, 527}, | ||
1137 | {976, 502}, | ||
1138 | {976, 527}, | ||
1139 | {976, 502}, | ||
1140 | {976, 567}, | ||
1141 | { 0, 627}, | ||
1142 | { 0, 627}, | ||
1143 | { 0, 0}, | ||
1144 | { 0, 0} | ||
1145 | }; | ||
1146 | |||
1147 | static const SiS_LVDSDesStruct SiS300_PanelType01_2[] = | ||
1148 | { | ||
1149 | {1152, 622}, | ||
1150 | {1152, 597}, | ||
1151 | {1152, 622}, | ||
1152 | {1152, 597}, | ||
1153 | {1152, 662}, | ||
1154 | {1232, 722}, | ||
1155 | { 0, 805}, | ||
1156 | { 0, 794}, | ||
1157 | { 0, 0} | ||
1158 | }; | ||
1159 | |||
1160 | static const SiS_LVDSDesStruct SiS300_PanelType02_2[] = | ||
1161 | { | ||
1162 | {976, 527}, | ||
1163 | {976, 502}, | ||
1164 | {976, 527}, | ||
1165 | {976, 502}, | ||
1166 | {976, 567}, | ||
1167 | { 0, 627}, | ||
1168 | { 0, 627}, | ||
1169 | { 0, 0}, | ||
1170 | { 0, 0} | ||
1171 | }; | ||
1172 | |||
1173 | static const SiS_LVDSDesStruct SiS300_PanelType03_2[] = | ||
1174 | { | ||
1175 | {1152, 622}, | ||
1176 | {1152, 597}, | ||
1177 | {1152, 622}, | ||
1178 | {1152, 597}, | ||
1179 | {1152, 662}, | ||
1180 | {1232, 722}, | ||
1181 | { 0, 805}, | ||
1182 | {1152, 622}, | ||
1183 | {1152, 597} | ||
1184 | }; | ||
1185 | |||
1186 | static const SiS_LVDSDesStruct SiS300_PanelType04_2[] = | ||
1187 | { | ||
1188 | {1152, 622}, | ||
1189 | {1152, 597}, | ||
1190 | {1152, 622}, | ||
1191 | {1152, 597}, | ||
1192 | {1152, 662}, | ||
1193 | {1232, 722}, | ||
1194 | { 0, 805}, | ||
1195 | { 0, 794}, | ||
1196 | { 0, 0} | ||
1197 | }; | ||
1198 | |||
1199 | static const SiS_LVDSDesStruct SiS300_PanelType05_2[] = | ||
1200 | { | ||
1201 | {1152, 622}, | ||
1202 | {1152, 597}, | ||
1203 | {1152, 622}, | ||
1204 | {1152, 597}, | ||
1205 | {1152, 662}, | ||
1206 | {1232, 722}, | ||
1207 | { 0, 805}, | ||
1208 | { 0, 794}, | ||
1209 | { 0, 0} | ||
1210 | }; | ||
1211 | |||
1212 | static const SiS_LVDSDesStruct SiS300_PanelType06_2[] = | ||
1213 | { | ||
1214 | {1152, 622}, | ||
1215 | {1152, 597}, | ||
1216 | {1152, 622}, | ||
1217 | {1152, 597}, | ||
1218 | {1152, 662}, | ||
1219 | {1232, 722}, | ||
1220 | { 0, 805}, | ||
1221 | { 0, 794}, | ||
1222 | { 0, 0} | ||
1223 | }; | ||
1224 | |||
1225 | static const SiS_LVDSDesStruct SiS300_PanelType07_2[] = | ||
1226 | { | ||
1227 | {1152, 622}, | ||
1228 | {1152, 597}, | ||
1229 | {1152, 622}, | ||
1230 | {1152, 597}, | ||
1231 | {1152, 662}, | ||
1232 | {1232, 722}, | ||
1233 | { 0, 805}, | ||
1234 | { 0, 794}, | ||
1235 | { 0, 0} | ||
1236 | }; | ||
1237 | |||
1238 | static const SiS_LVDSDesStruct SiS300_PanelType08_2[] = | ||
1239 | { | ||
1240 | {976, 527}, | ||
1241 | {976, 502}, | ||
1242 | {976, 527}, | ||
1243 | {976, 502}, | ||
1244 | {976, 567}, | ||
1245 | { 0, 627}, | ||
1246 | { 0, 627}, | ||
1247 | { 0, 0}, | ||
1248 | { 0, 0} | ||
1249 | }; | ||
1250 | |||
1251 | static const SiS_LVDSDesStruct SiS300_PanelType09_2[] = | ||
1252 | { | ||
1253 | {1152, 622}, | ||
1254 | {1152, 597}, | ||
1255 | {1152, 622}, | ||
1256 | {1152, 597}, | ||
1257 | {1152, 662}, | ||
1258 | {1232, 722}, | ||
1259 | { 0, 805}, | ||
1260 | { 0, 794}, | ||
1261 | { 0, 0} | ||
1262 | }; | ||
1263 | |||
1264 | static const SiS_LVDSDesStruct SiS300_PanelType0a_2[] = | ||
1265 | { | ||
1266 | {976, 527}, | ||
1267 | {976, 502}, | ||
1268 | {976, 527}, | ||
1269 | {976, 502}, | ||
1270 | {976, 567}, | ||
1271 | { 0, 627}, | ||
1272 | { 0, 627}, | ||
1273 | { 0, 0}, | ||
1274 | { 0, 0} | ||
1275 | }; | ||
1276 | |||
1277 | static const SiS_LVDSDesStruct SiS300_PanelType0b_2[] = | ||
1278 | { | ||
1279 | { 1152, 700}, | ||
1280 | { 1152, 675}, | ||
1281 | { 1152, 700}, | ||
1282 | { 1152, 675}, | ||
1283 | { 1152, 740}, | ||
1284 | { 1232, 799}, | ||
1285 | { 0, 799}, | ||
1286 | { 0, 0}, | ||
1287 | { 0, 0} | ||
1288 | }; | ||
1289 | |||
1290 | static const SiS_LVDSDesStruct SiS300_PanelType0c_2[] = | ||
1291 | { | ||
1292 | {1152, 622}, | ||
1293 | {1152, 597}, | ||
1294 | {1152, 622}, | ||
1295 | {1152, 597}, | ||
1296 | {1152, 662}, | ||
1297 | {1232, 722}, | ||
1298 | { 0, 805}, | ||
1299 | { 0, 794}, | ||
1300 | { 0, 0} | ||
1301 | }; | ||
1302 | |||
1303 | static const SiS_LVDSDesStruct SiS300_PanelType0d_2[] = | ||
1304 | { | ||
1305 | {1152, 622}, | ||
1306 | {1152, 597}, | ||
1307 | {1152, 622}, | ||
1308 | {1152, 597}, | ||
1309 | {1152, 662}, | ||
1310 | {1232, 722}, | ||
1311 | { 0, 805}, | ||
1312 | { 0, 794}, | ||
1313 | { 0, 0} | ||
1314 | }; | ||
1315 | |||
1316 | static const SiS_LVDSDesStruct SiS300_PanelType0e_2[] = | ||
1317 | { | ||
1318 | {1152, 622}, | ||
1319 | {1152, 597}, | ||
1320 | {1152, 622}, | ||
1321 | {1152, 597}, | ||
1322 | {1152, 662}, | ||
1323 | {1232, 722}, | ||
1324 | { 0, 805}, | ||
1325 | { 0, 794}, | ||
1326 | { 0, 0} | ||
1327 | }; | ||
1328 | |||
1329 | static const SiS_LVDSDesStruct SiS300_PanelType0f_2[] = | ||
1330 | { | ||
1331 | {1152, 622}, | ||
1332 | {1152, 597}, | ||
1333 | {1152, 622}, | ||
1334 | {1152, 597}, | ||
1335 | {1152, 662}, | ||
1336 | {1232, 722}, | ||
1337 | { 0, 805}, | ||
1338 | { 0, 794}, | ||
1339 | { 0, 0} | ||
1340 | }; | ||
1341 | |||
1342 | static const SiS_LVDSDesStruct SiS300_PanelTypeNS_1[]= | ||
1343 | { | ||
1344 | { 0, 0}, | ||
1345 | { 0, 0}, | ||
1346 | { 0, 0}, | ||
1347 | { 0, 0}, | ||
1348 | { 0, 0}, | ||
1349 | { 0, 0}, | ||
1350 | { 0, 805}, | ||
1351 | { 0, 0}, | ||
1352 | { 0, 0}, | ||
1353 | { 0, 0} | ||
1354 | }; | ||
1355 | |||
1356 | static const SiS_LVDSDesStruct SiS300_PanelTypeNS_2[] = | ||
1357 | { | ||
1358 | { 0 , 0}, | ||
1359 | { 0 , 0}, | ||
1360 | { 0 , 0}, | ||
1361 | { 0 , 0}, | ||
1362 | { 0 , 0}, | ||
1363 | { 0 , 0}, | ||
1364 | { 0 , 0}, | ||
1365 | { 0 , 0}, | ||
1366 | { 0 , 0}, | ||
1367 | { 0 , 0} | ||
1368 | }; | ||
1369 | |||
1370 | /* Custom data for Barco iQ R200/300/400 (BIOS 2.00.07) */ | ||
1371 | static const SiS_LVDSDesStruct SiS300_PanelType04_1a[] = /* 1280x1024 (1366x1024) */ | ||
1372 | { | ||
1373 | {1330, 798}, /* 320x200 */ | ||
1374 | {1330, 794}, | ||
1375 | {1330, 798}, | ||
1376 | {1330, 794}, | ||
1377 | {1330, 0}, /* 640x480 / 320x240 */ | ||
1378 | {1343, 0}, /* 800x600 / 400x300 */ | ||
1379 | { 0, 805}, /* 1024x768 / 512x384 */ | ||
1380 | {1688,1066}, /* 1280x1024 */ | ||
1381 | { 0, 0} /* 1360x1024 */ | ||
1382 | }; | ||
1383 | |||
1384 | static const SiS_LVDSDesStruct SiS300_PanelType04_2a[] = | ||
1385 | { | ||
1386 | {1152, 622}, | ||
1387 | {1152, 597}, | ||
1388 | {1152, 622}, | ||
1389 | {1152, 597}, | ||
1390 | {1152, 662}, | ||
1391 | {1232, 722}, | ||
1392 | { 0, 805}, | ||
1393 | {1688,1066}, | ||
1394 | { 0, 0} | ||
1395 | }; | ||
1396 | |||
1397 | /* Custom data for Barco iQ G200/300/400 (BIOS 2.00.07) */ | ||
1398 | static const SiS_LVDSDesStruct SiS300_PanelType04_1b[] = /* 1024x768 */ | ||
1399 | { | ||
1400 | {1330, 798}, /* 320x200 */ | ||
1401 | {1330, 794}, | ||
1402 | {1330, 798}, | ||
1403 | {1330, 794}, | ||
1404 | {1330, 0}, /* 640x480 / 320x240 */ | ||
1405 | {1343, 0}, /* 800x600 / 400x300 */ | ||
1406 | { 0, 805} /* 1024x768 / 512x384 */ | ||
1407 | }; | ||
1408 | |||
1409 | static const SiS_LVDSDesStruct SiS300_PanelType04_2b[] = | ||
1410 | { | ||
1411 | {1152, 622}, | ||
1412 | {1152, 597}, | ||
1413 | {1152, 622}, | ||
1414 | {1152, 597}, | ||
1415 | {1152, 662}, | ||
1416 | {1232, 722}, | ||
1417 | { 0, 805} | ||
1418 | }; | ||
1419 | |||
1420 | /* CRT1 CRTC for slave modes */ | ||
1421 | |||
1422 | static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT1800x600_1[] = | ||
1423 | { | ||
1424 | {{0x65,0x4f,0x89,0x56,0x83,0xaf,0x1f, | ||
1425 | 0x90,0x85,0x8f,0xab,0x30,0x00,0x05, | ||
1426 | 0x00 }}, | ||
1427 | {{0x65,0x4f,0x89,0x56,0x83,0x83,0x1f, | ||
1428 | 0x5e,0x83,0x5d,0x79,0x10,0x00,0x05, | ||
1429 | 0x00 }}, | ||
1430 | {{0x65,0x4f,0x89,0x56,0x83,0xaf,0x1f, | ||
1431 | 0x90,0x85,0x8f,0xab,0x30,0x00,0x05, | ||
1432 | 0x00 }}, | ||
1433 | {{0x65,0x4f,0x89,0x56,0x83,0x83,0x1f, | ||
1434 | 0x5e,0x83,0x5d,0x79,0x10,0x00,0x05, | ||
1435 | 0x00 }}, | ||
1436 | {{0x65,0x4f,0x89,0x56,0x83,0x04,0x3e, | ||
1437 | 0xe0,0x85,0xdf,0xfb,0x10,0x00,0x05, | ||
1438 | 0x00 }}, | ||
1439 | {{0x7f,0x63,0x83,0x6c,0x1c,0x72,0xf0, | ||
1440 | 0x58,0x8c,0x57,0x73,0x20,0x00,0x06, | ||
1441 | 0x01 }} | ||
1442 | }; | ||
1443 | |||
1444 | static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT1800x600_1_H[] = | ||
1445 | { | ||
1446 | {{0x30,0x27,0x94,0x2c,0x92,0xaf,0x1f, | ||
1447 | 0x90,0x85,0x8f,0xab,0x30,0x00,0x04, | ||
1448 | 0x00 }}, | ||
1449 | {{0x30,0x27,0x94,0x2c,0x92,0x83,0x1f, | ||
1450 | 0x5e,0x83,0x5d,0x79,0x10,0x00,0x04, | ||
1451 | 0x00 }}, | ||
1452 | {{0x30,0x27,0x94,0x2c,0x92,0xaf,0x1f, | ||
1453 | 0x90,0x85,0x8f,0xab,0x30,0x00,0x04, | ||
1454 | 0x00 }}, | ||
1455 | {{0x30,0x27,0x94,0x2c,0x92,0x83,0x1f, | ||
1456 | 0x5e,0x83,0x5d,0x79,0x10,0x00,0x04, | ||
1457 | 0x00 }}, | ||
1458 | {{0x30,0x27,0x94,0x2c,0x92,0x04,0x3e, | ||
1459 | 0xe0,0x85,0xdf,0xfb,0x10,0x00,0x04, | ||
1460 | 0x00 }}, | ||
1461 | {{0x3d,0x31,0x81,0x37,0x1f,0x72,0xf0, | ||
1462 | 0x58,0x8c,0x57,0x73,0x20,0x00,0x05, | ||
1463 | 0x01 }} | ||
1464 | }; | ||
1465 | |||
1466 | static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT11024x768_1[] = | ||
1467 | { | ||
1468 | {{0x64,0x4f,0x88,0x54,0x9f,0xc4,0x1f, | ||
1469 | 0x92,0x89,0x8f,0xb5,0x30,0x00,0x01, | ||
1470 | 0x00}}, | ||
1471 | {{0x64,0x4f,0x88,0x54,0x9f,0x97,0x1f, | ||
1472 | 0x60,0x87,0x5d,0x83,0x10,0x00,0x01, | ||
1473 | 0x00}}, | ||
1474 | {{0x64,0x4f,0x88,0x54,0x9f,0xc4,0x1f, | ||
1475 | 0x92,0x89,0x8f,0xb5,0x30,0x00,0x01, | ||
1476 | 0x00}}, | ||
1477 | {{0x64,0x4f,0x88,0x54,0x9f,0x97,0x1f, | ||
1478 | 0x60,0x87,0x5d,0x83,0x10,0x00,0x01, | ||
1479 | 0x00}}, | ||
1480 | {{0x64,0x4f,0x88,0x54,0x9f,0x04,0x3e, | ||
1481 | 0xe2,0x89,0xdf,0x05,0x00,0x00,0x01, | ||
1482 | 0x00}}, | ||
1483 | {{0x7e,0x63,0x82,0x68,0x15,0x7c,0xf0, | ||
1484 | 0x5a,0x8f,0x57,0x7d,0x20,0x00,0x26, | ||
1485 | 0x01}}, | ||
1486 | {{0xa3,0x7f,0x87,0x86,0x97,0x24,0xf5, | ||
1487 | 0x02,0x88,0xff,0x25,0x10,0x00,0x02, | ||
1488 | 0x01}} | ||
1489 | }; | ||
1490 | |||
1491 | static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT11024x768_1_H[] = | ||
1492 | { | ||
1493 | {{0x2f,0x27,0x93,0x2b,0x90,0xc4,0x1f, | ||
1494 | 0x92,0x89,0x8f,0xb5,0x30,0x00,0x44, | ||
1495 | 0x00 }}, | ||
1496 | {{0x2f,0x27,0x93,0x2b,0x90,0x97,0x1f, | ||
1497 | 0x60,0x87,0x5D,0x83,0x10,0x00,0x44, | ||
1498 | 0x00}}, | ||
1499 | {{0x2f,0x27,0x93,0x2b,0x90,0xc4,0x1f, | ||
1500 | 0x92,0x89,0x8f,0xb5,0x30,0x00,0x44, | ||
1501 | 0x00}}, | ||
1502 | {{0x2f,0x27,0x93,0x2b,0x90,0x97,0x1f, | ||
1503 | 0x60,0x87,0x5D,0x83,0x10,0x00,0x44, | ||
1504 | 0x00}}, | ||
1505 | {{0x2f,0x27,0x93,0x2b,0x90,0x04,0x3e, | ||
1506 | 0xE2,0x89,0xdf,0x05,0x00,0x00,0x44, | ||
1507 | 0x00}}, | ||
1508 | {{0x3c,0x31,0x80,0x35,0x1c,0x7c,0xf0, | ||
1509 | 0x5A,0x8F,0x57,0x7D,0x20,0x00,0x55, | ||
1510 | 0x01}}, | ||
1511 | {{0x4f,0x3F,0x93,0x45,0x0D,0x24,0xf5, | ||
1512 | 0x02,0x88,0xff,0x25,0x10,0x00,0x01, | ||
1513 | 0x01 }} | ||
1514 | |||
1515 | #if 0 | ||
1516 | {{0x37,0x27,0x9B,0x2b,0x94,0xc4,0x1f, | ||
1517 | 0x92,0x89,0x8f,0xb5,0x30,0x00,0x44, | ||
1518 | 0x00 }}, | ||
1519 | {{0x37,0x27,0x9B,0x2b,0x94,0x97,0x1f, | ||
1520 | 0x60,0x87,0x5D,0x83,0x01,0x00,0x44, | ||
1521 | 0x00}}, | ||
1522 | {{0x37,0x27,0x9B,0x2b,0x94,0xc4,0x1f, | ||
1523 | 0x92,0x89,0x8f,0xb5,0x30,0x00,0x44, | ||
1524 | 0x00}}, | ||
1525 | {{0x37,0x27,0x9B,0x2b,0x94,0x97,0x1f, | ||
1526 | 0x60,0x87,0x5D,0x83,0x01,0x00,0x44, | ||
1527 | 0x00}}, | ||
1528 | {{0x37,0x27,0x9B,0x2b,0x94,0x04,0x3e, | ||
1529 | 0xE2,0x89,0xDf,0x05,0x00,0x00,0x44, | ||
1530 | 0x00}}, | ||
1531 | {{0x41,0x31,0x85,0x35,0x1d,0x7c,0xf0, | ||
1532 | 0x5A,0x8F,0x57,0x7D,0x20,0x00,0x55, | ||
1533 | 0x01}}, | ||
1534 | {{0x4f,0x3F,0x93,0x45,0x0D,0x24,0xf5, | ||
1535 | 0x02,0x88,0xFf,0x25,0x10,0x00,0x01, | ||
1536 | 0x01 }} | ||
1537 | #endif | ||
1538 | }; | ||
1539 | |||
1540 | static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT11280x1024_1[] = | ||
1541 | { | ||
1542 | {{0x63,0x4f,0x87,0x54,0x9f,0xb4,0x1f, | ||
1543 | 0x92,0x89,0x8f,0xb5,0x30,0x00,0x01, | ||
1544 | 0x00 }}, | ||
1545 | {{0x63,0x4f,0x87,0x54,0x9f,0x82,0x1f, | ||
1546 | 0x60,0x87,0x5d,0x83,0x10,0x00,0x01, | ||
1547 | 0x00 }}, | ||
1548 | {{0x63,0x4f,0x87,0x54,0x9f,0xb4,0x1f, | ||
1549 | 0x92,0x89,0x8f,0xb5,0x30,0x00,0x01, | ||
1550 | 0x00 }}, | ||
1551 | {{0x63,0x4f,0x87,0x54,0x9f,0x82,0x1f, | ||
1552 | 0x60,0x87,0x5d,0x83,0x10,0x00,0x01, | ||
1553 | 0x00 }}, | ||
1554 | {{0x63,0x4f,0x87,0x54,0x9f,0x04,0x3e, | ||
1555 | 0xe2,0x89,0xdf,0x05,0x00,0x00,0x01, | ||
1556 | 0x00 }}, | ||
1557 | {{0x7e,0x63,0x82,0x68,0x15,0x7c,0xf0, | ||
1558 | 0x5a,0x8f,0x57,0x7d,0x20,0x00,0x26, | ||
1559 | 0x01 }}, | ||
1560 | {{0xa3,0x7f,0x87,0x86,0x97,0x24,0xf5, | ||
1561 | 0x02,0x88,0xff,0x25,0x10,0x00,0x02, | ||
1562 | 0x01 }} | ||
1563 | }; | ||
1564 | |||
1565 | static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT11280x1024_1_H[] = | ||
1566 | { | ||
1567 | {{0x2f,0x27,0x93,0x2b,0x90,0xb4,0x1f, | ||
1568 | 0x92,0x89,0x8f,0xb5,0x30,0x00,0x04, | ||
1569 | 0x00 }}, | ||
1570 | {{0x2f,0x27,0x93,0x2b,0x90,0x82,0x1f, | ||
1571 | 0x60,0x87,0x5d,0x83,0x10,0x00,0x04, | ||
1572 | 0x00 }}, | ||
1573 | {{0x2f,0x27,0x93,0x2b,0x90,0xb4,0x1f, | ||
1574 | 0x92,0x89,0x8f,0xb5,0x30,0x00,0x04, | ||
1575 | 0x00 }}, | ||
1576 | {{0x2f,0x27,0x93,0x2b,0x90,0x82,0x1f, | ||
1577 | 0x60,0x87,0x5d,0x83,0x10,0x00,0x04, | ||
1578 | 0x00 }}, | ||
1579 | {{0x2f,0x27,0x93,0x2b,0x90,0x04,0x3e, | ||
1580 | 0xe2,0x89,0xdf,0x05,0x00,0x00,0x04, | ||
1581 | 0x00 }}, | ||
1582 | {{0x3c,0x31,0x80,0x35,0x1c,0x7c,0xf0, | ||
1583 | 0x5a,0x8f,0x57,0x7d,0x20,0x00,0x55, | ||
1584 | 0x01 }}, | ||
1585 | {{0x4f,0x3f,0x93,0x45,0x0d,0x24,0xf5, | ||
1586 | 0x02,0x88,0xff,0x25,0x10,0x00,0x01, | ||
1587 | 0x01 }} | ||
1588 | }; | ||
1589 | |||
1590 | static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT1800x600_2[] = | ||
1591 | { | ||
1592 | {{0x7f,0x4f,0x83,0x62,0x12,0x72,0x3e, | ||
1593 | 0xf4,0x88,0x8f,0x73,0x20,0x00,0x06, | ||
1594 | 0x00 }}, | ||
1595 | {{0x7f,0x4f,0x83,0x62,0x12,0x72,0x3e, | ||
1596 | 0xdb,0x8f,0x5d,0x73,0x20,0x00,0x06, | ||
1597 | 0x00 }}, | ||
1598 | {{0x7f,0x4f,0x83,0x62,0x12,0x72,0x3e, | ||
1599 | 0xf4,0x88,0x8f,0x73,0x20,0x00,0x06, | ||
1600 | 0x00 }}, | ||
1601 | {{0x7f,0x4f,0x83,0x62,0x12,0x72,0x3e, | ||
1602 | 0xdb,0x8f,0x5d,0x73,0x20,0x00,0x06, | ||
1603 | 0x00 }}, | ||
1604 | {{0x7f,0x4f,0x83,0x62,0x12,0x72,0xba, | ||
1605 | 0x1c,0x80,0xdf,0x73,0x00,0x00,0x06, | ||
1606 | 0x00 }}, | ||
1607 | {{0x7f,0x63,0x83,0x6c,0x1c,0x72,0xf0, | ||
1608 | 0x58,0x8c,0x57,0x73,0x20,0x00,0x06, | ||
1609 | 0x01 }} | ||
1610 | }; | ||
1611 | |||
1612 | static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT1800x600_2_H[] = | ||
1613 | { | ||
1614 | {{0x3d,0x27,0x81,0x32,0x1a,0x72,0x3e, | ||
1615 | 0xf4,0x88,0x8f,0x73,0x20,0x00,0x05, | ||
1616 | 0x00 }}, | ||
1617 | {{0x3d,0x27,0x81,0x32,0x1a,0x72,0x3e, | ||
1618 | 0xdb,0x8f,0x5d,0x73,0x20,0x00,0x05, | ||
1619 | 0x00 }}, | ||
1620 | {{0x3d,0x27,0x81,0x32,0x1a,0x72,0x3e, | ||
1621 | 0xf4,0x88,0x8f,0x73,0x20,0x00,0x05, | ||
1622 | 0x00 }}, | ||
1623 | {{0x3d,0x27,0x81,0x3a,0x1a,0x72,0x3e, | ||
1624 | 0xdb,0x8f,0x5d,0x73,0x20,0x00,0x05, | ||
1625 | 0x00 }}, | ||
1626 | {{0x3d,0x27,0x81,0x32,0x1a,0x72,0xba, | ||
1627 | 0x1c,0x80,0xdf,0x73,0x00,0x00,0x05, | ||
1628 | 0x00 }}, | ||
1629 | {{0x3d,0x31,0x81,0x37,0x1f,0x72,0xf0, | ||
1630 | 0x58,0x8c,0x57,0x73,0x20,0x00,0x05, | ||
1631 | 0x01 }} | ||
1632 | }; | ||
1633 | |||
1634 | static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT11024x768_2[] = | ||
1635 | { | ||
1636 | {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb, | ||
1637 | 0x4a,0x80,0x8f,0x25,0x30,0x00,0x06, | ||
1638 | 0x00 }}, | ||
1639 | {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb, | ||
1640 | 0x31,0x87,0x5d,0x25,0x30,0x00,0x06, | ||
1641 | 0x00 }}, | ||
1642 | {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb, | ||
1643 | 0x4a,0x80,0x8f,0x25,0x30,0x00,0x06, | ||
1644 | 0x00 }}, | ||
1645 | {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb, | ||
1646 | 0x31,0x87,0x5d,0x25,0x30,0x00,0x06, | ||
1647 | 0x00 }}, | ||
1648 | {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb, | ||
1649 | 0x72,0x88,0xdf,0x25,0x30,0x00,0x06, | ||
1650 | 0x00 }}, | ||
1651 | {{0xa3,0x63,0x87,0x78,0x89,0x24,0xf1, | ||
1652 | 0xae,0x84,0x57,0x25,0x30,0x00,0x02, | ||
1653 | 0x01 }}, | ||
1654 | {{0xa3,0x7f,0x87,0x86,0x97,0x24,0xf5, | ||
1655 | 0x02,0x88,0xff,0x25,0x10,0x00,0x02, | ||
1656 | 0x01 }} | ||
1657 | }; | ||
1658 | |||
1659 | static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT11024x768_2_H[] = | ||
1660 | { | ||
1661 | {{0x4f,0x27,0x93,0x39,0x01,0x24,0xbb, | ||
1662 | 0x4a,0x80,0x8f,0x25,0x30,0x00,0x01, | ||
1663 | 0x00 }}, | ||
1664 | {{0x4f,0x27,0x93,0x39,0x01,0x24,0xbb, | ||
1665 | 0x31,0x87,0x5d,0x25,0x30,0x00,0x01, | ||
1666 | 0x00 }}, | ||
1667 | {{0x4f,0x27,0x93,0x39,0x01,0x24,0xbb, | ||
1668 | 0x4a,0x80,0x8f,0x25,0x30,0x00,0x01, | ||
1669 | 0x00 }}, | ||
1670 | {{0x4f,0x27,0x93,0x39,0x01,0x24,0xbb, | ||
1671 | 0x31,0x87,0x5d,0x25,0x30,0x00,0x01, | ||
1672 | 0x00 }}, | ||
1673 | {{0x4f,0x27,0x93,0x39,0x01,0x24,0xbb, | ||
1674 | 0x72,0x88,0xdf,0x25,0x30,0x00,0x01, | ||
1675 | 0x00 }}, | ||
1676 | {{0x4f,0x31,0x93,0x3e,0x06,0x24,0xf1, | ||
1677 | 0xae,0x84,0x57,0x25,0x30,0x00,0x01, | ||
1678 | 0x01 }}, | ||
1679 | {{0x4f,0x3f,0x93,0x45,0x0d,0x24,0xf5, | ||
1680 | 0x02,0x88,0xff,0x25,0x10,0x00,0x01, | ||
1681 | 0x01 }} | ||
1682 | }; | ||
1683 | |||
1684 | static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT11280x1024_2[] = | ||
1685 | { | ||
1686 | {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb, | ||
1687 | 0x4a,0x80,0x8f,0x25,0x30,0x00,0x06, | ||
1688 | 0x00 }}, | ||
1689 | {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb, | ||
1690 | 0x31,0x87,0x5d,0x25,0x30,0x00,0x06, | ||
1691 | 0x00 }}, | ||
1692 | {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb, | ||
1693 | 0x4a,0x80,0x8f,0x25,0x30,0x00,0x06, | ||
1694 | 0x00 }}, | ||
1695 | {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb, | ||
1696 | 0x31,0x87,0x5d,0x25,0x30,0x00,0x06, | ||
1697 | 0x00 }}, | ||
1698 | {{0xa3,0x4f,0x87,0x6e,0x9f,0x24,0xbb, | ||
1699 | 0x72,0x88,0xdf,0x25,0x30,0x00,0x06, | ||
1700 | 0x00 }}, | ||
1701 | {{0xa3,0x63,0x87,0x78,0x89,0x24,0xf1, | ||
1702 | 0xae,0x84,0x57,0x25,0x30,0x00,0x02, | ||
1703 | 0x01 }}, | ||
1704 | {{0xa3,0x7f,0x87,0x86,0x97,0x24,0xf5, | ||
1705 | 0x02,0x88,0xff,0x25,0x10,0x00,0x02, | ||
1706 | 0x01 }} | ||
1707 | }; | ||
1708 | |||
1709 | static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT11280x1024_2_H[] = | ||
1710 | { | ||
1711 | {{0x4f,0x27,0x93,0x39,0x81,0x24,0xbb, | ||
1712 | 0x4a,0x80,0x8f,0x25,0x30,0x00,0x01, | ||
1713 | 0x00 }}, | ||
1714 | {{0x4f,0x27,0x93,0x39,0x81,0x24,0xbb, | ||
1715 | 0x31,0x87,0x5d,0x25,0x30,0x00,0x01, | ||
1716 | 0x00 }}, | ||
1717 | {{0x4f,0x27,0x93,0x39,0x81,0x24,0xbb, | ||
1718 | 0x4a,0x80,0x8f,0x25,0x30,0x00,0x01, | ||
1719 | 0x00 }}, | ||
1720 | {{0x4f,0x27,0x93,0x39,0x81,0x24,0xbb, | ||
1721 | 0x31,0x87,0x5d,0x25,0x30,0x00,0x01, | ||
1722 | 0x00 }}, | ||
1723 | {{0x4f,0x27,0x93,0x39,0x81,0x24,0xbb, | ||
1724 | 0x72,0x88,0xdf,0x25,0x30,0x00,0x01, | ||
1725 | 0x00 }}, | ||
1726 | {{0x4f,0x31,0x93,0x3e,0x86,0x24,0xf1, | ||
1727 | 0xae,0x84,0x57,0x25,0x30,0x00,0x01, | ||
1728 | 0x01 }}, | ||
1729 | {{0x4f,0x3f,0x93,0x45,0x0d,0x24,0xf5, | ||
1730 | 0x02,0x88,0xff,0x25,0x10,0x00,0x01, | ||
1731 | 0x01}} | ||
1732 | }; | ||
1733 | |||
1734 | static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT1XXXxXXX_1[] = | ||
1735 | { | ||
1736 | {{0x5f,0x4f,0x82,0x55,0x81,0xbf,0x1f, | ||
1737 | 0x9c,0x8e,0x96,0xb9,0x30,0x00,0x05, | ||
1738 | 0x00}}, | ||
1739 | {{0x5f,0x4f,0x82,0x55,0x81,0xbf,0x1f, | ||
1740 | 0x9c,0x8e,0x96,0xb9,0x30,0x00,0x05, | ||
1741 | 0x00}}, | ||
1742 | {{0x5f,0x4f,0x82,0x55,0x81,0xbf,0x1f, | ||
1743 | 0x9c,0x8e,0x96,0xb9,0x30,0x00,0x05, | ||
1744 | 0x00}}, | ||
1745 | {{0x5f,0x4f,0x82,0x55,0x81,0xbf,0x1f, | ||
1746 | 0x9c,0x8e,0x96,0xb9,0x30,0x00,0x05, | ||
1747 | 0x00}}, | ||
1748 | {{0x5f,0x4f,0x82,0x55,0x81,0x0b,0x3e, | ||
1749 | 0xe9,0x8b,0xe7,0x04,0x00,0x00,0x05, | ||
1750 | 0x00}}, | ||
1751 | {{0x7f,0x63,0x83,0x6c,0x1c,0x72,0xf0, | ||
1752 | 0x58,0x8c,0x57,0x73,0x20,0x00,0x06, | ||
1753 | 0x01}}, | ||
1754 | {{0xa3,0x7f,0x87,0x86,0x97,0x24,0xf5, | ||
1755 | 0x02,0x88,0xff,0x25,0x10,0x00,0x02, | ||
1756 | 0x01}}, | ||
1757 | {{0xce,0x9f,0x92,0xa8,0x14,0x28,0x5a, | ||
1758 | 0x00,0x84,0xff,0x29,0x09,0x00,0x07, | ||
1759 | 0x01}}, | ||
1760 | {{0xce,0x9f,0x92,0xa9,0x17,0x24,0xf5, | ||
1761 | 0x02,0x88,0xff,0x25,0x10,0x00,0x07, | ||
1762 | 0x01}} | ||
1763 | }; | ||
1764 | |||
1765 | static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT1XXXxXXX_1_H[] = | ||
1766 | { | ||
1767 | {{0x38,0x27,0x9c,0x2c,0x80,0xbf,0x1f, | ||
1768 | 0x9c,0x8e,0x96,0xb9,0x30,0x00,0x00, | ||
1769 | 0x00}}, | ||
1770 | {{0x38,0x27,0x9c,0x2c,0x80,0xbf,0x1f, | ||
1771 | 0x9c,0x8e,0x96,0xb9,0x30,0x00,0x00, | ||
1772 | 0x00}}, | ||
1773 | {{0x38,0x27,0x9c,0x2c,0x80,0xbf,0x1f, | ||
1774 | 0x9c,0x8e,0x96,0xb9,0x30,0x00,0x00, | ||
1775 | 0x00}}, | ||
1776 | {{0x38,0x27,0x9c,0x2c,0x80,0xbf,0x1f, | ||
1777 | 0x9c,0x8e,0x96,0xb9,0x30,0x00,0x00, | ||
1778 | 0x00}}, | ||
1779 | {{0x38,0x27,0x9c,0x2c,0x80,0x0b,0x3e, | ||
1780 | 0xe9,0x8b,0xe7,0x04,0x00,0x00,0x00, | ||
1781 | 0x00}}, | ||
1782 | {{0x4d,0x31,0x91,0x3b,0x03,0x72,0xf0, | ||
1783 | 0x58,0x8c,0x57,0x73,0x20,0x00,0x01, | ||
1784 | 0x01}}, | ||
1785 | {{0x63,0x3f,0x87,0x4a,0x92,0x24,0xf5, | ||
1786 | 0x02,0x88,0xff,0x25,0x10,0x00,0x01, | ||
1787 | 0x01}} | ||
1788 | }; | ||
1789 | |||
1790 | |||
1791 | static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1UNTSC[] = | ||
1792 | { | ||
1793 | {{0x64,0x4f,0x88,0x56,0x9f,0x56,0x3e, | ||
1794 | 0xe8,0x84,0x8f,0x57,0x20,0x00,0x01, | ||
1795 | 0x00 }}, | ||
1796 | {{0x64,0x4f,0x88,0x56,0x9f,0x56,0x3e, | ||
1797 | 0xd0,0x82,0x5d,0x57,0x00,0x00,0x01, | ||
1798 | 0x00 }}, | ||
1799 | {{0x64,0x4f,0x88,0x56,0x9f,0x56,0x3e, | ||
1800 | 0xe8,0x84,0x8f,0x57,0x20,0x00,0x01, | ||
1801 | 0x00 }}, | ||
1802 | {{0x64,0x4f,0x88,0x56,0x9f,0x56,0x3e, | ||
1803 | 0xd0,0x82,0x5d,0x57,0x00,0x00,0x01, | ||
1804 | 0x00 }}, | ||
1805 | {{0x5d,0x4f,0x81,0x53,0x9c,0x56,0xba, | ||
1806 | 0x18,0x84,0xdf,0x57,0x00,0x00,0x01, | ||
1807 | 0x00 }}, | ||
1808 | {{0x80,0x63,0x84,0x6c,0x17,0xec,0xf0, | ||
1809 | 0x90,0x8c,0x57,0xed,0x20,0x00,0x06, | ||
1810 | 0x01 }} | ||
1811 | }; | ||
1812 | |||
1813 | static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1ONTSC[] = | ||
1814 | { | ||
1815 | {{0x64,0x4f,0x88,0x5a,0x9f,0x0b,0x3e, | ||
1816 | 0xc0,0x84,0x8f,0x0c,0x20,0x00,0x01, | ||
1817 | 0x00 }}, | ||
1818 | {{0x64,0x4f,0x88,0x5a,0x9f,0x0b,0x3e, | ||
1819 | 0xb0,0x8d,0x5d,0x0c,0x00,0x00,0x01, | ||
1820 | 0x00 }}, | ||
1821 | {{0x64,0x4f,0x88,0x5a,0x9f,0x0b,0x3e, | ||
1822 | 0xc0,0x84,0x8f,0x0c,0x20,0x00,0x01, | ||
1823 | 0x00 }}, | ||
1824 | {{0x64,0x4f,0x88,0x5a,0x9f,0x0b,0x3e, | ||
1825 | 0xb0,0x8d,0x5d,0x0c,0x00,0x00,0x01, | ||
1826 | 0x00 }}, | ||
1827 | {{0x5d,0x4f,0x81,0x56,0x9c,0x0b,0x3e, | ||
1828 | 0xe8,0x84,0xdf,0x0c,0x00,0x00,0x01, | ||
1829 | 0x00 }}, | ||
1830 | {{0x7d,0x63,0x81,0x6a,0x16,0xba,0xf0, | ||
1831 | 0x7f,0x86,0x57,0xbb,0x00,0x00,0x06, | ||
1832 | 0x01 }} | ||
1833 | }; | ||
1834 | |||
1835 | static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1UPAL[] = | ||
1836 | { | ||
1837 | {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e, | ||
1838 | 0xf8,0x83,0x8f,0x70,0x20,0x00,0x05, | ||
1839 | 0x00 }}, | ||
1840 | {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e, | ||
1841 | 0xde,0x81,0x5d,0x70,0x00,0x00,0x05, | ||
1842 | 0x00 }}, | ||
1843 | {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e, | ||
1844 | 0xf8,0x83,0x8f,0x70,0x20,0x00,0x05, | ||
1845 | 0x00 }}, | ||
1846 | {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e, | ||
1847 | 0xde,0x81,0x5d,0x70,0x00,0x00,0x05, | ||
1848 | 0x00 }}, | ||
1849 | {{0x64,0x4f,0x88,0x55,0x80,0xec,0xba, | ||
1850 | 0x50,0x84,0xdf,0xed,0x00,0x00,0x05, | ||
1851 | 0x00 }}, | ||
1852 | {{0x70,0x63,0x94,0x68,0x8d,0x42,0xf1, | ||
1853 | 0xc8,0x8c,0x57,0xe9,0x20,0x00,0x05, | ||
1854 | 0x01 }} | ||
1855 | }; | ||
1856 | |||
1857 | static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1OPAL[] = | ||
1858 | { | ||
1859 | {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e, | ||
1860 | 0xf0,0x83,0x8f,0x70,0x20,0x00,0x05, | ||
1861 | 0x00 }}, | ||
1862 | {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e, | ||
1863 | 0xde,0x81,0x5d,0x70,0x00,0x00,0x05, | ||
1864 | 0x00 }}, | ||
1865 | {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e, | ||
1866 | 0xf0,0x83,0x8f,0x70,0x20,0x00,0x05, | ||
1867 | 0x00 }}, | ||
1868 | {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e, | ||
1869 | 0xde,0x81,0x5d,0x70,0x00,0x00,0x05, | ||
1870 | 0x00 }}, | ||
1871 | {{0x64,0x4f,0x88,0x55,0x80,0x6f,0xba, | ||
1872 | 0x20,0x83,0xdf,0x70,0x00,0x00,0x05, | ||
1873 | 0x00 }}, | ||
1874 | {{0x73,0x63,0x97,0x69,0x8e,0xec,0xf0, | ||
1875 | 0x90,0x8c,0x57,0xed,0x20,0x00,0x05, | ||
1876 | 0x01 }} | ||
1877 | }; | ||
1878 | |||
1879 | static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1SOPAL[] = | ||
1880 | { | ||
1881 | {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e, | ||
1882 | 0xf0,0x83,0x8f,0x70,0x20,0x00,0x05, | ||
1883 | 0x00 }}, | ||
1884 | {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e, | ||
1885 | 0xde,0x81,0x5d,0x70,0x00,0x00,0x05, | ||
1886 | 0x00 }}, | ||
1887 | {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e, | ||
1888 | 0xf0,0x83,0x8f,0x70,0x20,0x00,0x05, | ||
1889 | 0x00 }}, | ||
1890 | {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e, | ||
1891 | 0xde,0x81,0x5d,0x70,0x00,0x00,0x05, | ||
1892 | 0x00 }}, | ||
1893 | {{0x64,0x4f,0x88,0x55,0x80,0x6f,0xba, /* TODO */ | ||
1894 | 0x20,0x83,0xdf,0x70,0x00,0x00,0x05, | ||
1895 | 0x00 }}, | ||
1896 | {{0x73,0x63,0x97,0x69,0x8e,0xec,0xf0, /* TODO */ | ||
1897 | 0x90,0x8c,0x57,0xed,0x20,0x00,0x05, | ||
1898 | 0x01 }} | ||
1899 | }; | ||
1900 | |||
1901 | static const SiS_CHTVRegDataStruct SiS300_CHTVReg_UNTSC[] = | ||
1902 | { | ||
1903 | {{0x4a,0x94,0x00,0x48,0xfe,0,0,0,0,0,0,0,0,0,0,0}}, | ||
1904 | {{0x4a,0x94,0x00,0x48,0xfe,0,0,0,0,0,0,0,0,0,0,0}}, | ||
1905 | {{0x4a,0x94,0x00,0x48,0xfe,0,0,0,0,0,0,0,0,0,0,0}}, | ||
1906 | {{0x4a,0x94,0x00,0x48,0xfe,0,0,0,0,0,0,0,0,0,0,0}}, | ||
1907 | {{0x6a,0x6a,0x00,0x2d,0xfa,0,0,0,0,0,0,0,0,0,0,0}}, /* Mode 17: 640x480 NTSC 7/8 */ | ||
1908 | {{0x8d,0xc4,0x00,0x3b,0xfb,0,0,0,0,0,0,0,0,0,0,0}} /* Mode 24: 800x600 NTSC 7/10 */ | ||
1909 | }; | ||
1910 | |||
1911 | static const SiS_CHTVRegDataStruct SiS300_CHTVReg_ONTSC[] = | ||
1912 | { | ||
1913 | {{0x49,0x94,0x00,0x34,0xfe,0,0,0,0,0,0,0,0,0,0,0}}, | ||
1914 | {{0x49,0x94,0x00,0x34,0xfe,0,0,0,0,0,0,0,0,0,0,0}}, | ||
1915 | {{0x49,0x94,0x00,0x34,0xfe,0,0,0,0,0,0,0,0,0,0,0}}, | ||
1916 | {{0x49,0x94,0x00,0x34,0xfe,0,0,0,0,0,0,0,0,0,0,0}}, | ||
1917 | {{0x69,0x6a,0x00,0x1e,0xfd,0,0,0,0,0,0,0,0,0,0,0}}, /* Mode 16: 640x480 NTSC 1/1 */ | ||
1918 | {{0x8c,0xb4,0x00,0x32,0xf9,0,0,0,0,0,0,0,0,0,0,0}} /* Mode 23: 800x600 NTSC 3/4 */ | ||
1919 | }; | ||
1920 | |||
1921 | static const SiS_CHTVRegDataStruct SiS300_CHTVReg_UPAL[] = | ||
1922 | { | ||
1923 | {{0x41,0x12,0x01,0x50,0x34,0,0,0,0,0,0,0,0,0,0,0}}, | ||
1924 | {{0x41,0x12,0x00,0x50,0x00,0,0,0,0,0,0,0,0,0,0,0}}, | ||
1925 | {{0x41,0x12,0x01,0x50,0x34,0,0,0,0,0,0,0,0,0,0,0}}, | ||
1926 | {{0x41,0x12,0x00,0x50,0x00,0,0,0,0,0,0,0,0,0,0,0}}, | ||
1927 | {{0x63,0x94,0x01,0x50,0x30,0,0,0,0,0,0,0,0,0,0,0}}, /* Mode 15: 640x480 PAL 5/6 */ | ||
1928 | {{0x84,0x64,0x01,0x4e,0x2f,0,0,0,0,0,0,0,0,0,0,0}} /* Mode 21: 800x600 PAL 3/4 */ | ||
1929 | |||
1930 | }; | ||
1931 | |||
1932 | static const SiS_CHTVRegDataStruct SiS300_CHTVReg_OPAL[] = | ||
1933 | { | ||
1934 | {{0x41,0x12,0x01,0x50,0x34,0,0,0,0,0,0,0,0,0,0,0}}, /* Mode 9: 640x400 PAL 1/1 */ | ||
1935 | {{0x41,0x12,0x00,0x50,0x00,0,0,0,0,0,0,0,0,0,0,0}}, | ||
1936 | {{0x41,0x12,0x01,0x50,0x34,0,0,0,0,0,0,0,0,0,0,0}}, | ||
1937 | {{0x41,0x12,0x00,0x50,0x00,0,0,0,0,0,0,0,0,0,0,0}}, | ||
1938 | {{0x61,0x94,0x01,0x36,0x30,0,0,0,0,0,0,0,0,0,0,0}}, /* Mode 14: 640x480 PAL 1/1 */ | ||
1939 | {{0x83,0x76,0x01,0x40,0x31,0,0,0,0,0,0,0,0,0,0,0}} /* Mode 20: 800x600 PAL 5/6 */ | ||
1940 | |||
1941 | }; | ||
1942 | |||
1943 | static const SiS_CHTVRegDataStruct SiS300_CHTVReg_SOPAL[] = | ||
1944 | { | ||
1945 | {{0x41,0x12,0x01,0x50,0x34,0,0,0,0,0,0,0,0,0,0,0}}, /* Mode 9: 640x400 PAL 1/1 */ | ||
1946 | {{0x41,0x12,0x00,0x50,0x00,0,0,0,0,0,0,0,0,0,0,0}}, | ||
1947 | {{0x41,0x12,0x01,0x50,0x34,0,0,0,0,0,0,0,0,0,0,0}}, | ||
1948 | {{0x41,0x12,0x00,0x50,0x00,0,0,0,0,0,0,0,0,0,0,0}}, | ||
1949 | {{0x60,0x30,0x00,0x10,0x00,0,0,0,0,0,0,0,0,0,0,0}}, /* TW: Mode 13: 640x480 PAL 5/4 */ | ||
1950 | {{0x81,0x50,0x00,0x1b,0x00,0,0,0,0,0,0,0,0,0,0,0}} /* TW: Mode 19: 800x600 PAL 1/1 */ | ||
1951 | }; | ||
1952 | |||
1953 | static const UCHAR SiS300_CHTVVCLKUNTSC[] = {0x29,0x29,0x29,0x29,0x2a,0x2e}; | ||
1954 | |||
1955 | static const UCHAR SiS300_CHTVVCLKONTSC[] = {0x2c,0x2c,0x2c,0x2c,0x2d,0x2b}; | ||
1956 | |||
1957 | static const UCHAR SiS300_CHTVVCLKSONTSC[] = {0x2c,0x2c,0x2c,0x2c,0x2d,0x2b}; | ||
1958 | |||
1959 | static const UCHAR SiS300_CHTVVCLKUPAL[] = {0x2f,0x2f,0x2f,0x2f,0x2f,0x31}; | ||
1960 | |||
1961 | static const UCHAR SiS300_CHTVVCLKOPAL[] = {0x2f,0x2f,0x2f,0x2f,0x30,0x32}; | ||
1962 | |||
1963 | static const UCHAR SiS300_CHTVVCLKSOPAL[] = {0x2f,0x2f,0x2f,0x2f,0x36,0x29}; | ||
1964 | |||
1965 | |||