2 * linux/drivers/video/i810_regs.h -- Intel 810/815 Register List
4 * Copyright (C) 2001 Antonino Daplas<adaplas@pol.net>
8 * This file is subject to the terms and conditions of the GNU General Public
9 * License. See the file COPYING in the main directory of this archive for
15 * Intel 810 Chipset Family PRM 15 3.1
16 * GC Register Memory Address Map
19 * Intel (R) 810 Chipset Family
20 * Programmer s Reference Manual
23 * Order Number: 298026-001 R
25 * All GC registers are memory-mapped. In addition, the VGA and extended VGA registers
29 #ifndef __I810_REGS_H__
30 #define __I810_REGS_H__
32 /* Instruction and Interrupt Control Registers (01000h 02FFFh) */
34 #define PGTBL_CTL 0x02020
35 #define PGTBL_ER 0x02024
38 #define HWS_PGA 0x02080
41 #define INSTDONE 0x02090
43 #define HWSTAM 0x02098
51 #define INSTPM 0x020C0
52 #define INSTPS 0x020C4
53 #define BBP_PTR 0x020C8
54 #define ABB_SRT 0x020CC
55 #define ABB_END 0x020D0
56 #define DMA_FADD 0x020D4
57 #define FW_BLC 0x020D8
58 #define MEM_MODE 0x020DC
60 /* Memory Control Registers (03000h 03FFFh) */
62 #define DRAMCL 0x03001
63 #define DRAMCH 0x03002
66 /* Span Cursor Registers (04000h 04FFFh) */
67 #define UI_SC_CTL 0x04008
69 /* I/O Control Registers (05000h 05FFFh) */
70 #define HVSYNC 0x05000
74 /* Clock Control and Power Management Registers (06000h 06FFFh) */
75 #define DCLK_0D 0x06000
76 #define DCLK_1D 0x06004
77 #define DCLK_2D 0x06008
78 #define LCD_CLKD 0x0600C
79 #define DCLK_0DS 0x06010
80 #define PWR_CLKC 0x06014
82 /* Graphics Translation Table Range Definition (10000h 1FFFFh) */
85 /* Overlay Registers (30000h 03FFFFh) */
86 #define OVOADDR 0x30000
87 #define DOVOSTA 0x30008
89 #define OBUF_0Y 0x30100
90 #define OBUF_1Y 0x30104
91 #define OBUF_0U 0x30108
92 #define OBUF_0V 0x3010C
93 #define OBUF_1U 0x30110
94 #define OBUF_1V 0x30114
95 #define OVOSTRIDE 0x30118
96 #define YRGB_VPH 0x3011C
97 #define UV_VPH 0x30120
98 #define HORZ_PH 0x30124
99 #define INIT_PH 0x30128
100 #define DWINPOS 0x3012C
101 #define DWINSZ 0x30130
103 #define SWIDQW 0x30138
104 #define SHEIGHT 0x3013F
105 #define YRGBSCALE 0x30140
106 #define UVSCALE 0x30144
107 #define OVOCLRCO 0x30148
108 #define OVOCLRC1 0x3014C
109 #define DCLRKV 0x30150
110 #define DLCRKM 0x30154
111 #define SCLRKVH 0x30158
112 #define SCLRKVL 0x3015C
113 #define SCLRKM 0x30160
114 #define OVOCONF 0x30164
115 #define OVOCMD 0x30168
116 #define AWINPOS 0x30170
117 #define AWINZ 0x30174
119 /* BLT Engine Status (40000h 4FFFFh) (Software Debug) */
140 #define SSLADD 0x40074
142 #define DSLRADD 0x4007C
145 /* LCD/TV-Out and HW DVD Registers (60000h 6FFFFh) */
147 #define HTOTAL 0x60000
148 #define HBLANK 0x60004
149 #define HSYNC 0x60008
150 #define VTOTAL 0x6000C
151 #define VBLANK 0x60010
152 #define VSYNC 0x60014
153 #define LCDTV_C 0x60018
154 #define OVRACT 0x6001C
155 #define BCLRPAT 0x60020
157 /* Display and Cursor Control Registers (70000h 7FFFFh) */
158 #define DISP_SL 0x70000
159 #define DISP_SLC 0x70004
160 #define PIXCONF 0x70008
161 #define PIXCONF1 0x70009
162 #define BLTCNTL 0x7000C
164 #define DPLYBASE 0x70020
165 #define DPLYSTAS 0x70024
166 #define CURCNTR 0x70080
167 #define CURBASE 0x70084
168 #define CURPOS 0x70088
173 /* SMRAM Registers */
176 /* Graphics Control Registers */
177 #define GR_INDEX 0x3CE
178 #define GR_DATA 0x3CF
183 /* CRT Controller Registers */
184 #define CR_INDEX_MDA 0x3B4
185 #define CR_INDEX_CGA 0x3D4
186 #define CR_DATA_MDA 0x3B5
187 #define CR_DATA_CGA 0x3D5
202 /* Extended VGA Registers */
204 /* General Control and Status Registers */
206 #define ST01_MDA 0x3BA
207 #define ST01_CGA 0x3DA
208 #define FRC_READ 0x3CA
209 #define FRC_WRITE_MDA 0x3BA
210 #define FRC_WRITE_CGA 0x3DA
211 #define MSR_READ 0x3CC
212 #define MSR_WRITE 0x3C2
214 /* Sequencer Registers */
215 #define SR_INDEX 0x3C4
216 #define SR_DATA 0x3C5
224 /* Graphics Controller Registers */
235 /* Attribute Controller Registers */
236 #define ATTR_WRITE 0x3C0
237 #define ATTR_READ 0x3C1
239 /* VGA Color Palette Registers */
242 #define CLUT_DATA 0x3C9 /* DACDATA */
243 #define CLUT_INDEX_READ 0x3C7 /* DACRX */
244 #define CLUT_INDEX_WRITE 0x3C8 /* DACWX */
245 #define DACMASK 0x3C6
247 /* CRT Controller Registers */
274 #endif /* __I810_REGS_H__ */