Root/drivers/staging/xgifb/vb_struct.h

1#ifndef _VB_STRUCT_
2#define _VB_STRUCT_
3#include "../../video/sis/vstruct.h"
4
5struct XGI_LVDSCRT1HDataStruct {
6    unsigned char Reg[8];
7};
8
9struct XGI_LVDSCRT1VDataStruct {
10    unsigned char Reg[7];
11};
12
13struct XGI_ExtStruct {
14    unsigned char Ext_ModeID;
15    unsigned short Ext_ModeFlag;
16    unsigned short Ext_ModeInfo;
17    unsigned char Ext_RESINFO;
18    unsigned char VB_ExtTVYFilterIndex;
19    unsigned char REFindex;
20};
21
22struct XGI_Ext2Struct {
23    unsigned short Ext_InfoFlag;
24    unsigned char Ext_CRT1CRTC;
25    unsigned char Ext_CRTVCLK;
26    unsigned char Ext_CRT2CRTC;
27    unsigned char Ext_CRT2CRTC2;
28    unsigned char ModeID;
29    unsigned short XRes;
30    unsigned short YRes;
31};
32
33struct XGI_ECLKDataStruct {
34    unsigned char SR2E, SR2F, SR30;
35    unsigned short CLOCK;
36};
37
38/*add for new UNIVGABIOS*/
39struct XGI_LCDDesStruct {
40    unsigned short LCDHDES;
41    unsigned short LCDHRS;
42    unsigned short LCDVDES;
43    unsigned short LCDVRS;
44};
45
46struct XGI_LCDDataTablStruct {
47    unsigned char PANELID;
48    unsigned short MASK;
49    unsigned short CAP;
50    unsigned short DATAPTR;
51};
52
53struct XGI330_LCDDataDesStruct2 {
54    unsigned short LCDHDES;
55    unsigned short LCDHRS;
56    unsigned short LCDVDES;
57    unsigned short LCDVRS;
58    unsigned short LCDHSync;
59    unsigned short LCDVSync;
60};
61
62
63struct XGI330_TVDataStruct {
64    unsigned short RVBHCMAX;
65    unsigned short RVBHCFACT;
66    unsigned short VGAHT;
67    unsigned short VGAVT;
68    unsigned short TVHDE;
69    unsigned short TVVDE;
70    unsigned short RVBHRS;
71    unsigned char FlickerMode;
72    unsigned short HALFRVBHRS;
73};
74
75struct XGI330_LCDDataTablStruct {
76    unsigned char PANELID;
77    unsigned short MASK;
78    unsigned short CAP;
79    unsigned short DATAPTR;
80};
81
82struct XGI330_TVDataTablStruct {
83    unsigned short MASK;
84    unsigned short CAP;
85    unsigned short DATAPTR;
86};
87
88
89struct XGI_TimingHStruct {
90    unsigned char data[8];
91};
92
93struct XGI_TimingVStruct {
94    unsigned char data[7];
95};
96
97struct XGI_XG21CRT1Struct {
98    unsigned char ModeID, CR02, CR03, CR15, CR16;
99};
100
101struct XGI330_LCDCapStruct {
102    unsigned char LCD_ID;
103    unsigned short LCD_Capability;
104    unsigned char LCD_SetFlag;
105    unsigned char LCD_HSyncWidth;
106    unsigned char LCD_VSyncWidth;
107    unsigned char LCD_VCLK;
108    unsigned char LCDA_VCLKData1;
109    unsigned char LCDA_VCLKData2;
110    unsigned char LCUCHAR_VCLKData1;
111    unsigned char LCUCHAR_VCLKData2;
112    unsigned char PSC_S1;
113    unsigned char PSC_S2;
114    unsigned char PSC_S3;
115    unsigned char PSC_S4;
116    unsigned char PSC_S5;
117    unsigned char PWD_2B;
118    unsigned char PWD_2C;
119    unsigned char PWD_2D;
120    unsigned char PWD_2E;
121    unsigned char PWD_2F;
122    unsigned char Spectrum_31;
123    unsigned char Spectrum_32;
124    unsigned char Spectrum_33;
125    unsigned char Spectrum_34;
126};
127
128struct XGI21_LVDSCapStruct {
129    unsigned short LVDS_Capability;
130    unsigned short LVDSHT;
131    unsigned short LVDSVT;
132    unsigned short LVDSHDE;
133    unsigned short LVDSVDE;
134    unsigned short LVDSHFP;
135    unsigned short LVDSVFP;
136    unsigned short LVDSHSYNC;
137    unsigned short LVDSVSYNC;
138    unsigned char VCLKData1;
139    unsigned char VCLKData2;
140    unsigned char PSC_S1;
141    unsigned char PSC_S2;
142    unsigned char PSC_S3;
143    unsigned char PSC_S4;
144    unsigned char PSC_S5;
145};
146
147struct XGI_CRT1TableStruct {
148    unsigned char CR[16];
149};
150
151
152struct XGI301C_Tap4TimingStruct {
153    unsigned short DE;
154    unsigned char Reg[64]; /* C0-FF */
155};
156
157struct vb_device_info {
158    unsigned char ISXPDOS;
159    unsigned long P3c4, P3d4, P3c0, P3ce, P3c2, P3cc;
160    unsigned long P3ca, P3c6, P3c7, P3c8, P3c9, P3da;
161    unsigned long Part0Port, Part1Port, Part2Port;
162    unsigned long Part3Port, Part4Port, Part5Port;
163    unsigned short RVBHCFACT, RVBHCMAX, RVBHRS;
164    unsigned short VGAVT, VGAHT, VGAVDE, VGAHDE;
165    unsigned short VT, HT, VDE, HDE;
166    unsigned short LCDHRS, LCDVRS, LCDHDES, LCDVDES;
167
168    unsigned short ModeType;
169    unsigned short IF_DEF_LVDS, IF_DEF_TRUMPION, IF_DEF_DSTN;
170    unsigned short IF_DEF_CRT2Monitor;
171    unsigned short IF_DEF_LCDA, IF_DEF_YPbPr;
172    unsigned short IF_DEF_ExpLink;
173    unsigned short IF_DEF_HiVision;
174    unsigned short LCDResInfo, LCDTypeInfo, VBType;/*301b*/
175    unsigned short VBInfo, TVInfo, LCDInfo;
176    unsigned short VBExtInfo;/*301lv*/
177    unsigned short SetFlag;
178    unsigned short NewFlickerMode;
179    unsigned short SelectCRT2Rate;
180
181    void __iomem *FBAddr;
182    unsigned long BaseAddr;
183
184    unsigned char (*CR6B)[4];
185    unsigned char (*CR6E)[4];
186    unsigned char (*CR6F)[32];
187    unsigned char (*CR89)[2];
188
189    unsigned char (*SR15)[8];
190    unsigned char (*CR40)[8];
191
192    unsigned char *AGPReg;
193    unsigned char *SR16;
194    unsigned char SR21;
195    unsigned char SR22;
196    unsigned char SR25;
197    struct SiS_MCLKData *MCLKData;
198    struct XGI_ECLKDataStruct *ECLKData;
199
200    unsigned char *NTSCTiming;
201    unsigned char *PALTiming;
202    unsigned char *HiTVExtTiming;
203    unsigned char *HiTVSt1Timing;
204    unsigned char *HiTVSt2Timing;
205    unsigned char *HiTVTextTiming;
206    unsigned char *YPbPr750pTiming;
207    unsigned char *YPbPr525pTiming;
208    unsigned char *YPbPr525iTiming;
209    unsigned char *HiTVGroup3Data;
210    unsigned char *HiTVGroup3Simu;
211    unsigned char *HiTVGroup3Text;
212    unsigned char *Ren525pGroup3;
213    unsigned char *Ren750pGroup3;
214    unsigned char *ScreenOffset;
215    unsigned char *pXGINew_DRAMTypeDefinition;
216    unsigned char XGINew_CR97;
217
218    struct XGI330_LCDCapStruct *LCDCapList;
219
220    struct XGI_TimingHStruct *TimingH;
221    struct XGI_TimingVStruct *TimingV;
222
223    struct SiS_StandTable_S *StandTable;
224    struct XGI_ExtStruct *EModeIDTable;
225    struct XGI_Ext2Struct *RefIndex;
226    struct XGI_CRT1TableStruct *XGINEWUB_CRT1Table;
227    struct SiS_VCLKData *VCLKData;
228    struct SiS_VBVCLKData *VBVCLKData;
229    struct SiS_StResInfo_S *StResInfo;
230    struct SiS_ModeResInfo_S *ModeResInfo;
231    struct XGI_XG21CRT1Struct *UpdateCRT1;
232
233    int ram_type;
234    int ram_channel;
235    int ram_bus;
236}; /* _struct vb_device_info */
237
238#endif /* _VB_STRUCT_ */
239

Archive Download this file



interactive