diff options
author | Thomas Winischhofer <thomas@winischhofer.net> | 2005-09-09 16:04:45 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-09 16:58:01 -0400 |
commit | 544393fe584d333480659a4bed30f5295355df11 (patch) | |
tree | 873b30c67cdbb5cb93e6fd816692db312ed6ddd6 /drivers/video/sis/300vtbl.h | |
parent | 5c06e2aa6339112befdc87b350b8bf712890d7a7 (diff) |
[PATCH] sisfb update
This lifts sisfb from version 1.7.17 to version 1.8.9. Changes include:
- Added support for XGI V3XT, V5, V8, Z7 chipsets, including POSTing of
all of these chipsets.
- Added support for latest SiS chipsets (761).
- Added support for SiS76x memory "hybrid" mode.
- Added support for new LCD resolutions (eg 1280x854, 856x480).
- Fixed support for 320x240 STN panels (for embedded devices).
- Fixed many HDTV modes (525p, 750p, 1080i).
- Fixed PCI config register reading/writing to use proper kernel
functions for this purpose.
- Fixed PCI ROM handling to use the kernel's proper functions.
- Removed lots of "typedef"s.
- Removed lots of code which was for X.org/XFree86 only.
- Fixed coding style in many places.
- Removed lots of 2.4 cruft.
- Reduced stack size by unifying two previously separate structs into
one.
- Added new hooks for memory allocation (for DRM). Now the driver can
truly handle multiple cards, including memory management.
- Fixed numerous minor bugs.
Signed-off-by: Thomas Winischhofer <thomas@winischhofer.net>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/video/sis/300vtbl.h')
-rw-r--r-- | drivers/video/sis/300vtbl.h | 1363 |
1 files changed, 235 insertions, 1128 deletions
diff --git a/drivers/video/sis/300vtbl.h b/drivers/video/sis/300vtbl.h index b6d5c71b2563..e4b4a2626da4 100644 --- a/drivers/video/sis/300vtbl.h +++ b/drivers/video/sis/300vtbl.h | |||
@@ -3,7 +3,7 @@ | |||
3 | /* | 3 | /* |
4 | * Register settings for SiS 300 series | 4 | * Register settings for SiS 300 series |
5 | * | 5 | * |
6 | * Copyright (C) 2001-2004 by Thomas Winischhofer, Vienna, Austria | 6 | * Copyright (C) 2001-2005 by Thomas Winischhofer, Vienna, Austria |
7 | * | 7 | * |
8 | * If distributed as part of the Linux kernel, the following license terms | 8 | * If distributed as part of the Linux kernel, the following license terms |
9 | * apply: | 9 | * apply: |
@@ -50,31 +50,7 @@ | |||
50 | * | 50 | * |
51 | */ | 51 | */ |
52 | 52 | ||
53 | static const SiS_StStruct SiS300_SModeIDTable[] = | 53 | static const struct SiS_Ext SiS300_EModeIDTable[] = |
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 | { | 54 | { |
79 | {0x6a,0x2212,0x0102,SIS_RI_800x600, 0x00,0x00,0x00,0x00,0x00,-1}, /* 800x600x? */ | 55 | {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}, | 56 | {0x2e,0x0a1b,0x0101,SIS_RI_640x480, 0x00,0x00,0x00,0x00,0x08,-1}, |
@@ -110,7 +86,7 @@ static const SiS_ExtStruct SiS300_EModeIDTable[] = | |||
110 | {0x59,0x921b,0x0138,SIS_RI_320x200, 0x00,0x00,0x00,0x00,0x23,-1}, /* 320x200x8 */ | 86 | {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 */ | 87 | {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 */ | 88 | {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 */ | 89 | {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}, | 90 | {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 */ | 91 | {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}, | 92 | {0x64,0x0a7f,0x013c,SIS_RI_1024x768, 0x00,0x00,0x00,0x00,0x13,-1}, |
@@ -119,8 +95,8 @@ static const SiS_ExtStruct SiS300_EModeIDTable[] = | |||
119 | {0x68,0x067b,0x013f,SIS_RI_1920x1440,0x00,0x00,0x00,0x00,0x27,-1}, | 95 | {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}, | 96 | {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}, | 97 | {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! */ | 98 | {0x6c,0x067b,0x0000,SIS_RI_2048x1536,0x00,0x00,0x00,0x00,0x28,-1}, /* 2048x1536x8 */ |
123 | {0x6d,0x06fd,0x0000,SIS_RI_2048x1536,0x00,0x00,0x00,0x00,0x28,-1}, /* 2048x1536x16 - not in BIOS! */ | 99 | {0x6d,0x06fd,0x0000,SIS_RI_2048x1536,0x00,0x00,0x00,0x00,0x28,-1}, /* 2048x1536x16 */ |
124 | {0x70,0x6a1b,0x0000,SIS_RI_800x480, 0x00,0x00,0x07,0x00,0x2d,-1}, /* 800x480x8 */ | 100 | {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 */ | 101 | {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 */ | 102 | {0x74,0x4a1d,0x0000,SIS_RI_1024x576, 0x00,0x00,0x00,0x00,0x30,-1}, /* 1024x576x16 */ |
@@ -166,77 +142,77 @@ static const SiS_ExtStruct SiS300_EModeIDTable[] = | |||
166 | {0xff,0x0000,0xffff,0, 0x00,0x00,0x00,0x00,0x00} | 142 | {0xff,0x0000,0xffff,0, 0x00,0x00,0x00,0x00,0x00} |
167 | }; | 143 | }; |
168 | 144 | ||
169 | static const SiS_Ext2Struct SiS300_RefIndex[] = | 145 | static const struct SiS_Ext2 SiS300_RefIndex[] = |
170 | { | 146 | { |
171 | {0x085f,0x0d,0x03,0x05,0x05,0x6a, 800, 600, 0}, /* 00 */ | 147 | {0x085f,0x0d,0x03,0x05,0x05,0x6a, 800, 600, 0, 0x00, 0x00}, /* 00 */ |
172 | {0x0467,0x0e,0x44,0x05,0x05,0x6a, 800, 600, 0}, /* 01 */ | 148 | {0x0467,0x0e,0x04,0x05,0x05,0x6a, 800, 600, 0, 0x00, 0x00}, /* 01 */ |
173 | {0x0067,0x0f,0x07,0x48,0x05,0x6a, 800, 600, 0}, /* 02 - CRT1CRTC was 0x4f */ | 149 | {0x0067,0x0f,0x07,0x48,0x05,0x6a, 800, 600, 0, 0x00, 0x00}, /* 02 - CRT1CRTC was 0x4f */ |
174 | {0x0067,0x10,0x06,0x8b,0x05,0x6a, 800, 600, 0}, /* 03 */ | 150 | {0x0067,0x10,0x06,0x8b,0x05,0x6a, 800, 600, 0, 0x00, 0x00}, /* 03 */ |
175 | {0x0147,0x11,0x08,0x00,0x05,0x6a, 800, 600, 0}, /* 04 */ | 151 | {0x0147,0x11,0x08,0x00,0x05,0x6a, 800, 600, 0, 0x00, 0x00}, /* 04 */ |
176 | {0x0147,0x12,0x0c,0x00,0x05,0x6a, 800, 600, 0}, /* 05 */ | 152 | {0x0147,0x12,0x0c,0x00,0x05,0x6a, 800, 600, 0, 0x00, 0x00}, /* 05 */ |
177 | {0x0047,0x11,0x4e,0x00,0x05,0x6a, 800, 600, 0}, /* 06 - CRT1CRTC was 0x51 */ | 153 | {0x0047,0x11,0x0e,0x00,0x05,0x6a, 800, 600, 0, 0x00, 0x00}, /* 06 - CRT1CRTC was 0x51 */ |
178 | {0x0047,0x11,0x13,0x00,0x05,0x6a, 800, 600, 0}, /* 07 */ | 154 | {0x0047,0x11,0x13,0x00,0x05,0x6a, 800, 600, 0, 0x00, 0x00}, /* 07 */ |
179 | {0xc85f,0x05,0x00,0x04,0x04,0x2e, 640, 480, 0}, /* 08 */ | 155 | {0xc85f,0x05,0x00,0x04,0x04,0x2e, 640, 480, 0, 0x00, 0x00}, /* 08 */ |
180 | {0xc067,0x06,0x02,0x04,0x04,0x2e, 640, 480, 0}, /* 09 */ | 156 | {0xc067,0x06,0x02,0x04,0x04,0x2e, 640, 480, 0, 0x00, 0x00}, /* 09 */ |
181 | {0xc067,0x07,0x02,0x47,0x04,0x2e, 640, 480, 0}, /* 0a */ | 157 | {0xc067,0x07,0x02,0x47,0x04,0x2e, 640, 480, 0, 0x00, 0x00}, /* 0a */ |
182 | {0xc067,0x08,0x03,0x8a,0x04,0x2e, 640, 480, 0}, /* 0b */ | 158 | {0xc067,0x08,0x03,0x8a,0x04,0x2e, 640, 480, 0, 0x00, 0x00}, /* 0b */ |
183 | {0xc047,0x09,0x05,0x00,0x04,0x2e, 640, 480, 0}, /* 0c */ | 159 | {0xc047,0x09,0x05,0x00,0x04,0x2e, 640, 480, 0, 0x00, 0x00}, /* 0c */ |
184 | {0xc047,0x0a,0x08,0x00,0x04,0x2e, 640, 480, 0}, /* 0d */ | 160 | {0xc047,0x0a,0x08,0x00,0x04,0x2e, 640, 480, 0, 0x00, 0x00}, /* 0d */ |
185 | {0xc047,0x0b,0x0a,0x00,0x04,0x2e, 640, 480, 0}, /* 0e */ | 161 | {0xc047,0x0b,0x0a,0x00,0x04,0x2e, 640, 480, 0, 0x00, 0x00}, /* 0e */ |
186 | {0xc047,0x0c,0x10,0x00,0x04,0x2e, 640, 480, 0}, /* 0f */ | 162 | {0xc047,0x0c,0x10,0x00,0x04,0x2e, 640, 480, 0, 0x00, 0x00}, /* 0f */ |
187 | {0x487f,0x04,0x00,0x00,0x00,0x2f, 640, 400, 0}, /* 10 */ | 163 | {0x487f,0x04,0x00,0x00,0x00,0x2f, 640, 400, 0, 0x4a, 0x49}, /* 10 */ |
188 | {0xc06f,0x31,0x01,0x06,0x13,0x31, 720, 480, 0}, /* 11 */ | 164 | {0xc06f,0x31,0x01,0x06,0x13,0x31, 720, 480, 0, 0x00, 0x00}, /* 11 */ |
189 | {0x006f,0x32,0x03,0x06,0x14,0x32, 720, 576, 0}, /* 12 */ | 165 | {0x006f,0x32,0x4a,0x06,0x14,0x32, 720, 576, 0, 0x00, 0x00}, /* 12 */ /* 4a was 03 */ |
190 | {0x0187,0x15,0x05,0x00,0x06,0x37,1024, 768, 0}, /* 13 */ | 166 | {0x0187,0x15,0x05,0x00,0x06,0x37,1024, 768, 0, 0x00, 0x00}, /* 13 */ |
191 | {0xc877,0x16,0x09,0x06,0x06,0x37,1024, 768, 0}, /* 14 */ | 167 | {0xc877,0x16,0x09,0x06,0x06,0x37,1024, 768, 0, 0x00, 0x00}, /* 14 */ |
192 | {0xc067,0x17,0x0b,0x49,0x06,0x37,1024, 768, 0}, /* 15 - CRT1CRTC was 0x97 */ | 168 | {0xc067,0x17,0x0b,0x49,0x06,0x37,1024, 768, 0, 0x00, 0x00}, /* 15 - CRT1CRTC was 0x97 */ |
193 | {0x0267,0x18,0x0d,0x00,0x06,0x37,1024, 768, 0}, /* 16 */ | 169 | {0x0267,0x18,0x0d,0x00,0x06,0x37,1024, 768, 0, 0x00, 0x00}, /* 16 */ |
194 | {0x0047,0x19,0x11,0x8c,0x06,0x37,1024, 768, 0}, /* 17 - CRT1CRTC was 0x59 */ | 170 | {0x0047,0x19,0x11,0x8c,0x06,0x37,1024, 768, 0, 0x00, 0x00}, /* 17 - CRT1CRTC was 0x59 */ |
195 | {0x0047,0x1a,0x52,0x00,0x06,0x37,1024, 768, 0}, /* 18 */ | 171 | {0x0047,0x1a,0x12,0x00,0x06,0x37,1024, 768, 0, 0x00, 0x00}, /* 18 */ |
196 | {0x0007,0x1b,0x16,0x00,0x06,0x37,1024, 768, 0}, /* 19 - CRT1CRTC was 0x5b */ | 172 | {0x0007,0x1b,0x16,0x00,0x06,0x37,1024, 768, 0, 0x00, 0x00}, /* 19 - CRT1CRTC was 0x5b */ |
197 | {0x0387,0x1c,0x4d,0x00,0x07,0x3a,1280,1024, 0}, /* 1a - CRT1CRTC was 0x5c */ | 173 | {0x0387,0x1c,0x0d,0x00,0x07,0x3a,1280,1024, 0, 0x00, 0x00}, /* 1a - CRT1CRTC was 0x5c */ |
198 | {0x0077,0x1d,0x14,0x07,0x07,0x3a,1280,1024, 0}, /* 1b */ | 174 | {0x0077,0x1d,0x14,0x07,0x07,0x3a,1280,1024, 0, 0x00, 0x00}, /* 1b */ |
199 | {0x0047,0x1e,0x17,0x00,0x07,0x3a,1280,1024, 0}, /* 1c */ | 175 | {0x0047,0x1e,0x17,0x00,0x07,0x3a,1280,1024, 0, 0x00, 0x00}, /* 1c */ |
200 | {0x0007,0x1f,0x98,0x00,0x07,0x3a,1280,1024, 0}, /* 1d */ | 176 | {0x0007,0x1f,0x18,0x00,0x07,0x3a,1280,1024, 0, 0x00, 0x00}, /* 1d */ |
201 | {0x0007,0x20,0x59,0x00,0x00,0x3c,1600,1200, 0}, /* 1e - CRT1CRTC was 0x60 */ | 177 | {0x0007,0x20,0x19,0x00,0x00,0x3c,1600,1200, 0, 0x00, 0x00}, /* 1e - CRT1CRTC was 0x60 */ |
202 | {0x0007,0x21,0x5a,0x00,0x00,0x3c,1600,1200, 0}, /* 1f */ | 178 | {0x0007,0x21,0x1a,0x00,0x00,0x3c,1600,1200, 0, 0x00, 0x00}, /* 1f */ |
203 | {0x0007,0x22,0x1b,0x00,0x00,0x3c,1600,1200, 0}, /* 20 */ | 179 | {0x0007,0x22,0x1b,0x00,0x00,0x3c,1600,1200, 0, 0x00, 0x00}, /* 20 */ |
204 | {0x0007,0x23,0x1d,0x00,0x00,0x3c,1600,1200, 0}, /* 21 - CRT1CRTC was 0x63 */ | 180 | {0x0007,0x23,0x1d,0x00,0x00,0x3c,1600,1200, 0, 0x00, 0x00}, /* 21 - CRT1CRTC was 0x63 */ |
205 | {0x0007,0x24,0x1e,0x00,0x00,0x3c,1600,1200, 0}, /* 22 */ | 181 | {0x0007,0x24,0x1e,0x00,0x00,0x3c,1600,1200, 0, 0x00, 0x00}, /* 22 */ |
206 | {0x407f,0x00,0x00,0x00,0x00,0x40, 320, 200, 0}, /* 23 */ | 182 | {0x407f,0x00,0x00,0x00,0x00,0x40, 320, 200, 0, 0x4b, 0x4b}, /* 23 */ |
207 | {0xc07f,0x01,0x00,0x04,0x04,0x50, 320, 240, 0}, /* 24 */ | 183 | {0xc07f,0x01,0x00,0x04,0x04,0x50, 320, 240, 0, 0x00, 0x00}, /* 24 */ |
208 | {0x0077,0x02,0x04,0x05,0x05,0x51, 400, 300, 0}, /* 25 */ | 184 | {0x0077,0x02,0x04,0x05,0x05,0x51, 400, 300, 0, 0x00, 0x00}, /* 25 */ |
209 | {0xc877,0x03,0x09,0x06,0x06,0x52, 512, 384, 0}, /* 26 */ /* was c077 */ | 185 | {0xc877,0x03,0x09,0x06,0x06,0x52, 512, 384, 0, 0x00, 0x00}, /* 26 */ /* was c077 */ |
210 | {0x8207,0x25,0x1f,0x00,0x00,0x68,1920,1440, 0}, /* 27 */ | 186 | {0x8207,0x25,0x1f,0x00,0x00,0x68,1920,1440, 0, 0x00, 0x00}, /* 27 */ |
211 | {0x0007,0x26,0x20,0x00,0x00,0x6c,2048,1536, 0}, /* 28 */ | 187 | {0x0007,0x26,0x20,0x00,0x00,0x6c,2048,1536, 0, 0x00, 0x00}, /* 28 */ |
212 | {0x0067,0x27,0x14,0x08,0x0a,0x6e,1280, 960, 0}, /* 29 - 1280x960-60 */ | 188 | {0x0067,0x27,0x14,0x08,0x0a,0x6e,1280, 960, 0, 0x00, 0x00}, /* 29 - 1280x960-60 */ |
213 | {0x0027,0x45,0x3c,0x08,0x0a,0x6e,1280, 960, 0}, /* 2a - 1280x960-85 */ | 189 | {0x0027,0x45,0x3c,0x08,0x0a,0x6e,1280, 960, 0, 0x00, 0x00}, /* 2a - 1280x960-85 */ |
214 | {0xc077,0x33,0x09,0x06,0x00,0x20,1024, 600, 0}, /* 2b */ | 190 | {0xc077,0x33,0x09,0x06,0x00,0x20,1024, 600, 0, 0x00, 0x00}, /* 2b */ |
215 | {0xc077,0x34,0x0b,0x06,0x00,0x23,1152, 768, 0}, /* 2c */ /* VCLK 0x09 */ | 191 | {0xc077,0x34,0x0b,0x06,0x00,0x23,1152, 768, 0, 0x00, 0x00}, /* 2c */ /* VCLK 0x09 */ |
216 | {0x0077,0x35,0x27,0x08,0x18,0x70, 800, 480, 0}, /* 2d */ | 192 | {0x0077,0x35,0x27,0x08,0x18,0x70, 800, 480, 0, 0x00, 0x00}, /* 2d */ |
217 | {0x0047,0x36,0x37,0x08,0x18,0x70, 800, 480, 0}, /* 2e */ | 193 | {0x0047,0x36,0x37,0x08,0x18,0x70, 800, 480, 0, 0x00, 0x00}, /* 2e */ |
218 | {0x0047,0x37,0x08,0x08,0x18,0x70, 800, 480, 0}, /* 2f */ | 194 | {0x0047,0x37,0x08,0x08,0x18,0x70, 800, 480, 0, 0x00, 0x00}, /* 2f */ |
219 | {0x0077,0x38,0x09,0x09,0x19,0x71,1024, 576, 0}, /* 30 */ | 195 | {0x0077,0x38,0x09,0x09,0x19,0x71,1024, 576, 0, 0x00, 0x00}, /* 30 */ |
220 | {0x0047,0x39,0x38,0x09,0x19,0x71,1024, 576, 0}, /* 31 */ | 196 | {0x0047,0x39,0x38,0x09,0x19,0x71,1024, 576, 0, 0x00, 0x00}, /* 31 */ |
221 | {0x0047,0x3a,0x11,0x09,0x19,0x71,1024, 576, 0}, /* 32 */ | 197 | {0x0047,0x3a,0x11,0x09,0x19,0x71,1024, 576, 0, 0x00, 0x00}, /* 32 */ |
222 | {0x0077,0x3b,0x39,0x0a,0x0c,0x75,1280, 720, 0}, /* 33 */ | 198 | {0x0077,0x3b,0x39,0x0a,0x0c,0x75,1280, 720, 0, 0x00, 0x00}, /* 33 */ |
223 | {0x0047,0x3c,0x3a,0x0a,0x0c,0x75,1280, 720, 0}, /* 34 */ | 199 | {0x0047,0x3c,0x3a,0x0a,0x0c,0x75,1280, 720, 0, 0x00, 0x00}, /* 34 */ |
224 | {0x0007,0x3d,0x3b,0x0a,0x0c,0x75,1280, 720, 0}, /* 35 */ | 200 | {0x0007,0x3d,0x3b,0x0a,0x0c,0x75,1280, 720, 0, 0x00, 0x00}, /* 35 */ |
225 | {0x0067,0x49,0x35,0x06,0x1a,0x29,1152, 864, 0}, /* 36 1152x864-60Hz */ | 201 | {0x0067,0x49,0x35,0x06,0x1a,0x29,1152, 864, 0, 0x00, 0x00}, /* 36 1152x864-60Hz */ |
226 | {0x0067,0x3e,0x34,0x06,0x1a,0x29,1152, 864, 0}, /* 37 1152x864-75Hz */ | 202 | {0x0067,0x3e,0x34,0x06,0x1a,0x29,1152, 864, 0, 0x00, 0x00}, /* 37 1152x864-75Hz */ |
227 | {0x0047,0x44,0x3a,0x06,0x1a,0x29,1152, 864, 0}, /* 38 1152x864-85Hz */ | 203 | {0x0047,0x44,0x3a,0x06,0x1a,0x29,1152, 864, 0, 0x00, 0x00}, /* 38 1152x864-85Hz */ |
228 | {0x00c7,0x3f,0x28,0x00,0x16,0x39, 848, 480, 0}, /* 39 848x480-38Hzi */ | 204 | {0x00c7,0x3f,0x28,0x00,0x16,0x39, 848, 480, 0, 0x00, 0x00}, /* 39 848x480-38Hzi */ |
229 | {0xc067,0x40,0x3d,0x0b,0x16,0x39, 848, 480, 0}, /* 3a 848x480-60Hz */ | 205 | {0xc067,0x40,0x3d,0x0b,0x16,0x39, 848, 480, 0, 0x00, 0x00}, /* 3a 848x480-60Hz */ |
230 | {0x00c7,0x41,0x28,0x00,0x17,0x3f, 856, 480, 0}, /* 3b 856x480-38Hzi */ | 206 | {0x00c7,0x41,0x28,0x00,0x17,0x3f, 856, 480, 0, 0x00, 0x00}, /* 3b 856x480-38Hzi */ |
231 | {0xc047,0x42,0x28,0x00,0x17,0x3f, 856, 480, 0}, /* 3c 856x480-60Hz */ | 207 | {0xc067,0x42,0x28,0x0c,0x17,0x3f, 856, 480, 0, 0x00, 0x00}, /* 3c 856x480-60Hz */ |
232 | {0x0067,0x43,0x3e,0x0c,0x1b,0x48,1360, 768, 0}, /* 3d 1360x768-60Hz */ | 208 | {0x0067,0x43,0x3e,0x0d,0x1b,0x48,1360, 768, 0, 0x00, 0x00}, /* 3d 1360x768-60Hz */ |
233 | {0x0077,0x46,0x3f,0x08,0x08,0x55,1280, 768, 0}, /* 3e 1280x768-60Hz */ | 209 | {0x0077,0x46,0x3f,0x08,0x08,0x55,1280, 768, 0, 0x00, 0x00}, /* 3e 1280x768-60Hz */ |
234 | {0x006f,0x47,0x03,0x06,0x15,0x5f, 768, 576, 0}, /* 3f 768x576 */ | 210 | {0x006f,0x47,0x4c,0x06,0x15,0x5f, 768, 576, 0, 0x00, 0x00}, /* 3f 768x576 */ |
235 | {0x0027,0x48,0x13,0x08,0x00,0x67,1360,1024, 0}, /* 40 1360x1024-59Hz (BARCO1366 only) */ | 211 | {0x0027,0x48,0x13,0x08,0x00,0x67,1360,1024, 0, 0x00, 0x00}, /* 40 1360x1024-59Hz (BARCO1366 only) */ |
236 | {0xffff, 0, 0, 0, 0, 0, 0, 0, 0} | 212 | {0xffff, 0, 0, 0, 0, 0, 0, 0, 0, 0x00, 0x00} |
237 | }; | 213 | }; |
238 | 214 | ||
239 | static const SiS_VBModeStruct SiS300_VBModeIDTable[] = | 215 | static const struct SiS_VBMode SiS300_VBModeIDTable[] = |
240 | { | 216 | { |
241 | {0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, | 217 | {0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, |
242 | {0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01}, | 218 | {0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x01}, |
@@ -303,53 +279,26 @@ static const SiS_VBModeStruct SiS300_VBModeIDTable[] = | |||
303 | {0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00} | 279 | {0xff,0x00,0x00,0x00,0x00,0x00,0x00,0x00} |
304 | }; | 280 | }; |
305 | 281 | ||
306 | static const SiS_CRT1TableStruct SiS300_CRT1Table[] = | 282 | static const struct SiS_CRT1Table SiS300_CRT1Table[] = |
307 | { | 283 | { |
308 | #if 1 | ||
309 | {{0x2d,0x27,0x28,0x90,0x2c,0x80,0xbf,0x1f, /* 0x00 - 320x200 */ | 284 | {{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 */ | 285 | 0x9c,0x8e,0x8f,0x96,0xb9,0x30,0x00,0x00, /* HRE [4],[15] is invalid - but correcting it does not work */ |
311 | 0x00}}, | 286 | 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 */ | 287 | {{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 */ | 288 | 0xe9,0x8b,0xdf,0xe7,0x04,0x00,0x00,0x00, /* HRE [4],[15] is invalid - but correcting it does not work */ |
320 | 0x00}}, | 289 | 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 */ | 290 | {{0x3d,0x31,0x31,0x81,0x37,0x1f,0x72,0xf0, /* 0x02 */ |
327 | 0x58,0x8c,0x57,0x57,0x73,0x20,0x00,0x05, | 291 | 0x58,0x8c,0x57,0x57,0x73,0x20,0x00,0x05, |
328 | 0x01}}, | 292 | 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, | 293 | {{0x4f,0x3f,0x3f,0x93,0x45,0x0d,0x24,0xf5, |
335 | 0x02,0x88,0xff,0xff,0x25,0x10,0x00,0x01, | 294 | 0x02,0x88,0xff,0xff,0x25,0x10,0x00,0x01, |
336 | 0x01}}, | 295 | 0x01}}, |
337 | {{0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f, | 296 | {{0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f, |
338 | 0x9c,0x8e,0x8f,0x96,0xb9,0x30,0x00,0x05, | 297 | 0x9c,0x8e,0x8f,0x96,0xb9,0x30,0x00,0x05, |
339 | 0x00}}, | 298 | 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 */ | 299 | {{0x5f,0x4f,0x4f,0x83,0x55,0x81,0x0b,0x3e, /* 0x05 - corrected 640x480-60 */ |
346 | 0xe9,0x8b,0xdf,0xe8,0x0c,0x00,0x00,0x05, | 300 | 0xe9,0x8b,0xdf,0xe8,0x0c,0x00,0x00,0x05, |
347 | 0x00}}, | 301 | 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 */ | 302 | {{0x63,0x4f,0x4f,0x87,0x56,0x9b,0x06,0x3e, /* 0x06 - corrected 640x480-72 */ |
354 | 0xe8,0x8a,0xdf,0xe7,0x07,0x00,0x00,0x01, | 303 | 0xe8,0x8a,0xdf,0xe7,0x07,0x00,0x00,0x01, |
355 | 0x00}}, | 304 | 0x00}}, |
@@ -359,19 +308,9 @@ static const SiS_CRT1TableStruct SiS300_CRT1Table[] = | |||
359 | {{0x63,0x4f,0x4f,0x87,0x5a,0x81,0xfb,0x1f, | 308 | {{0x63,0x4f,0x4f,0x87,0x5a,0x81,0xfb,0x1f, |
360 | 0xe0,0x83,0xdf,0xdf,0xfc,0x10,0x00,0x05, | 309 | 0xe0,0x83,0xdf,0xdf,0xfc,0x10,0x00,0x05, |
361 | 0x00}}, | 310 | 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 */ | 311 | {{0x67,0x4f,0x4f,0x8b,0x57,0x83,0x10,0x3e, /* 0x09 - corrected 640x480-100 */ |
368 | 0xe7,0x8d,0xdf,0xe6,0x11,0x00,0x00,0x05, | 312 | 0xe7,0x8d,0xdf,0xe6,0x11,0x00,0x00,0x05, |
369 | 0x00}}, | 313 | 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 */ | 314 | {{0x67,0x4f,0x4f,0x8b,0x57,0x83,0x10,0x3e, /* 0x0a - corrected 640x480-120 */ |
376 | 0xe7,0x8d,0xdf,0xe6,0x11,0x00,0x00,0x05, | 315 | 0xe7,0x8d,0xdf,0xe6,0x11,0x00,0x00,0x05, |
377 | 0x00}}, | 316 | 0x00}}, |
@@ -459,11 +398,6 @@ static const SiS_CRT1TableStruct SiS300_CRT1Table[] = | |||
459 | {{0x55,0xff,0xff,0x99,0x0d,0x0c,0x3e,0xba, | 398 | {{0x55,0xff,0xff,0x99,0x0d,0x0c,0x3e,0xba, |
460 | 0x00,0x84,0xff,0xff,0x3f,0x0f,0x41,0x05, | 399 | 0x00,0x84,0xff,0xff,0x3f,0x0f,0x41,0x05, |
461 | 0x00}}, | 400 | 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 */ | 401 | {{0xdc,0x9f,0x9f,0x80,0xaf,0x9d,0xe6,0xff, /* 0x27: 1280x960-60 - correct */ |
468 | 0xc0,0x83,0xbf,0xbf,0xe7,0x10,0x00,0x07, | 402 | 0xc0,0x83,0xbf,0xbf,0xe7,0x10,0x00,0x07, |
469 | 0x01}}, | 403 | 0x01}}, |
@@ -497,9 +431,9 @@ static const SiS_CRT1TableStruct SiS300_CRT1Table[] = | |||
497 | {{0x6b,0x59,0x59,0x8f,0x5e,0x8c,0x0b,0x3e, | 431 | {{0x6b,0x59,0x59,0x8f,0x5e,0x8c,0x0b,0x3e, |
498 | 0xe9,0x8b,0xdf,0xe7,0x04,0x00,0x00,0x05, | 432 | 0xe9,0x8b,0xdf,0xe7,0x04,0x00,0x00,0x05, |
499 | 0x00}}, | 433 | 0x00}}, |
500 | {{0x7b,0x59,0x63,0x9f,0x6a,0x93,0x6f,0xf0, /* 0x32 */ | 434 | {{0x6d,0x59,0x59,0x91,0x60,0x89,0x53,0xf0, /* 0x32: 720x576, corrected to 60Hz */ |
501 | 0x58,0x8a,0x3f,0x57,0x70,0x20,0x00,0x05, | 435 | 0x41,0x84,0x3f,0x3f,0x54,0x00,0x00,0x05, |
502 | 0x01}}, | 436 | 0x41}}, |
503 | {{0xa3,0x7f,0x7f,0x87,0x86,0x97,0x1e,0xf1, /* 0x33 - 1024x600 */ | 437 | {{0xa3,0x7f,0x7f,0x87,0x86,0x97,0x1e,0xf1, /* 0x33 - 1024x600 */ |
504 | 0xae,0x85,0x57,0x57,0x1f,0x30,0x00,0x02, | 438 | 0xae,0x85,0x57,0x57,0x1f,0x30,0x00,0x02, |
505 | 0x01}}, | 439 | 0x01}}, |
@@ -560,18 +494,24 @@ static const SiS_CRT1TableStruct SiS300_CRT1Table[] = | |||
560 | {{0xce,0x9f,0x9f,0x92,0xa9,0x17,0x20,0xf5, /* 1280x768-60 */ | 494 | {{0xce,0x9f,0x9f,0x92,0xa9,0x17,0x20,0xf5, /* 1280x768-60 */ |
561 | 0x03,0x88,0xff,0xff,0x21,0x10,0x00,0x07, | 495 | 0x03,0x88,0xff,0xff,0x21,0x10,0x00,0x07, |
562 | 0x01}}, /* 0x46 */ | 496 | 0x01}}, /* 0x46 */ |
563 | {{0x7b,0x5f,0x63,0x9f,0x6a,0x93,0x6f,0xf0, /* 768x576 */ | 497 | {{0x75,0x5f,0x5f,0x99,0x66,0x90,0x53,0xf0, /* 768x576, corrected to 60Hz */ |
564 | 0x58,0x8a,0x3f,0x57,0x70,0x20,0x00,0x05, | 498 | 0x41,0x84,0x3f,0x3f,0x54,0x00,0x00,0x05, |
565 | 0x01}}, /* 0x47 */ | 499 | 0x41}}, /* 0x47 */ |
566 | {{0xce,0xa9,0xa9,0x92,0xb1,0x07,0x28,0x52, /* 1360x1024 (Barco iQ Pro R300) */ | 500 | {{0xce,0xa9,0xa9,0x92,0xb1,0x07,0x28,0x52, /* 1360x1024 (Barco iQ Pro R300) */ |
567 | 0x02,0x8e,0xff,0x00,0x29,0x0d,0x00,0x03, | 501 | 0x02,0x8e,0xff,0x00,0x29,0x0d,0x00,0x03, |
568 | 0x00}}, /* 0x48 */ | 502 | 0x00}}, /* 0x48 */ |
569 | {{0xcd,0x8f,0x8f,0x91,0x9b,0x1b,0x7a,0xff, /* 1152x864-60 */ | 503 | {{0xcd,0x8f,0x8f,0x91,0x9b,0x1b,0x7a,0xff, /* 1152x864-60 */ |
570 | 0x64,0x8c,0x5f,0x62,0x7b,0x10,0x00,0x07, | 504 | 0x64,0x8c,0x5f,0x62,0x7b,0x10,0x00,0x07, |
571 | 0x41}} /* 0x49 */ | 505 | 0x41}}, /* 0x49 */ |
506 | {{0x5c,0x4f,0x4f,0x80,0x57,0x80,0xa3,0x1f, /* fake 640x400@60Hz (for LCD and TV, not actually used) */ | ||
507 | 0x98,0x8c,0x8f,0x96,0xa4,0x30,0x00,0x05, | ||
508 | 0x40}}, /* 0x4a */ | ||
509 | {{0x2c,0x27,0x27,0x90,0x2d,0x92,0xa4,0x1f, /* fake 320x200@60Hz (for LCD and TV, not actually used) */ | ||
510 | 0x98,0x8c,0x8f,0x96,0xa5,0x30,0x00,0x04, | ||
511 | 0x00}} /* 0x4b */ | ||
572 | }; | 512 | }; |
573 | 513 | ||
574 | static const SiS_MCLKDataStruct SiS300_MCLKData_630[] = | 514 | static const struct SiS_MCLKData SiS300_MCLKData_630[] = |
575 | { | 515 | { |
576 | { 0x5a,0x64,0x80, 66}, | 516 | { 0x5a,0x64,0x80, 66}, |
577 | { 0xb3,0x45,0x80, 83}, | 517 | { 0xb3,0x45,0x80, 83}, |
@@ -583,7 +523,7 @@ static const SiS_MCLKDataStruct SiS300_MCLKData_630[] = | |||
583 | { 0x37,0x61,0x80,100} | 523 | { 0x37,0x61,0x80,100} |
584 | }; | 524 | }; |
585 | 525 | ||
586 | static const SiS_MCLKDataStruct SiS300_MCLKData_300[] = | 526 | static const struct SiS_MCLKData SiS300_MCLKData_300[] = |
587 | { | 527 | { |
588 | { 0x68,0x43,0x80,125}, | 528 | { 0x68,0x43,0x80,125}, |
589 | { 0x68,0x43,0x80,125}, | 529 | { 0x68,0x43,0x80,125}, |
@@ -595,7 +535,7 @@ static const SiS_MCLKDataStruct SiS300_MCLKData_300[] = | |||
595 | { 0x37,0x61,0x80,100} | 535 | { 0x37,0x61,0x80,100} |
596 | }; | 536 | }; |
597 | 537 | ||
598 | static SiS_VCLKDataStruct SiS300_VCLKData[] = | 538 | static struct SiS_VCLKData SiS300_VCLKData[] = |
599 | { | 539 | { |
600 | { 0x1b,0xe1, 25}, /* 0x00 */ | 540 | { 0x1b,0xe1, 25}, /* 0x00 */ |
601 | { 0x4e,0xe4, 28}, /* 0x01 */ | 541 | { 0x4e,0xe4, 28}, /* 0x01 */ |
@@ -669,53 +609,26 @@ static SiS_VCLKDataStruct SiS300_VCLKData[] = | |||
669 | { 0xe2,0x46,135}, /* 0x45 */ /* 1280x1024-75, better clock for VGA2 */ | 609 | { 0xe2,0x46,135}, /* 0x45 */ /* 1280x1024-75, better clock for VGA2 */ |
670 | { 0x70,0x29, 81}, /* 0x46 */ /* unused */ | 610 | { 0x70,0x29, 81}, /* 0x46 */ /* unused */ |
671 | { 0, 0, 0}, /* 0x47 custom (will be filled out) */ | 611 | { 0, 0, 0}, /* 0x47 custom (will be filled out) */ |
672 | { 0xce,0x25,189} /* 0x48 */ /* Replacement for index 0x1b for 730 (and 540?) */ | 612 | { 0xce,0x25,189}, /* 0x48 */ /* Replacement for index 0x1b for 730 (and 540?) */ |
613 | { 0x15,0xe1, 20}, /* 0x49 */ /* 640x400@60 (fake, not actually used) */ | ||
614 | { 0x5f,0xc6, 33}, /* 0x4a */ /* 720x576@60 */ | ||
615 | { 0x37,0x5a, 10}, /* 0x4b */ /* 320x200@60 (fake, not actually used) */ | ||
616 | { 0x2b,0xc2, 35} /* 0x4c */ /* 768@576@60 */ | ||
673 | }; | 617 | }; |
674 | 618 | ||
675 | #ifdef LINUX_KERNEL | 619 | static const unsigned char SiS300_SR15[4 * 8] = |
676 | static UCHAR SiS300_SR07 = 0x10; | ||
677 | #endif | ||
678 | |||
679 | static const DRAM4Type SiS300_SR15[8] = | ||
680 | { | 620 | { |
681 | {0x01,0x09,0xa3,0x00}, | 621 | 0x01,0x09,0xa3,0x00, |
682 | {0x43,0x43,0x43,0x00}, | 622 | 0x43,0x43,0x43,0x00, |
683 | {0x1e,0x1e,0x1e,0x00}, | 623 | 0x1e,0x1e,0x1e,0x00, |
684 | {0x2a,0x2a,0x2a,0x00}, | 624 | 0x2a,0x2a,0x2a,0x00, |
685 | {0x06,0x06,0x06,0x00}, | 625 | 0x06,0x06,0x06,0x00, |
686 | {0x00,0x00,0x00,0x00}, | 626 | 0x00,0x00,0x00,0x00, |
687 | {0x00,0x00,0x00,0x00}, | 627 | 0x00,0x00,0x00,0x00, |
688 | {0x00,0x00,0x00,0x00} | 628 | 0x00,0x00,0x00,0x00 |
689 | }; | 629 | }; |
690 | 630 | ||
691 | #ifdef LINUX_KERNEL | 631 | static const struct SiS_PanelDelayTbl SiS300_PanelDelayTbl[] = |
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 | { | 632 | { |
720 | {{0x05,0xaa}}, | 633 | {{0x05,0xaa}}, |
721 | {{0x05,0x14}}, | 634 | {{0x05,0x14}}, |
@@ -735,33 +648,11 @@ static const SiS_PanelDelayTblStruct SiS300_PanelDelayTbl[] = | |||
735 | {{0x05,0x60}} | 648 | {{0x05,0x60}} |
736 | }; | 649 | }; |
737 | 650 | ||
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 | /**************************************************************/ | 651 | /**************************************************************/ |
761 | /* SIS VIDEO BRIDGE ----------------------------------------- */ | 652 | /* SIS VIDEO BRIDGE ----------------------------------------- */ |
762 | /**************************************************************/ | 653 | /**************************************************************/ |
763 | 654 | ||
764 | static const SiS_LCDDataStruct SiS300_St2LCD1024x768Data[] = | 655 | static const struct SiS_LCDData SiS300_St2LCD1024x768Data[] = |
765 | { | 656 | { |
766 | { 62, 25, 800, 546,1344, 806}, | 657 | { 62, 25, 800, 546,1344, 806}, |
767 | { 32, 15, 930, 546,1344, 806}, | 658 | { 32, 15, 930, 546,1344, 806}, |
@@ -772,7 +663,7 @@ static const SiS_LCDDataStruct SiS300_St2LCD1024x768Data[] = | |||
772 | { 1, 1,1344, 806,1344, 806} | 663 | { 1, 1,1344, 806,1344, 806} |
773 | }; | 664 | }; |
774 | 665 | ||
775 | static const SiS_LCDDataStruct SiS300_ExtLCD1024x768Data[] = | 666 | static const struct SiS_LCDData SiS300_ExtLCD1024x768Data[] = |
776 | { | 667 | { |
777 | { 12, 5, 896, 512,1344, 806}, | 668 | { 12, 5, 896, 512,1344, 806}, |
778 | { 12, 5, 896, 510,1344, 806}, | 669 | { 12, 5, 896, 510,1344, 806}, |
@@ -789,7 +680,7 @@ static const SiS_LCDDataStruct SiS300_ExtLCD1024x768Data[] = | |||
789 | { 1, 1,1344, 806,1344, 806} | 680 | { 1, 1,1344, 806,1344, 806} |
790 | }; | 681 | }; |
791 | 682 | ||
792 | static const SiS_LCDDataStruct SiS300_St2LCD1280x1024Data[] = | 683 | static const struct SiS_LCDData SiS300_St2LCD1280x1024Data[] = |
793 | { | 684 | { |
794 | { 22, 5, 800, 510,1650,1088}, | 685 | { 22, 5, 800, 510,1650,1088}, |
795 | { 22, 5, 800, 510,1650,1088}, | 686 | { 22, 5, 800, 510,1650,1088}, |
@@ -801,7 +692,7 @@ static const SiS_LCDDataStruct SiS300_St2LCD1280x1024Data[] = | |||
801 | { 1, 1,1688,1066,1688,1066} | 692 | { 1, 1,1688,1066,1688,1066} |
802 | }; | 693 | }; |
803 | 694 | ||
804 | static const SiS_LCDDataStruct SiS300_ExtLCD1280x1024Data[] = | 695 | static const struct SiS_LCDData SiS300_ExtLCD1280x1024Data[] = |
805 | { | 696 | { |
806 | { 211, 60,1024, 501,1688,1066}, | 697 | { 211, 60,1024, 501,1688,1066}, |
807 | { 211, 60,1024, 508,1688,1066}, | 698 | { 211, 60,1024, 508,1688,1066}, |
@@ -813,53 +704,116 @@ static const SiS_LCDDataStruct SiS300_ExtLCD1280x1024Data[] = | |||
813 | { 1, 1,1688,1066,1688,1066} | 704 | { 1, 1,1688,1066,1688,1066} |
814 | }; | 705 | }; |
815 | 706 | ||
816 | static const SiS_Part2PortTblStruct SiS300_CRT2Part2_1024x768_1[] = | 707 | static const struct SiS_Part2PortTbl SiS300_CRT2Part2_1024x768_1[] = |
817 | { /* VESA Timing */ | 708 | { /* VESA Timing */ |
818 | {{0x21,0x12,0xbf,0xe4,0xc0,0x21,0x45,0x09,0x00,0xa9,0x09,0x04}}, | 709 | {{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}}, | 710 | {{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}}, | 711 | {{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}}, | 712 | {{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}}, | 713 | {{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}}, | 714 | {{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}} | 715 | {{0x22,0x13,0xfe,0x25,0xff,0x21,0x45,0x0a,0x00,0xa9,0x0d,0x04}} |
825 | }; | 716 | }; |
826 | 717 | ||
827 | static const SiS_Part2PortTblStruct SiS300_CRT2Part2_1024x768_2[] = | 718 | static const struct SiS_Part2PortTbl SiS300_CRT2Part2_1024x768_2[] = |
828 | { /* Non-VESA */ | 719 | { /* Non-VESA */ |
829 | {{0x28,0x12,0xa3,0xd0,0xaa,0x5a,0x45,0x0a,0x07,0xfa,0x0a,0x24}}, | 720 | {{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}}, | 721 | {{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}}, | 722 | {{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}}, | 723 | {{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}}, | 724 | {{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}}, | 725 | {{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}} | 726 | {{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 | }; | 727 | }; |
852 | 728 | ||
853 | static const SiS_Part2PortTblStruct SiS300_CRT2Part2_1280x1024_3[] = | 729 | static const struct SiS_Part2PortTbl SiS300_CRT2Part2_1024x768_3[] = |
854 | { | 730 | { |
855 | {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}} | 731 | {{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}} |
856 | }; | 732 | }; |
857 | 733 | ||
858 | /**************************************************************/ | 734 | /**************************************************************/ |
859 | /* LVDS/Chrontel -------------------------------------------- */ | 735 | /* LVDS/Chrontel -------------------------------------------- */ |
860 | /**************************************************************/ | 736 | /**************************************************************/ |
861 | 737 | ||
862 | static const SiS_LVDSDataStruct SiS300_CHTVUPALData[] = | 738 | /* Custom data for Barco iQ R series */ |
739 | static const struct SiS_LVDSData SiS300_LVDSBARCO1366Data_1[]= | ||
740 | { | ||
741 | { 832, 438,1331, 806}, | ||
742 | { 832, 388,1331, 806}, | ||
743 | { 832, 438,1331, 806}, | ||
744 | { 832, 388,1331, 806}, | ||
745 | { 832, 518,1331, 806}, | ||
746 | {1050, 638,1344, 806}, | ||
747 | {1344, 806,1344, 806}, | ||
748 | {1688,1066,1688,1066}, | ||
749 | {1688,1066,1688,1066} /* 1360x1024 */ | ||
750 | }; | ||
751 | |||
752 | /* Custom data for Barco iQ R series */ | ||
753 | static const struct SiS_LVDSData SiS300_LVDSBARCO1366Data_2[]= | ||
754 | { | ||
755 | {1344, 806,1344, 806}, | ||
756 | {1344, 806,1344, 806}, | ||
757 | {1344, 806,1344, 806}, | ||
758 | {1344, 806,1344, 806}, | ||
759 | {1344, 806,1344, 806}, | ||
760 | {1344, 806,1344, 806}, | ||
761 | {1344, 806,1344, 806}, | ||
762 | {1688,1066,1688,1066}, | ||
763 | {1688,1066,1688,1066} /* 1360x1024 */ | ||
764 | }; | ||
765 | |||
766 | /* Custom data for Barco iQ G series */ | ||
767 | static const struct SiS_LVDSData SiS300_LVDSBARCO1024Data_1[]= | ||
768 | { | ||
769 | { 832, 438,1331, 806}, | ||
770 | { 832, 409,1331, 806}, | ||
771 | { 832, 438,1331, 806}, | ||
772 | { 832, 409,1331, 806}, | ||
773 | { 832, 518,1331, 806}, /* 640x480 */ | ||
774 | {1050, 638,1344, 806}, /* 800x600 */ | ||
775 | {1344, 806,1344, 806}, /* 1024x768 */ | ||
776 | }; | ||
777 | |||
778 | /* Custom data for 848x480 and 856x480 parallel LVDS panels */ | ||
779 | static const struct SiS_LVDSData SiS300_LVDS848x480Data_1[]= | ||
780 | { | ||
781 | { 0, 0, 0, 0}, | ||
782 | { 0, 0, 0, 0}, | ||
783 | { 0, 0, 0, 0}, | ||
784 | { 0, 0, 0, 0}, | ||
785 | {1088, 525,1088, 525}, /* 640x480 TODO */ | ||
786 | {1088, 525,1088, 525}, /* 800x600 TODO */ | ||
787 | {1088, 525,1088, 525}, /* 1024x768 TODO */ | ||
788 | { 0, 0, 0, 0}, | ||
789 | { 0, 0, 0, 0}, | ||
790 | { 0, 0, 0, 0}, | ||
791 | { 0, 0, 0, 0}, | ||
792 | {1088, 525,1088, 525}, /* 848x480 */ | ||
793 | {1088, 525,1088, 525}, /* 856x480 */ | ||
794 | {1088, 525,1088, 525} /* 1360x768 TODO */ | ||
795 | }; | ||
796 | |||
797 | /* Custom data for 848x480 parallel panel */ | ||
798 | static const struct SiS_LVDSData SiS300_LVDS848x480Data_2[]= | ||
799 | { | ||
800 | { 0, 0, 0, 0}, | ||
801 | { 0, 0, 0, 0}, | ||
802 | { 0, 0, 0, 0}, | ||
803 | { 0, 0, 0, 0}, | ||
804 | {1088, 525,1088, 525}, /* 640x480 */ | ||
805 | {1088, 525,1088, 525}, /* 800x600 */ | ||
806 | {1088, 525,1088, 525}, /* 1024x768 */ | ||
807 | { 0, 0, 0, 0}, | ||
808 | { 0, 0, 0, 0}, | ||
809 | { 0, 0, 0, 0}, | ||
810 | { 0, 0, 0, 0}, | ||
811 | {1088, 525,1088, 525}, /* 848x480 */ | ||
812 | {1088, 525,1088, 525}, /* 856x480 */ | ||
813 | {1088, 525,1088, 525} /* 1360x768 TODO */ | ||
814 | }; | ||
815 | |||
816 | static const struct SiS_LVDSData SiS300_CHTVUPALData[] = | ||
863 | { | 817 | { |
864 | {1008, 625,1008, 625}, | 818 | {1008, 625,1008, 625}, |
865 | {1008, 625,1008, 625}, | 819 | {1008, 625,1008, 625}, |
@@ -869,7 +823,7 @@ static const SiS_LVDSDataStruct SiS300_CHTVUPALData[] = | |||
869 | { 936, 836, 936, 836} | 823 | { 936, 836, 936, 836} |
870 | }; | 824 | }; |
871 | 825 | ||
872 | static const SiS_LVDSDataStruct SiS300_CHTVOPALData[] = | 826 | static const struct SiS_LVDSData SiS300_CHTVOPALData[] = |
873 | { | 827 | { |
874 | {1008, 625,1008, 625}, | 828 | {1008, 625,1008, 625}, |
875 | {1008, 625,1008, 625}, | 829 | {1008, 625,1008, 625}, |
@@ -879,7 +833,7 @@ static const SiS_LVDSDataStruct SiS300_CHTVOPALData[] = | |||
879 | { 960, 750, 960, 750} | 833 | { 960, 750, 960, 750} |
880 | }; | 834 | }; |
881 | 835 | ||
882 | static const SiS_LVDSDataStruct SiS300_CHTVSOPALData[] = | 836 | static const struct SiS_LVDSData SiS300_CHTVSOPALData[] = |
883 | { | 837 | { |
884 | {1008, 625,1008, 625}, | 838 | {1008, 625,1008, 625}, |
885 | {1008, 625,1008, 625}, | 839 | {1008, 625,1008, 625}, |
@@ -889,486 +843,8 @@ static const SiS_LVDSDataStruct SiS300_CHTVSOPALData[] = | |||
889 | { 944, 625, 944, 625} | 843 | { 944, 625, 944, 625} |
890 | }; | 844 | }; |
891 | 845 | ||
892 | 846 | /* Custom des data for Barco iQ R200/300/400 (BIOS 2.00.07) */ | |
893 | static const SiS_LVDSDesStruct SiS300_PanelType00_1[] = | 847 | static const struct SiS_LVDSDes SiS300_PanelType04_1a[] = /* 1280x1024 (1366x1024) */ |
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 | { | 848 | { |
1373 | {1330, 798}, /* 320x200 */ | 849 | {1330, 798}, /* 320x200 */ |
1374 | {1330, 794}, | 850 | {1330, 794}, |
@@ -1381,7 +857,7 @@ static const SiS_LVDSDesStruct SiS300_PanelType04_1a[] = /* 1280x1024 (1366x102 | |||
1381 | { 0, 0} /* 1360x1024 */ | 857 | { 0, 0} /* 1360x1024 */ |
1382 | }; | 858 | }; |
1383 | 859 | ||
1384 | static const SiS_LVDSDesStruct SiS300_PanelType04_2a[] = | 860 | static const struct SiS_LVDSDes SiS300_PanelType04_2a[] = |
1385 | { | 861 | { |
1386 | {1152, 622}, | 862 | {1152, 622}, |
1387 | {1152, 597}, | 863 | {1152, 597}, |
@@ -1394,8 +870,8 @@ static const SiS_LVDSDesStruct SiS300_PanelType04_2a[] = | |||
1394 | { 0, 0} | 870 | { 0, 0} |
1395 | }; | 871 | }; |
1396 | 872 | ||
1397 | /* Custom data for Barco iQ G200/300/400 (BIOS 2.00.07) */ | 873 | /* Custom des data for Barco iQ G200/300/400 (BIOS 2.00.07) */ |
1398 | static const SiS_LVDSDesStruct SiS300_PanelType04_1b[] = /* 1024x768 */ | 874 | static const struct SiS_LVDSDes SiS300_PanelType04_1b[] = /* 1024x768 */ |
1399 | { | 875 | { |
1400 | {1330, 798}, /* 320x200 */ | 876 | {1330, 798}, /* 320x200 */ |
1401 | {1330, 794}, | 877 | {1330, 794}, |
@@ -1406,7 +882,7 @@ static const SiS_LVDSDesStruct SiS300_PanelType04_1b[] = /* 1024x768 */ | |||
1406 | { 0, 805} /* 1024x768 / 512x384 */ | 882 | { 0, 805} /* 1024x768 / 512x384 */ |
1407 | }; | 883 | }; |
1408 | 884 | ||
1409 | static const SiS_LVDSDesStruct SiS300_PanelType04_2b[] = | 885 | static const struct SiS_LVDSDes SiS300_PanelType04_2b[] = |
1410 | { | 886 | { |
1411 | {1152, 622}, | 887 | {1152, 622}, |
1412 | {1152, 597}, | 888 | {1152, 597}, |
@@ -1419,376 +895,7 @@ static const SiS_LVDSDesStruct SiS300_PanelType04_2b[] = | |||
1419 | 895 | ||
1420 | /* CRT1 CRTC for slave modes */ | 896 | /* CRT1 CRTC for slave modes */ |
1421 | 897 | ||
1422 | static const SiS_LVDSCRT1DataStruct SiS300_LVDSCRT1800x600_1[] = | 898 | static const struct SiS_LVDSCRT1Data SiS300_CHTVCRT1UNTSC[] = |
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 | { | 899 | { |
1793 | {{0x64,0x4f,0x88,0x56,0x9f,0x56,0x3e, | 900 | {{0x64,0x4f,0x88,0x56,0x9f,0x56,0x3e, |
1794 | 0xe8,0x84,0x8f,0x57,0x20,0x00,0x01, | 901 | 0xe8,0x84,0x8f,0x57,0x20,0x00,0x01, |
@@ -1810,7 +917,7 @@ static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1UNTSC[] = | |||
1810 | 0x01 }} | 917 | 0x01 }} |
1811 | }; | 918 | }; |
1812 | 919 | ||
1813 | static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1ONTSC[] = | 920 | static const struct SiS_LVDSCRT1Data SiS300_CHTVCRT1ONTSC[] = |
1814 | { | 921 | { |
1815 | {{0x64,0x4f,0x88,0x5a,0x9f,0x0b,0x3e, | 922 | {{0x64,0x4f,0x88,0x5a,0x9f,0x0b,0x3e, |
1816 | 0xc0,0x84,0x8f,0x0c,0x20,0x00,0x01, | 923 | 0xc0,0x84,0x8f,0x0c,0x20,0x00,0x01, |
@@ -1832,7 +939,7 @@ static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1ONTSC[] = | |||
1832 | 0x01 }} | 939 | 0x01 }} |
1833 | }; | 940 | }; |
1834 | 941 | ||
1835 | static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1UPAL[] = | 942 | static const struct SiS_LVDSCRT1Data SiS300_CHTVCRT1UPAL[] = |
1836 | { | 943 | { |
1837 | {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e, | 944 | {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e, |
1838 | 0xf8,0x83,0x8f,0x70,0x20,0x00,0x05, | 945 | 0xf8,0x83,0x8f,0x70,0x20,0x00,0x05, |
@@ -1854,7 +961,7 @@ static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1UPAL[] = | |||
1854 | 0x01 }} | 961 | 0x01 }} |
1855 | }; | 962 | }; |
1856 | 963 | ||
1857 | static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1OPAL[] = | 964 | static const struct SiS_LVDSCRT1Data SiS300_CHTVCRT1OPAL[] = |
1858 | { | 965 | { |
1859 | {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e, | 966 | {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e, |
1860 | 0xf0,0x83,0x8f,0x70,0x20,0x00,0x05, | 967 | 0xf0,0x83,0x8f,0x70,0x20,0x00,0x05, |
@@ -1876,7 +983,7 @@ static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1OPAL[] = | |||
1876 | 0x01 }} | 983 | 0x01 }} |
1877 | }; | 984 | }; |
1878 | 985 | ||
1879 | static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1SOPAL[] = | 986 | static const struct SiS_LVDSCRT1Data SiS300_CHTVCRT1SOPAL[] = |
1880 | { | 987 | { |
1881 | {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e, | 988 | {{0x79,0x4f,0x9d,0x5a,0x90,0x6f,0x3e, |
1882 | 0xf0,0x83,0x8f,0x70,0x20,0x00,0x05, | 989 | 0xf0,0x83,0x8f,0x70,0x20,0x00,0x05, |
@@ -1898,7 +1005,7 @@ static const SiS_LVDSCRT1DataStruct SiS300_CHTVCRT1SOPAL[] = | |||
1898 | 0x01 }} | 1005 | 0x01 }} |
1899 | }; | 1006 | }; |
1900 | 1007 | ||
1901 | static const SiS_CHTVRegDataStruct SiS300_CHTVReg_UNTSC[] = | 1008 | static const struct SiS_CHTVRegData SiS300_CHTVReg_UNTSC[] = |
1902 | { | 1009 | { |
1903 | {{0x4a,0x94,0x00,0x48,0xfe,0,0,0,0,0,0,0,0,0,0,0}}, | 1010 | {{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}}, | 1011 | {{0x4a,0x94,0x00,0x48,0xfe,0,0,0,0,0,0,0,0,0,0,0}}, |
@@ -1908,7 +1015,7 @@ static const SiS_CHTVRegDataStruct SiS300_CHTVReg_UNTSC[] = | |||
1908 | {{0x8d,0xc4,0x00,0x3b,0xfb,0,0,0,0,0,0,0,0,0,0,0}} /* Mode 24: 800x600 NTSC 7/10 */ | 1015 | {{0x8d,0xc4,0x00,0x3b,0xfb,0,0,0,0,0,0,0,0,0,0,0}} /* Mode 24: 800x600 NTSC 7/10 */ |
1909 | }; | 1016 | }; |
1910 | 1017 | ||
1911 | static const SiS_CHTVRegDataStruct SiS300_CHTVReg_ONTSC[] = | 1018 | static const struct SiS_CHTVRegData SiS300_CHTVReg_ONTSC[] = |
1912 | { | 1019 | { |
1913 | {{0x49,0x94,0x00,0x34,0xfe,0,0,0,0,0,0,0,0,0,0,0}}, | 1020 | {{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}}, | 1021 | {{0x49,0x94,0x00,0x34,0xfe,0,0,0,0,0,0,0,0,0,0,0}}, |
@@ -1918,7 +1025,7 @@ static const SiS_CHTVRegDataStruct SiS300_CHTVReg_ONTSC[] = | |||
1918 | {{0x8c,0xb4,0x00,0x32,0xf9,0,0,0,0,0,0,0,0,0,0,0}} /* Mode 23: 800x600 NTSC 3/4 */ | 1025 | {{0x8c,0xb4,0x00,0x32,0xf9,0,0,0,0,0,0,0,0,0,0,0}} /* Mode 23: 800x600 NTSC 3/4 */ |
1919 | }; | 1026 | }; |
1920 | 1027 | ||
1921 | static const SiS_CHTVRegDataStruct SiS300_CHTVReg_UPAL[] = | 1028 | static const struct SiS_CHTVRegData SiS300_CHTVReg_UPAL[] = |
1922 | { | 1029 | { |
1923 | {{0x41,0x12,0x01,0x50,0x34,0,0,0,0,0,0,0,0,0,0,0}}, | 1030 | {{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}}, | 1031 | {{0x41,0x12,0x00,0x50,0x00,0,0,0,0,0,0,0,0,0,0,0}}, |
@@ -1929,7 +1036,7 @@ static const SiS_CHTVRegDataStruct SiS300_CHTVReg_UPAL[] = | |||
1929 | 1036 | ||
1930 | }; | 1037 | }; |
1931 | 1038 | ||
1932 | static const SiS_CHTVRegDataStruct SiS300_CHTVReg_OPAL[] = | 1039 | static const struct SiS_CHTVRegData SiS300_CHTVReg_OPAL[] = |
1933 | { | 1040 | { |
1934 | {{0x41,0x12,0x01,0x50,0x34,0,0,0,0,0,0,0,0,0,0,0}}, /* Mode 9: 640x400 PAL 1/1 */ | 1041 | {{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}}, | 1042 | {{0x41,0x12,0x00,0x50,0x00,0,0,0,0,0,0,0,0,0,0,0}}, |
@@ -1940,26 +1047,26 @@ static const SiS_CHTVRegDataStruct SiS300_CHTVReg_OPAL[] = | |||
1940 | 1047 | ||
1941 | }; | 1048 | }; |
1942 | 1049 | ||
1943 | static const SiS_CHTVRegDataStruct SiS300_CHTVReg_SOPAL[] = | 1050 | static const struct SiS_CHTVRegData SiS300_CHTVReg_SOPAL[] = |
1944 | { | 1051 | { |
1945 | {{0x41,0x12,0x01,0x50,0x34,0,0,0,0,0,0,0,0,0,0,0}}, /* Mode 9: 640x400 PAL 1/1 */ | 1052 | {{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}}, | 1053 | {{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}}, | 1054 | {{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}}, | 1055 | {{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 */ | 1056 | {{0x60,0x30,0x00,0x10,0x00,0,0,0,0,0,0,0,0,0,0,0}}, /* 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 */ | 1057 | {{0x81,0x50,0x00,0x1b,0x00,0,0,0,0,0,0,0,0,0,0,0}} /* Mode 19: 800x600 PAL 1/1 */ |
1951 | }; | 1058 | }; |
1952 | 1059 | ||
1953 | static const UCHAR SiS300_CHTVVCLKUNTSC[] = {0x29,0x29,0x29,0x29,0x2a,0x2e}; | 1060 | static const unsigned char SiS300_CHTVVCLKUNTSC[] = { 0x29,0x29,0x29,0x29,0x2a,0x2e }; |
1954 | 1061 | ||
1955 | static const UCHAR SiS300_CHTVVCLKONTSC[] = {0x2c,0x2c,0x2c,0x2c,0x2d,0x2b}; | 1062 | static const unsigned char SiS300_CHTVVCLKONTSC[] = { 0x2c,0x2c,0x2c,0x2c,0x2d,0x2b }; |
1956 | 1063 | ||
1957 | static const UCHAR SiS300_CHTVVCLKSONTSC[] = {0x2c,0x2c,0x2c,0x2c,0x2d,0x2b}; | 1064 | static const unsigned char SiS300_CHTVVCLKSONTSC[] = { 0x2c,0x2c,0x2c,0x2c,0x2d,0x2b }; |
1958 | 1065 | ||
1959 | static const UCHAR SiS300_CHTVVCLKUPAL[] = {0x2f,0x2f,0x2f,0x2f,0x2f,0x31}; | 1066 | static const unsigned char SiS300_CHTVVCLKUPAL[] = { 0x2f,0x2f,0x2f,0x2f,0x2f,0x31 }; |
1960 | 1067 | ||
1961 | static const UCHAR SiS300_CHTVVCLKOPAL[] = {0x2f,0x2f,0x2f,0x2f,0x30,0x32}; | 1068 | static const unsigned char SiS300_CHTVVCLKOPAL[] = { 0x2f,0x2f,0x2f,0x2f,0x30,0x32 }; |
1962 | 1069 | ||
1963 | static const UCHAR SiS300_CHTVVCLKSOPAL[] = {0x2f,0x2f,0x2f,0x2f,0x36,0x29}; | 1070 | static const unsigned char SiS300_CHTVVCLKSOPAL[] = { 0x2f,0x2f,0x2f,0x2f,0x36,0x29 }; |
1964 | 1071 | ||
1965 | 1072 | ||