📄 vstruct.h
字号:
/* $XFree86$ *//* $XdotOrg$ *//* * General structure definitions for universal mode switching modules * * 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 <thomas@winischhofer.net> * */#ifndef _VSTRUCT_H_#define _VSTRUCT_H_struct SiS_PanelDelayTbl { unsigned char timer[2];};struct SiS_LCDData { unsigned short RVBHCMAX; unsigned short RVBHCFACT; unsigned short VGAHT; unsigned short VGAVT; unsigned short LCDHT; unsigned short LCDVT;};struct SiS_TVData { unsigned short RVBHCMAX; unsigned short RVBHCFACT; unsigned short VGAHT; unsigned short VGAVT; unsigned short TVHDE; unsigned short TVVDE; unsigned short RVBHRS; unsigned char FlickerMode; unsigned short HALFRVBHRS; unsigned short RVBHRS2; unsigned char RY1COE; unsigned char RY2COE; unsigned char RY3COE; unsigned char RY4COE;};struct SiS_LVDSData { unsigned short VGAHT; unsigned short VGAVT; unsigned short LCDHT; unsigned short LCDVT;};struct SiS_LVDSDes { unsigned short LCDHDES; unsigned short LCDVDES;};struct SiS_LVDSCRT1Data { unsigned char CR[15];};struct SiS_CHTVRegData { unsigned char Reg[16];};struct SiS_St { unsigned char St_ModeID; unsigned short St_ModeFlag; unsigned char St_StTableIndex; unsigned char St_CRT2CRTC; unsigned char St_ResInfo; unsigned char VB_StTVFlickerIndex; unsigned char VB_StTVEdgeIndex; unsigned char VB_StTVYFilterIndex; unsigned char St_PDC;};struct SiS_VBMode { unsigned char ModeID; unsigned char VB_TVDelayIndex; unsigned char VB_TVFlickerIndex; unsigned char VB_TVPhaseIndex; unsigned char VB_TVYFilterIndex; unsigned char VB_LCDDelayIndex; unsigned char _VB_LCDHIndex; unsigned char _VB_LCDVIndex;};struct SiS_StandTable_S { unsigned char CRT_COLS; unsigned char ROWS; unsigned char CHAR_HEIGHT; unsigned short CRT_LEN; unsigned char SR[4]; unsigned char MISC; unsigned char CRTC[0x19]; unsigned char ATTR[0x14]; unsigned char GRC[9];};struct SiS_Ext { unsigned char Ext_ModeID; unsigned short Ext_ModeFlag; unsigned short Ext_VESAID; unsigned char Ext_RESINFO; unsigned char VB_ExtTVFlickerIndex; unsigned char VB_ExtTVEdgeIndex; unsigned char VB_ExtTVYFilterIndex; unsigned char VB_ExtTVYFilterIndexROM661; unsigned char REFindex; char ROMMODEIDX661;};struct SiS_Ext2 { unsigned short Ext_InfoFlag; unsigned char Ext_CRT1CRTC; unsigned char Ext_CRTVCLK; unsigned char Ext_CRT2CRTC; unsigned char Ext_CRT2CRTC_NS; unsigned char ModeID; unsigned short XRes; unsigned short YRes; unsigned char Ext_PDC; unsigned char Ext_FakeCRT2CRTC; unsigned char Ext_FakeCRT2Clk; unsigned char Ext_CRT1CRTC_NORM; unsigned char Ext_CRTVCLK_NORM; unsigned char Ext_CRT1CRTC_WIDE; unsigned char Ext_CRTVCLK_WIDE;};struct SiS_Part2PortTbl { unsigned char CR[12];};struct SiS_CRT1Table { unsigned char CR[17];};struct SiS_MCLKData { unsigned char SR28,SR29,SR2A; unsigned short CLOCK;};struct SiS_VCLKData { unsigned char SR2B,SR2C; unsigned short CLOCK;};struct SiS_VBVCLKData { unsigned char Part4_A,Part4_B; unsigned short CLOCK;};struct SiS_StResInfo_S { unsigned short HTotal; unsigned short VTotal;};struct SiS_ModeResInfo_S { unsigned short HTotal; unsigned short VTotal; unsigned char XChar; unsigned char YChar;};/* Defines for SiS_CustomT *//* Never change these for sisfb compatibility */#define CUT_NONE 0#define CUT_FORCENONE 1#define CUT_BARCO1366 2#define CUT_BARCO1024 3#define CUT_COMPAQ1280 4#define CUT_COMPAQ12802 5#define CUT_PANEL848 6#define CUT_CLEVO1024 7#define CUT_CLEVO10242 8#define CUT_CLEVO1400 9#define CUT_CLEVO14002 10#define CUT_UNIWILL1024 11#define CUT_ASUSL3000D 12#define CUT_UNIWILL10242 13#define CUT_ACER1280 14#define CUT_COMPAL1400_1 15#define CUT_COMPAL1400_2 16#define CUT_ASUSA2H_1 17#define CUT_ASUSA2H_2 18#define CUT_UNKNOWNLCD 19#define CUT_AOP8060 20#define CUT_PANEL856 21struct SiS_Private{ unsigned char ChipType; unsigned char ChipRevision;#ifdef SIS_XORG_XF86 PCITAG PciTag;#endif#ifdef SIS_LINUX_KERNEL void *ivideo;#endif unsigned char *VirtualRomBase; BOOLEAN UseROM;#ifdef SIS_LINUX_KERNEL unsigned char SISIOMEMTYPE *VideoMemoryAddress; unsigned int VideoMemorySize;#endif SISIOADDRESS IOAddress; SISIOADDRESS IOAddress2; /* For dual chip XGI volari */#ifdef SIS_LINUX_KERNEL SISIOADDRESS RelIO;#endif SISIOADDRESS SiS_P3c4; SISIOADDRESS SiS_P3d4; SISIOADDRESS SiS_P3c0; SISIOADDRESS SiS_P3ce; SISIOADDRESS SiS_P3c2; SISIOADDRESS SiS_P3ca; SISIOADDRESS SiS_P3c6; SISIOADDRESS SiS_P3c7; SISIOADDRESS SiS_P3c8; SISIOADDRESS SiS_P3c9; SISIOADDRESS SiS_P3cb; SISIOADDRESS SiS_P3cc; SISIOADDRESS SiS_P3cd; SISIOADDRESS SiS_P3da; SISIOADDRESS SiS_Part1Port; SISIOADDRESS SiS_Part2Port; SISIOADDRESS SiS_Part3Port; SISIOADDRESS SiS_Part4Port; SISIOADDRESS SiS_Part5Port; SISIOADDRESS SiS_VidCapt; SISIOADDRESS SiS_VidPlay; unsigned short SiS_IF_DEF_LVDS; unsigned short SiS_IF_DEF_CH70xx; unsigned short SiS_IF_DEF_CONEX; unsigned short SiS_IF_DEF_TRUMPION; unsigned short SiS_IF_DEF_DSTN; unsigned short SiS_IF_DEF_FSTN; unsigned short SiS_SysFlags; unsigned char SiS_VGAINFO;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -