3 #include "../../video/sis/vstruct.h"
5 struct XGI_LVDSCRT1HDataStruct
{
9 struct XGI_LVDSCRT1VDataStruct
{
13 struct 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
;
22 struct 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
;
33 struct XGI_ECLKDataStruct
{
34 unsigned char SR2E
, SR2F
, SR30
;
38 /*add for new UNIVGABIOS*/
39 struct XGI_LCDDesStruct
{
40 unsigned short LCDHDES
;
41 unsigned short LCDHRS
;
42 unsigned short LCDVDES
;
43 unsigned short LCDVRS
;
46 struct XGI_LCDDataTablStruct
{
47 unsigned char PANELID
;
50 unsigned short DATAPTR
;
53 struct 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
;
63 struct XGI330_TVDataStruct
{
64 unsigned short RVBHCMAX
;
65 unsigned short RVBHCFACT
;
70 unsigned short RVBHRS
;
71 unsigned char FlickerMode
;
72 unsigned short HALFRVBHRS
;
75 struct XGI330_LCDDataTablStruct
{
76 unsigned char PANELID
;
79 unsigned short DATAPTR
;
82 struct XGI330_TVDataTablStruct
{
85 unsigned short DATAPTR
;
89 struct XGI_TimingHStruct
{
90 unsigned char data
[8];
93 struct XGI_TimingVStruct
{
94 unsigned char data
[7];
97 struct XGI_XG21CRT1Struct
{
98 unsigned char ModeID
, CR02
, CR03
, CR15
, CR16
;
101 struct 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
;
128 struct 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
;
147 struct XGI_CRT1TableStruct
{
148 unsigned char CR
[16];
152 struct XGI301C_Tap4TimingStruct
{
154 unsigned char Reg
[64]; /* C0-FF */
157 struct 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
;
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
;
181 void __iomem
*FBAddr
;
182 unsigned long BaseAddr
;
184 unsigned char (*CR6B
)[4];
185 unsigned char (*CR6E
)[4];
186 unsigned char (*CR6F
)[32];
187 unsigned char (*CR89
)[2];
189 unsigned char (*SR15
)[8];
190 unsigned char (*CR40
)[8];
192 unsigned char *AGPReg
;
197 struct SiS_MCLKData
*MCLKData
;
198 struct XGI_ECLKDataStruct
*ECLKData
;
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
;
218 struct XGI330_LCDCapStruct
*LCDCapList
;
220 struct XGI_TimingHStruct
*TimingH
;
221 struct XGI_TimingVStruct
*TimingV
;
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
;
236 }; /* _struct vb_device_info */
238 #endif /* _VB_STRUCT_ */