Go to the documentation of this file. 1 #ifndef __MATROXFB_DAC1064_H__
2 #define __MATROXFB_DAC1064_H__
7 #ifdef CONFIG_FB_MATROX_MYSTIQUE
10 #ifdef CONFIG_FB_MATROX_G
18 #define M1064_INDEX 0x00
19 #define M1064_PALWRADD 0x00
20 #define M1064_PALDATA 0x01
21 #define M1064_PIXRDMSK 0x02
22 #define M1064_PALRDADD 0x03
23 #define M1064_X_DATAREG 0x0A
24 #define M1064_CURPOSXL 0x0C
25 #define M1064_CURPOSXH 0x0D
26 #define M1064_CURPOSYL 0x0E
27 #define M1064_CURPOSYH 0x0F
29 #define M1064_XCURADDL 0x04
30 #define M1064_XCURADDH 0x05
31 #define M1064_XCURCTRL 0x06
32 #define M1064_XCURCTRL_DIS 0x00
33 #define M1064_XCURCTRL_3COLOR 0x01
34 #define M1064_XCURCTRL_XGA 0x02
35 #define M1064_XCURCTRL_XWIN 0x03
38 #define M1064_XDVICLKCTRL_DVIDATAPATHSEL 0x01
40 #define M1064_XDVICLKCTRL_C1DVICLKSEL 0x02
42 #define M1064_XDVICLKCTRL_C2DVICLKSEL 0x04
44 #define M1064_XDVICLKCTRL_C1DVICLKEN 0x08
46 #define M1064_XDVICLKCTRL_DVILOOPCTL 0x30
48 #define M1064_XDVICLKCTRL_C2DVICLKEN 0x40
50 #define M1064_XDVICLKCTRL_P1LOOPBWDTCTL 0x80
51 #define M1064_XCURCOL0RED 0x08
52 #define M1064_XCURCOL0GREEN 0x09
53 #define M1064_XCURCOL0BLUE 0x0A
54 #define M1064_XCURCOL1RED 0x0C
55 #define M1064_XCURCOL1GREEN 0x0D
56 #define M1064_XCURCOL1BLUE 0x0E
57 #define M1064_XDVICLKCTRL 0x0F
58 #define M1064_XCURCOL2RED 0x10
59 #define M1064_XCURCOL2GREEN 0x11
60 #define M1064_XCURCOL2BLUE 0x12
61 #define DAC1064_XVREFCTRL 0x18
62 #define DAC1064_XVREFCTRL_INTERNAL 0x3F
63 #define DAC1064_XVREFCTRL_EXTERNAL 0x00
64 #define DAC1064_XVREFCTRL_G100_DEFAULT 0x03
65 #define M1064_XMULCTRL 0x19
66 #define M1064_XMULCTRL_DEPTH_8BPP 0x00
67 #define M1064_XMULCTRL_DEPTH_15BPP_1BPP 0x01
68 #define M1064_XMULCTRL_DEPTH_16BPP 0x02
69 #define M1064_XMULCTRL_DEPTH_24BPP 0x03
70 #define M1064_XMULCTRL_DEPTH_24BPP_8BPP 0x04
71 #define M1064_XMULCTRL_2G8V16 0x05
72 #define M1064_XMULCTRL_G16V16 0x06
73 #define M1064_XMULCTRL_DEPTH_32BPP 0x07
74 #define M1064_XMULCTRL_GRAPHICS_PALETIZED 0x00
75 #define M1064_XMULCTRL_VIDEO_PALETIZED 0x08
76 #define M1064_XPIXCLKCTRL 0x1A
77 #define M1064_XPIXCLKCTRL_SRC_PCI 0x00
78 #define M1064_XPIXCLKCTRL_SRC_PLL 0x01
79 #define M1064_XPIXCLKCTRL_SRC_EXT 0x02
80 #define M1064_XPIXCLKCTRL_SRC_SYS 0x03
81 #define M1064_XPIXCLKCTRL_SRC_PLL2 0x03
82 #define M1064_XPIXCLKCTRL_SRC_MASK 0x03
83 #define M1064_XPIXCLKCTRL_EN 0x00
84 #define M1064_XPIXCLKCTRL_DIS 0x04
85 #define M1064_XPIXCLKCTRL_PLL_DOWN 0x00
86 #define M1064_XPIXCLKCTRL_PLL_UP 0x08
87 #define M1064_XGENCTRL 0x1D
88 #define M1064_XGENCTRL_VS_0 0x00
89 #define M1064_XGENCTRL_VS_1 0x01
90 #define M1064_XGENCTRL_ALPHA_DIS 0x00
91 #define M1064_XGENCTRL_ALPHA_EN 0x02
92 #define M1064_XGENCTRL_BLACK_0IRE 0x00
93 #define M1064_XGENCTRL_BLACK_75IRE 0x10
94 #define M1064_XGENCTRL_SYNC_ON_GREEN 0x00
95 #define M1064_XGENCTRL_NO_SYNC_ON_GREEN 0x20
96 #define M1064_XGENCTRL_SYNC_ON_GREEN_MASK 0x20
97 #define M1064_XMISCCTRL 0x1E
98 #define M1064_XMISCCTRL_DAC_DIS 0x00
99 #define M1064_XMISCCTRL_DAC_EN 0x01
100 #define M1064_XMISCCTRL_MFC_VGA 0x00
101 #define M1064_XMISCCTRL_MFC_MAFC 0x02
102 #define M1064_XMISCCTRL_MFC_DIS 0x06
103 #define GX00_XMISCCTRL_MFC_MAFC 0x02
104 #define GX00_XMISCCTRL_MFC_PANELLINK 0x04
105 #define GX00_XMISCCTRL_MFC_DIS 0x06
106 #define GX00_XMISCCTRL_MFC_MASK 0x06
107 #define M1064_XMISCCTRL_DAC_6BIT 0x00
108 #define M1064_XMISCCTRL_DAC_8BIT 0x08
109 #define M1064_XMISCCTRL_DAC_WIDTHMASK 0x08
110 #define M1064_XMISCCTRL_LUT_DIS 0x00
111 #define M1064_XMISCCTRL_LUT_EN 0x10
112 #define G400_XMISCCTRL_VDO_MAFC12 0x00
113 #define G400_XMISCCTRL_VDO_BYPASS656 0x40
114 #define G400_XMISCCTRL_VDO_C2_MAFC12 0x80
115 #define G400_XMISCCTRL_VDO_C2_BYPASS656 0xC0
116 #define G400_XMISCCTRL_VDO_MASK 0xE0
117 #define M1064_XGENIOCTRL 0x2A
118 #define M1064_XGENIODATA 0x2B
119 #define DAC1064_XSYSPLLM 0x2C
120 #define DAC1064_XSYSPLLN 0x2D
121 #define DAC1064_XSYSPLLP 0x2E
122 #define DAC1064_XSYSPLLSTAT 0x2F
123 #define M1064_XZOOMCTRL 0x38
124 #define M1064_XZOOMCTRL_1 0x00
125 #define M1064_XZOOMCTRL_2 0x01
126 #define M1064_XZOOMCTRL_4 0x03
127 #define M1064_XSENSETEST 0x3A
128 #define M1064_XSENSETEST_BCOMP 0x01
129 #define M1064_XSENSETEST_GCOMP 0x02
130 #define M1064_XSENSETEST_RCOMP 0x04
131 #define M1064_XSENSETEST_PDOWN 0x00
132 #define M1064_XSENSETEST_PUP 0x80
133 #define M1064_XCRCREML 0x3C
134 #define M1064_XCRCREMH 0x3D
135 #define M1064_XCRCBITSEL 0x3E
136 #define M1064_XCOLKEYMASKL 0x40
137 #define M1064_XCOLKEYMASKH 0x41
138 #define M1064_XCOLKEYL 0x42
139 #define M1064_XCOLKEYH 0x43
140 #define M1064_XPIXPLLAM 0x44
141 #define M1064_XPIXPLLAN 0x45
142 #define M1064_XPIXPLLAP 0x46
143 #define M1064_XPIXPLLBM 0x48
144 #define M1064_XPIXPLLBN 0x49
145 #define M1064_XPIXPLLBP 0x4A
146 #define M1064_XPIXPLLCM 0x4C
147 #define M1064_XPIXPLLCN 0x4D
148 #define M1064_XPIXPLLCP 0x4E
149 #define M1064_XPIXPLLSTAT 0x4F
151 #define M1064_XTVO_IDX 0x87
152 #define M1064_XTVO_DATA 0x88
154 #define M1064_XOUTPUTCONN 0x8A
155 #define M1064_XSYNCCTRL 0x8B
156 #define M1064_XVIDPLLSTAT 0x8C
157 #define M1064_XVIDPLLP 0x8D
158 #define M1064_XVIDPLLM 0x8E
159 #define M1064_XVIDPLLN 0x8F
161 #define M1064_XPWRCTRL 0xA0
162 #define M1064_XPWRCTRL_PANELPDN 0x04
164 #define M1064_XPANMODE 0xA2