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
75 /* Clock Control and Power Management Registers (06000h 06FFFh) */
76 #define DCLK_0D 0x06000
77 #define DCLK_1D 0x06004
78 #define DCLK_2D 0x06008
79 #define LCD_CLKD 0x0600C
80 #define DCLK_0DS 0x06010
81 #define PWR_CLKC 0x06014
83 /* Graphics Translation Table Range Definition (10000h 1FFFFh) */
86 /* Overlay Registers (30000h 03FFFFh) */
87 #define OVOADDR 0x30000
88 #define DOVOSTA 0x30008
90 #define OBUF_0Y 0x30100
91 #define OBUF_1Y 0x30104
92 #define OBUF_0U 0x30108
93 #define OBUF_0V 0x3010C
94 #define OBUF_1U 0x30110
95 #define OBUF_1V 0x30114
96 #define OVOSTRIDE 0x30118
97 #define YRGB_VPH 0x3011C
98 #define UV_VPH 0x30120
99 #define HORZ_PH 0x30124
100 #define INIT_PH 0x30128
101 #define DWINPOS 0x3012C
102 #define DWINSZ 0x30130
104 #define SWIDQW 0x30138
105 #define SHEIGHT 0x3013F
106 #define YRGBSCALE 0x30140
107 #define UVSCALE 0x30144
108 #define OVOCLRCO 0x30148
109 #define OVOCLRC1 0x3014C
110 #define DCLRKV 0x30150
111 #define DLCRKM 0x30154
112 #define SCLRKVH 0x30158
113 #define SCLRKVL 0x3015C
114 #define SCLRKM 0x30160
115 #define OVOCONF 0x30164
116 #define OVOCMD 0x30168
117 #define AWINPOS 0x30170
118 #define AWINZ 0x30174
120 /* BLT Engine Status (40000h 4FFFFh) (Software Debug) */
141 #define SSLADD 0x40074
143 #define DSLRADD 0x4007C
146 /* LCD/TV-Out and HW DVD Registers (60000h 6FFFFh) */
148 #define HTOTAL 0x60000
149 #define HBLANK 0x60004
150 #define HSYNC 0x60008
151 #define VTOTAL 0x6000C
152 #define VBLANK 0x60010
153 #define VSYNC 0x60014
154 #define LCDTV_C 0x60018
155 #define OVRACT 0x6001C
156 #define BCLRPAT 0x60020
158 /* Display and Cursor Control Registers (70000h 7FFFFh) */
159 #define DISP_SL 0x70000
160 #define DISP_SLC 0x70004
161 #define PIXCONF 0x70008
162 #define PIXCONF1 0x70009
163 #define BLTCNTL 0x7000C
165 #define DPLYBASE 0x70020
166 #define DPLYSTAS 0x70024
167 #define CURCNTR 0x70080
168 #define CURBASE 0x70084
169 #define CURPOS 0x70088
174 /* SMRAM Registers */
177 /* Graphics Control Registers */
178 #define GR_INDEX 0x3CE
179 #define GR_DATA 0x3CF
184 /* CRT Controller Registers */
185 #define CR_INDEX_MDA 0x3B4
186 #define CR_INDEX_CGA 0x3D4
187 #define CR_DATA_MDA 0x3B5
188 #define CR_DATA_CGA 0x3D5
203 /* Extended VGA Registers */
205 /* General Control and Status Registers */
207 #define ST01_MDA 0x3BA
208 #define ST01_CGA 0x3DA
209 #define FRC_READ 0x3CA
210 #define FRC_WRITE_MDA 0x3BA
211 #define FRC_WRITE_CGA 0x3DA
212 #define MSR_READ 0x3CC
213 #define MSR_WRITE 0x3C2
215 /* Sequencer Registers */
216 #define SR_INDEX 0x3C4
217 #define SR_DATA 0x3C5
225 /* Graphics Controller Registers */
236 /* Attribute Controller Registers */
237 #define ATTR_WRITE 0x3C0
238 #define ATTR_READ 0x3C1
240 /* VGA Color Palette Registers */
243 #define CLUT_DATA 0x3C9 /* DACDATA */
244 #define CLUT_INDEX_READ 0x3C7 /* DACRX */
245 #define CLUT_INDEX_WRITE 0x3C8 /* DACWX */
246 #define DACMASK 0x3C6
248 /* CRT Controller Registers */
275 #endif /* __I810_REGS_H__ */