[go: nahoru, domu]

1#ifndef _VB_STRUCT_
2#define _VB_STRUCT_
3#include "../../video/fbdev/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 XGI330_LCDDataDesStruct2 {
47	unsigned short LCDHDES;
48	unsigned short LCDHRS;
49	unsigned short LCDVDES;
50	unsigned short LCDVRS;
51	unsigned short LCDHSync;
52	unsigned short LCDVSync;
53};
54
55struct XGI330_LCDDataTablStruct {
56	unsigned char  PANELID;
57	unsigned short MASK;
58	unsigned short CAP;
59	void const *DATAPTR;
60};
61
62struct XGI330_TVDataTablStruct {
63	unsigned short MASK;
64	unsigned short CAP;
65	struct SiS_TVData const *DATAPTR;
66};
67
68
69struct XGI_TimingHStruct {
70	unsigned char data[8];
71};
72
73struct XGI_TimingVStruct {
74	unsigned char data[7];
75};
76
77struct XGI_XG21CRT1Struct {
78	unsigned char ModeID, CR02, CR03, CR15, CR16;
79};
80
81struct XGI330_LCDCapStruct {
82	unsigned char	LCD_ID;
83	unsigned short	LCD_Capability;
84	unsigned char	LCD_HSyncWidth;
85	unsigned char	LCD_VSyncWidth;
86	unsigned char	LCD_VCLK;
87	unsigned char	LCDA_VCLKData1;
88	unsigned char	LCDA_VCLKData2;
89	unsigned char	LCUCHAR_VCLKData1;
90	unsigned char	LCUCHAR_VCLKData2;
91	unsigned char	Spectrum_31;
92	unsigned char	Spectrum_32;
93	unsigned char	Spectrum_33;
94	unsigned char	Spectrum_34;
95};
96
97struct XGI21_LVDSCapStruct {
98	unsigned short LVDS_Capability;
99	unsigned short LVDSHT;
100	unsigned short LVDSVT;
101	unsigned short LVDSHDE;
102	unsigned short LVDSVDE;
103	unsigned short LVDSHFP;
104	unsigned short LVDSVFP;
105	unsigned short LVDSHSYNC;
106	unsigned short LVDSVSYNC;
107	unsigned char  VCLKData1;
108	unsigned char  VCLKData2;
109	unsigned char  PSC_S1; /* Duration between CPL on and signal on */
110	unsigned char  PSC_S2; /* Duration signal on and Vdd on */
111	unsigned char  PSC_S3; /* Duration between CPL off and signal off */
112	unsigned char  PSC_S4; /* Duration signal off and Vdd off */
113	unsigned char  PSC_S5;
114};
115
116struct XGI_CRT1TableStruct {
117	unsigned char CR[16];
118};
119
120
121struct XGI301C_Tap4TimingStruct {
122	unsigned short DE;
123	unsigned char  Reg[64];   /* C0-FF */
124};
125
126struct vb_device_info {
127	unsigned long   P3c4, P3d4, P3c0, P3ce, P3c2, P3cc;
128	unsigned long   P3ca, P3c6, P3c7, P3c8, P3c9, P3da;
129	unsigned long   Part0Port, Part1Port, Part2Port;
130	unsigned long   Part3Port, Part4Port, Part5Port;
131	unsigned short   RVBHCFACT, RVBHCMAX, RVBHRS;
132	unsigned short   VGAVT, VGAHT, VGAVDE, VGAHDE;
133	unsigned short   VT, HT, VDE, HDE;
134	unsigned short   LCDHRS, LCDVRS, LCDHDES, LCDVDES;
135
136	unsigned short   ModeType;
137	unsigned short   IF_DEF_LVDS;
138	unsigned short   IF_DEF_CRT2Monitor;
139	unsigned short   IF_DEF_YPbPr;
140	unsigned short   IF_DEF_HiVision;
141	unsigned short   LCDResInfo, LCDTypeInfo, VBType;/*301b*/
142	unsigned short   VBInfo, TVInfo, LCDInfo;
143	unsigned short   SetFlag;
144	unsigned short   NewFlickerMode;
145	unsigned short   SelectCRT2Rate;
146
147	void __iomem *FBAddr;
148
149	unsigned char const *SR18;
150	unsigned char const (*CR40)[3];
151
152	struct SiS_MCLKData const *MCLKData;
153
154	unsigned char   XGINew_CR97;
155
156	struct XGI330_LCDCapStruct const *LCDCapList;
157
158	struct XGI_TimingHStruct TimingH;
159	struct XGI_TimingVStruct TimingV;
160
161	int ram_type;
162	int ram_channel;
163	int ram_bus;
164};  /* _struct vb_device_info */
165
166#endif /* _VB_STRUCT_ */
167