]> Pileus Git - ~andy/linux/blob - drivers/staging/xgifb/vb_def.h
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wirel...
[~andy/linux] / drivers / staging / xgifb / vb_def.h
1 /* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/xgi/initdef.h
2  * ,v 1.4 2000/12/02 01:16:17 dawes Exp $*/
3 #ifndef _VB_DEF_
4 #define _VB_DEF_
5 #include "../../video/sis/initdef.h"
6
7 #define VB_XGI301C      0x0020 /* for 301C */
8 #define VB_YPbPr1080i   0x03
9
10 #define LVDSCRT1Len     15
11 #define SupportCRT2in301C       0x0100  /* for 301C */
12 #define SetCHTVOverScan         0x8000
13
14 #define Panel_320x480            0x07 /*fstn*/
15 /* [ycchen] 02/12/03 Modify for Multi-Sync. LCD Support */
16 #define PanelResInfo            0x1F /* CR36 Panel Type/LCDResInfo */
17 #define Panel_1024x768x75        0x22
18 #define Panel_1280x1024x75       0x23
19
20 #define PanelRef60Hz            0x00
21 #define PanelRef75Hz            0x20
22
23 #define YPbPr525iVCLK           0x03B
24 #define YPbPr525iVCLK_2         0x03A
25
26 #define XGI_CRT2_PORT_00        (0x00 - 0x030)
27
28 /* =============================================================
29    for 310
30 ============================================================== */
31 #define ModeSoftSetting              0x04
32
33 /* ---------------- SetMode Stack */
34 #define CRT1Len           15
35 #define VCLKLen           4
36
37 #define SupportAllCRT2      0x0078
38 #define NoSupportTV         0x0070
39 #define NoSupportHiVisionTV 0x0060
40 #define NoSupportLCD        0x0058
41
42 /* -------------- SetMode Stack/Scratch */
43 #define XGI_SetCRT2ToLCDA   0x0100
44 #define SetCRT2ToDualEdge   0x8000
45
46 #define ReserveTVOption     0x0008
47 #define GatingCRT           0x0800
48 #define DisableChB          0x1000
49 #define EnableChB           0x2000
50 #define DisableChA          0x4000
51 #define EnableChA           0x8000
52
53 #define SetTVLowResolution   0x0400
54 #define TVSimuMode           0x0800
55 #define RPLLDIV2XO           0x1000
56 #define NTSC1024x768         0x2000
57 #define SetTVLockMode        0x4000
58
59 #define XGI_LCDVESATiming    0x0001 /* LCD Info/CR37 */
60 #define XGI_EnableLVDSDDA    0x0002
61 #define EnableScalingLCD     0x0008
62 #define SetPWDEnable         0x0004
63 #define SetLCDtoNonExpanding 0x0010
64 #define SetLCDDualLink       0x0100
65 #define SetLCDLowResolution  0x0200
66 #define SetLCDStdMode        0x0400
67
68 /* LCD Capability shampoo */
69 #define DefaultLCDCap        0x80ea
70 #define EnableLCD24bpp       0x0004 /* default */
71 #define DisableLCD24bpp      0x0000
72 #define LCDPolarity          0x00c0 /* default: SyncNN */
73 #define XGI_LCDDualLink      0x0100
74 #define EnableSpectrum       0x0200
75 #define PWDEnable            0x0400
76 #define EnableVBCLKDRVLOW    0x4000
77 #define EnablePLLSPLOW       0x8000
78
79 #define LCDBToA              0x20   /* LCD SetFlag */
80 #define StLCDBToA            0x40
81 #define LockLCDBToA          0x80
82 #define   LCDToFull          0x10
83 #define AVIDEOSense          0x01   /* CR32 */
84 #define SVIDEOSense          0x02
85 #define SCARTSense           0x04
86 #define LCDSense             0x08
87 #define Monitor2Sense        0x10
88 #define Monitor1Sense        0x20
89 #define HiTVSense            0x40
90
91 #define YPbPrSense           0x80   /* NEW SCRATCH */
92
93 #define TVSense              0xc7
94
95 #define YPbPrMode            0xe0
96 #define YPbPrMode525i        0x00
97 #define YPbPrMode525p        0x20
98 #define YPbPrMode750p        0x40
99 #define YPbPrMode1080i       0x60
100
101 #define ScalingLCD           0x08
102
103 #define SetYPbPr             0x04
104
105 /* ---------------------- VUMA Information */
106 #define DisplayDeviceFromCMOS 0x10
107
108 /* ---------------------- HK Evnet Definition */
109 #define XGI_ModeSwitchStatus  0xf0
110 #define ActiveCRT1            0x10
111 #define ActiveLCD             0x0020
112 #define ActiveTV              0x40
113 #define ActiveCRT2            0x80
114
115 #define ActiveAVideo          0x01
116 #define ActiveSVideo          0x02
117 #define ActiveSCART           0x04
118 #define ActiveHiTV            0x08
119 #define ActiveYPbPr           0x10
120
121 /* --------------------------------------------------------- */
122 /* translated from asm code 301def.h */
123 /*  */
124 /* --------------------------------------------------------- */
125 #define LVDSCRT1Len_H        8
126 #define LVDSCRT1Len_V        7
127 #define LCDDesDataLen        6
128 #define LVDSDesDataLen2      8
129 #define LCDDesDataLen2       8
130
131 #define NTSC1024x768HT       1908
132
133 #define YPbPrTV525iHT        1716 /* YPbPr */
134 #define YPbPrTV525iVT         525
135 #define YPbPrTV525pHT        1716
136 #define YPbPrTV525pVT         525
137 #define YPbPrTV750pHT        1650
138 #define YPbPrTV750pVT         750
139
140 #define VCLK25_175           0x00
141 #define VCLK28_322           0x01
142 #define VCLK31_5             0x02
143 #define VCLK36               0x03
144 #define VCLK43_163           0x05
145 #define VCLK44_9             0x06
146 #define VCLK49_5             0x07
147 #define VCLK50               0x08
148 #define VCLK52_406           0x09
149 #define VCLK56_25            0x0A
150 #define VCLK68_179           0x0D
151 #define VCLK72_852           0x0E
152 #define VCLK75               0x0F
153 #define VCLK78_75            0x11
154 #define VCLK79_411           0x12
155 #define VCLK83_95            0x13
156 #define VCLK86_6             0x15
157 #define VCLK94_5             0x16
158 #define VCLK113_309          0x1B
159 #define VCLK116_406          0x1C
160 #define VCLK135_5            0x1E
161 #define VCLK139_054          0x1F
162 #define VCLK157_5            0x20
163 #define VCLK162              0x21
164 #define VCLK175              0x22
165 #define VCLK189              0x23
166 #define VCLK202_5            0x25
167 #define VCLK229_5            0x26
168 #define VCLK234              0x27
169 #define VCLK254_817          0x29
170 #define VCLK266_952          0x2B
171 #define VCLK269_655          0x2C
172 #define VCLK277_015          0x2E
173 #define VCLK291_132          0x30
174 #define VCLK291_766          0x31
175 #define VCLK315_195          0x33
176 #define VCLK323_586          0x34
177 #define VCLK330_615          0x35
178 #define VCLK340_477          0x37
179 #define VCLK375_847          0x38
180 #define VCLK388_631          0x39
181 #define VCLK125_999          0x51
182 #define VCLK148_5            0x52
183 #define VCLK217_325          0x55
184 #define XGI_YPbPr750pVCLK    0x57
185
186 #define VCLK39_77            0x40
187 #define YPbPr525pVCLK        0x3A
188 #define NTSC1024VCLK         0x41
189 #define VCLK35_2             0x49 /* ; 800x480 */
190 #define VCLK122_61           0x4A
191 #define VCLK80_350           0x4B
192 #define VCLK107_385          0x4C
193
194 #define RES320x200           0x00
195 #define RES320x240           0x01
196 #define RES400x300           0x02
197 #define RES512x384           0x03
198 #define RES640x400           0x04
199 #define RES640x480x60        0x05
200 #define RES640x480x72        0x06
201 #define RES640x480x75        0x07
202 #define RES640x480x85        0x08
203 #define RES640x480x100       0x09
204 #define RES640x480x120       0x0A
205 #define RES640x480x160       0x0B
206 #define RES640x480x200       0x0C
207 #define RES800x600x56        0x0D
208 #define RES800x600x60        0x0E
209 #define RES800x600x72        0x0F
210 #define RES800x600x75        0x10
211 #define RES800x600x85        0x11
212 #define RES800x600x100       0x12
213 #define RES800x600x120       0x13
214 #define RES800x600x160       0x14
215 #define RES1024x768x43       0x15
216 #define RES1024x768x60       0x16
217 #define RES1024x768x70       0x17
218 #define RES1024x768x75       0x18
219 #define RES1024x768x85       0x19
220 #define RES1024x768x100      0x1A
221 #define RES1024x768x120      0x1B
222 #define RES1280x1024x43      0x1C
223 #define RES1280x1024x60      0x1D
224 #define RES1280x1024x75      0x1E
225 #define RES1280x1024x85      0x1F
226 #define RES1600x1200x60      0x20
227 #define RES1600x1200x65      0x21
228 #define RES1600x1200x70      0x22
229 #define RES1600x1200x75      0x23
230 #define RES1600x1200x85      0x24
231 #define RES1600x1200x100     0x25
232 #define RES1600x1200x120     0x26
233 #define RES1920x1440x60      0x27
234 #define RES1920x1440x65      0x28
235 #define RES1920x1440x70      0x29
236 #define RES1920x1440x75      0x2A
237 #define RES1920x1440x85      0x2B
238 #define RES1920x1440x100     0x2C
239 #define RES2048x1536x60      0x2D
240 #define RES2048x1536x65      0x2E
241 #define RES2048x1536x70      0x2F
242 #define RES2048x1536x75      0x30
243 #define RES2048x1536x85      0x31
244 #define RES800x480x60        0x32
245 #define RES800x480x75        0x33
246 #define RES800x480x85        0x34
247 #define RES1024x576x60       0x35
248 #define RES1024x576x75       0x36
249 #define RES1024x576x85       0x37
250 #define RES1280x720x60       0x38
251 #define RES1280x720x75       0x39
252 #define RES1280x720x85       0x3A
253 #define RES1280x960x60       0x3B
254 #define RES720x480x60        0x3C
255 #define RES720x576x56        0x3D
256 #define RES856x480x79I       0x3E
257 #define RES856x480x60        0x3F
258 #define RES1280x768x60       0x40
259 #define RES1400x1050x60      0x41
260 #define RES1152x864x60       0x42
261 #define RES1152x864x75       0x43
262 #define RES1024x768x160      0x44
263 #define RES1280x960x75       0x45
264 #define RES1280x960x85       0x46
265 #define RES1280x960x120      0x47
266
267 #endif