📄 initdef.h
字号:
/* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/sis/initdef.h,v 1.4 2000/12/02 01:16:17 dawes Exp $ */#ifndef _INITDEF_#define _INITDEF_#define SiS300 0x0300#define SiS540 0x5300#define SiS630 0x6300#define SiS730 0x6300/* SiS_VBType */#define VB_SIS301 0x0001#define VB_SIS301B 0x0002#define VB_SIS302B 0x0004#define VB_SIS301LV 0x0008#define VB_SIS302LV 0x0010#define VB_SIS30xLV VB_SIS301LV#define VB_SIS30xNEW VB_SIS302LV#define VB_NoLCD 0x8000#define VB_SIS301BLV302BLV (VB_SIS301B|VB_SIS302B|VB_SIS301LV|VB_SIS302LV)#define VB_SIS301B302B (VB_SIS301B|VB_SIS302B)#define VB_SIS301LV302LV (VB_SIS301LV|VB_SIS302LV)#define IS_SIS650740 ((HwDeviceExtension->jChipType >= SIS_650) && (HwDeviceExtension->jChipType < SIS_330))#define IS_SIS650 (HwDeviceExtension->jChipType == SIS_650)#define IS_SIS740 (HwDeviceExtension->jChipType == SIS_740)#define IS_SIS330 (HwDeviceExtension->jChipType == SIS_330)#define IS_SIS550 (HwDeviceExtension->jChipType == SIS_550)#define CRT1Len 17#define LVDSCRT1Len 15#define CHTVRegDataLen 5/* SiS_ModeType */#define ModeText 0x00#define ModeCGA 0x01#define ModeEGA 0x02#define ModeVGA 0x03#define Mode15Bpp 0x04#define Mode16Bpp 0x05#define Mode24Bpp 0x06#define Mode32Bpp 0x07#define ModeInfoFlag 0x07#define IsTextMode 0x07#define DACInfoFlag 0x0018#define MemoryInfoFlag 0x01E0#define MemorySizeShift 5/* modeflag */#define Charx8Dot 0x0200#define LineCompareOff 0x0400#define CRT2Mode 0x0800#define HalfDCLK 0x1000#define NoSupportSimuTV 0x2000#define DoubleScanMode 0x8000/* Infoflag */#define SupportAllCRT2 0x0078#define SupportTV 0x0008#define SupportHiVisionTV 0x0010#define SupportLCD 0x0020#define SupportRAMDAC2 0x0040 #define NoSupportTV 0x0070#define NoSupportHiVisionTV 0x0060#define NoSupportLCD 0x0058#define SupportCHTV 0x0800#define SupportTV1024 0x0800 #define InterlaceMode 0x0080#define SupportHiVisionTV2 0x1000#define SyncPP 0x0000#define SyncPN 0x4000#define SyncNP 0x8000#define SyncNN 0xc000#define ECLKindex0 0x0000#define ECLKindex1 0x0100#define ECLKindex2 0x0200#define ECLKindex3 0x0300#define ECLKindex4 0x0400/* VBInfo */#define SetSimuScanMode 0x0001 /* CR 30 */#define SwitchToCRT2 0x0002#define SetCRT2ToAVIDEO 0x0004#define SetCRT2ToSVIDEO 0x0008#define SetCRT2ToSCART 0x0010#define SetCRT2ToLCD 0x0020#define SetCRT2ToRAMDAC 0x0040#define SetCRT2ToHiVisionTV 0x0080#define SetCRT2ToTV 0x009C /* alias */#define SetNTSCTV 0x0000 /* CR 31 */#define SetPALTV 0x0100#define SetInSlaveMode 0x0200#define SetNotSimuMode 0x0400#define SetNotSimuTVMode 0x0400#define SetDispDevSwitch 0x0800#define LoadDACFlag 0x1000#define SetCHTVOverScan 0x1000 /* TW: Re-defined (from 0x8000) */#define DisableCRT2Display 0x2000#define CRT2DisplayFlag 0x2000#define DriverMode 0x4000#define HotKeySwitch 0x8000 /* TW: ? */#define SetCRT2ToLCDA 0x8000#define PanelRGB18Bit 0x0100#define PanelRGB24Bit 0x0000#define TVOverScan 0x10 /* Bit in CR35 (300 series only) */#define TVOverScanShift 4#define ClearBufferFlag 0x20/* CR32 (Newer 630, and 310/325 series) [0] VB connected with CVBS [1] VB connected with SVHS [2] VB connected with SCART [3] VB connected with LCD [4] VB connected with CRT2 (secondary VGA) [5] CRT1 monitor is connected [6] VB connected with Hi-Vision TV [7] VB connected with DVI combo connector CR37 [0] Set 24/18 bit (0/1) RGB to LVDS/TMDS transmitter (set by BIOS) [3:1] External chip 300 series: 001 SiS301 (never seen) 010 LVDS 011 LVDS + Tumpion Zurac 100 LVDS + Chrontel 7005 110 Chrontel 7005 310/325 series 001 SiS30x (never seen) 010 LVDS 011 LVDS + Chrontel 7019 All other combinations reserved [4] LVDS: 0: Panel Link expands / 1: Panel Link does not expand 30x: 0: Bridge scales / 1: Bridge does not scale = Panel scales (if possible) [5] LCD polarity select 0: VESA DMT Standard 1: EDID 2.x defined [6] LCD horizontal polarity select 0: High active 1: Low active [7] LCD vertical polarity select 0: High active 1: Low active*//* CR37: LCDInfo */#define LCDRGB18Bit 0x0001#define LCDNonExpanding 0x0010#define DontExpandLCD LCDNonExpanding#define LCDNonExpandingShift 4#define DontExpandLCDShift LCDNonExpandingShift#define LCDSync 0x0020#define LCDPass11 0x0100 #define LCDSyncBit 0x00e0#define LCDSyncShift 6/* CR38 (310/325 series) */#define EnableDualEdge 0x01 #define SetToLCDA 0x02 /* LCD channel A (302B/LV and 650+LVDS only) */#define EnableSiSHiVision 0x04 /* HiVision (HDTV) on SiS bridge */#define EnableLVDSScart 0x04 /* Scart on Ch7019 (unofficial definition - TW) */#define EnableLVDSHiVision 0x08 /* YPbPr color format (480i HDTV); only on 650/Ch7019 systems */#define SiSHiVision1 0x10 /* See SetHiVision() */#define SiSHiVision2 0x20#define EnablePALM 0x40 /* 1 = Set PALM */#define EnablePALN 0x80 /* 1 = Set PALN */#define SetSCARTOutput 0x01#define BoardTVType 0x02#define EnablePALMN 0x40 /* Romflag: 1 = Allow PALM/PALN *//* CR39 (650) */#define LCDPass1_1 0x01 /* LVDS only; set by driver to pass 1:1 data to LVDS output */#define Enable302LV_DualLink 0x04 /* 30xNEW (302LV) only; set by mode switching function *//* CR79 (310/325 series only) [3-0] Notify driver 0001 Mode Switch event (set by BIOS) 0010 Epansion On/Off event 0011 TV UnderScan/OverScan event 0100 Set Brightness event 0101 Set Contrast event 0110 Set Mute event 0111 Set Volume Up/Down event [4] Enable Backlight Control by BIOS/driver (set by driver; set means that the BIOS should not touch the backlight registers because eg. the driver already switched off the backlight) [5] PAL/NTSC (set by BIOS) [6] Expansion On/Off (set by BIOS; copied to CR32[4]) [7] TV UnderScan/OverScan (set by BIOS)*//* SetFlag */#define ProgrammingCRT2 0x01#define TVSimuMode 0x02#define RPLLDIV2XO 0x04#define LCDVESATiming 0x08#define EnableLVDSDDA 0x10#define SetDispDevSwitchFlag 0x20#define CheckWinDos 0x40#define SetDOSMode 0x80/* LCDResInfo */#define Panel300_800x600 0x01 /* CR36 */#define Panel300_1024x768 0x02#define Panel300_1280x1024 0x03#define Panel300_1280x960 0x04#define Panel300_640x480 0x05#define Panel300_1024x600 0x06#define Panel300_1152x768 0x07#define Panel300_320x480 0x08 /* fstn - TW: This is fake, can be any */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -