1 #define MODULE_BIT 0x00004000
2 
3 /* Maven bus address */
4 #define MAVEN_WRITE (0x1B<<1)
5 #define MAVEN_READ ((0x1B<<1)|1)
6 
7 #define I2C_CLOCK 0x20
8 #define I2C_DATA 0x10
9 
10 /* MGA-TVO-C I2C (G200), Maven (G400) */
11 #define I2C_CLOCK 0x20
12 #define I2C_DATA 0x10
13 /* primary head DDC for Mystique(?), G100, G200, G400 */
14 #define DDC1_CLK        0x08
15 #define DDC1_DATA       0x02
16 /* primary head DDC for Millennium, Millennium II */
17 #define DDC1B_CLK       0x10
18 #define DDC1B_DATA      0x04
19 /* secondary head DDC for G400, G450 and G550 */
20 #define DDC2_CLK        0x04
21 #define DDC2_DATA       0x01
22 
23 /*MAVEN registers (<= G400) */
24 #define MGAMAV_PGM            0x3E
25 #define MGAMAV_PIXPLLM        0x80
26 #define MGAMAV_PIXPLLN        0x81
27 #define MGAMAV_PIXPLLP        0x82
28 #define MGAMAV_GAMMA1         0x83
29 #define MGAMAV_GAMMA2         0x84
30 #define MGAMAV_GAMMA3         0x85
31 #define MGAMAV_GAMMA4         0x86
32 #define MGAMAV_GAMMA5         0x87
33 #define MGAMAV_GAMMA6         0x88
34 #define MGAMAV_GAMMA7         0x89
35 #define MGAMAV_GAMMA8         0x8A
36 #define MGAMAV_GAMMA9         0x8B
37 #define MGAMAV_MONSET         0x8C
38 #define MGAMAV_TEST           0x8D
39 #define MGAMAV_WREG_0X8E_L    0x8E
40 #define MGAMAV_WREG_0X8E_H    0x8F
41 #define MGAMAV_HSCALETV       0x90
42 #define MGAMAV_TSCALETVL      0x91
43 #define MGAMAV_TSCALETVH      0x92
44 #define MGAMAV_FFILTER        0x93
45 #define MGAMAV_MONEN          0x94
46 #define MGAMAV_RESYNC         0x95
47 #define MGAMAV_LASTLINEL      0x96
48 #define MGAMAV_LASTLINEH      0x97
49 #define MGAMAV_WREG_0X98_L    0x98
50 #define MGAMAV_WREG_0X98_H    0x99
51 #define MGAMAV_HSYNCLENL      0x9A
52 #define MGAMAV_HSYNCLENH      0x9B
53 #define MGAMAV_HSYNCSTRL      0x9C
54 #define MGAMAV_HSYNCSTRH      0x9D
55 #define MGAMAV_HDISPLAYL      0x9E
56 #define MGAMAV_HDISPLAYH      0x9F
57 #define MGAMAV_HTOTALL        0xA0
58 #define MGAMAV_HTOTALH        0xA1
59 #define MGAMAV_VSYNCLENL      0xA2
60 #define MGAMAV_VSYNCLENH      0xA3
61 #define MGAMAV_VSYNCSTRL      0xA4
62 #define MGAMAV_VSYNCSTRH      0xA5
63 #define MGAMAV_VDISPLAYL      0xA6
64 #define MGAMAV_VDISPLAYH      0xA7
65 #define MGAMAV_VTOTALL        0xA8
66 #define MGAMAV_VTOTALH        0xA9
67 #define MGAMAV_HVIDRSTL       0xAA
68 #define MGAMAV_HVIDRSTH       0xAB
69 #define MGAMAV_VVIDRSTL       0xAC
70 #define MGAMAV_VVIDRSTH       0xAD
71 #define MGAMAV_VSOMETHINGL    0xAE
72 #define MGAMAV_VSOMETHINGH    0xAF
73 #define MGAMAV_OUTMODE        0xB0
74 #define MGAMAV_LOCK           0xB3
75 #define MGAMAV_LUMA           0xB9
76 #define MGAMAV_VDISPLAYTV     0xBE
77 #define MGAMAV_STABLE         0xBF
78 #define MGAMAV_HDISPLAYTV     0xC2
79 #define MGAMAV_BREG_0XC6      0xC6
80 
81