2 #ifndef TRIDENTFB_DEBUG
3 #define TRIDENTFB_DEBUG 0
7 #define debug(f, a...) printk("%s:" f, __func__ , ## a);
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 TGUI9440 0x9440
28 #define TGUI9660 0x9660
29 #define PROVIDIA9685 0x9685
30 #define IMAGE975 0x9750
31 #define IMAGE985 0x9850
32 #define BLADE3D 0x9880
33 #define CYBERBLADEE4 0x9540
34 #define CYBERBLADEi7 0x8400
35 #define CYBERBLADEi7D 0x8420
36 #define CYBERBLADEi1 0x8500
37 #define CYBERBLADEi1D 0x8520
38 #define CYBERBLADEAi1 0x8600
39 #define CYBERBLADEAi1D 0x8620
40 #define CYBERBLADEXPAi1 0x8820
41 #define CYBERBLADEXPm8 0x9910
42 #define CYBERBLADEXPm16 0x9930
44 /* these defines are for 'lcd' variable */
49 /* General Registers */
50 #define SPR 0x1F /* Software Programming Register (videoram) */
53 #define RevisionID 0x09
55 #define ConfPort1 0x0C
56 #define ConfPort2 0x0C
59 #define Protection 0x11
63 #define ClockHigh 0x19
69 #define CRTCModuleTest 0x1E
70 #define FIFOControl 0x20
71 #define LinearAddReg 0x21
72 #define DRAMTiming 0x23
74 #define RAMDACTiming 0x25
76 #define AddColReg 0x29
77 #define InterfaceSel 0x2A
78 #define HorizOverflow 0x2B
80 #define Performance 0x2F
81 #define GraphEngReg 0x36
83 #define PixelBusReg 0x38
85 #define DRAMControl 0x3A
86 #define MiscContReg 0x3C
87 #define CursorXLow 0x40
88 #define CursorXHigh 0x41
89 #define CursorYLow 0x42
90 #define CursorYHigh 0x43
91 #define CursorLocLow 0x44
92 #define CursorLocHigh 0x45
93 #define CursorXOffset 0x46
94 #define CursorYOffset 0x47
95 #define CursorFG1 0x48
96 #define CursorFG2 0x49
97 #define CursorFG3 0x4A
98 #define CursorFG4 0x4B
99 #define CursorBG1 0x4C
100 #define CursorBG2 0x4D
101 #define CursorBG3 0x4E
102 #define CursorBG4 0x4F
103 #define CursorControl 0x50
104 #define PCIRetry 0x55
105 #define PreEndControl 0x56
106 #define PreEndFetch 0x57
107 #define PCIMaster 0x60
108 #define Enhancement0 0x62
110 #define TVinterface 0xC0
112 #define ClockControl 0xCF
116 #define MiscExtFunc 0x0F
117 #define PowerStatus 0x23
118 #define MiscIntContReg 0x2F
119 #define CyberControl 0x30
120 #define CyberEnhance 0x31
121 #define FPConfig 0x33
122 #define VertStretch 0x52
123 #define HorStretch 0x53
124 #define BiosMode 0x5c
127 /* Graphics Engine */
128 #define STATUS 0x2120
129 #define OLDCMD 0x2124
130 #define DRAWFL 0x2128
131 #define OLDCLR 0x212C
132 #define OLDDST 0x2138
133 #define OLDSRC 0x213C
134 #define OLDDIM 0x2140
138 #define BGCOLOR 0x2164