]>
git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blob - include/video/trident.h
2 #ifndef TRIDENTFB_DEBUG
3 #define TRIDENTFB_DEBUG 0
7 #define debug(f,a...) printk("%s:" f, __FUNCTION__ , ## a);mdelay(1000);
12 #define output(f, a...) pr_info("tridentfb: " f, ## a)
17 /* PCI IDS of supported cards temporarily here */
19 #define CYBER9320 0x9320
20 #define CYBER9388 0x9388
21 #define CYBER9382 0x9382 /* the real PCI id for this is 9660 */
22 #define CYBER9385 0x9385 /* ditto */
23 #define CYBER9397 0x9397
24 #define CYBER9397DVD 0x939A
25 #define CYBER9520 0x9520
26 #define CYBER9525DVD 0x9525
27 #define TGUI9660 0x9660
28 #define IMAGE975 0x9750
29 #define IMAGE985 0x9850
30 #define BLADE3D 0x9880
31 #define CYBERBLADEE4 0x9540
32 #define CYBERBLADEi7 0x8400
33 #define CYBERBLADEi7D 0x8420
34 #define CYBERBLADEi1 0x8500
35 #define CYBERBLADEi1D 0x8520
36 #define CYBERBLADEAi1 0x8600
37 #define CYBERBLADEAi1D 0x8620
38 #define CYBERBLADEXPAi1 0x8820
39 #define CYBERBLADEXPm8 0x9910
40 #define CYBERBLADEXPm16 0x9930
42 /* acceleration families */
48 #define is_xp(id) ((id == CYBERBLADEXPAi1) ||\
49 (id == CYBERBLADEXPm8) ||\
50 (id == CYBERBLADEXPm16))
52 #define is_blade(id) ((id == BLADE3D) ||\
53 (id == CYBERBLADEE4) ||\
54 (id == CYBERBLADEi7) ||\
55 (id == CYBERBLADEi7D) ||\
56 (id == CYBERBLADEi1) ||\
57 (id == CYBERBLADEi1D) ||\
58 (id == CYBERBLADEAi1) ||\
59 (id == CYBERBLADEAi1D))
61 /* these defines are for 'lcd' variable */
70 #define flatpanel (displaytype == DISPLAY_FP)
72 /* General Registers */
73 #define SPR 0x1F /* Software Programming Register (videoram) */
76 #define RevisionID 0x09
78 #define ConfPort1 0x0C
79 #define ConfPort2 0x0C
82 #define Protection 0x11
86 #define ClockHigh 0x19
92 #define CRTHTotal 0x00
93 #define CRTHDispEnd 0x01
94 #define CRTHBlankStart 0x02
95 #define CRTHBlankEnd 0x03
96 #define CRTHSyncStart 0x04
97 #define CRTHSyncEnd 0x05
99 #define CRTVTotal 0x06
100 #define CRTVDispEnd 0x12
101 #define CRTVBlankStart 0x15
102 #define CRTVBlankEnd 0x16
103 #define CRTVSyncStart 0x10
104 #define CRTVSyncEnd 0x11
106 #define CRTOverflow 0x07
107 #define CRTPRowScan 0x08
108 #define CRTMaxScanLine 0x09
109 #define CRTModeControl 0x17
110 #define CRTLineCompare 0x18
113 #define StartAddrHigh 0x0C
114 #define StartAddrLow 0x0D
116 #define Underline 0x14
117 #define CRTCMode 0x17
118 #define CRTCModuleTest 0x1E
119 #define FIFOControl 0x20
120 #define LinearAddReg 0x21
121 #define DRAMTiming 0x23
123 #define RAMDACTiming 0x25
124 #define CRTHiOrd 0x27
125 #define AddColReg 0x29
126 #define InterfaceSel 0x2A
127 #define HorizOverflow 0x2B
129 #define Performance 0x2F
130 #define GraphEngReg 0x36
132 #define PixelBusReg 0x38
134 #define DRAMControl 0x3A
135 #define MiscContReg 0x3C
136 #define CursorXLow 0x40
137 #define CursorXHigh 0x41
138 #define CursorYLow 0x42
139 #define CursorYHigh 0x43
140 #define CursorLocLow 0x44
141 #define CursorLocHigh 0x45
142 #define CursorXOffset 0x46
143 #define CursorYOffset 0x47
144 #define CursorFG1 0x48
145 #define CursorFG2 0x49
146 #define CursorFG3 0x4A
147 #define CursorFG4 0x4B
148 #define CursorBG1 0x4C
149 #define CursorBG2 0x4D
150 #define CursorBG3 0x4E
151 #define CursorBG4 0x4F
152 #define CursorControl 0x50
153 #define PCIRetry 0x55
154 #define PreEndControl 0x56
155 #define PreEndFetch 0x57
156 #define PCIMaster 0x60
157 #define Enhancement0 0x62
159 #define TVinterface 0xC0
161 #define ClockControl 0xCF
165 #define MiscExtFunc 0x0F
166 #define PowerStatus 0x23
167 #define MiscIntContReg 0x2F
168 #define CyberControl 0x30
169 #define CyberEnhance 0x31
170 #define FPConfig 0x33
171 #define VertStretch 0x52
172 #define HorStretch 0x53
173 #define BiosMode 0x5c