📄 310vtbl.h
字号:
typedef struct _SiS310_VBVCLKDataStruct{ UCHAR Part4_A,Part4_B; USHORT CLOCK;} SiS310_VBVCLKDataStruct;static const SiS310_VBVCLKDataStruct SiS310_VBVCLKData[]={ { 0x1b,0xe1, 25}, /* 0x0 */ { 0x4e,0xe4, 28}, /* 0x1 */ { 0x57,0xe4, 31}, /* 0x2 */ { 0xc3,0xc8, 36}, /* 0x3 */ { 0x42,0x47, 40}, /* 0x4 */ { 0xfe,0xcd, 43}, /* 0x5 */ { 0x5d,0xc4, 44}, /* 0x6 */ { 0x52,0x47, 49}, /* 0x7 */ { 0x53,0x47, 50}, /* 0x8 */ { 0x74,0x67, 52}, /* 0x9 */ { 0x6d,0x66, 56}, /* 0xa */ { 0x35,0x62, 65}, /* 0xb */ /* Was 0x5a,0x64 - 650/LVDS+301 bios: 35,62 */ { 0x46,0x44, 67}, /* 0xc */ { 0xb1,0x46, 68}, /* 0xd */ { 0xd3,0x4a, 72}, /* 0xe */ { 0x29,0x61, 75}, /* 0xf */ { 0x6d,0x46, 75}, /* 0x10 */ { 0x41,0x43, 78}, /* 0x11 */ { 0x31,0x42, 79}, /* 0x12 */ { 0xab,0x44, 83}, /* 0x13 */ { 0x46,0x25, 84}, /* 0x14 */ { 0x78,0x29, 86}, /* 0x15 */ { 0x62,0x44, 94}, /* 0x16 */ { 0x2b,0x22,104}, /* 0x17 */ { 0x49,0x24,105}, /* 0x18 */ { 0xf8,0x2f,108}, /* 0x19 */ { 0x3c,0x23,109}, /* 0x1a */ { 0x5e,0x43,113}, /* 0x1b */ { 0xbc,0x44,116}, /* 0x1c */ { 0xe0,0x46,132}, /* 0x1d */ { 0xd4,0x28,135}, /* 0x1e */ { 0xea,0x2a,139}, /* 0x1f */ { 0x41,0x22,157}, /* 0x20 */ { 0x70,0x24,162}, /* 0x21 */ { 0x30,0x21,175}, /* 0x22 */ { 0x4e,0x22,189}, /* 0x23 */ { 0xde,0x26,194}, /* 0x24 */ { 0x70,0x07,202}, /* 0x25 */ { 0x3f,0x03,229}, /* 0x26 */ { 0xb8,0x06,234}, /* 0x27 */ { 0x34,0x02,253}, /* 0x28 */ { 0x58,0x04,255}, /* 0x29 */ { 0x24,0x01,265}, /* 0x2a */ { 0x9b,0x02,267}, /* 0x2b */ { 0x70,0x05,270}, /* 0x2c */ { 0x25,0x01,272}, /* 0x2d */ { 0x9c,0x02,277}, /* 0x2e */ { 0x27,0x01,286}, /* 0x2f */ { 0x3c,0x02,291}, /* 0x30 */ { 0xef,0x0a,292}, /* 0x31 */ { 0xf6,0x0a,310}, /* 0x32 */ { 0x95,0x01,315}, /* 0x33 */ { 0xf0,0x09,324}, /* 0x34 */ { 0xfe,0x0a,331}, /* 0x35 */ { 0xf3,0x09,332}, /* 0x36 */ { 0xea,0x08,340}, /* 0x37 */ { 0xe8,0x07,376}, /* 0x38 */ { 0xde,0x06,389}, /* 0x39 */ { 0x52,0x2a, 54}, /* 0x3a */ { 0x52,0x6a, 27}, /* 0x3b */ { 0x62,0x24, 70}, /* 0x3c */ { 0x62,0x64, 70}, /* 0x3d */ { 0xa8,0x4c, 30}, /* 0x3e */ { 0x20,0x26, 33}, /* 0x3f */ { 0x31,0xc2, 39}, /* 0x40 */ { 0x2e,0x48, 25}, /* 0x41 */ { 0x24,0x46, 25}, /* 0x42 */ { 0x26,0x64, 28}, /* 0x43 */ { 0x37,0x64, 40}, /* 0x44 */ { 0xa1,0x42,108}, /* 0x45 */ { 0x37,0x61,100}, /* 0x46 */ { 0x78,0x27,108}, /* 0x47 */ { 0x97,0x2c, 26}, /* 0x48 */ /* UNUSED - Entries from here new, not in any BIOS */ { 0xce,0x3c, 39}, /* 0x49 */ /* UNUSED */ { 0x52,0x4a, 36}, /* 0x4a */ /* UNUSED */ { 0x34,0x61, 95}, /* 0x4b */ /* UNUSED */ { 0x78,0x27,108}, /* 0x4c */ /* UNUSED */ { 0x66,0x43,123}, /* 0x4d */ /* 1400x1050-60 */ { 0x41,0x4e, 21}, /* 0x4e */ /* UNUSED */ { 0xa1,0x4a, 29}, /* 0x4f */ /* UNUSED */ { 0x19,0x42, 42}, /* 0x50 */ /* UNUSED */ { 0x54,0x46, 58}, /* 0x51 */ /* UNUSED */ { 0x25,0x42, 61}, /* 0x52 */ /* UNUSED */ { 0x44,0x44, 66}, /* 0x53 */ /* UNUSED */ { 0x3a,0x62, 70}, /* 0x54 */ /* UNUSED */ { 0x62,0xc6, 34}, /* 0x55 */ /* 848x480-60 */ { 0x6a,0xc6, 37}, /* 0x56 */ /* 848x480-75 - TEMP, UNUSED */ { 0xbf,0xc8, 35}, /* 0x57 */ /* 856x480-38i,60 */ { 0x30,0x23, 88}, /* 0x58 */ /* 1360x768-62 (is 60Hz!) TEMP, UNUSED */ { 0x52,0x07,149}, /* 0x59 */ /* 1280x960-85 - UNUSED */ { 0x56,0x07,156}, /* 0x5a */ /* 1400x1050-75 - UNUSED */ { 0x7a,0x2a, 81} /* 0x5b */ /* For 1280x768 LCD mode */};static const UCHAR SiS310_ScreenOffset[] = { 0x14,0x19,0x20,0x28,0x32,0x40,0x50,0x64, 0x78,0x80,0x2d,0x35,0x57,0x48,0x55, 0xff}; /* TW: Added 1400x1050, 1152x864, 848/856x480, 1360x768 */typedef struct _SiS310_StResInfoStruct{ USHORT HTotal; USHORT VTotal;} SiS310_StResInfoStruct;static const SiS310_StResInfoStruct SiS310_StResInfo[]={ { 640,400}, { 640,350}, { 720,400}, { 720,350}, { 640,480}};typedef struct _SiS310_ModeResInfoStruct{ USHORT HTotal; USHORT VTotal; UCHAR XChar; UCHAR YChar;} SiS310_ModeResInfoStruct;static const SiS310_ModeResInfoStruct SiS310_ModeResInfo[] ={ { 320, 200, 8, 8}, /* 0x00 */ { 320, 240, 8, 8}, /* 0x01 */ { 320, 400, 8, 8}, /* 0x02 */ { 400, 300, 8, 8}, /* 0x03 */ { 512, 384, 8, 8}, /* 0x04 */ { 640, 400, 8,16}, /* 0x05 */ { 640, 480, 8,16}, /* 0x06 */ { 800, 600, 8,16}, /* 0x07 */ { 1024, 768, 8,16}, /* 0x08 */ { 1280,1024, 8,16}, /* 0x09 */ { 1600,1200, 8,16}, /* 0x0a */ { 1920,1440, 8,16}, /* 0x0b */ { 2048,1536, 8,16}, /* 0x0c */ { 720, 480, 8,16}, /* 0x0d */ { 720, 576, 8,16}, /* 0x0e */ { 1280, 960, 8,16}, /* 0x0f */ { 800, 480, 8,16}, /* 0x10 */ { 1024, 576, 8,16}, /* 0x11 */ { 1280, 720, 8,16}, /* 0x12 */ { 856, 480, 8,16}, /* 0x13 - TW: New, not in any BIOS */ { 1280, 768, 8,16}, /* 0x14 20; TW: New */ { 1400,1050, 8,16}, /* 0x15 21; TW: New */ { 1152, 864, 8,16}, /* 0x16 - TW: New, not in any BIOS */ { 848, 480, 8,16}, /* 0x17 - TW: New, not in any BIOS */ { 1360, 768, 8,16} /* 0x18 - TW: New, not in any BIOS */};static const UCHAR SiS310_OutputSelect = 0x40;static const UCHAR SiS310_SoftSetting = 0x30; /* TW: RAM setting */static const UCHAR SiS310_SR15[8][4]={ {0x00,0x04,0x60,0x60}, {0x0f,0x0f,0x0f,0x0f}, {0xba,0xba,0xba,0xba}, {0xa9,0xa9,0xac,0xac}, {0xa0,0xa0,0xa0,0xa8}, {0x00,0x00,0x02,0x02}, {0x30,0x30,0x40,0x40}, {0x00,0xa5,0xfb,0xf6}};#ifndef LINUX_XF86static UCHAR SiS310_SR07 = 0x18;static const UCHAR SiS310_CR40[5][4]={ {0x77,0x77,0x33,0x33}, {0x77,0x77,0x33,0x33}, {0x00,0x00,0x00,0x00}, {0x5b,0x5b,0x03,0x03}, {0x00,0x00,0xf0,0xf8}};static UCHAR SiS310_CR49[] = {0xaa,0x88};static UCHAR SiS310_SR1F = 0x00;static UCHAR SiS310_SR21 = 0xa5;static UCHAR SiS310_SR22 = 0xfb;static UCHAR SiS310_SR23 = 0xf6;static UCHAR SiS310_SR24 = 0x0d;static UCHAR SiS310_SR25[] = {0x33,0x3};static UCHAR SiS310_SR31 = 0x00;static UCHAR SiS310_SR32 = 0x11;static UCHAR SiS310_SR33 = 0x00;static UCHAR SiS310_CRT2Data_1_2 = 0x00;static UCHAR SiS310_CRT2Data_4_D = 0x00;static UCHAR SiS310_CRT2Data_4_E = 0x00;static UCHAR SiS310_CRT2Data_4_10 = 0x80;static const USHORT SiS310_RGBSenseData = 0xd1;static const USHORT SiS310_VideoSenseData = 0xb9;static const USHORT SiS310_YCSenseData = 0xb3;static const USHORT SiS310_RGBSenseData2 = 0x0190; static const USHORT SiS310_VideoSenseData2 = 0x0174;static const USHORT SiS310_YCSenseData2 = 0x016b;#endifstatic const UCHAR SiS310_NTSCPhase[] = {0x21,0xed,0xba,0x08}; /* TW: Was {0x21,0xed,0x8a,0x08}; */static const UCHAR SiS310_PALPhase[] = {0x2a,0x05,0xe3,0x00}; /* TW: Was {0x2a,0x05,0xd3,0x00}; */static const UCHAR SiS310_PALMPhase[] = {0x21,0xE4,0x2E,0x9B}; /* TW: palm*/static const UCHAR SiS310_PALNPhase[] = {0x21,0xF4,0x3E,0xBA}; /* TW: paln*/static const UCHAR SiS310_NTSCPhase2[] = {0x21,0xF0,0x7B,0xD6};static const UCHAR SiS310_PALPhase2[] = {0x2a,0x09,0x86,0xe9};static const UCHAR SiS310_PALMPhase2[] = {0x21,0xE6,0xEF,0xA4}; /* TW: palm 301b*/static const UCHAR SiS310_PALNPhase2[] = {0x21,0xF6,0x94,0x46}; /* TW: paln 301b*/static const UCHAR SiS310_SpecialPhase[] = {0x1e,0x8c,0x5c,0x7a};typedef struct _SiS310_LCDDataStruct{ USHORT RVBHCMAX; USHORT RVBHCFACT; USHORT VGAHT; USHORT VGAVT; USHORT LCDHT; USHORT LCDVT;} SiS310_LCDDataStruct;static const SiS310_LCDDataStruct SiS310_StLCD1024x768Data[]={ { 62, 25, 800, 546,1344, 806}, { 32, 15, 930, 546,1344, 806}, { 32, 15, 930, 546,1344, 806}, { 104, 45, 945, 496,1344, 806}, { 62, 25, 800, 546,1344, 806}, { 31, 18,1008, 624,1344, 806}, { 1, 1,1344, 806,1344, 806}};#if 0 /* Seems out-dated, all BIOSes since 03/27/2002 have the other version */static const SiS310_LCDDataStruct SiS310_ExtLCD1024x768Data[] = { { 12, 5, 896, 512,1344, 806}, { 12, 5, 896, 510,1344, 806}, { 32, 15,1008, 505,1344, 806}, { 32, 15,1008, 514,1344, 806}, { 12, 5, 896, 500,1344, 806}, { 42, 25,1024, 625,1344, 806}, { 1, 1,1344, 806,1344, 806}, { 12, 5, 896, 500,1344, 806}, { 42, 25,1024, 625,1344, 806}, { 1, 1,1344, 806,1344, 806}, { 12, 5, 896, 500,1344, 806}, { 42, 25,1024, 625,1344, 806}, { 1, 1,1344, 806,1344, 806}};#endifstatic const SiS310_LCDDataStruct SiS310_ExtLCD1024x768Data[] = { { 42, 25,1536, 419,1344, 806}, { 48, 25,1536, 369,1344, 806}, { 42, 25,1536, 419,1344, 806}, { 48, 25,1536, 369,1344, 806}, { 12, 5, 896, 500,1344, 806}, { 42, 25,1024, 625,1344, 806}, { 1, 1,1344, 806,1344, 806}, { 12, 5, 896, 500,1344, 806}, { 42, 25,1024, 625,1344, 806}, { 1, 1,1344, 806,1344, 806}, { 12, 5, 896, 500,1344, 806}, { 42, 25,1024, 625,1344, 806}, { 1, 1,1344, 806,1344, 806} };static const SiS310_LCDDataStruct SiS310_St2LCD1024x768Data[] = { { 62, 25, 800, 546,1344, 806}, { 32, 15, 930, 546,1344, 806}, { 62, 25, 800, 546,1344, 806}, { 104, 45, 945, 496,1344, 806}, { 62, 25, 800, 546,1344, 806}, { 31, 18,1008, 624,1344, 806}, { 1, 1,1344, 806,1344, 806}};static const SiS310_LCDDataStruct SiS310_StLCD1280x1024Data[] ={ { 22, 5, 800, 510,1650,1088}, { 22, 5, 800, 510,1650,1088}, { 176, 45, 900, 510,1650,1088}, { 176, 45, 900, 510,1650,1088}, { 22, 5, 800, 510,1650,1088}, { 13, 5,1024, 675,1560,1152}, { 16, 9,1266, 804,1688,1072}, { 1, 1,1688,1066,1688,1066}};static const SiS310_LCDDataStruct SiS310_ExtLCD1280x1024Data[] = { { 211, 60,1024, 501,1688,1066}, { 211, 60,1024, 508,1688,1066}, { 211, 60,1024, 501,1688,1066}, { 211, 60,1024, 508,1688,1066}, { 211, 60,1024, 500,1688,1066}, { 211, 75,1024, 625,1688,1066}, { 211, 120,1280, 798,1688,1066}, { 1, 1,1688,1066,1688,1066}, { 1, 1,1800,1000,1688,1066} /* 1280x960 - does not work, use panel scaler instead */};static const SiS310_LCDDataStruct SiS310_St2LCD1280x1024Data[] ={ { 22, 5, 800, 510,1650,1088}, { 22, 5, 800, 510,1650,1088}, { 176, 45, 900, 510,1650,1088}, { 176, 45, 900, 510,1650,1088}, { 22, 5, 800, 510,1650,1088}, { 13, 5,1024, 675,1560,1152}, { 16, 9,1266, 804,1688,1072}, { 1, 1,1688,1066,1688,1066}};static const SiS310_LCDDataStruct SiS310_NoScaleData1024x768[] = { { 1, 1,1344, 806,1344, 806}, { 1, 1,1344, 806,1344, 806}, { 1, 1,1344, 806,1344, 806}, { 1, 1,1344, 806,1344, 806}, /* 640x400 - does not work */ { 1, 1,1344, 806,1344, 806}, /* 640x480 - does not work */ { 1, 1,1344, 806,1344, 806}, { 1, 1,1344, 806,1344, 806}, { 1, 1,1344, 806,1344, 806}};static const SiS310_LCDDataStruct SiS310_NoScaleData1280x1024[] = { { 1, 1,1688,1066,1688,1066}, { 1, 1,1688,1066,1688,1066}, { 1, 1,1688,1066,1688,1066}, { 1, 1,1688,1066,1688,1066}, { 1, 1,1688,1066,1688,1066}, { 1, 1,1688,1066,1688,1066}, { 1, 1,1688,1066,1688,1066}, { 1, 1,1688,1066,1688,1066}, { 1, 1,1688,1066,1688,1066}};static const SiS310_LCDDataStruct SiS310_LCD1280x960Data[] ={ { 9, 2, 800, 500,1800,1000}, { 9, 2, 800, 500,1800,1000}, { 4, 1, 900, 500,1800,1000}, { 4, 1, 900, 500,1800,1000}, { 9, 2, 800, 500,1800,1000}, { 30, 11,1056, 625,1800,1000}, { 5, 3,1350, 800,1800,1000}, { 1, 1,1576,1050,1576,1050}, { 1, 1,1800,1000,1800,1000}};static const SiS310_LCDDataStruct SiS310_StLCD1400x1050Data[] ={ /* TW: New from 1.11.6s */ { 211, 100, 2100, 408, 1688, 1066 }, { 211, 64, 1536, 358, 1688, 1066 }, { 211, 100, 2100, 408, 1688, 1066 }, { 211, 64, 1536, 358, 1688, 1066 }, { 211, 48, 840, 488, 1688, 1066 }, { 211, 72, 1008, 609, 1688, 1066 }, { 211, 128, 1400, 776, 1688, 1066 },
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -