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 */
66 /* General Registers */
67 #define SPR 0x1F /* Software Programming Register (videoram) */
70 #define RevisionID 0x09
72 #define ConfPort1 0x0C
73 #define ConfPort2 0x0C
76 #define Protection 0x11
80 #define ClockHigh 0x19
86 #define CRTHTotal 0x00
87 #define CRTHDispEnd 0x01
88 #define CRTHBlankStart 0x02
89 #define CRTHBlankEnd 0x03
90 #define CRTHSyncStart 0x04
91 #define CRTHSyncEnd 0x05
93 #define CRTVTotal 0x06
94 #define CRTVDispEnd 0x12
95 #define CRTVBlankStart 0x15
96 #define CRTVBlankEnd 0x16
97 #define CRTVSyncStart 0x10
98 #define CRTVSyncEnd 0x11
100 #define CRTOverflow 0x07
101 #define CRTPRowScan 0x08
102 #define CRTMaxScanLine 0x09
103 #define CRTModeControl 0x17
104 #define CRTLineCompare 0x18
107 #define StartAddrHigh 0x0C
108 #define StartAddrLow 0x0D
110 #define Underline 0x14
111 #define CRTCMode 0x17
112 #define CRTCModuleTest 0x1E
113 #define FIFOControl 0x20
114 #define LinearAddReg 0x21
115 #define DRAMTiming 0x23
117 #define RAMDACTiming 0x25
118 #define CRTHiOrd 0x27
119 #define AddColReg 0x29
120 #define InterfaceSel 0x2A
121 #define HorizOverflow 0x2B
123 #define Performance 0x2F
124 #define GraphEngReg 0x36
126 #define PixelBusReg 0x38
128 #define DRAMControl 0x3A
129 #define MiscContReg 0x3C
130 #define CursorXLow 0x40
131 #define CursorXHigh 0x41
132 #define CursorYLow 0x42
133 #define CursorYHigh 0x43
134 #define CursorLocLow 0x44
135 #define CursorLocHigh 0x45
136 #define CursorXOffset 0x46
137 #define CursorYOffset 0x47
138 #define CursorFG1 0x48
139 #define CursorFG2 0x49
140 #define CursorFG3 0x4A
141 #define CursorFG4 0x4B
142 #define CursorBG1 0x4C
143 #define CursorBG2 0x4D
144 #define CursorBG3 0x4E
145 #define CursorBG4 0x4F
146 #define CursorControl 0x50
147 #define PCIRetry 0x55
148 #define PreEndControl 0x56
149 #define PreEndFetch 0x57
150 #define PCIMaster 0x60
151 #define Enhancement0 0x62
153 #define TVinterface 0xC0
155 #define ClockControl 0xCF
159 #define MiscExtFunc 0x0F
160 #define PowerStatus 0x23
161 #define MiscIntContReg 0x2F
162 #define CyberControl 0x30
163 #define CyberEnhance 0x31
164 #define FPConfig 0x33
165 #define VertStretch 0x52
166 #define HorStretch 0x53
167 #define BiosMode 0x5c
This page took 0.085199 seconds and 5 git commands to generate.