📄 300vtbl.h
字号:
/* Register settings for SiS 300 series */typedef struct _SiS300_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;} SiS300_StStruct;static const SiS300_StStruct SiS300_SModeIDTable[] ={ {0x01,0x9208,0x01,0x00,0x00,0x00,0x00,0x00}, {0x01,0x1210,0x14,0x01,0x01,0x00,0x00,0x00}, {0x01,0x1010,0x17,0x02,0x02,0x00,0x00,0x00}, {0x03,0x8208,0x03,0x00,0x00,0x00,0x00,0x00}, {0x03,0x0210,0x16,0x01,0x01,0x00,0x00,0x00}, {0x03,0x0010,0x18,0x02,0x02,0x00,0x00,0x00}, {0x05,0x9209,0x05,0x00,0x00,0x00,0x00,0x00}, {0x06,0x8209,0x06,0x00,0x00,0x00,0x00,0x00}, {0x07,0x0000,0x07,0x03,0x03,0x00,0x00,0x00}, {0x07,0x0000,0x19,0x02,0x02,0x00,0x00,0x00}, {0x0d,0x920a,0x0d,0x00,0x00,0x00,0x00,0x00}, {0x0e,0x820a,0x0e,0x00,0x00,0x00,0x00,0x00}, {0x0f,0x0202,0x11,0x01,0x01,0x00,0x00,0x00}, {0x10,0x0212,0x12,0x01,0x01,0x00,0x00,0x00}, {0x11,0x0212,0x1a,0x04,0x04,0x00,0x00,0x00}, {0x12,0x0212,0x1b,0x04,0x04,0x00,0x00,0x00}, {0x13,0x021b,0x1c,0x00,0x00,0x00,0x00,0x00}, {0x12,0x0010,0x18,0x02,0x02,0x00,0x00,0x00}, {0x12,0x0210,0x18,0x01,0x01,0x00,0x00,0x00}, {0xff, 0, 0, 0, 0, 0, 0, 0}};typedef struct _SiS300_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];} SiS300_StandTableStruct;static const SiS300_StandTableStruct SiS300_StandTable[] ={ {0x28,0x18,0x08,0x0800, /* 0x00 */ {0x09,0x03,0x00,0x02}, 0x63, {0x2d,0x27,0x28,0x90,0x2b,0xa0,0xbf,0x1f, 0x00,0xc7,0x06,0x07,0x00,0x00,0x00,0x00, 0x9c,0x8e,0x8f,0x14,0x1f,0x96,0xb9,0xa3, 0xff}, {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07, 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x08,0x00,0x0f,0x00}, {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00, 0xff} }, {0x28,0x18,0x08,0x0800, /* 0x01 */ {0x09,0x03,0x00,0x02}, 0x63, {0x2d,0x27,0x28,0x90,0x2b,0xa0,0xbf,0x1f, 0x00,0xc7,0x06,0x07,0x00,0x00,0x00,0x00, 0x9c,0x8e,0x8f,0x14,0x1f,0x96,0xb9,0xa3, 0xff}, {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07, 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x08,0x00,0x0f,0x00}, {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00, 0xff} }, {0x50,0x18,0x08,0x1000, /* 0x02 */ {0x01,0x03,0x00,0x02}, 0x63, {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f, 0x00,0xc7,0x06,0x07,0x00,0x00,0x00,0x00, 0x9c,0x8e,0x8f,0x28,0x1f,0x96,0xb9,0xa3, 0xff}, {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07, 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x08,0x00,0x0f,0x00}, {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00, 0xff} }, {0x50,0x18,0x08,0x1000, /* 0x03 */ {0x01,0x03,0x00,0x02}, 0x63, {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f, 0x00,0xc7,0x06,0x07,0x00,0x00,0x00,0x00, 0x9c,0x8e,0x8f,0x28,0x1f,0x96,0xb9,0xa3, 0xff}, {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07, 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x08,0x00,0x0f,0x00}, {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00, 0xff} }, {0x28,0x18,0x08,0x4000, /* 0x04 */ {0x09,0x03,0x00,0x02}, 0x63, {0x2d,0x27,0x28,0x90,0x2b,0x80,0xbf,0x1f, 0x00,0xc1,0x00,0x00,0x00,0x00,0x00,0x00, 0x9c,0x8e,0x8f,0x14,0x00,0x96,0xb9,0xa2, 0xff}, {0x00,0x13,0x15,0x17,0x02,0x04,0x06,0x07, 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x01,0x00,0x03,0x00}, {0x00,0x00,0x00,0x00,0x00,0x30,0x0f,0x00, 0xff} }, {0x28,0x18,0x08,0x4000, /* 0x05 */ {0x09,0x03,0x00,0x02}, 0x63, {0x2d,0x27,0x28,0x90,0x2b,0x80,0xbf,0x1f, 0x00,0xc1,0x00,0x00,0x00,0x00,0x00,0x00, 0x9c,0x8e,0x8f,0x14,0x00,0x96,0xb9,0xa2, 0xff}, {0x00,0x13,0x15,0x17,0x02,0x04,0x06,0x07, 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x01,0x00,0x03,0x00}, {0x00,0x00,0x00,0x00,0x00,0x30,0x0f,0x00, 0xff} }, {0x50,0x18,0x08,0x4000, /* 0x06 */ {0x01,0x01,0x00,0x06}, 0x63, {0x5f,0x4f,0x50,0x82,0x54,0x80,0xbf,0x1f, 0x00,0xc1,0x00,0x00,0x00,0x00,0x00,0x00, 0x9c,0x8e,0x8f,0x28,0x00,0x96,0xb9,0xc2, 0xff}, {0x00,0x17,0x17,0x17,0x17,0x17,0x17,0x17, 0x17,0x17,0x17,0x17,0x17,0x17,0x17,0x17, 0x01,0x00,0x01,0x00}, {0x00,0x00,0x00,0x00,0x00,0x00,0x0d,0x00, 0xff} }, {0x50,0x18,0x0e,0x1000, /* 0x07 */ {0x00,0x03,0x00,0x03}, 0xa6, {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f, 0x00,0x4d,0x0b,0x0c,0x00,0x00,0x00,0x00, 0x83,0x85,0x5d,0x28,0x0d,0x63,0xba,0xa3, 0xff}, {0x00,0x08,0x08,0x08,0x08,0x08,0x08,0x08, 0x10,0x18,0x18,0x18,0x18,0x18,0x18,0x18, 0x0e,0x00,0x0f,0x08}, {0x00,0x00,0x00,0x00,0x00,0x10,0x0a,0x00, 0xff} },/* MDA_DAC*/ {0x00,0x00,0x00,0x0000, /* 0x08 */ {0x00,0x00,0x00,0x15}, 0x15, {0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15, 0x15,0x15,0x15,0x15,0x15,0x15,0x3f,0x3f, 0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x00,0x00, 0x00}, {0x00,0x00,0x00,0x00,0x00,0x15,0x15,0x15, 0x15,0x15,0x15,0x15,0x15,0x15,0x15,0x15, 0x15,0x15,0x15,0x15}, {0x15,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f, 0x3f} },/* CGA_DAC*/ {0x00,0x10,0x04,0x0114, /* 0x09 */ {0x11,0x09,0x15,0x00}, 0x10, {0x04,0x14,0x01,0x11,0x09,0x15,0x2a,0x3a, 0x2e,0x3e,0x2b,0x3b,0x2f,0x3f,0x2a,0x3a, 0x2e,0x3e,0x2b,0x3b,0x2f,0x3f,0x00,0x10, 0x04}, {0x14,0x01,0x11,0x09,0x15,0x00,0x10,0x04, 0x14,0x01,0x11,0x09,0x15,0x2a,0x3a,0x2e, 0x3e,0x2b,0x3b,0x2f}, {0x3f,0x2a,0x3a,0x2e,0x3e,0x2b,0x3b,0x2f, 0x3f} },/* EGA_DAC*/ {0x00,0x10,0x04,0x0114, /* 0x0a */ {0x11,0x05,0x15,0x20}, 0x30, {0x24,0x34,0x21,0x31,0x25,0x35,0x08,0x18, 0x0c,0x1c,0x09,0x19,0x0d,0x1d,0x28,0x38, 0x2c,0x3c,0x29,0x39,0x2d,0x3d,0x02,0x12, 0x06}, {0x16,0x03,0x13,0x07,0x17,0x22,0x32,0x26, 0x36,0x23,0x33,0x27,0x37,0x0a,0x1a,0x0e, 0x1e,0x0b,0x1b,0x0f}, {0x1f,0x2a,0x3a,0x2e,0x3e,0x2b,0x3b,0x2f, 0x3f} },/* VGA_DAC*/ {0x00,0x10,0x04,0x0114, /* 0x0b */ {0x11,0x09,0x15,0x2a}, 0x3a, {0x2e,0x3e,0x2b,0x3b,0x2f,0x3f,0x00,0x05, 0x08,0x0b,0x0e,0x11,0x14,0x18,0x1c,0x20, 0x24,0x28,0x2d,0x32,0x38,0x3f,0x00,0x10, 0x1f}, {0x2f,0x3f,0x1f,0x27,0x2f,0x37,0x3f,0x2d, 0x31,0x36,0x3a,0x3f,0x00,0x07,0x0e,0x15, 0x1c,0x0e,0x11,0x15}, {0x18,0x1c,0x14,0x16,0x18,0x1a,0x1c,0x00, 0x04} }, {0x08,0x0c,0x10,0x0a08, /* 0x0c */ {0x0c,0x0e,0x10,0x0b}, 0x0c, {0x0d,0x0f,0x10,0x10,0x01,0x08,0x00,0x00, 0x00,0x00,0x01,0x00,0x02,0x02,0x01,0x00, 0x04,0x04,0x01,0x00,0x05,0x02,0x05,0x00, 0x06}, {0x01,0x06,0x05,0x06,0x00,0x08,0x01,0x08, 0x00,0x07,0x02,0x07,0x06,0x07,0x00,0x00, 0x00,0x00,0x00,0x00}, {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00} }, {0x28,0x18,0x08,0x2000, /* 0x0d */ {0x09,0x0f,0x00,0x06}, 0x63, {0x2d,0x27,0x28,0x90,0x2b,0x80,0xbf,0x1f, 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00, 0x9c,0x8e,0x8f,0x14,0x00,0x96,0xb9,0xe3, 0xff}, {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07, 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x01,0x00,0x0f,0x00}, {0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f, 0xff} }, {0x50,0x18,0x08,0x4000, /* 0x0e */ {0x01,0x0f,0x00,0x06}, 0x63, {0x5f,0x4f,0x50,0x82,0x54,0x80,0xbf,0x1f, 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00, 0x9c,0x8e,0x8f,0x28,0x00,0x96,0xb9,0xe3, 0xff}, {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07, 0x10,0x11,0x12,0x13,0x14,0x15,0x16,0x17, 0x01,0x00,0x0f,0x00}, {0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f, 0xff} }, {0x00,0x00,0x00,0x0000, /* 0x0f */ /* TW: Standtable for VGA modes */ {0x01,0x0f,0x00,0x0e}, 0x23, {0x5f,0x4f,0x50,0x82,0x54,0x80,0x0b,0x3e, 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00, 0xea,0x8c,0xdf,0x28,0x40,0xe7,0x04,0xa3, 0xff}, {0x00,0x01,0x02,0x03,0x04,0x05,0x06,0x07, 0x08,0x09,0x0a,0x0b,0x0c,0x0d,0x0e,0x0f, 0x01,0x00,0x00,0x00}, {0x00,0x00,0x00,0x00,0x00,0x40,0x05,0x0f, 0xff} }, {0x4a,0x36,0x00,0x00c0, /* 0x10 */ {0x00,0x00,0x00,0x00}, 0x00, {0x00,0x00,0x00,0x00,0x00,0x00,0x66,0x3a, 0x00,0xc0,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x1a,0x00,0x57,0x39,0x00,0xc0, 0x00}, {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00}, {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00} }, {0x50,0x18,0x0e,0x8000, /* 0x11 */ {0x01,0x0f,0x00,0x06}, 0xa2, {0x5f,0x4f,0x50,0x82,0x54,0x80,0xbf,0x1f, 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00, 0x83,0x85,0x5d,0x28,0x0f,0x63,0xba,0xe3, 0xff}, {0x00,0x08,0x00,0x00,0x18,0x18,0x00,0x00, 0x00,0x08,0x00,0x00,0x00,0x18,0x00,0x00, 0x0b,0x00,0x05,0x00}, {0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x05, 0xff} }, {0x50,0x18,0x0e,0x8000, /* 0x12 */ {0x01,0x0f,0x00,0x06}, 0xa3, {0x5f,0x4f,0x50,0x82,0x54,0x80,0xbf,0x1f, 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00, 0x83,0x85,0x5d,0x28,0x0f,0x63,0xba,0xe3, 0xff}, {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x01,0x00,0x0f,0x00}, {0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x0f, 0xff} }, {0x28,0x18,0x0e,0x0800, /* 0x13 */ {0x09,0x03,0x00,0x02}, 0xa3, {0x2d,0x27,0x28,0x90,0x2b,0xa0,0xbf,0x1f, 0x00,0x4d,0x0b,0x0c,0x00,0x00,0x00,0x00, 0x83,0x85,0x5d,0x14,0x1f,0x63,0xba,0xa3, 0xff}, {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x08,0x00,0x0f,0x00}, {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00, 0xff} }, {0x28,0x18,0x0e,0x0800, /* 0x14 */ {0x09,0x03,0x00,0x02}, 0xa3, {0x2d,0x27,0x28,0x90,0x2b,0xa0,0xbf,0x1f, 0x00,0x4d,0x0b,0x0c,0x00,0x00,0x00,0x00, 0x83,0x85,0x5d,0x14,0x1f,0x63,0xba,0xa3, 0xff}, {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x08,0x00,0x0f,0x00}, {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00, 0xff} }, {0x50,0x18,0x0e,0x1000, /* 0x15 */ {0x01,0x03,0x00,0x02}, 0xa3, {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f, 0x00,0x4d,0x0b,0x0c,0x00,0x00,0x00,0x00, 0x83,0x85,0x5d,0x28,0x1f,0x63,0xba,0xa3, 0xff}, {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x08,0x00,0x0f,0x00}, {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00, 0xff} }, {0x50,0x18,0x0e,0x1000, /* 0x16 */ {0x01,0x03,0x00,0x02}, 0xa3, {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f, 0x00,0x4d,0x0b,0x0c,0x00,0x00,0x00,0x00, 0x83,0x85,0x5d,0x28,0x1f,0x63,0xba,0xa3, 0xff}, {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x08,0x00,0x0f,0x00}, {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00, 0xff} }, {0x28,0x18,0x10,0x0800, /* 0x17 */ {0x08,0x03,0x00,0x02}, 0x67, {0x2d,0x27,0x28,0x90,0x2b,0xa0,0xbf,0x1f, 0x00,0x4f,0x0d,0x0e,0x00,0x00,0x00,0x00, 0x9c,0x8e,0x8f,0x14,0x1f,0x96,0xb9,0xa3, 0xff}, {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x0c,0x00,0x0f,0x08}, {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00, 0xff} }, {0x50,0x18,0x10,0x1000, /* 0x18 */ {0x00,0x03,0x00,0x02}, 0x67, {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f, 0x00,0x4f,0x0d,0x0e,0x00,0x00,0x00,0x00, 0x9c,0x8e,0x8f,0x28,0x1f,0x96,0xb9,0xa3, 0xff}, {0x00,0x01,0x02,0x03,0x04,0x05,0x14,0x07, 0x38,0x39,0x3a,0x3b,0x3c,0x3d,0x3e,0x3f, 0x0c,0x00,0x0f,0x08}, {0x00,0x00,0x00,0x00,0x00,0x10,0x0e,0x00, 0xff} }, {0x50,0x18,0x10,0x1000, /* 0x19 */ {0x00,0x03,0x00,0x02}, 0x66, {0x5f,0x4f,0x50,0x82,0x55,0x81,0xbf,0x1f, 0x00,0x4f,0x0d,0x0e,0x00,0x00,0x00,0x00, 0x9c,0x8e,0x8f,0x28,0x0f,0x96,0xb9,0xa3, 0xff}, {0x00,0x08,0x08,0x08,0x08,0x08,0x08,0x08, 0x10,0x18,0x18,0x18,0x18,0x18,0x18,0x18, 0x0e,0x00,0x0f,0x08}, {0x00,0x00,0x00,0x00,0x00,0x10,0x0a,0x00, 0xff} }, {0x50,0x1d,0x10,0xa000, /* 0x1a */ {0x01,0x0f,0x00,0x06}, 0xe3, {0x5f,0x4f,0x50,0x82,0x54,0x80,0x0b,0x3e, 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00, 0xea,0x8c,0xdf,0x28,0x00,0xe7,0x04,0xc3, 0xff}, {0x00,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f, 0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f,0x3f, 0x01,0x00,0x0f,0x00}, {0x00,0x00,0x00,0x00,0x00,0x00,0x05,0x01, 0xff} }, {0x50,0x1d,0x10,0xa000, /* 0x1b */ {0x01,0x0f,0x00,0x06}, 0xe3, {0x5f,0x4f,0x50,0x82,0x54,0x80,0x0b,0x3e, 0x00,0x40,0x00,0x00,0x00,0x00,0x00,0x00, 0xea,0x8c,0xdf,0x28,0x00,0xe7,0x04,0xe3, 0xff},
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -