/* $XFree86$ */ /* $XdotOrg$ */ /* * Register settings for SiS 315/330/340 series * * Copyright (C) 2001-2005 by Thomas Winischhofer, Vienna, Austria * * If distributed as part of the Linux kernel, the following license terms * apply: * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the named License, * * or any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the Free Software * * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA * * Otherwise, the following license terms apply: * * * Redistribution and use in source and binary forms, with or without * * modification, are permitted provided that the following conditions * * are met: * * 1) Redistributions of source code must retain the above copyright * * notice, this list of conditions and the following disclaimer. * * 2) Redistributions in binary form must reproduce the above copyright * * notice, this list of conditions and the following disclaimer in the * * documentation and/or other materials provided with the distribution. * * 3) The name of the author may not be used to endorse or promote products * * derived from this software without specific prior written permission. * * * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES * * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. * * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, * * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY * * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * Author: Thomas Winischhofer <[email protected]> * */ static const struct SiS_Ext SiS310_EModeIDTable[] = …; static const struct SiS_Ext2 SiS310_RefIndex[] = …; static const struct SiS_CRT1Table SiS310_CRT1Table[] = …; static const struct SiS_MCLKData SiS310_MCLKData_0_315[] = …; static const struct SiS_MCLKData SiS310_MCLKData_0_650[] = …; static const struct SiS_MCLKData SiS310_MCLKData_0_330[] = …; static const struct SiS_MCLKData SiS310_MCLKData_0_660[] = …; static const struct SiS_MCLKData SiS310_MCLKData_0_760[] = …; static const struct SiS_MCLKData SiS310_MCLKData_0_761[] = …; static const struct SiS_MCLKData SiS310_MCLKData_0_340[] = …; static const struct SiS_MCLKData SiS310_MCLKData_1[] = …/* ECLK */ { … }; static const struct SiS_MCLKData SiS310_MCLKData_1_340[] = …; static struct SiS_VCLKData SiS310_VCLKData[] = …; static struct SiS_VBVCLKData SiS310_VBVCLKData[] = …; static const unsigned char SiS310_SR15[4 * 8] = …; static const struct SiS_PanelDelayTbl SiS310_PanelDelayTbl[] = …; static const struct SiS_PanelDelayTbl SiS310_PanelDelayTblLVDS[] = …; /**************************************************************/ /* SIS VIDEO BRIDGE ----------------------------------------- */ /**************************************************************/ static const struct SiS_LCDData SiS310_St2LCD1024x768Data[] = …; static const struct SiS_LCDData SiS310_ExtLCD1024x768Data[] = …; static const struct SiS_LCDData SiS310_St2LCD1280x1024Data[] = …; static const struct SiS_LCDData SiS310_ExtLCD1280x1024Data[] = …; static const struct SiS_Part2PortTbl SiS310_CRT2Part2_1024x768_1[] = …; /**************************************************************/ /* LVDS, CHRONTEL ------------------------------------------- */ /**************************************************************/ static const struct SiS_LVDSData SiS310_CHTVUPALData[] = …; static const struct SiS_LVDSData SiS310_CHTVOPALData[] = …; static const struct SiS_LVDSData SiS310_CHTVUPALMData[] = …; static const struct SiS_LVDSData SiS310_CHTVOPALMData[] = …; static const struct SiS_LVDSData SiS310_CHTVUPALNData[] = …; static const struct SiS_LVDSData SiS310_CHTVOPALNData[] = …; static const struct SiS_LVDSData SiS310_CHTVSOPALData[] = …/* (super overscan - no effect on 7019) */ { … }; /* CRT1 CRTC for Chrontel TV slave modes */ static const struct SiS_LVDSCRT1Data SiS310_CHTVCRT1UNTSC[] = …; static const struct SiS_LVDSCRT1Data SiS310_CHTVCRT1ONTSC[] = …; static const struct SiS_LVDSCRT1Data SiS310_CHTVCRT1UPAL[] = …; static const struct SiS_LVDSCRT1Data SiS310_CHTVCRT1OPAL[] = …; static const struct SiS_CHTVRegData SiS310_CHTVReg_UNTSC[] = …; /* WRONG: 0x02: should be 0xfx, because if CIVEnable is clear, this should be set; 0x07: Blacklevel: NTSC/PAL-M: Should be 131 (0x83), and not 0x50/0x5a PAL/PAL-N: 110 (0x6e) NTSC-J: 102 (0x66) 0x0c-0x0f: CIV is not default as in datasheet MISSING: 0x21: Should set D1 to ZERO (for NTSC, PAL-M) or ONE (PAL, NTSC-J) Most of this is wrong in all NTSC and PAL register arrays. But I won't correct it as long as it works. For NTSC-J, the blacklevel is corrected in init301.c; for PAL-M and PAL-N all above is corrected. */ static const struct SiS_CHTVRegData SiS310_CHTVReg_ONTSC[] = …; static const struct SiS_CHTVRegData SiS310_CHTVReg_UPAL[] = …; static const struct SiS_CHTVRegData SiS310_CHTVReg_OPAL[] = …; static const struct SiS_CHTVRegData SiS310_CHTVReg_UPALM[] = …; static const struct SiS_CHTVRegData SiS310_CHTVReg_OPALM[] = …; static const struct SiS_CHTVRegData SiS310_CHTVReg_UPALN[] = …; static const struct SiS_CHTVRegData SiS310_CHTVReg_OPALN[] = …; static const unsigned char SiS310_CHTVVCLKUNTSC[] = …; static const unsigned char SiS310_CHTVVCLKONTSC[] = …; static const unsigned char SiS310_CHTVVCLKUPAL[] = …; static const unsigned char SiS310_CHTVVCLKOPAL[] = …; static const unsigned char SiS310_CHTVVCLKUPALM[] = …; static const unsigned char SiS310_CHTVVCLKOPALM[] = …; static const unsigned char SiS310_CHTVVCLKUPALN[] = …; static const unsigned char SiS310_CHTVVCLKOPALN[] = …;