diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/video/matrox/matroxfb_DAC1064.h |
Linux-2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'drivers/video/matrox/matroxfb_DAC1064.h')
-rw-r--r-- | drivers/video/matrox/matroxfb_DAC1064.h | 164 |
1 files changed, 164 insertions, 0 deletions
diff --git a/drivers/video/matrox/matroxfb_DAC1064.h b/drivers/video/matrox/matroxfb_DAC1064.h new file mode 100644 index 00000000000..a6a47012728 --- /dev/null +++ b/drivers/video/matrox/matroxfb_DAC1064.h | |||
@@ -0,0 +1,164 @@ | |||
1 | #ifndef __MATROXFB_DAC1064_H__ | ||
2 | #define __MATROXFB_DAC1064_H__ | ||
3 | |||
4 | /* make checkconfig does not walk through include tree */ | ||
5 | #include <linux/config.h> | ||
6 | |||
7 | #include "matroxfb_base.h" | ||
8 | |||
9 | #ifdef CONFIG_FB_MATROX_MYSTIQUE | ||
10 | extern struct matrox_switch matrox_mystique; | ||
11 | #endif | ||
12 | #ifdef CONFIG_FB_MATROX_G | ||
13 | extern struct matrox_switch matrox_G100; | ||
14 | #endif | ||
15 | #ifdef NEED_DAC1064 | ||
16 | void DAC1064_global_init(WPMINFO2); | ||
17 | void DAC1064_global_restore(WPMINFO2); | ||
18 | #endif | ||
19 | |||
20 | #define M1064_INDEX 0x00 | ||
21 | #define M1064_PALWRADD 0x00 | ||
22 | #define M1064_PALDATA 0x01 | ||
23 | #define M1064_PIXRDMSK 0x02 | ||
24 | #define M1064_PALRDADD 0x03 | ||
25 | #define M1064_X_DATAREG 0x0A | ||
26 | #define M1064_CURPOSXL 0x0C /* can be accessed as DWORD */ | ||
27 | #define M1064_CURPOSXH 0x0D | ||
28 | #define M1064_CURPOSYL 0x0E | ||
29 | #define M1064_CURPOSYH 0x0F | ||
30 | |||
31 | #define M1064_XCURADDL 0x04 | ||
32 | #define M1064_XCURADDH 0x05 | ||
33 | #define M1064_XCURCTRL 0x06 | ||
34 | #define M1064_XCURCTRL_DIS 0x00 /* transparent, transparent, transparent, transparent */ | ||
35 | #define M1064_XCURCTRL_3COLOR 0x01 /* transparent, 0, 1, 2 */ | ||
36 | #define M1064_XCURCTRL_XGA 0x02 /* 0, 1, transparent, complement */ | ||
37 | #define M1064_XCURCTRL_XWIN 0x03 /* transparent, transparent, 0, 1 */ | ||
38 | #define M1064_XCURCOL0RED 0x08 | ||
39 | #define M1064_XCURCOL0GREEN 0x09 | ||
40 | #define M1064_XCURCOL0BLUE 0x0A | ||
41 | #define M1064_XCURCOL1RED 0x0C | ||
42 | #define M1064_XCURCOL1GREEN 0x0D | ||
43 | #define M1064_XCURCOL1BLUE 0x0E | ||
44 | #define M1064_XCURCOL2RED 0x10 | ||
45 | #define M1064_XCURCOL2GREEN 0x11 | ||
46 | #define M1064_XCURCOL2BLUE 0x12 | ||
47 | #define DAC1064_XVREFCTRL 0x18 | ||
48 | #define DAC1064_XVREFCTRL_INTERNAL 0x3F | ||
49 | #define DAC1064_XVREFCTRL_EXTERNAL 0x00 | ||
50 | #define DAC1064_XVREFCTRL_G100_DEFAULT 0x03 | ||
51 | #define M1064_XMULCTRL 0x19 | ||
52 | #define M1064_XMULCTRL_DEPTH_8BPP 0x00 /* 8 bpp paletized */ | ||
53 | #define M1064_XMULCTRL_DEPTH_15BPP_1BPP 0x01 /* 15 bpp paletized + 1 bpp overlay */ | ||
54 | #define M1064_XMULCTRL_DEPTH_16BPP 0x02 /* 16 bpp paletized */ | ||
55 | #define M1064_XMULCTRL_DEPTH_24BPP 0x03 /* 24 bpp paletized */ | ||
56 | #define M1064_XMULCTRL_DEPTH_24BPP_8BPP 0x04 /* 24 bpp direct + 8 bpp overlay paletized */ | ||
57 | #define M1064_XMULCTRL_2G8V16 0x05 /* 15 bpp video direct, half xres, 8bpp paletized */ | ||
58 | #define M1064_XMULCTRL_G16V16 0x06 /* 15 bpp video, 15bpp graphics, one of them paletized */ | ||
59 | #define M1064_XMULCTRL_DEPTH_32BPP 0x07 /* 24 bpp paletized + 8 bpp unused */ | ||
60 | #define M1064_XMULCTRL_GRAPHICS_PALETIZED 0x00 | ||
61 | #define M1064_XMULCTRL_VIDEO_PALETIZED 0x08 | ||
62 | #define M1064_XPIXCLKCTRL 0x1A | ||
63 | #define M1064_XPIXCLKCTRL_SRC_PCI 0x00 | ||
64 | #define M1064_XPIXCLKCTRL_SRC_PLL 0x01 | ||
65 | #define M1064_XPIXCLKCTRL_SRC_EXT 0x02 | ||
66 | #define M1064_XPIXCLKCTRL_SRC_SYS 0x03 /* G200/G400 */ | ||
67 | #define M1064_XPIXCLKCTRL_SRC_PLL2 0x03 /* G450 */ | ||
68 | #define M1064_XPIXCLKCTRL_SRC_MASK 0x03 | ||
69 | #define M1064_XPIXCLKCTRL_EN 0x00 | ||
70 | #define M1064_XPIXCLKCTRL_DIS 0x04 | ||
71 | #define M1064_XPIXCLKCTRL_PLL_DOWN 0x00 | ||
72 | #define M1064_XPIXCLKCTRL_PLL_UP 0x08 | ||
73 | #define M1064_XGENCTRL 0x1D | ||
74 | #define M1064_XGENCTRL_VS_0 0x00 | ||
75 | #define M1064_XGENCTRL_VS_1 0x01 | ||
76 | #define M1064_XGENCTRL_ALPHA_DIS 0x00 | ||
77 | #define M1064_XGENCTRL_ALPHA_EN 0x02 | ||
78 | #define M1064_XGENCTRL_BLACK_0IRE 0x00 | ||
79 | #define M1064_XGENCTRL_BLACK_75IRE 0x10 | ||
80 | #define M1064_XGENCTRL_SYNC_ON_GREEN 0x00 | ||
81 | #define M1064_XGENCTRL_NO_SYNC_ON_GREEN 0x20 | ||
82 | #define M1064_XGENCTRL_SYNC_ON_GREEN_MASK 0x20 | ||
83 | #define M1064_XMISCCTRL 0x1E | ||
84 | #define M1064_XMISCCTRL_DAC_DIS 0x00 | ||
85 | #define M1064_XMISCCTRL_DAC_EN 0x01 | ||
86 | #define M1064_XMISCCTRL_MFC_VGA 0x00 | ||
87 | #define M1064_XMISCCTRL_MFC_MAFC 0x02 | ||
88 | #define M1064_XMISCCTRL_MFC_DIS 0x06 | ||
89 | #define GX00_XMISCCTRL_MFC_MAFC 0x02 | ||
90 | #define GX00_XMISCCTRL_MFC_PANELLINK 0x04 | ||
91 | #define GX00_XMISCCTRL_MFC_DIS 0x06 | ||
92 | #define GX00_XMISCCTRL_MFC_MASK 0x06 | ||
93 | #define M1064_XMISCCTRL_DAC_6BIT 0x00 | ||
94 | #define M1064_XMISCCTRL_DAC_8BIT 0x08 | ||
95 | #define M1064_XMISCCTRL_DAC_WIDTHMASK 0x08 | ||
96 | #define M1064_XMISCCTRL_LUT_DIS 0x00 | ||
97 | #define M1064_XMISCCTRL_LUT_EN 0x10 | ||
98 | #define G400_XMISCCTRL_VDO_MAFC12 0x00 | ||
99 | #define G400_XMISCCTRL_VDO_BYPASS656 0x40 | ||
100 | #define G400_XMISCCTRL_VDO_C2_MAFC12 0x80 | ||
101 | #define G400_XMISCCTRL_VDO_C2_BYPASS656 0xC0 | ||
102 | #define G400_XMISCCTRL_VDO_MASK 0xE0 | ||
103 | #define M1064_XGENIOCTRL 0x2A | ||
104 | #define M1064_XGENIODATA 0x2B | ||
105 | #define DAC1064_XSYSPLLM 0x2C | ||
106 | #define DAC1064_XSYSPLLN 0x2D | ||
107 | #define DAC1064_XSYSPLLP 0x2E | ||
108 | #define DAC1064_XSYSPLLSTAT 0x2F | ||
109 | #define M1064_XZOOMCTRL 0x38 | ||
110 | #define M1064_XZOOMCTRL_1 0x00 | ||
111 | #define M1064_XZOOMCTRL_2 0x01 | ||
112 | #define M1064_XZOOMCTRL_4 0x03 | ||
113 | #define M1064_XSENSETEST 0x3A | ||
114 | #define M1064_XSENSETEST_BCOMP 0x01 | ||
115 | #define M1064_XSENSETEST_GCOMP 0x02 | ||
116 | #define M1064_XSENSETEST_RCOMP 0x04 | ||
117 | #define M1064_XSENSETEST_PDOWN 0x00 | ||
118 | #define M1064_XSENSETEST_PUP 0x80 | ||
119 | #define M1064_XCRCREML 0x3C | ||
120 | #define M1064_XCRCREMH 0x3D | ||
121 | #define M1064_XCRCBITSEL 0x3E | ||
122 | #define M1064_XCOLKEYMASKL 0x40 | ||
123 | #define M1064_XCOLKEYMASKH 0x41 | ||
124 | #define M1064_XCOLKEYL 0x42 | ||
125 | #define M1064_XCOLKEYH 0x43 | ||
126 | #define M1064_XPIXPLLAM 0x44 | ||
127 | #define M1064_XPIXPLLAN 0x45 | ||
128 | #define M1064_XPIXPLLAP 0x46 | ||
129 | #define M1064_XPIXPLLBM 0x48 | ||
130 | #define M1064_XPIXPLLBN 0x49 | ||
131 | #define M1064_XPIXPLLBP 0x4A | ||
132 | #define M1064_XPIXPLLCM 0x4C | ||
133 | #define M1064_XPIXPLLCN 0x4D | ||
134 | #define M1064_XPIXPLLCP 0x4E | ||
135 | #define M1064_XPIXPLLSTAT 0x4F | ||
136 | |||
137 | #define M1064_XTVO_IDX 0x87 | ||
138 | #define M1064_XTVO_DATA 0x88 | ||
139 | |||
140 | #define M1064_XOUTPUTCONN 0x8A | ||
141 | #define M1064_XSYNCCTRL 0x8B | ||
142 | #define M1064_XVIDPLLSTAT 0x8C | ||
143 | #define M1064_XVIDPLLP 0x8D | ||
144 | #define M1064_XVIDPLLM 0x8E | ||
145 | #define M1064_XVIDPLLN 0x8F | ||
146 | |||
147 | #define M1064_XPWRCTRL 0xA0 | ||
148 | |||
149 | #define M1064_XPANMODE 0xA2 | ||
150 | |||
151 | enum POS1064 { | ||
152 | POS1064_XCURADDL=0, POS1064_XCURADDH, POS1064_XCURCTRL, | ||
153 | POS1064_XCURCOL0RED, POS1064_XCURCOL0GREEN, POS1064_XCURCOL0BLUE, | ||
154 | POS1064_XCURCOL1RED, POS1064_XCURCOL1GREEN, POS1064_XCURCOL1BLUE, | ||
155 | POS1064_XCURCOL2RED, POS1064_XCURCOL2GREEN, POS1064_XCURCOL2BLUE, | ||
156 | POS1064_XVREFCTRL, POS1064_XMULCTRL, POS1064_XPIXCLKCTRL, POS1064_XGENCTRL, | ||
157 | POS1064_XMISCCTRL, | ||
158 | POS1064_XGENIOCTRL, POS1064_XGENIODATA, POS1064_XZOOMCTRL, POS1064_XSENSETEST, | ||
159 | POS1064_XCRCBITSEL, | ||
160 | POS1064_XCOLKEYMASKL, POS1064_XCOLKEYMASKH, POS1064_XCOLKEYL, POS1064_XCOLKEYH, | ||
161 | POS1064_XOUTPUTCONN, POS1064_XPANMODE, POS1064_XPWRCTRL }; | ||
162 | |||
163 | |||
164 | #endif /* __MATROXFB_DAC1064_H__ */ | ||