⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vstruct.h

📁 linux-2.4.29操作系统的源码
💻 H
📖 第 1 页 / 共 2 页
字号:
/* $XFree86$ *//* $XdotOrg$ *//* * General structure definitions for universal mode switching modules * * Copyright (C) 2001-2004 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 EXPRESSED 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> * */ #ifdef _INIT_#define EXTERN#else#define EXTERN extern#endif /* _INIT_ */#ifndef _VSTRUCT_#define _VSTRUCT_typedef struct _SiS_PanelDelayTblStruct{ 	UCHAR timer[2];} SiS_PanelDelayTblStruct;typedef struct _SiS_LCDDataStruct{	USHORT RVBHCMAX;	USHORT RVBHCFACT;	USHORT VGAHT;	USHORT VGAVT;	USHORT LCDHT;	USHORT LCDVT;} SiS_LCDDataStruct;typedef struct _SiS_TVDataStruct{	USHORT RVBHCMAX;	USHORT RVBHCFACT;	USHORT VGAHT;	USHORT VGAVT;	USHORT TVHDE;	USHORT TVVDE;	USHORT RVBHRS;	UCHAR  FlickerMode;	USHORT HALFRVBHRS;	UCHAR  RY1COE;	UCHAR  RY2COE;	UCHAR  RY3COE;	UCHAR  RY4COE;} SiS_TVDataStruct;typedef struct _SiS_LVDSDataStruct{	USHORT VGAHT;	USHORT VGAVT;	USHORT LCDHT;	USHORT LCDVT;} SiS_LVDSDataStruct;typedef struct _SiS_LVDSDesStruct{	USHORT LCDHDES;	USHORT LCDVDES;} SiS_LVDSDesStruct;typedef struct _SiS_LVDSCRT1DataStruct{	UCHAR  CR[15];} SiS_LVDSCRT1DataStruct;typedef struct _SiS_LCDACRT1DataStruct{	UCHAR  CR[17];} SiS_LCDACRT1DataStruct;typedef struct _SiS_CHTVRegDataStruct{	UCHAR  Reg[16];} SiS_CHTVRegDataStruct;typedef struct _SiS_StStruct{	UCHAR  St_ModeID;	USHORT St_ModeFlag;	UCHAR  St_StTableIndex;	UCHAR  St_CRT2CRTC;	UCHAR  St_ResInfo;	UCHAR  VB_StTVFlickerIndex;	UCHAR  VB_StTVEdgeIndex;	UCHAR  VB_StTVYFilterIndex;	UCHAR  St_PDC;} SiS_StStruct;typedef struct _SiS_VBModeStruct{	UCHAR  ModeID;	UCHAR  VB_TVDelayIndex;	UCHAR  VB_TVFlickerIndex;	UCHAR  VB_TVPhaseIndex;	UCHAR  VB_TVYFilterIndex;	UCHAR  VB_LCDDelayIndex;	UCHAR  _VB_LCDHIndex;	UCHAR  _VB_LCDVIndex;} SiS_VBModeStruct;typedef struct _SiS_StandTableStruct{	UCHAR  CRT_COLS;	UCHAR  ROWS;	UCHAR  CHAR_HEIGHT;	USHORT CRT_LEN;	UCHAR  SR[4];	UCHAR  MISC;	UCHAR  CRTC[0x19];	UCHAR  ATTR[0x14];	UCHAR  GRC[9];} SiS_StandTableStruct;typedef struct _SiS_ExtStruct{	UCHAR  Ext_ModeID;	USHORT Ext_ModeFlag;	USHORT Ext_VESAID;	UCHAR  Ext_RESINFO;	UCHAR  VB_ExtTVFlickerIndex;	UCHAR  VB_ExtTVEdgeIndex;	UCHAR  VB_ExtTVYFilterIndex;	UCHAR  VB_ExtTVYFilterIndexROM661;	UCHAR  REFindex;	CHAR   ROMMODEIDX661;} SiS_ExtStruct;typedef struct _SiS_Ext2Struct{	USHORT Ext_InfoFlag;	UCHAR  Ext_CRT1CRTC;	UCHAR  Ext_CRTVCLK;	UCHAR  Ext_CRT2CRTC;	UCHAR  Ext_CRT2CRTC_NS;	UCHAR  ModeID;	USHORT XRes;	USHORT YRes;	UCHAR  Ext_PDC;} SiS_Ext2Struct;typedef struct _SiS_Part2PortTblStruct{ 	UCHAR  CR[12];} SiS_Part2PortTblStruct;typedef struct _SiS_CRT1TableStruct{	UCHAR  CR[17];} SiS_CRT1TableStruct;typedef struct _SiS_MCLKDataStruct{	UCHAR  SR28,SR29,SR2A;	USHORT CLOCK;} SiS_MCLKDataStruct;typedef struct _SiS_VCLKDataStruct{	UCHAR  SR2B,SR2C;	USHORT CLOCK;} SiS_VCLKDataStruct;typedef struct _SiS_VBVCLKDataStruct{	UCHAR  Part4_A,Part4_B;	USHORT CLOCK;} SiS_VBVCLKDataStruct;typedef struct _SiS_StResInfoStruct{	USHORT HTotal;	USHORT VTotal;} SiS_StResInfoStruct;typedef struct _SiS_ModeResInfoStruct{	USHORT HTotal;	USHORT VTotal;	UCHAR  XChar;	UCHAR  YChar;} SiS_ModeResInfoStruct;typedef UCHAR DRAM4Type[4];/* 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     18typedef struct _SiS_Private{#ifdef 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_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;	USHORT SiS_IF_DEF_LVDS;	USHORT SiS_IF_DEF_CH70xx;	USHORT SiS_IF_DEF_CONEX;	USHORT SiS_IF_DEF_TRUMPION;	USHORT SiS_IF_DEF_DSTN;	USHORT SiS_IF_DEF_FSTN;	USHORT SiS_SysFlags;	UCHAR  SiS_VGAINFO;#ifndef LINUX_KERNEL        USHORT SiS_CP1, SiS_CP2, SiS_CP3, SiS_CP4;#endif	BOOLEAN SiS_UseROM;	BOOLEAN SiS_ROMNew;	BOOLEAN SiS_NeedRomModeData;	BOOLEAN PanelSelfDetected;	int     SiS_CHOverScan;	BOOLEAN SiS_CHSOverScan;	BOOLEAN SiS_ChSW;	BOOLEAN SiS_UseLCDA;	int     SiS_UseOEM;	ULONG   SiS_CustomT;	USHORT  SiS_Backup70xx;	BOOLEAN HaveEMI;	BOOLEAN HaveEMILCD;	BOOLEAN OverruleEMI;	UCHAR  EMI_30,EMI_31,EMI_32,EMI_33;	SHORT  PDC, PDCA;	UCHAR  SiS_MyCR63;	USHORT SiS_CRT1Mode;	USHORT SiS_flag_clearbuffer;	int    SiS_RAMType;	UCHAR  SiS_ChannelAB;	UCHAR  SiS_DataBusWidth;	USHORT SiS_ModeType;	USHORT SiS_VBInfo;	USHORT SiS_TVMode;	USHORT SiS_LCDResInfo;	USHORT SiS_LCDTypeInfo;	USHORT SiS_LCDInfo;	USHORT SiS_LCDInfo661;	USHORT SiS_VBType;	USHORT SiS_VBExtInfo;	USHORT SiS_YPbPr;	USHORT SiS_SelectCRT2Rate;	USHORT SiS_SetFlag;	USHORT SiS_RVBHCFACT;	USHORT SiS_RVBHCMAX;	USHORT SiS_RVBHRS;	USHORT SiS_VGAVT;	USHORT SiS_VGAHT;	USHORT SiS_VT;	USHORT SiS_HT;	USHORT SiS_VGAVDE;	USHORT SiS_VGAHDE;	USHORT SiS_VDE;	USHORT SiS_HDE;	USHORT SiS_NewFlickerMode;	USHORT SiS_RY1COE;	USHORT SiS_RY2COE;	USHORT SiS_RY3COE;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -