4 * General structure definitions for universal mode switching modules
6 * Copyright (C) 2001-2004 by Thomas Winischhofer, Vienna, Austria
8 * If distributed as part of the Linux kernel, the following license terms
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.
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.
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
25 * Otherwise, the following license terms apply:
27 * * Redistribution and use in source and binary forms, with or without
28 * * modification, are permitted provided that the following conditions
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.
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.
49 * Author: Thomas Winischhofer <thomas@winischhofer.net>
56 typedef struct _SiS_PanelDelayTblStruct
59 } SiS_PanelDelayTblStruct
;
61 typedef struct _SiS_LCDDataStruct
71 typedef struct _SiS_TVDataStruct
88 typedef struct _SiS_LVDSDataStruct
96 typedef struct _SiS_LVDSDesStruct
102 typedef struct _SiS_LVDSCRT1DataStruct
105 } SiS_LVDSCRT1DataStruct
;
107 typedef struct _SiS_LCDACRT1DataStruct
110 } SiS_LCDACRT1DataStruct
;
112 typedef struct _SiS_CHTVRegDataStruct
115 } SiS_CHTVRegDataStruct
;
117 typedef struct _SiS_StStruct
121 UCHAR St_StTableIndex
;
124 UCHAR VB_StTVFlickerIndex
;
125 UCHAR VB_StTVEdgeIndex
;
126 UCHAR VB_StTVYFilterIndex
;
130 typedef struct _SiS_VBModeStruct
133 UCHAR VB_TVDelayIndex
;
134 UCHAR VB_TVFlickerIndex
;
135 UCHAR VB_TVPhaseIndex
;
136 UCHAR VB_TVYFilterIndex
;
137 UCHAR VB_LCDDelayIndex
;
142 typedef struct _SiS_StandTableStruct
153 } SiS_StandTableStruct
;
155 typedef struct _SiS_ExtStruct
161 UCHAR VB_ExtTVFlickerIndex
;
162 UCHAR VB_ExtTVEdgeIndex
;
163 UCHAR VB_ExtTVYFilterIndex
;
164 UCHAR VB_ExtTVYFilterIndexROM661
;
169 typedef struct _SiS_Ext2Struct
175 UCHAR Ext_CRT2CRTC_NS
;
182 typedef struct _SiS_Part2PortTblStruct
185 } SiS_Part2PortTblStruct
;
187 typedef struct _SiS_CRT1TableStruct
190 } SiS_CRT1TableStruct
;
192 typedef struct _SiS_MCLKDataStruct
194 UCHAR SR28
,SR29
,SR2A
;
196 } SiS_MCLKDataStruct
;
198 typedef struct _SiS_VCLKDataStruct
202 } SiS_VCLKDataStruct
;
204 typedef struct _SiS_VBVCLKDataStruct
206 UCHAR Part4_A
,Part4_B
;
208 } SiS_VBVCLKDataStruct
;
210 typedef struct _SiS_StResInfoStruct
214 } SiS_StResInfoStruct
;
216 typedef struct _SiS_ModeResInfoStruct
222 } SiS_ModeResInfoStruct
;
226 typedef UCHAR DRAM4Type
[4];
228 /* Defines for SiS_CustomT */
229 /* Never change these for sisfb compatibility */
231 #define CUT_FORCENONE 1
232 #define CUT_BARCO1366 2
233 #define CUT_BARCO1024 3
234 #define CUT_COMPAQ1280 4
235 #define CUT_COMPAQ12802 5
236 #define CUT_PANEL848 6
237 #define CUT_CLEVO1024 7
238 #define CUT_CLEVO10242 8
239 #define CUT_CLEVO1400 9
240 #define CUT_CLEVO14002 10
241 #define CUT_UNIWILL1024 11
242 #define CUT_ASUSL3000D 12
243 #define CUT_UNIWILL10242 13
244 #define CUT_ACER1280 14
245 #define CUT_COMPAL1400_1 15
246 #define CUT_COMPAL1400_2 16
247 #define CUT_ASUSA2H_1 17
248 #define CUT_ASUSA2H_2 18
250 typedef struct _SiS_Private
255 SISIOADDRESS SiS_P3c4
;
256 SISIOADDRESS SiS_P3d4
;
257 SISIOADDRESS SiS_P3c0
;
258 SISIOADDRESS SiS_P3ce
;
259 SISIOADDRESS SiS_P3c2
;
260 SISIOADDRESS SiS_P3ca
;
261 SISIOADDRESS SiS_P3c6
;
262 SISIOADDRESS SiS_P3c7
;
263 SISIOADDRESS SiS_P3c8
;
264 SISIOADDRESS SiS_P3c9
;
265 SISIOADDRESS SiS_P3cb
;
266 SISIOADDRESS SiS_P3cd
;
267 SISIOADDRESS SiS_P3da
;
268 SISIOADDRESS SiS_Part1Port
;
269 SISIOADDRESS SiS_Part2Port
;
270 SISIOADDRESS SiS_Part3Port
;
271 SISIOADDRESS SiS_Part4Port
;
272 SISIOADDRESS SiS_Part5Port
;
273 SISIOADDRESS SiS_VidCapt
;
274 SISIOADDRESS SiS_VidPlay
;
275 USHORT SiS_IF_DEF_LVDS
;
276 USHORT SiS_IF_DEF_CH70xx
;
277 USHORT SiS_IF_DEF_CONEX
;
278 USHORT SiS_IF_DEF_TRUMPION
;
279 USHORT SiS_IF_DEF_DSTN
;
280 USHORT SiS_IF_DEF_FSTN
;
284 USHORT SiS_CP1
, SiS_CP2
, SiS_CP3
, SiS_CP4
;
288 BOOLEAN SiS_NeedRomModeData
;
289 BOOLEAN PanelSelfDetected
;
291 BOOLEAN SiS_CHSOverScan
;
296 USHORT SiS_Backup70xx
;
300 UCHAR EMI_30
,EMI_31
,EMI_32
,EMI_33
;
301 USHORT SiS_EMIOffset
;
305 USHORT SiS_flag_clearbuffer
;
308 UCHAR SiS_DataBusWidth
;
312 USHORT SiS_LCDResInfo
;
313 USHORT SiS_LCDTypeInfo
;
315 USHORT SiS_LCDInfo661
;
317 USHORT SiS_VBExtInfo
;
319 USHORT SiS_SelectCRT2Rate
;
321 USHORT SiS_RVBHCFACT
;
332 USHORT SiS_NewFlickerMode
;
340 USHORT SiS_DDC_Index
;
342 USHORT SiS_DDC_NData
;
345 USHORT SiS_DDC_DeviceAddr
;
346 USHORT SiS_DDC_ReadAddr
;
347 USHORT SiS_DDC_SecAddr
;
348 USHORT SiS_ChrontelInit
;
349 BOOLEAN SiS_SensibleSR11
;
350 USHORT SiS661LCD2TableSize
;
352 USHORT SiS_PanelMinLVDS
;
353 USHORT SiS_PanelMin301
;
355 const SiS_StStruct
*SiS_SModeIDTable
;
356 const SiS_StandTableStruct
*SiS_StandTable
;
357 const SiS_ExtStruct
*SiS_EModeIDTable
;
358 const SiS_Ext2Struct
*SiS_RefIndex
;
359 const SiS_VBModeStruct
*SiS_VBModeIDTable
;
360 const SiS_CRT1TableStruct
*SiS_CRT1Table
;
361 const SiS_MCLKDataStruct
*SiS_MCLKData_0
;
362 const SiS_MCLKDataStruct
*SiS_MCLKData_1
;
363 SiS_VCLKDataStruct
*SiS_VCLKData
;
364 SiS_VBVCLKDataStruct
*SiS_VBVCLKData
;
365 const SiS_StResInfoStruct
*SiS_StResInfo
;
366 const SiS_ModeResInfoStruct
*SiS_ModeResInfo
;
368 const UCHAR
*pSiS_OutputSelect
;
369 const UCHAR
*pSiS_SoftSetting
;
371 const DRAM4Type
*SiS_SR15
; /* pointer : point to array */
374 const DRAM4Type
*SiS_CR40
; /* pointer : point to array */
385 UCHAR
*pSiS_CRT2Data_1_2
;
386 UCHAR
*pSiS_CRT2Data_4_D
;
387 UCHAR
*pSiS_CRT2Data_4_E
;
388 UCHAR
*pSiS_CRT2Data_4_10
;
389 const USHORT
*pSiS_RGBSenseData
;
390 const USHORT
*pSiS_VideoSenseData
;
391 const USHORT
*pSiS_YCSenseData
;
392 const USHORT
*pSiS_RGBSenseData2
;
393 const USHORT
*pSiS_VideoSenseData2
;
394 const USHORT
*pSiS_YCSenseData2
;
397 const SiS_PanelDelayTblStruct
*SiS_PanelDelayTbl
;
398 const SiS_PanelDelayTblStruct
*SiS_PanelDelayTblLVDS
;
402 const UCHAR
*SiS_NTSCPhase
;
403 const UCHAR
*SiS_PALPhase
;
404 const UCHAR
*SiS_NTSCPhase2
;
405 const UCHAR
*SiS_PALPhase2
;
406 const UCHAR
*SiS_PALMPhase
;
407 const UCHAR
*SiS_PALNPhase
;
408 const UCHAR
*SiS_PALMPhase2
;
409 const UCHAR
*SiS_PALNPhase2
;
410 const UCHAR
*SiS_SpecialPhase
;
411 const UCHAR
*SiS_SpecialPhaseM
;
412 const UCHAR
*SiS_SpecialPhaseJ
;
413 const SiS_LCDDataStruct
*SiS_ExtLCD1024x768Data
;
414 const SiS_LCDDataStruct
*SiS_St2LCD1024x768Data
;
415 const SiS_LCDDataStruct
*SiS_LCD1280x720Data
;
416 const SiS_LCDDataStruct
*SiS_StLCD1280x768_2Data
;
417 const SiS_LCDDataStruct
*SiS_ExtLCD1280x768_2Data
;
418 const SiS_LCDDataStruct
*SiS_LCD1280x800Data
;
419 const SiS_LCDDataStruct
*SiS_LCD1280x800_2Data
;
420 const SiS_LCDDataStruct
*SiS_LCD1280x960Data
;
421 const SiS_LCDDataStruct
*SiS_ExtLCD1280x1024Data
;
422 const SiS_LCDDataStruct
*SiS_St2LCD1280x1024Data
;
423 const SiS_LCDDataStruct
*SiS_StLCD1400x1050Data
;
424 const SiS_LCDDataStruct
*SiS_ExtLCD1400x1050Data
;
425 const SiS_LCDDataStruct
*SiS_StLCD1600x1200Data
;
426 const SiS_LCDDataStruct
*SiS_ExtLCD1600x1200Data
;
427 const SiS_LCDDataStruct
*SiS_LCD1680x1050Data
;
428 const SiS_LCDDataStruct
*SiS_NoScaleData
;
429 const SiS_TVDataStruct
*SiS_StPALData
;
430 const SiS_TVDataStruct
*SiS_ExtPALData
;
431 const SiS_TVDataStruct
*SiS_StNTSCData
;
432 const SiS_TVDataStruct
*SiS_ExtNTSCData
;
433 const SiS_TVDataStruct
*SiS_St1HiTVData
;
434 const SiS_TVDataStruct
*SiS_St2HiTVData
;
435 const SiS_TVDataStruct
*SiS_ExtHiTVData
;
436 const SiS_TVDataStruct
*SiS_St525iData
;
437 const SiS_TVDataStruct
*SiS_St525pData
;
438 const SiS_TVDataStruct
*SiS_St750pData
;
439 const SiS_TVDataStruct
*SiS_Ext525iData
;
440 const SiS_TVDataStruct
*SiS_Ext525pData
;
441 const SiS_TVDataStruct
*SiS_Ext750pData
;
442 const UCHAR
*SiS_NTSCTiming
;
443 const UCHAR
*SiS_PALTiming
;
444 const UCHAR
*SiS_HiTVExtTiming
;
445 const UCHAR
*SiS_HiTVSt1Timing
;
446 const UCHAR
*SiS_HiTVSt2Timing
;
447 const UCHAR
*SiS_HiTVGroup3Data
;
448 const UCHAR
*SiS_HiTVGroup3Simu
;
450 const UCHAR
*SiS_HiTVTextTiming
;
451 const UCHAR
*SiS_HiTVGroup3Text
;
454 const SiS_Part2PortTblStruct
*SiS_CRT2Part2_1024x768_1
;
455 const SiS_Part2PortTblStruct
*SiS_CRT2Part2_1280x1024_1
;
456 const SiS_Part2PortTblStruct
*SiS_CRT2Part2_1024x768_2
;
457 const SiS_Part2PortTblStruct
*SiS_CRT2Part2_1280x1024_2
;
458 const SiS_Part2PortTblStruct
*SiS_CRT2Part2_1024x768_3
;
459 const SiS_Part2PortTblStruct
*SiS_CRT2Part2_1280x1024_3
;
463 const SiS_LVDSDataStruct
*SiS_LVDS800x600Data_1
;
464 const SiS_LVDSDataStruct
*SiS_LVDS800x600Data_2
;
465 const SiS_LVDSDataStruct
*SiS_LVDS1024x768Data_1
;
466 const SiS_LVDSDataStruct
*SiS_LVDS1024x768Data_2
;
467 const SiS_LVDSDataStruct
*SiS_LVDS1280x1024Data_1
;
468 const SiS_LVDSDataStruct
*SiS_LVDS1280x1024Data_2
;
469 const SiS_LVDSDataStruct
*SiS_LVDS1280x960Data_1
;
470 const SiS_LVDSDataStruct
*SiS_LVDS1280x960Data_2
;
471 const SiS_LVDSDataStruct
*SiS_LVDS1400x1050Data_1
;
472 const SiS_LVDSDataStruct
*SiS_LVDS1400x1050Data_2
;
473 const SiS_LVDSDataStruct
*SiS_LVDS1600x1200Data_1
;
474 const SiS_LVDSDataStruct
*SiS_LVDS1600x1200Data_2
;
475 const SiS_LVDSDataStruct
*SiS_LVDS1280x768Data_1
;
476 const SiS_LVDSDataStruct
*SiS_LVDS1280x768Data_2
;
477 const SiS_LVDSDataStruct
*SiS_LVDS1024x600Data_1
;
478 const SiS_LVDSDataStruct
*SiS_LVDS1024x600Data_2
;
479 const SiS_LVDSDataStruct
*SiS_LVDS1152x768Data_1
;
480 const SiS_LVDSDataStruct
*SiS_LVDS1152x768Data_2
;
481 const SiS_LVDSDataStruct
*SiS_LVDS640x480Data_1
;
482 const SiS_LVDSDataStruct
*SiS_LVDS640x480Data_2
;
483 const SiS_LVDSDataStruct
*SiS_LVDS320x480Data_1
;
484 const SiS_LVDSDataStruct
*SiS_LVDSXXXxXXXData_1
;
485 const SiS_LVDSDataStruct
*SiS_LVDSBARCO1366Data_1
;
486 const SiS_LVDSDataStruct
*SiS_LVDSBARCO1366Data_2
;
487 const SiS_LVDSDataStruct
*SiS_LVDSBARCO1024Data_1
;
488 const SiS_LVDSDataStruct
*SiS_LVDSBARCO1024Data_2
;
489 const SiS_LVDSDataStruct
*SiS_LVDS848x480Data_1
;
490 const SiS_LVDSDataStruct
*SiS_LVDS848x480Data_2
;
491 const SiS_LVDSDataStruct
*SiS_CHTVUNTSCData
;
492 const SiS_LVDSDataStruct
*SiS_CHTVONTSCData
;
493 const SiS_LVDSDataStruct
*SiS_CHTVUPALData
;
494 const SiS_LVDSDataStruct
*SiS_CHTVOPALData
;
495 const SiS_LVDSDataStruct
*SiS_CHTVUPALMData
;
496 const SiS_LVDSDataStruct
*SiS_CHTVOPALMData
;
497 const SiS_LVDSDataStruct
*SiS_CHTVUPALNData
;
498 const SiS_LVDSDataStruct
*SiS_CHTVOPALNData
;
499 const SiS_LVDSDataStruct
*SiS_CHTVSOPALData
;
501 const SiS_LVDSDesStruct
*SiS_PanelType00_1
;
502 const SiS_LVDSDesStruct
*SiS_PanelType01_1
;
503 const SiS_LVDSDesStruct
*SiS_PanelType02_1
;
504 const SiS_LVDSDesStruct
*SiS_PanelType03_1
;
505 const SiS_LVDSDesStruct
*SiS_PanelType04_1
;
506 const SiS_LVDSDesStruct
*SiS_PanelType05_1
;
507 const SiS_LVDSDesStruct
*SiS_PanelType06_1
;
508 const SiS_LVDSDesStruct
*SiS_PanelType07_1
;
509 const SiS_LVDSDesStruct
*SiS_PanelType08_1
;
510 const SiS_LVDSDesStruct
*SiS_PanelType09_1
;
511 const SiS_LVDSDesStruct
*SiS_PanelType0a_1
;
512 const SiS_LVDSDesStruct
*SiS_PanelType0b_1
;
513 const SiS_LVDSDesStruct
*SiS_PanelType0c_1
;
514 const SiS_LVDSDesStruct
*SiS_PanelType0d_1
;
515 const SiS_LVDSDesStruct
*SiS_PanelType0e_1
;
516 const SiS_LVDSDesStruct
*SiS_PanelType0f_1
;
517 const SiS_LVDSDesStruct
*SiS_PanelTypeNS_1
;
518 const SiS_LVDSDesStruct
*SiS_PanelType00_2
;
519 const SiS_LVDSDesStruct
*SiS_PanelType01_2
;
520 const SiS_LVDSDesStruct
*SiS_PanelType02_2
;
521 const SiS_LVDSDesStruct
*SiS_PanelType03_2
;
522 const SiS_LVDSDesStruct
*SiS_PanelType04_2
;
523 const SiS_LVDSDesStruct
*SiS_PanelType05_2
;
524 const SiS_LVDSDesStruct
*SiS_PanelType06_2
;
525 const SiS_LVDSDesStruct
*SiS_PanelType07_2
;
526 const SiS_LVDSDesStruct
*SiS_PanelType08_2
;
527 const SiS_LVDSDesStruct
*SiS_PanelType09_2
;
528 const SiS_LVDSDesStruct
*SiS_PanelType0a_2
;
529 const SiS_LVDSDesStruct
*SiS_PanelType0b_2
;
530 const SiS_LVDSDesStruct
*SiS_PanelType0c_2
;
531 const SiS_LVDSDesStruct
*SiS_PanelType0d_2
;
532 const SiS_LVDSDesStruct
*SiS_PanelType0e_2
;
533 const SiS_LVDSDesStruct
*SiS_PanelType0f_2
;
534 const SiS_LVDSDesStruct
*SiS_PanelTypeNS_2
;
535 const SiS_LVDSDesStruct
*SiS_CHTVUNTSCDesData
;
536 const SiS_LVDSDesStruct
*SiS_CHTVONTSCDesData
;
537 const SiS_LVDSDesStruct
*SiS_CHTVUPALDesData
;
538 const SiS_LVDSDesStruct
*SiS_CHTVOPALDesData
;
540 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT1800x600_1
;
541 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11024x768_1
;
542 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11280x1024_1
;
543 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11400x1050_1
;
544 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11280x768_1
;
545 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11024x600_1
;
546 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11152x768_1
;
547 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11600x1200_1
;
548 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT1800x600_1_H
;
549 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11024x768_1_H
;
550 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11280x1024_1_H
;
551 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11400x1050_1_H
;
552 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11280x768_1_H
;
553 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11024x600_1_H
;
554 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11152x768_1_H
;
555 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11600x1200_1_H
;
556 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT1800x600_2
;
557 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11024x768_2
;
558 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11280x1024_2
;
559 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11400x1050_2
;
560 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11280x768_2
;
561 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11024x600_2
;
562 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11152x768_2
;
563 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11600x1200_2
;
564 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT1800x600_2_H
;
565 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11024x768_2_H
;
566 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11280x1024_2_H
;
567 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11400x1050_2_H
;
568 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11280x768_2_H
;
569 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11024x600_2_H
;
570 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11152x768_2_H
;
571 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT11600x1200_2_H
;
572 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT1XXXxXXX_1
;
573 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT1XXXxXXX_1_H
;
574 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT1640x480_1
;
575 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT1640x480_1_H
;
576 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT1640x480_2
;
577 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT1640x480_2_H
;
578 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT1640x480_3
;
579 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT1640x480_3_H
;
580 const SiS_LVDSCRT1DataStruct
*SiS_LVDSCRT1320x480_1
;
581 const SiS_LVDSCRT1DataStruct
*SiS_CHTVCRT1UNTSC
;
582 const SiS_LVDSCRT1DataStruct
*SiS_CHTVCRT1ONTSC
;
583 const SiS_LVDSCRT1DataStruct
*SiS_CHTVCRT1UPAL
;
584 const SiS_LVDSCRT1DataStruct
*SiS_CHTVCRT1OPAL
;
585 const SiS_LVDSCRT1DataStruct
*SiS_CHTVCRT1SOPAL
;
587 const SiS_CHTVRegDataStruct
*SiS_CHTVReg_UNTSC
;
588 const SiS_CHTVRegDataStruct
*SiS_CHTVReg_ONTSC
;
589 const SiS_CHTVRegDataStruct
*SiS_CHTVReg_UPAL
;
590 const SiS_CHTVRegDataStruct
*SiS_CHTVReg_OPAL
;
591 const SiS_CHTVRegDataStruct
*SiS_CHTVReg_UPALM
;
592 const SiS_CHTVRegDataStruct
*SiS_CHTVReg_OPALM
;
593 const SiS_CHTVRegDataStruct
*SiS_CHTVReg_UPALN
;
594 const SiS_CHTVRegDataStruct
*SiS_CHTVReg_OPALN
;
595 const SiS_CHTVRegDataStruct
*SiS_CHTVReg_SOPAL
;
597 const UCHAR
*SiS_CHTVVCLKUNTSC
;
598 const UCHAR
*SiS_CHTVVCLKONTSC
;
599 const UCHAR
*SiS_CHTVVCLKUPAL
;
600 const UCHAR
*SiS_CHTVVCLKOPAL
;
601 const UCHAR
*SiS_CHTVVCLKUPALM
;
602 const UCHAR
*SiS_CHTVVCLKOPALM
;
603 const UCHAR
*SiS_CHTVVCLKUPALN
;
604 const UCHAR
*SiS_CHTVVCLKOPALN
;
605 const UCHAR
*SiS_CHTVVCLKSOPAL
;
607 USHORT PanelXRes
, PanelHT
;
608 USHORT PanelYRes
, PanelVT
;
609 USHORT PanelHRS
, PanelHRE
;
610 USHORT PanelVRS
, PanelVRE
;
611 USHORT PanelVCLKIdx300
;
612 USHORT PanelVCLKIdx315
;
614 BOOLEAN UseCustomMode
;
615 BOOLEAN CRT1UsesCustomMode
;
634 USHORT CSRClock_CRT1
;
636 USHORT CModeFlag_CRT1
;
657 USHORT CP_Vendor
, CP_Product
;
658 BOOLEAN CP_HaveCustomData
;
659 int CP_PreferredX
, CP_PreferredY
, CP_PreferredIndex
;
660 int CP_MaxX
, CP_MaxY
, CP_MaxClock
;
661 UCHAR CP_PrefSR2B
, CP_PrefSR2C
;
663 BOOLEAN CP_Supports64048075
;
664 int CP_HDisplay
[7], CP_VDisplay
[7]; /* For Custom LCD panel dimensions */
665 int CP_HTotal
[7], CP_VTotal
[7];
666 int CP_HSyncStart
[7], CP_VSyncStart
[7];
667 int CP_HSyncEnd
[7], CP_VSyncEnd
[7];
668 int CP_HBlankStart
[7], CP_VBlankStart
[7];
669 int CP_HBlankEnd
[7], CP_VBlankEnd
[7];
671 BOOLEAN CP_DataValid
[7];
672 BOOLEAN CP_HSync_P
[7], CP_VSync_P
[7], CP_SyncValid
[7];