annotate drivers/radeon/radeon.h @ 1911:89313cfc8fec

Initial import of Ani Joshi's radeonfb-0.0.9
author nick
date Tue, 18 Sep 2001 16:12:34 +0000
parents
children 33afcb62fc64
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1911
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
1 #ifndef _RADEON_H
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
2 #define _RADEON_H
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
3
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
5 /* radeon PCI ids */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
6 #define PCI_DEVICE_ID_RADEON_QD 0x5144
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
7 #define PCI_DEVICE_ID_RADEON_QE 0x5145
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
8 #define PCI_DEVICE_ID_RADEON_QF 0x5146
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
9 #define PCI_DEVICE_ID_RADEON_QG 0x5147
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
10
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
11 #define RADEON_REGSIZE 0x4000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
12
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
13
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
14 #define MM_INDEX 0x0000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
15 #define MM_DATA 0x0004
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
16 #define BUS_CNTL 0x0030
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
17 #define HI_STAT 0x004C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
18 #define BUS_CNTL1 0x0034
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
19 #define I2C_CNTL_1 0x0094
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
20 #define CONFIG_CNTL 0x00E0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
21 #define CONFIG_MEMSIZE 0x00F8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
22 #define CONFIG_APER_0_BASE 0x0100
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
23 #define CONFIG_APER_1_BASE 0x0104
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
24 #define CONFIG_APER_SIZE 0x0108
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
25 #define CONFIG_REG_1_BASE 0x010C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
26 #define CONFIG_REG_APER_SIZE 0x0110
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
27 #define PAD_AGPINPUT_DELAY 0x0164
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
28 #define PAD_CTLR_STRENGTH 0x0168
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
29 #define PAD_CTLR_UPDATE 0x016C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
30 #define AGP_CNTL 0x0174
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
31 #define BM_STATUS 0x0160
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
32 #define CAP0_TRIG_CNTL 0x0950
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
33 #define VIPH_CONTROL 0x0C40
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
34 #define VENDOR_ID 0x0F00
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
35 #define DEVICE_ID 0x0F02
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
36 #define COMMAND 0x0F04
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
37 #define STATUS 0x0F06
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
38 #define REVISION_ID 0x0F08
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
39 #define REGPROG_INF 0x0F09
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
40 #define SUB_CLASS 0x0F0A
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
41 #define BASE_CODE 0x0F0B
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
42 #define CACHE_LINE 0x0F0C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
43 #define LATENCY 0x0F0D
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
44 #define HEADER 0x0F0E
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
45 #define BIST 0x0F0F
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
46 #define REG_MEM_BASE 0x0F10
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
47 #define REG_IO_BASE 0x0F14
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
48 #define REG_REG_BASE 0x0F18
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
49 #define ADAPTER_ID 0x0F2C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
50 #define BIOS_ROM 0x0F30
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
51 #define CAPABILITIES_PTR 0x0F34
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
52 #define INTERRUPT_LINE 0x0F3C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
53 #define INTERRUPT_PIN 0x0F3D
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
54 #define MIN_GRANT 0x0F3E
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
55 #define MAX_LATENCY 0x0F3F
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
56 #define ADAPTER_ID_W 0x0F4C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
57 #define PMI_CAP_ID 0x0F50
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
58 #define PMI_NXT_CAP_PTR 0x0F51
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
59 #define PMI_PMC_REG 0x0F52
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
60 #define PM_STATUS 0x0F54
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
61 #define PMI_DATA 0x0F57
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
62 #define AGP_CAP_ID 0x0F58
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
63 #define AGP_STATUS 0x0F5C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
64 #define AGP_COMMAND 0x0F60
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
65 #define AIC_CTRL 0x01D0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
66 #define AIC_STAT 0x01D4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
67 #define AIC_PT_BASE 0x01D8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
68 #define AIC_LO_ADDR 0x01DC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
69 #define AIC_HI_ADDR 0x01E0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
70 #define AIC_TLB_ADDR 0x01E4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
71 #define AIC_TLB_DATA 0x01E8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
72 #define DAC_CNTL 0x0058
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
73 #define CRTC_GEN_CNTL 0x0050
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
74 #define MEM_CNTL 0x0140
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
75 #define EXT_MEM_CNTL 0x0144
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
76 #define MC_AGP_LOCATION 0x014C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
77 #define MEM_IO_CNTL_A0 0x0178
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
78 #define MEM_INIT_LATENCY_TIMER 0x0154
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
79 #define MEM_SDRAM_MODE_REG 0x0158
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
80 #define AGP_BASE 0x0170
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
81 #define MEM_IO_CNTL_A1 0x017C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
82 #define MEM_IO_CNTL_B0 0x0180
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
83 #define MEM_IO_CNTL_B1 0x0184
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
84 #define MC_DEBUG 0x0188
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
85 #define MC_STATUS 0x0150
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
86 #define MEM_IO_OE_CNTL 0x018C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
87 #define MC_FB_LOCATION 0x0148
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
88 #define HOST_PATH_CNTL 0x0130
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
89 #define MEM_VGA_WP_SEL 0x0038
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
90 #define MEM_VGA_RP_SEL 0x003C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
91 #define HDP_DEBUG 0x0138
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
92 #define SW_SEMAPHORE 0x013C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
93 #define SURFACE_CNTL 0x0B00
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
94 #define SURFACE0_LOWER_BOUND 0x0B04
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
95 #define SURFACE1_LOWER_BOUND 0x0B14
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
96 #define SURFACE2_LOWER_BOUND 0x0B24
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
97 #define SURFACE3_LOWER_BOUND 0x0B34
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
98 #define SURFACE4_LOWER_BOUND 0x0B44
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
99 #define SURFACE5_LOWER_BOUND 0x0B54
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
100 #define SURFACE6_LOWER_BOUND 0x0B64
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
101 #define SURFACE7_LOWER_BOUND 0x0B74
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
102 #define SURFACE0_UPPER_BOUND 0x0B08
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
103 #define SURFACE1_UPPER_BOUND 0x0B18
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
104 #define SURFACE2_UPPER_BOUND 0x0B28
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
105 #define SURFACE3_UPPER_BOUND 0x0B38
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
106 #define SURFACE4_UPPER_BOUND 0x0B48
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
107 #define SURFACE5_UPPER_BOUND 0x0B58
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
108 #define SURFACE6_UPPER_BOUND 0x0B68
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
109 #define SURFACE7_UPPER_BOUND 0x0B78
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
110 #define SURFACE0_INFO 0x0B0C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
111 #define SURFACE1_INFO 0x0B1C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
112 #define SURFACE2_INFO 0x0B2C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
113 #define SURFACE3_INFO 0x0B3C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
114 #define SURFACE4_INFO 0x0B4C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
115 #define SURFACE5_INFO 0x0B5C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
116 #define SURFACE6_INFO 0x0B6C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
117 #define SURFACE7_INFO 0x0B7C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
118 #define SURFACE_ACCESS_FLAGS 0x0BF8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
119 #define SURFACE_ACCESS_CLR 0x0BFC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
120 #define GEN_INT_CNTL 0x0040
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
121 #define GEN_INT_STATUS 0x0044
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
122 #define CRTC_EXT_CNTL 0x0054
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
123 #define RB3D_CNTL 0x1C3C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
124 #define WAIT_UNTIL 0x1720
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
125 #define ISYNC_CNTL 0x1724
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
126 #define RBBM_GUICNTL 0x172C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
127 #define RBBM_STATUS 0x0E40
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
128 #define RBBM_STATUS_alt_1 0x1740
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
129 #define RBBM_CNTL 0x00EC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
130 #define RBBM_CNTL_alt_1 0x0E44
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
131 #define RBBM_SOFT_RESET 0x00F0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
132 #define RBBM_SOFT_RESET_alt_1 0x0E48
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
133 #define NQWAIT_UNTIL 0x0E50
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
134 #define RBBM_DEBUG 0x0E6C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
135 #define RBBM_CMDFIFO_ADDR 0x0E70
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
136 #define RBBM_CMDFIFO_DATAL 0x0E74
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
137 #define RBBM_CMDFIFO_DATAH 0x0E78
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
138 #define RBBM_CMDFIFO_STAT 0x0E7C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
139 #define CRTC_STATUS 0x005C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
140 #define GPIO_VGA_DDC 0x0060
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
141 #define GPIO_DVI_DDC 0x0064
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
142 #define GPIO_MONID 0x0068
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
143 #define PALETTE_INDEX 0x00B0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
144 #define PALETTE_DATA 0x00B4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
145 #define PALETTE_30_DATA 0x00B8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
146 #define CRTC_H_TOTAL_DISP 0x0200
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
147 #define CRTC_H_SYNC_STRT_WID 0x0204
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
148 #define CRTC_V_TOTAL_DISP 0x0208
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
149 #define CRTC_V_SYNC_STRT_WID 0x020C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
150 #define CRTC_VLINE_CRNT_VLINE 0x0210
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
151 #define CRTC_CRNT_FRAME 0x0214
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
152 #define CRTC_GUI_TRIG_VLINE 0x0218
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
153 #define CRTC_DEBUG 0x021C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
154 #define CRTC_OFFSET_RIGHT 0x0220
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
155 #define CRTC_OFFSET 0x0224
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
156 #define CRTC_OFFSET_CNTL 0x0228
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
157 #define CRTC_PITCH 0x022C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
158 #define OVR_CLR 0x0230
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
159 #define OVR_WID_LEFT_RIGHT 0x0234
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
160 #define OVR_WID_TOP_BOTTOM 0x0238
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
161 #define DISPLAY_BASE_ADDR 0x023C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
162 #define SNAPSHOT_VH_COUNTS 0x0240
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
163 #define SNAPSHOT_F_COUNT 0x0244
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
164 #define N_VIF_COUNT 0x0248
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
165 #define SNAPSHOT_VIF_COUNT 0x024C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
166 #define FP_CRTC_H_TOTAL_DISP 0x0250
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
167 #define FP_CRTC_V_TOTAL_DISP 0x0254
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
168 #define CRT_CRTC_H_SYNC_STRT_WID 0x0258
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
169 #define CRT_CRTC_V_SYNC_STRT_WID 0x025C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
170 #define CUR_OFFSET 0x0260
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
171 #define CUR_HORZ_VERT_POSN 0x0264
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
172 #define CUR_HORZ_VERT_OFF 0x0268
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
173 #define CUR_CLR0 0x026C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
174 #define CUR_CLR1 0x0270
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
175 #define FP_HORZ_VERT_ACTIVE 0x0278
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
176 #define CRTC_MORE_CNTL 0x027C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
177 #define DAC_EXT_CNTL 0x0280
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
178 #define FP_GEN_CNTL 0x0284
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
179 #define FP_HORZ_STRETCH 0x028C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
180 #define FP_VERT_STRETCH 0x0290
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
181 #define FP_H_SYNC_STRT_WID 0x02C4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
182 #define FP_V_SYNC_STRT_WID 0x02C8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
183 #define AUX_WINDOW_HORZ_CNTL 0x02D8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
184 #define AUX_WINDOW_VERT_CNTL 0x02DC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
185 #define DDA_CONFIG 0x02e0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
186 #define DDA_ON_OFF 0x02e4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
187 #define GRPH_BUFFER_CNTL 0x02F0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
188 #define VGA_BUFFER_CNTL 0x02F4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
189 #define OV0_Y_X_START 0x0400
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
190 #define OV0_Y_X_END 0x0404
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
191 #define OV0_PIPELINE_CNTL 0x0408
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
192 #define OV0_REG_LOAD_CNTL 0x0410
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
193 #define OV0_SCALE_CNTL 0x0420
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
194 #define OV0_V_INC 0x0424
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
195 #define OV0_P1_V_ACCUM_INIT 0x0428
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
196 #define OV0_P23_V_ACCUM_INIT 0x042C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
197 #define OV0_P1_BLANK_LINES_AT_TOP 0x0430
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
198 #define OV0_P23_BLANK_LINES_AT_TOP 0x0434
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
199 #define OV0_BASE_ADDR 0x043C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
200 #define OV0_VID_BUF0_BASE_ADRS 0x0440
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
201 #define OV0_VID_BUF1_BASE_ADRS 0x0444
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
202 #define OV0_VID_BUF2_BASE_ADRS 0x0448
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
203 #define OV0_VID_BUF3_BASE_ADRS 0x044C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
204 #define OV0_VID_BUF4_BASE_ADRS 0x0450
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
205 #define OV0_VID_BUF5_BASE_ADRS 0x0454
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
206 #define OV0_VID_BUF_PITCH0_VALUE 0x0460
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
207 #define OV0_VID_BUF_PITCH1_VALUE 0x0464
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
208 #define OV0_AUTO_FLIP_CNTRL 0x0470
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
209 #define OV0_DEINTERLACE_PATTERN 0x0474
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
210 #define OV0_SUBMIT_HISTORY 0x0478
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
211 #define OV0_H_INC 0x0480
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
212 #define OV0_STEP_BY 0x0484
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
213 #define OV0_P1_H_ACCUM_INIT 0x0488
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
214 #define OV0_P23_H_ACCUM_INIT 0x048C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
215 #define OV0_P1_X_START_END 0x0494
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
216 #define OV0_P2_X_START_END 0x0498
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
217 #define OV0_P3_X_START_END 0x049C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
218 #define OV0_FILTER_CNTL 0x04A0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
219 #define OV0_FOUR_TAP_COEF_0 0x04B0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
220 #define OV0_FOUR_TAP_COEF_1 0x04B4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
221 #define OV0_FOUR_TAP_COEF_2 0x04B8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
222 #define OV0_FOUR_TAP_COEF_3 0x04BC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
223 #define OV0_FOUR_TAP_COEF_4 0x04C0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
224 #define OV0_FLAG_CNTRL 0x04DC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
225 #define OV0_SLICE_CNTL 0x04E0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
226 #define OV0_VID_KEY_CLR_LOW 0x04E4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
227 #define OV0_VID_KEY_CLR_HIGH 0x04E8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
228 #define OV0_GRPH_KEY_CLR_LOW 0x04EC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
229 #define OV0_GRPH_KEY_CLR_HIGH 0x04F0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
230 #define OV0_KEY_CNTL 0x04F4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
231 #define OV0_TEST 0x04F8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
232 #define SUBPIC_CNTL 0x0540
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
233 #define SUBPIC_DEFCOLCON 0x0544
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
234 #define SUBPIC_Y_X_START 0x054C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
235 #define SUBPIC_Y_X_END 0x0550
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
236 #define SUBPIC_V_INC 0x0554
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
237 #define SUBPIC_H_INC 0x0558
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
238 #define SUBPIC_BUF0_OFFSET 0x055C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
239 #define SUBPIC_BUF1_OFFSET 0x0560
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
240 #define SUBPIC_LC0_OFFSET 0x0564
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
241 #define SUBPIC_LC1_OFFSET 0x0568
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
242 #define SUBPIC_PITCH 0x056C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
243 #define SUBPIC_BTN_HLI_COLCON 0x0570
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
244 #define SUBPIC_BTN_HLI_Y_X_START 0x0574
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
245 #define SUBPIC_BTN_HLI_Y_X_END 0x0578
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
246 #define SUBPIC_PALETTE_INDEX 0x057C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
247 #define SUBPIC_PALETTE_DATA 0x0580
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
248 #define SUBPIC_H_ACCUM_INIT 0x0584
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
249 #define SUBPIC_V_ACCUM_INIT 0x0588
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
250 #define DISP_MISC_CNTL 0x0D00
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
251 #define DAC_MACRO_CNTL 0x0D04
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
252 #define DISP_PWR_MAN 0x0D08
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
253 #define DISP_TEST_DEBUG_CNTL 0x0D10
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
254 #define DISP_HW_DEBUG 0x0D14
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
255 #define DAC_CRC_SIG1 0x0D18
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
256 #define DAC_CRC_SIG2 0x0D1C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
257 #define OV0_LIN_TRANS_A 0x0D20
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
258 #define OV0_LIN_TRANS_B 0x0D24
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
259 #define OV0_LIN_TRANS_C 0x0D28
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
260 #define OV0_LIN_TRANS_D 0x0D2C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
261 #define OV0_LIN_TRANS_E 0x0D30
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
262 #define OV0_LIN_TRANS_F 0x0D34
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
263 #define OV0_GAMMA_0_F 0x0D40
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
264 #define OV0_GAMMA_10_1F 0x0D44
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
265 #define OV0_GAMMA_20_3F 0x0D48
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
266 #define OV0_GAMMA_40_7F 0x0D4C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
267 #define OV0_GAMMA_380_3BF 0x0D50
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
268 #define OV0_GAMMA_3C0_3FF 0x0D54
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
269 #define DISP_MERGE_CNTL 0x0D60
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
270 #define DISP_OUTPUT_CNTL 0x0D64
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
271 #define DISP_LIN_TRANS_GRPH_A 0x0D80
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
272 #define DISP_LIN_TRANS_GRPH_B 0x0D84
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
273 #define DISP_LIN_TRANS_GRPH_C 0x0D88
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
274 #define DISP_LIN_TRANS_GRPH_D 0x0D8C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
275 #define DISP_LIN_TRANS_GRPH_E 0x0D90
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
276 #define DISP_LIN_TRANS_GRPH_F 0x0D94
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
277 #define DISP_LIN_TRANS_VID_A 0x0D98
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
278 #define DISP_LIN_TRANS_VID_B 0x0D9C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
279 #define DISP_LIN_TRANS_VID_C 0x0DA0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
280 #define DISP_LIN_TRANS_VID_D 0x0DA4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
281 #define DISP_LIN_TRANS_VID_E 0x0DA8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
282 #define DISP_LIN_TRANS_VID_F 0x0DAC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
283 #define RMX_HORZ_FILTER_0TAP_COEF 0x0DB0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
284 #define RMX_HORZ_FILTER_1TAP_COEF 0x0DB4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
285 #define RMX_HORZ_FILTER_2TAP_COEF 0x0DB8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
286 #define RMX_HORZ_PHASE 0x0DBC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
287 #define DAC_EMBEDDED_SYNC_CNTL 0x0DC0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
288 #define DAC_BROAD_PULSE 0x0DC4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
289 #define DAC_SKEW_CLKS 0x0DC8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
290 #define DAC_INCR 0x0DCC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
291 #define DAC_NEG_SYNC_LEVEL 0x0DD0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
292 #define DAC_POS_SYNC_LEVEL 0x0DD4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
293 #define DAC_BLANK_LEVEL 0x0DD8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
294 #define CLOCK_CNTL_INDEX 0x0008
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
295 #define CLOCK_CNTL_DATA 0x000C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
296 #define CP_RB_CNTL 0x0704
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
297 #define CP_RB_BASE 0x0700
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
298 #define CP_RB_RPTR_ADDR 0x070C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
299 #define CP_RB_RPTR 0x0710
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
300 #define CP_RB_WPTR 0x0714
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
301 #define CP_RB_WPTR_DELAY 0x0718
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
302 #define CP_IB_BASE 0x0738
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
303 #define CP_IB_BUFSZ 0x073C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
304 #define SCRATCH_REG0 0x15E0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
305 #define GUI_SCRATCH_REG0 0x15E0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
306 #define SCRATCH_REG1 0x15E4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
307 #define GUI_SCRATCH_REG1 0x15E4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
308 #define SCRATCH_REG2 0x15E8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
309 #define GUI_SCRATCH_REG2 0x15E8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
310 #define SCRATCH_REG3 0x15EC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
311 #define GUI_SCRATCH_REG3 0x15EC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
312 #define SCRATCH_REG4 0x15F0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
313 #define GUI_SCRATCH_REG4 0x15F0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
314 #define SCRATCH_REG5 0x15F4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
315 #define GUI_SCRATCH_REG5 0x15F4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
316 #define SCRATCH_UMSK 0x0770
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
317 #define SCRATCH_ADDR 0x0774
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
318 #define DP_BRUSH_FRGD_CLR 0x147C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
319 #define DP_BRUSH_BKGD_CLR 0x1478
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
320 #define DST_LINE_START 0x1600
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
321 #define DST_LINE_END 0x1604
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
322 #define SRC_OFFSET 0x15AC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
323 #define SRC_PITCH 0x15B0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
324 #define SRC_TILE 0x1704
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
325 #define SRC_PITCH_OFFSET 0x1428
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
326 #define SRC_X 0x1414
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
327 #define SRC_Y 0x1418
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
328 #define SRC_X_Y 0x1590
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
329 #define SRC_Y_X 0x1434
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
330 #define DST_Y_X 0x1438
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
331 #define DST_WIDTH_HEIGHT 0x1598
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
332 #define DST_HEIGHT_WIDTH 0x143c
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
333 #define SRC_CLUT_ADDRESS 0x1780
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
334 #define SRC_CLUT_DATA 0x1784
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
335 #define SRC_CLUT_DATA_RD 0x1788
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
336 #define HOST_DATA0 0x17C0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
337 #define HOST_DATA1 0x17C4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
338 #define HOST_DATA2 0x17C8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
339 #define HOST_DATA3 0x17CC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
340 #define HOST_DATA4 0x17D0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
341 #define HOST_DATA5 0x17D4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
342 #define HOST_DATA6 0x17D8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
343 #define HOST_DATA7 0x17DC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
344 #define HOST_DATA_LAST 0x17E0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
345 #define DP_SRC_ENDIAN 0x15D4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
346 #define DP_SRC_FRGD_CLR 0x15D8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
347 #define DP_SRC_BKGD_CLR 0x15DC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
348 #define SC_LEFT 0x1640
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
349 #define SC_RIGHT 0x1644
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
350 #define SC_TOP 0x1648
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
351 #define SC_BOTTOM 0x164C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
352 #define SRC_SC_RIGHT 0x1654
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
353 #define SRC_SC_BOTTOM 0x165C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
354 #define DP_CNTL 0x16C0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
355 #define DP_CNTL_XDIR_YDIR_YMAJOR 0x16D0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
356 #define DP_DATATYPE 0x16C4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
357 #define DP_MIX 0x16C8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
358 #define DP_WRITE_MSK 0x16CC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
359 #define DP_XOP 0x17F8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
360 #define CLR_CMP_CLR_SRC 0x15C4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
361 #define CLR_CMP_CLR_DST 0x15C8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
362 #define CLR_CMP_CNTL 0x15C0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
363 #define CLR_CMP_MSK 0x15CC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
364 #define DSTCACHE_MODE 0x1710
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
365 #define DSTCACHE_CTLSTAT 0x1714
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
366 #define DEFAULT_PITCH_OFFSET 0x16E0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
367 #define DEFAULT_SC_BOTTOM_RIGHT 0x16E8
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
368 #define DP_GUI_MASTER_CNTL 0x146C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
369 #define SC_TOP_LEFT 0x16EC
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
370 #define SC_BOTTOM_RIGHT 0x16F0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
371 #define SRC_SC_BOTTOM_RIGHT 0x16F4
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
372 #define RB2D_DSTCACHE_CTLSTAT 0x342C
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
373
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
374
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
375 #define CLK_PIN_CNTL 0x0001
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
376 #define PPLL_CNTL 0x0002
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
377 #define PPLL_REF_DIV 0x0003
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
378 #define PPLL_DIV_0 0x0004
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
379 #define PPLL_DIV_1 0x0005
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
380 #define PPLL_DIV_2 0x0006
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
381 #define PPLL_DIV_3 0x0007
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
382 #define VCLK_ECP_CNTL 0x0008
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
383 #define HTOTAL_CNTL 0x0009
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
384 #define M_SPLL_REF_FB_DIV 0x000a
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
385 #define AGP_PLL_CNTL 0x000b
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
386 #define SPLL_CNTL 0x000c
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
387 #define SCLK_CNTL 0x000d
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
388 #define MPLL_CNTL 0x000e
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
389 #define MCLK_CNTL 0x0012
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
390 #define AGP_PLL_CNTL 0x000b
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
391 #define PLL_TEST_CNTL 0x0013
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
392
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
393
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
394 /* MCLK_CNTL bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
395 #define FORCEON_MCLKA (1 << 16)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
396 #define FORCEON_MCLKB (1 << 17)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
397 #define FORCEON_YCLKA (1 << 18)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
398 #define FORCEON_YCLKB (1 << 19)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
399 #define FORCEON_MC (1 << 20)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
400 #define FORCEON_AIC (1 << 21)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
401
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
402
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
403 /* BUS_CNTL bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
404 #define BUS_DBL_RESYNC 0x00000001
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
405 #define BUS_MSTR_RESET 0x00000002
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
406 #define BUS_FLUSH_BUF 0x00000004
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
407 #define BUS_STOP_REQ_DIS 0x00000008
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
408 #define BUS_ROTATION_DIS 0x00000010
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
409 #define BUS_MASTER_DIS 0x00000040
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
410 #define BUS_ROM_WRT_EN 0x00000080
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
411 #define BUS_DIS_ROM 0x00001000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
412 #define BUS_PCI_READ_RETRY_EN 0x00002000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
413 #define BUS_AGP_AD_STEPPING_EN 0x00004000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
414 #define BUS_PCI_WRT_RETRY_EN 0x00008000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
415 #define BUS_MSTR_RD_MULT 0x00100000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
416 #define BUS_MSTR_RD_LINE 0x00200000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
417 #define BUS_SUSPEND 0x00400000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
418 #define LAT_16X 0x00800000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
419 #define BUS_RD_DISCARD_EN 0x01000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
420 #define BUS_RD_ABORT_EN 0x02000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
421 #define BUS_MSTR_WS 0x04000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
422 #define BUS_PARKING_DIS 0x08000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
423 #define BUS_MSTR_DISCONNECT_EN 0x10000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
424 #define BUS_WRT_BURST 0x20000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
425 #define BUS_READ_BURST 0x40000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
426 #define BUS_RDY_READ_DLY 0x80000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
427
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
428
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
429 /* CLOCK_CNTL_INDEX bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
430 #define PLL_WR_EN 0x00000080
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
431
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
432 /* CONFIG_CNTL bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
433 #define CFG_VGA_RAM_EN 0x00000100
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
434
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
435 /* CRTC_EXT_CNTL bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
436 #define VGA_ATI_LINEAR 0x00000008
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
437 #define VGA_128KAP_PAGING 0x00000010
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
438 #define XCRT_CNT_EN (1 << 6)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
439 #define CRTC_HSYNC_DIS (1 << 8)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
440 #define CRTC_VSYNC_DIS (1 << 9)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
441 #define CRTC_DISPLAY_DIS (1 << 10)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
442
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
443
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
444 /* DSTCACHE_CTLSTAT bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
445 #define RB2D_DC_FLUSH (3 << 0)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
446 #define RB2D_DC_FLUSH_ALL 0xf
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
447 #define RB2D_DC_BUSY (1 << 31)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
448
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
449
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
450 /* CRTC_GEN_CNTL bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
451 #define CRTC_DBL_SCAN_EN 0x00000001
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
452 #define CRTC_CUR_EN 0x00010000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
453 #define CRTC_EXT_DISP_EN (1 << 24)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
454 #define CRTC_EN (1 << 25)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
455
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
456 /* CRTC_STATUS bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
457 #define CRTC_VBLANK 0x00000001
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
458
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
459 /* CUR_OFFSET, CUR_HORZ_VERT_POSN, CUR_HORZ_VERT_OFF bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
460 #define CUR_LOCK 0x80000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
461
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
462 /* DAC_CNTL bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
463 #define DAC_8BIT_EN 0x00000100
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
464 #define DAC_4BPP_PIX_ORDER 0x00000200
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
465 #define DAC_CRC_EN 0x00080000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
466 #define DAC_MASK_ALL (0xff << 24)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
467 #define DAC_VGA_ADR_EN (1 << 13)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
468 #define DAC_RANGE_CNTL (3 << 0)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
469 #define DAC_BLANKING (1 << 2)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
470
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
471 /* GEN_RESET_CNTL bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
472 #define SOFT_RESET_GUI 0x00000001
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
473 #define SOFT_RESET_VCLK 0x00000100
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
474 #define SOFT_RESET_PCLK 0x00000200
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
475 #define SOFT_RESET_ECP 0x00000400
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
476 #define SOFT_RESET_DISPENG_XCLK 0x00000800
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
477
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
478 /* MEM_CNTL bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
479 #define MEM_CTLR_STATUS_IDLE 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
480 #define MEM_CTLR_STATUS_BUSY 0x00100000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
481 #define MEM_SEQNCR_STATUS_IDLE 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
482 #define MEM_SEQNCR_STATUS_BUSY 0x00200000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
483 #define MEM_ARBITER_STATUS_IDLE 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
484 #define MEM_ARBITER_STATUS_BUSY 0x00400000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
485 #define MEM_REQ_UNLOCK 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
486 #define MEM_REQ_LOCK 0x00800000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
487
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
488
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
489 /* RBBM_SOFT_RESET bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
490 #define SOFT_RESET_CP (1 << 0)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
491 #define SOFT_RESET_HI (1 << 1)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
492 #define SOFT_RESET_SE (1 << 2)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
493 #define SOFT_RESET_RE (1 << 3)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
494 #define SOFT_RESET_PP (1 << 4)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
495 #define SOFT_RESET_E2 (1 << 5)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
496 #define SOFT_RESET_RB (1 << 6)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
497 #define SOFT_RESET_HDP (1 << 7)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
498
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
499
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
500 /* DEFAULT_SC_BOTTOM_RIGHT bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
501 #define DEFAULT_SC_RIGHT_MAX (0x1fff << 0)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
502 #define DEFAULT_SC_BOTTOM_MAX (0x1fff << 16)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
503
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
504 /* MM_INDEX bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
505 #define MM_APER 0x80000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
506
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
507 /* CLR_CMP_CNTL bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
508 #define COMPARE_SRC_FALSE 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
509 #define COMPARE_SRC_TRUE 0x00000001
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
510 #define COMPARE_SRC_NOT_EQUAL 0x00000004
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
511 #define COMPARE_SRC_EQUAL 0x00000005
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
512 #define COMPARE_SRC_EQUAL_FLIP 0x00000007
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
513 #define COMPARE_DST_FALSE 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
514 #define COMPARE_DST_TRUE 0x00000100
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
515 #define COMPARE_DST_NOT_EQUAL 0x00000400
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
516 #define COMPARE_DST_EQUAL 0x00000500
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
517 #define COMPARE_DESTINATION 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
518 #define COMPARE_SOURCE 0x01000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
519 #define COMPARE_SRC_AND_DST 0x02000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
520
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
521
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
522 /* DP_CNTL bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
523 #define DST_X_RIGHT_TO_LEFT 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
524 #define DST_X_LEFT_TO_RIGHT 0x00000001
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
525 #define DST_Y_BOTTOM_TO_TOP 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
526 #define DST_Y_TOP_TO_BOTTOM 0x00000002
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
527 #define DST_X_MAJOR 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
528 #define DST_Y_MAJOR 0x00000004
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
529 #define DST_X_TILE 0x00000008
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
530 #define DST_Y_TILE 0x00000010
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
531 #define DST_LAST_PEL 0x00000020
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
532 #define DST_TRAIL_X_RIGHT_TO_LEFT 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
533 #define DST_TRAIL_X_LEFT_TO_RIGHT 0x00000040
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
534 #define DST_TRAP_FILL_RIGHT_TO_LEFT 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
535 #define DST_TRAP_FILL_LEFT_TO_RIGHT 0x00000080
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
536 #define DST_BRES_SIGN 0x00000100
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
537 #define DST_HOST_BIG_ENDIAN_EN 0x00000200
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
538 #define DST_POLYLINE_NONLAST 0x00008000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
539 #define DST_RASTER_STALL 0x00010000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
540 #define DST_POLY_EDGE 0x00040000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
541
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
542
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
543 /* DP_CNTL_YDIR_XDIR_YMAJOR bit constants (short version of DP_CNTL) */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
544 #define DST_X_MAJOR_S 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
545 #define DST_Y_MAJOR_S 0x00000001
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
546 #define DST_Y_BOTTOM_TO_TOP_S 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
547 #define DST_Y_TOP_TO_BOTTOM_S 0x00008000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
548 #define DST_X_RIGHT_TO_LEFT_S 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
549 #define DST_X_LEFT_TO_RIGHT_S 0x80000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
550
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
551
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
552 /* DP_DATATYPE bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
553 #define DST_8BPP 0x00000002
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
554 #define DST_15BPP 0x00000003
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
555 #define DST_16BPP 0x00000004
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
556 #define DST_24BPP 0x00000005
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
557 #define DST_32BPP 0x00000006
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
558 #define DST_8BPP_RGB332 0x00000007
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
559 #define DST_8BPP_Y8 0x00000008
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
560 #define DST_8BPP_RGB8 0x00000009
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
561 #define DST_16BPP_VYUY422 0x0000000b
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
562 #define DST_16BPP_YVYU422 0x0000000c
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
563 #define DST_32BPP_AYUV444 0x0000000e
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
564 #define DST_16BPP_ARGB4444 0x0000000f
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
565 #define BRUSH_SOLIDCOLOR 0x00000d00
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
566 #define SRC_MONO 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
567 #define SRC_MONO_LBKGD 0x00010000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
568 #define SRC_DSTCOLOR 0x00030000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
569 #define BYTE_ORDER_MSB_TO_LSB 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
570 #define BYTE_ORDER_LSB_TO_MSB 0x40000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
571 #define DP_CONVERSION_TEMP 0x80000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
572 #define HOST_BIG_ENDIAN_EN (1 << 29)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
573
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
574
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
575 /* DP_GUI_MASTER_CNTL bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
576 #define GMC_SRC_PITCH_OFFSET_DEFAULT 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
577 #define GMC_SRC_PITCH_OFFSET_LEAVE 0x00000001
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
578 #define GMC_DST_PITCH_OFFSET_DEFAULT 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
579 #define GMC_DST_PITCH_OFFSET_LEAVE 0x00000002
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
580 #define GMC_SRC_CLIP_DEFAULT 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
581 #define GMC_SRC_CLIP_LEAVE 0x00000004
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
582 #define GMC_DST_CLIP_DEFAULT 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
583 #define GMC_DST_CLIP_LEAVE 0x00000008
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
584 #define GMC_BRUSH_8x8MONO 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
585 #define GMC_BRUSH_8x8MONO_LBKGD 0x00000010
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
586 #define GMC_BRUSH_8x1MONO 0x00000020
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
587 #define GMC_BRUSH_8x1MONO_LBKGD 0x00000030
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
588 #define GMC_BRUSH_1x8MONO 0x00000040
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
589 #define GMC_BRUSH_1x8MONO_LBKGD 0x00000050
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
590 #define GMC_BRUSH_32x1MONO 0x00000060
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
591 #define GMC_BRUSH_32x1MONO_LBKGD 0x00000070
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
592 #define GMC_BRUSH_32x32MONO 0x00000080
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
593 #define GMC_BRUSH_32x32MONO_LBKGD 0x00000090
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
594 #define GMC_BRUSH_8x8COLOR 0x000000a0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
595 #define GMC_BRUSH_8x1COLOR 0x000000b0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
596 #define GMC_BRUSH_1x8COLOR 0x000000c0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
597 #define GMC_BRUSH_SOLID_COLOR 0x000000d0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
598 #define GMC_DST_8BPP 0x00000200
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
599 #define GMC_DST_15BPP 0x00000300
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
600 #define GMC_DST_16BPP 0x00000400
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
601 #define GMC_DST_24BPP 0x00000500
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
602 #define GMC_DST_32BPP 0x00000600
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
603 #define GMC_DST_8BPP_RGB332 0x00000700
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
604 #define GMC_DST_8BPP_Y8 0x00000800
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
605 #define GMC_DST_8BPP_RGB8 0x00000900
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
606 #define GMC_DST_16BPP_VYUY422 0x00000b00
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
607 #define GMC_DST_16BPP_YVYU422 0x00000c00
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
608 #define GMC_DST_32BPP_AYUV444 0x00000e00
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
609 #define GMC_DST_16BPP_ARGB4444 0x00000f00
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
610 #define GMC_SRC_MONO 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
611 #define GMC_SRC_MONO_LBKGD 0x00001000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
612 #define GMC_SRC_DSTCOLOR 0x00003000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
613 #define GMC_BYTE_ORDER_MSB_TO_LSB 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
614 #define GMC_BYTE_ORDER_LSB_TO_MSB 0x00004000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
615 #define GMC_DP_CONVERSION_TEMP_9300 0x00008000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
616 #define GMC_DP_CONVERSION_TEMP_6500 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
617 #define GMC_DP_SRC_RECT 0x02000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
618 #define GMC_DP_SRC_HOST 0x03000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
619 #define GMC_DP_SRC_HOST_BYTEALIGN 0x04000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
620 #define GMC_3D_FCN_EN_CLR 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
621 #define GMC_3D_FCN_EN_SET 0x08000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
622 #define GMC_DST_CLR_CMP_FCN_LEAVE 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
623 #define GMC_DST_CLR_CMP_FCN_CLEAR 0x10000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
624 #define GMC_AUX_CLIP_LEAVE 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
625 #define GMC_AUX_CLIP_CLEAR 0x20000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
626 #define GMC_WRITE_MASK_LEAVE 0x00000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
627 #define GMC_WRITE_MASK_SET 0x40000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
628 #define GMC_CLR_CMP_CNTL_DIS (1 << 28)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
629 #define GMC_SRC_DATATYPE_COLOR (3 << 12)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
630 #define ROP3_S 0x00cc0000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
631 #define ROP3_P 0x00f00000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
632 #define DP_SRC_SOURCE_MASK (7 << 24)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
633 #define GMC_BRUSH_NONE (15 << 4)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
634 #define DP_SRC_SOURCE_MEMORY (2 << 24)
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
635 #define GMC_BRUSH_SOLIDCOLOR 0x000000d0
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
636
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
637 /* DP_MIX bit constants */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
638 #define DP_SRC_RECT 0x00000200
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
639 #define DP_SRC_HOST 0x00000300
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
640 #define DP_SRC_HOST_BYTEALIGN 0x00000400
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
641
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
642 #define ROP3_PATCOPY 0x00f00000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
643
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
644 /* masks */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
645
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
646 #define CONFIG_MEMSIZE_MASK 0x1f000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
647 #define MEM_CFG_TYPE 0x40000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
648 #define DST_OFFSET_MASK 0x003fffff
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
649 #define DST_PITCH_MASK 0x3fc00000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
650 #define DEFAULT_TILE_MASK 0xc0000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
651 #define PPLL_DIV_SEL_MASK 0x00000300
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
652 #define PPLL_RESET 0x00000001
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
653 #define PPLL_ATOMIC_UPDATE_EN 0x00010000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
654 #define PPLL_REF_DIV_MASK 0x000003ff
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
655 #define PPLL_FB3_DIV_MASK 0x000007ff
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
656 #define PPLL_POST3_DIV_MASK 0x00070000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
657 #define PPLL_ATOMIC_UPDATE_R 0x00008000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
658 #define PPLL_ATOMIC_UPDATE_W 0x00008000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
659 #define PPLL_VGA_ATOMIC_UPDATE_EN 0x00020000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
660
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
661 #define GUI_ACTIVE 0x80000000
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
662
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
663 #endif /* _RADEON_H */
89313cfc8fec Initial import of Ani Joshi's radeonfb-0.0.9
nick
parents:
diff changeset
664