blob: fa690b9fcc13697d7748091061111b085eaa9878 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001
2#ifndef TRIDENTFB_DEBUG
3#define TRIDENTFB_DEBUG 0
4#endif
5
6#if TRIDENTFB_DEBUG
7#define debug(f,a...) printk("%s:" f, __FUNCTION__ , ## a);mdelay(1000);
8#else
9#define debug(f,a...)
10#endif
11
12#define output(f, a...) pr_info("tridentfb: " f, ## a)
13
14#define Kb (1024)
15#define Mb (Kb*Kb)
16
17/* PCI IDS of supported cards temporarily here */
18
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
Krzysztof Helt0e73a472008-07-23 21:30:58 -070028#define PROVIDIA9685 0x9685
Linus Torvalds1da177e2005-04-16 15:20:36 -070029#define IMAGE975 0x9750
30#define IMAGE985 0x9850
31#define BLADE3D 0x9880
32#define CYBERBLADEE4 0x9540
33#define CYBERBLADEi7 0x8400
34#define CYBERBLADEi7D 0x8420
35#define CYBERBLADEi1 0x8500
36#define CYBERBLADEi1D 0x8520
37#define CYBERBLADEAi1 0x8600
38#define CYBERBLADEAi1D 0x8620
39#define CYBERBLADEXPAi1 0x8820
40#define CYBERBLADEXPm8 0x9910
41#define CYBERBLADEXPm16 0x9930
42
Linus Torvalds1da177e2005-04-16 15:20:36 -070043/* these defines are for 'lcd' variable */
44#define LCD_STRETCH 0
45#define LCD_CENTER 1
46#define LCD_BIOS 2
47
Linus Torvalds1da177e2005-04-16 15:20:36 -070048/* General Registers */
49#define SPR 0x1F /* Software Programming Register (videoram) */
50
51/* 3C4 */
52#define RevisionID 0x09
53#define OldOrNew 0x0B
54#define ConfPort1 0x0C
55#define ConfPort2 0x0C
56#define NewMode2 0x0D
57#define NewMode1 0x0E
58#define Protection 0x11
59#define MCLKLow 0x16
60#define MCLKHigh 0x17
61#define ClockLow 0x18
62#define ClockHigh 0x19
63#define SSetup 0x20
64#define SKey 0x37
65#define SPKey 0x57
66
Linus Torvalds1da177e2005-04-16 15:20:36 -070067/* 3x4 */
Linus Torvalds1da177e2005-04-16 15:20:36 -070068#define CRTCModuleTest 0x1E
69#define FIFOControl 0x20
70#define LinearAddReg 0x21
71#define DRAMTiming 0x23
72#define New32 0x23
73#define RAMDACTiming 0x25
74#define CRTHiOrd 0x27
75#define AddColReg 0x29
76#define InterfaceSel 0x2A
77#define HorizOverflow 0x2B
78#define GETest 0x2D
79#define Performance 0x2F
80#define GraphEngReg 0x36
81#define I2C 0x37
82#define PixelBusReg 0x38
83#define PCIReg 0x39
84#define DRAMControl 0x3A
85#define MiscContReg 0x3C
86#define CursorXLow 0x40
87#define CursorXHigh 0x41
88#define CursorYLow 0x42
89#define CursorYHigh 0x43
90#define CursorLocLow 0x44
91#define CursorLocHigh 0x45
92#define CursorXOffset 0x46
93#define CursorYOffset 0x47
94#define CursorFG1 0x48
95#define CursorFG2 0x49
96#define CursorFG3 0x4A
97#define CursorFG4 0x4B
98#define CursorBG1 0x4C
99#define CursorBG2 0x4D
100#define CursorBG3 0x4E
101#define CursorBG4 0x4F
102#define CursorControl 0x50
103#define PCIRetry 0x55
104#define PreEndControl 0x56
105#define PreEndFetch 0x57
106#define PCIMaster 0x60
107#define Enhancement0 0x62
108#define NewEDO 0x64
109#define TVinterface 0xC0
110#define TVMode 0xC1
111#define ClockControl 0xCF
112
113
114/* 3CE */
115#define MiscExtFunc 0x0F
116#define PowerStatus 0x23
117#define MiscIntContReg 0x2F
118#define CyberControl 0x30
119#define CyberEnhance 0x31
120#define FPConfig 0x33
121#define VertStretch 0x52
122#define HorStretch 0x53
123#define BiosMode 0x5c
124#define BiosReg 0x5d
125