Subversion Repositories shark

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
54 pj 1
/*
2
 * Taken from XFree86.  XFree86 copyrights apply.
3
 */
4
 
5
/* $XFree86: xc/programs/Xserver/hw/xfree86/common_hw/IBMRGB.h,v 3.0 1995/06/29 13:32:11 dawes Exp $ */
6
 
7
#define IBMRGB_REF_FREQ_1       14.31818
8
#define IBMRGB_REF_FREQ_2       50.00000
9
 
10
/* #ifdef S3_SERVER */
11
/* Direct standard VGA registers, special index and data registers */
12
 
13
#define IBMRGB_WRITE_ADDR           0x3C8       /* CR55 low bit == 0 */
14
#define IBMRGB_RAMDAC_DATA          0x3C9       /* CR55 low bit == 0 */
15
#define IBMRGB_PIXEL_MASK           0x3C6       /* CR55 low bit == 0 */
16
#define IBMRGB_READ_ADDR            0x3C7       /* CR55 low bit == 0 */
17
#define IBMRGB_INDEX_LOW            0x3C8       /* CR55 low bit == 1 */
18
#define IBMRGB_INDEX_HIGH           0x3C9       /* CR55 low bit == 1 */
19
#define IBMRGB_INDEX_DATA           0x3C6       /* CR55 low bit == 1 */
20
#define IBMRGB_INDEX_CONTROL        0x3C7       /* CR55 low bit == 1 */
21
/* #endif */
22
 
23
#define IBMRGB_rev              0x00
24
#define IBMRGB_id               0x01
25
#define IBMRGB_misc_clock       0x02
26
#define IBMRGB_sync             0x03
27
#define IBMRGB_hsync_pos        0x04
28
#define IBMRGB_pwr_mgmt         0x05
29
#define IBMRGB_dac_op           0x06
30
#define IBMRGB_pal_ctrl         0x07
31
#define IBMRGB_sysclk           0x08    /* not RGB525 */
32
#define IBMRGB_pix_fmt          0x0a
33
#define IBMRGB_8bpp             0x0b
34
#define IBMRGB_16bpp            0x0c
35
#define IBMRGB_24bpp            0x0d
36
#define IBMRGB_32bpp            0x0e
37
#define IBMRGB_pll_ctrl1        0x10
38
#define IBMRGB_pll_ctrl2        0x11
39
#define IBMRGB_pll_ref_div_fix  0x14
40
#define IBMRGB_sysclk_ref_div   0x15    /* not RGB525 */
41
#define IBMRGB_sysclk_vco_div   0x16    /* not RGB525 */
42
#define IBMRGB_f0               0x20
43
#define IBMRGB_m0               0x20
44
#define IBMRGB_n0               0x21
45
#define IBMRGB_curs             0x30
46
#define IBMRGB_curs_xl          0x31
47
#define IBMRGB_curs_xh          0x32
48
#define IBMRGB_curs_yl          0x33
49
#define IBMRGB_curs_yh          0x34
50
#define IBMRGB_curs_hot_x       0x35
51
#define IBMRGB_curs_hot_y       0x36
52
#define IBMRGB_curs_col1_r      0x40
53
#define IBMRGB_curs_col1_g      0x41
54
#define IBMRGB_curs_col1_b      0x42
55
#define IBMRGB_curs_col2_r      0x43
56
#define IBMRGB_curs_col2_g      0x44
57
#define IBMRGB_curs_col2_b      0x45
58
#define IBMRGB_curs_col3_r      0x46
59
#define IBMRGB_curs_col3_g      0x47
60
#define IBMRGB_curs_col3_b      0x48
61
#define IBMRGB_border_col_r     0x60
62
#define IBMRGB_border_col_g     0x61
63
#define IBMRGB_botder_col_b     0x62
64
#define IBMRGB_misc1            0x70
65
#define IBMRGB_misc2            0x71
66
#define IBMRGB_misc3            0x72
67
#define IBMRGB_misc4            0x73    /* not RGB525 */
68
#define IBMRGB_dac_sense        0x82
69
#define IBMRGB_misr_r           0x84
70
#define IBMRGB_misr_g           0x86
71
#define IBMRGB_misr_b           0x88
72
#define IBMRGB_pll_vco_div_in   0x8e
73
#define IBMRGB_pll_ref_div_in   0x8f
74
#define IBMRGB_vram_mask_0      0x90
75
#define IBMRGB_vram_mask_1      0x91
76
#define IBMRGB_vram_mask_2      0x92
77
#define IBMRGB_vram_mask_3      0x93
78
#define IBMRGB_curs_array       0x100