1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51#ifndef _SISUSB_STRUCT_H_
52#define _SISUSB_STRUCT_H_
53
54struct SiS_St {
55 unsigned char St_ModeID;
56 unsigned short St_ModeFlag;
57 unsigned char St_StTableIndex;
58 unsigned char St_CRT2CRTC;
59 unsigned char St_ResInfo;
60 unsigned char VB_StTVFlickerIndex;
61 unsigned char VB_StTVEdgeIndex;
62 unsigned char VB_StTVYFilterIndex;
63 unsigned char St_PDC;
64};
65
66struct SiS_StandTable {
67 unsigned char CRT_COLS;
68 unsigned char ROWS;
69 unsigned char CHAR_HEIGHT;
70 unsigned short CRT_LEN;
71 unsigned char SR[4];
72 unsigned char MISC;
73 unsigned char CRTC[0x19];
74 unsigned char ATTR[0x14];
75 unsigned char GRC[9];
76};
77
78struct SiS_StResInfo_S {
79 unsigned short HTotal;
80 unsigned short VTotal;
81};
82
83struct SiS_Ext {
84 unsigned char Ext_ModeID;
85 unsigned short Ext_ModeFlag;
86 unsigned short Ext_VESAID;
87 unsigned char Ext_RESINFO;
88 unsigned char VB_ExtTVFlickerIndex;
89 unsigned char VB_ExtTVEdgeIndex;
90 unsigned char VB_ExtTVYFilterIndex;
91 unsigned char VB_ExtTVYFilterIndexROM661;
92 unsigned char REFindex;
93 char ROMMODEIDX661;
94};
95
96struct SiS_Ext2 {
97 unsigned short Ext_InfoFlag;
98 unsigned char Ext_CRT1CRTC;
99 unsigned char Ext_CRTVCLK;
100 unsigned char Ext_CRT2CRTC;
101 unsigned char Ext_CRT2CRTC_NS;
102 unsigned char ModeID;
103 unsigned short XRes;
104 unsigned short YRes;
105 unsigned char Ext_PDC;
106 unsigned char Ext_FakeCRT2CRTC;
107 unsigned char Ext_FakeCRT2Clk;
108};
109
110struct SiS_CRT1Table {
111 unsigned char CR[17];
112};
113
114struct SiS_VCLKData {
115 unsigned char SR2B, SR2C;
116 unsigned short CLOCK;
117};
118
119struct SiS_ModeResInfo {
120 unsigned short HTotal;
121 unsigned short VTotal;
122 unsigned char XChar;
123 unsigned char YChar;
124};
125
126struct SiS_Private {
127 void *sisusb;
128
129 unsigned long IOAddress;
130
131 unsigned long SiS_P3c4;
132 unsigned long SiS_P3d4;
133 unsigned long SiS_P3c0;
134 unsigned long SiS_P3ce;
135 unsigned long SiS_P3c2;
136 unsigned long SiS_P3ca;
137 unsigned long SiS_P3c6;
138 unsigned long SiS_P3c7;
139 unsigned long SiS_P3c8;
140 unsigned long SiS_P3c9;
141 unsigned long SiS_P3cb;
142 unsigned long SiS_P3cc;
143 unsigned long SiS_P3cd;
144 unsigned long SiS_P3da;
145 unsigned long SiS_Part1Port;
146
147 unsigned char SiS_MyCR63;
148 unsigned short SiS_CRT1Mode;
149 unsigned short SiS_ModeType;
150 unsigned short SiS_SetFlag;
151
152 const struct SiS_StandTable *SiS_StandTable;
153 const struct SiS_St *SiS_SModeIDTable;
154 const struct SiS_Ext *SiS_EModeIDTable;
155 const struct SiS_Ext2 *SiS_RefIndex;
156 const struct SiS_CRT1Table *SiS_CRT1Table;
157 const struct SiS_VCLKData *SiS_VCLKData;
158 const struct SiS_ModeResInfo *SiS_ModeResInfo;
159};
160
161#endif
162