ct65550reg.h revision 1.2 1 1.2 macallan /* $NetBSD: ct65550reg.h,v 1.2 2011/03/23 04:02:43 macallan Exp $ */
2 1.1 macallan
3 1.1 macallan /*
4 1.1 macallan * Copyright 2006 by Michael Lorenz.
5 1.1 macallan *
6 1.1 macallan * Redistribution and use in source and binary forms, with or without
7 1.1 macallan * modification, are permitted provided that the following conditions
8 1.1 macallan * are met:
9 1.1 macallan * 1. Redistributions of source code must retain the above copyright
10 1.1 macallan * notice, this list of conditions and the following disclaimer.
11 1.1 macallan * 2. Redistributions in binary form must reproduce the above copyright
12 1.1 macallan * notice, this list of conditions and the following disclaimer in the
13 1.1 macallan * documentation and/or other materials provided with the distribution.
14 1.1 macallan *
15 1.1 macallan * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16 1.1 macallan * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 1.1 macallan * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 1.1 macallan * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
19 1.1 macallan * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 1.1 macallan * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 1.1 macallan * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 1.1 macallan * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 1.1 macallan * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 1.1 macallan * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 1.1 macallan *
26 1.1 macallan */
27 1.1 macallan
28 1.1 macallan #ifndef CHIPSFB_H
29 1.1 macallan #define CHIPSFB_H
30 1.1 macallan
31 1.1 macallan /* VGA */
32 1.1 macallan #define CRTC_INDEX 0x3d4
33 1.1 macallan #define CRTC_DATA 0x3d5
34 1.1 macallan #define SEQ_INDEX 0x3c4
35 1.1 macallan #define SEQ_DATA 0x3c5
36 1.1 macallan #define MISC_W 0x3c2
37 1.1 macallan #define GRA_INDEX 0x3ce
38 1.1 macallan #define GRA_DATA 0x3cf
39 1.1 macallan #define ATT_IW 0x3c0
40 1.1 macallan
41 1.1 macallan /* palette */
42 1.1 macallan #define CT_DACMASK 0x3c6
43 1.1 macallan #define CT_DACSTATE 0x3c7 /* read only */
44 1.1 macallan #define CT_READINDEX 0x3c7 /* write only */
45 1.1 macallan #define CT_WRITEINDEX 0x3c8
46 1.1 macallan #define CT_DACDATA 0x3c9
47 1.1 macallan
48 1.1 macallan /* extended VGA */
49 1.1 macallan #define CT_FP_INDEX 0x3d0
50 1.1 macallan #define CT_FP_DATA 0x3d1
51 1.1 macallan #define CT_MM_INDEX 0x3d2
52 1.1 macallan #define CT_MM_DATA 0x3d3
53 1.1 macallan #define CT_CONF_INDEX 0x3d6
54 1.1 macallan #define CT_CONF_DATA 0x3d7
55 1.1 macallan
56 1.1 macallan /* offsets in aperture */
57 1.1 macallan #define CT_OFF_FB 0x00000000
58 1.1 macallan #define CT_OFF_BITBLT 0x00400000
59 1.1 macallan #define CT_OFF_DRAW 0x00400040
60 1.1 macallan #define CT_OFF_DATA 0x00410000
61 1.1 macallan
62 1.1 macallan #define CT_OFF_BE 0x00800000
63 1.1 macallan
64 1.1 macallan /* blitter registers */
65 1.2 macallan #define CT_BLT_STRIDE 0x00000000
66 1.1 macallan /*
67 1.1 macallan * upper 16 bit are destination stride in bytes
68 1.1 macallan * lower 16 bit are source stride in bytes
69 1.1 macallan */
70 1.1 macallan
71 1.2 macallan #define CT_BLT_BG 0x04
72 1.2 macallan #define CT_BLT_FG 0x08
73 1.2 macallan #define CT_BLT_EXPCTL 0x0c /* expansion control */
74 1.1 macallan #define LEFT_CLIPPING_MSK 0x0000003f
75 1.1 macallan #define MONO_RIGHT_CLIPPING_MSK 0x00003f00
76 1.1 macallan #define MONO_INITIAL_DISCARD 0x003f0000
77 1.1 macallan #define MONO_SRC_ALIGN_MASK 0x07000000
78 1.1 macallan #define MONO_SRC_ALIGN_BIT 0x01000000
79 1.1 macallan #define MONO_SRC_ALIGN_BYTE 0x02000000
80 1.1 macallan #define MONO_SRC_ALIGN_WORD 0x03000000
81 1.1 macallan #define MONO_SRC_ALIGN_LONG 0x04000000
82 1.1 macallan #define MONO_SRC_ALIGN_LONGLONG 0x05000000
83 1.1 macallan #define MONO_SELECT_ALT_FG_BG 0x08000000 /* use CT_SRC_EXP_* */
84 1.1 macallan
85 1.2 macallan #define CT_BLT_CONTROL 0x10
86 1.1 macallan #define BLT_ROP_MASK 0x000000ff
87 1.1 macallan #define BLT_START_RIGHT 0x00000100 /* 0 for start left */
88 1.1 macallan #define BLT_START_BOTTOM 0x00000200 /* 0 for start top */
89 1.1 macallan #define BLT_SRC_IS_CPU 0x00000400 /* 0 for vram source */
90 1.1 macallan #define BLT_SRC_IS_MONO 0x00001000
91 1.1 macallan #define BLT_MONO_TRANSPARENCY 0x00002000
92 1.1 macallan #define BLT_COLOR_COMPARE_MASK 0x0001c000 /* 0 for no color keying */
93 1.1 macallan #define BLT_PAT_TRANSPARENCY 0x00020000 /* pattern is transparent */
94 1.1 macallan #define BLT_PAT_IS_MONO 0x00040000
95 1.1 macallan #define BLT_PAT_IS_SOLID 0x00080000 /* ignore pattern */
96 1.1 macallan #define BLT_PAT_VERT_ALIGN_MASK 0x00700000
97 1.1 macallan #define BLT_IS_BUSY 0x80000000
98 1.1 macallan
99 1.1 macallan #define ROP_COPY 0xcc
100 1.1 macallan #define ROP_NOT_SRC 0x33
101 1.1 macallan #define ROP_NOT_DST 0x55
102 1.1 macallan #define ROP_PAT 0xf0
103 1.1 macallan
104 1.2 macallan #define CT_BLT_PATTERN 0x14 /* address in vram */
105 1.2 macallan #define CT_BLT_SRCADDR 0x18
106 1.2 macallan #define CT_BLT_DSTADDR 0x1c
107 1.1 macallan
108 1.2 macallan #define CT_BLT_SIZE 0x20 /* width and height */
109 1.1 macallan /*
110 1.1 macallan * upper 16 bit are destination height
111 1.1 macallan * lower 16 bit are destination width in bytes
112 1.1 macallan */
113 1.1 macallan
114 1.2 macallan #define CT_SRC_EXP_BG 0x24
115 1.2 macallan #define CT_SRC_EXP_FG 0x28
116 1.1 macallan
117 1.1 macallan /* extension registers ( via CT_CONF */
118 1.1 macallan #define XR_VENDOR_LO 0x00
119 1.1 macallan #define XR_VENDOR_HI 0x01
120 1.1 macallan #define XR_DEVICE_LO 0x02
121 1.1 macallan #define XR_DEVICE_HI 0x03
122 1.1 macallan #define XR_REVISION 0x04
123 1.1 macallan #define XR_LINEAR_BASE_LO 0x05
124 1.1 macallan #define XR_LINEAR_BASE_HI 0x06
125 1.1 macallan
126 1.1 macallan #define XR_CONFIGURATION 0x08
127 1.1 macallan #define BUS_PCI 0x01
128 1.1 macallan #define BUS_VL 0x00
129 1.1 macallan #define ENABLE_PCI 0x02
130 1.1 macallan
131 1.1 macallan #define XR_IO_CONTROL 0x09
132 1.1 macallan #define ENABLE_CRTC_EXT 0x01
133 1.1 macallan #define ENABLE_ATTR_EXT 0x02
134 1.1 macallan
135 1.1 macallan #define XR_ADDR_MAPPING 0x0a
136 1.1 macallan #define ENABLE_MAPPING 0x01 /* in VGA window */
137 1.1 macallan #define ENABLE_LINEAR 0x02
138 1.1 macallan #define ENABLE_PACKED 0x04
139 1.1 macallan #define FB_SWAP_NONE 0x00
140 1.1 macallan #define FB_SWAP_16 0x10
141 1.1 macallan #define FB_SWAP_32 0x20
142 1.1 macallan
143 1.1 macallan #define XR_BURST_WRITE_MODE 0x0b
144 1.1 macallan
145 1.1 macallan #define XR_PAGE_SELECT 0x0e
146 1.1 macallan
147 1.1 macallan #define XR_BITBLT_CONTROL0 0x20
148 1.1 macallan #define BLITTER_BUSY 0x01
149 1.1 macallan #define BLITTER_RESET 0x02
150 1.1 macallan #define BLITTER_8BIT 0x00
151 1.1 macallan #define BLITTER_16BIT 0x10
152 1.1 macallan #define BLITTER_24BIT 0x20
153 1.1 macallan #define BLITTER_32BIT 0x30 /* reserved */
154 1.1 macallan
155 1.1 macallan #define XR_DRAM_ACCESS_CONTROL 0x40
156 1.1 macallan #define ENABLE_64BIT 0x01
157 1.1 macallan #define DISABLE_WRAP 0x02 /* otherwise only 256kB */
158 1.1 macallan #define EXTENDED_TEXT 0x10
159 1.1 macallan
160 1.1 macallan #define XR_DRAM_TYPE 0x41
161 1.1 macallan #define DRAM_FASTPAGE 0x00
162 1.1 macallan #define DRAM_EDO 0x01
163 1.1 macallan
164 1.1 macallan #define XR_DRAM_CONFIG 0x42
165 1.1 macallan #define DRAM_8BIT_COL 0x00
166 1.1 macallan #define DRAM_9BIT_COL 0x01
167 1.1 macallan
168 1.1 macallan #define XR_DRAM_INTERFACE 0x43
169 1.1 macallan #define XR_DRAM_TIMING 0x44
170 1.1 macallan
171 1.1 macallan #define XR_VIDEO_PIN_CONTROL 0x60
172 1.1 macallan #define XR_DDC_SYNC_SELECT 0x61
173 1.1 macallan #define DDC_HSYNC_DATA 0x01
174 1.1 macallan #define DDC_HSYNC_OUT 0x02 /* hsync is controlled by above */
175 1.1 macallan #define DDC_VSYNC_DATA 0x04
176 1.1 macallan #define DDC_VSYNC_OUT 0x08 /* vsync is controlled by above */
177 1.1 macallan #define DDC_HV_POWERDOWN 0x10
178 1.1 macallan #define DDC_ENABLE_HSYNC 0x20
179 1.1 macallan #define DDC_ENABLE_VSYNC 0x40
180 1.1 macallan
181 1.1 macallan /*
182 1.1 macallan * upper 6 bit define if corresponding bits in DATA are input or output
183 1.1 macallan * 1 selects output
184 1.1 macallan */
185 1.1 macallan #define XR_GPIO_CONTROL 0x62
186 1.1 macallan #define XR_GPIO_DATA 0x63
187 1.1 macallan
188 1.1 macallan #define XR_PIN_TRISTATE_CONTROL 0x67
189 1.1 macallan
190 1.1 macallan #define XR_CONFIG_PINS_0 0x70
191 1.1 macallan #define XR_CONFIG_PINS_1 0x71
192 1.1 macallan
193 1.1 macallan #define XR_PIXEL_PIPELINE_CTL_0 0x80
194 1.1 macallan #define ENABLE_EXTENDED_PALETTE 0x01
195 1.1 macallan #define ENABLE_CRT_OVERSCAN 0x02
196 1.1 macallan #define ENABLE_PANEL_OVERSCAN 0x04
197 1.1 macallan #define ENABLE_EXTENDED_STATUS 0x08
198 1.1 macallan #define ENABLE_CURSOR_1 0x10
199 1.1 macallan #define ENABLE_PIXEL_AVERAGING 0x20
200 1.1 macallan #define SELECT_PIXEL_STREAM 0x40 /* 1 for P1 */
201 1.1 macallan #define ENABLE_8BIT_DAC 0x80 /* 6 bit otherwise */
202 1.1 macallan
203 1.1 macallan #define XR_PIXEL_PIPELINE_CTL_1 0x81
204 1.1 macallan #define COLOR_VGA 0x00
205 1.1 macallan #define COLOR_8BIT_EXTENDED 0x02
206 1.1 macallan #define COLOR_15BIT 0x04
207 1.1 macallan #define COLOR_16BIT 0x05
208 1.1 macallan #define COLOR_24BIT 0x06
209 1.1 macallan #define COLOR_32BIT 0x07
210 1.1 macallan
211 1.1 macallan #define XR_PIXEL_PIPELINE_CTL_2 0x82
212 1.1 macallan #define ENABLE_BLANK_PEDESTAL 0x01
213 1.1 macallan #define ENABLE_SYNC_ON_GREEN 0x02
214 1.1 macallan #define ENABLE_VIDEO_GAMMA 0x04
215 1.1 macallan #define ENABLE_GRAPHICS_GAMMA 0x08
216 1.1 macallan
217 1.1 macallan #define XR_CURSOR_1_CTL 0xa0
218 1.1 macallan #define XR_CURSOR_1_VERT_EXT 0xa1
219 1.1 macallan #define XR_CURSOR_1_BASEADDR_LO 0xa2
220 1.1 macallan #define XR_CURSOR_1_BASEADDR_HI 0xa3
221 1.1 macallan #define XR_CURSOR_1_X_LO 0xa4
222 1.1 macallan #define XR_CURSOR_1_X_HI 0xa5
223 1.1 macallan #define XR_CURSOR_1_Y_LO 0xa6
224 1.1 macallan #define XR_CURSOR_1_Y_HI 0xa7
225 1.1 macallan
226 1.1 macallan #define XR_CURSOR_2_CTL 0xa8
227 1.1 macallan #define XR_CURSOR_2_VERT_EXT 0xa9
228 1.1 macallan #define XR_CURSOR_2_BASEADDR_LO 0xaa
229 1.1 macallan #define XR_CURSOR_2_BASEADDR_HI 0xab
230 1.1 macallan #define XR_CURSOR_2_X_LO 0xac
231 1.1 macallan #define XR_CURSOR_2_X_HI 0xad
232 1.1 macallan #define XR_CURSOR_2_Y_LO 0xae
233 1.1 macallan #define XR_CURSOR_2_Y_HI 0xaf
234 1.1 macallan
235 1.1 macallan #define XR_VCLOCK_0_M 0xc0
236 1.1 macallan #define XR_VCLOCK_0_N 0xc1
237 1.1 macallan #define XR_VCLOCK_0_MN_MSBS 0xc2
238 1.1 macallan #define XR_VCLOCK_0_DIV_SELECT 0xc3
239 1.1 macallan
240 1.1 macallan #define XR_VCLOCK_1_M 0xc4
241 1.1 macallan #define XR_VCLOCK_1_N 0xc5
242 1.1 macallan #define XR_VCLOCK_1_MN_MSBS 0xc6
243 1.1 macallan #define XR_VCLOCK_1_DIV_SELECT 0xc7
244 1.1 macallan
245 1.1 macallan #define XR_VCLOCK_2_M 0xc8
246 1.1 macallan #define XR_VCLOCK_2_N 0xc9
247 1.1 macallan #define XR_VCLOCK_2_MN_MSBS 0xca
248 1.1 macallan #define XR_VCLOCK_2_DIV_SELECT 0xcb
249 1.1 macallan
250 1.1 macallan #define XR_MEMCLOCK_M 0xcc
251 1.1 macallan #define XR_MEMCLOCK_N 0xcd
252 1.1 macallan #define XR_MEMCLOCK_DIV_SELECT 0xce
253 1.1 macallan #define XR_CLOCK_CONFIG 0xcf
254 1.1 macallan
255 1.1 macallan #define XR_MODULE_POWER_DOWN 0xd0
256 1.1 macallan #define XR_DOWN_COUNTER 0xd2
257 1.1 macallan
258 1.1 macallan #define XR_SOFTWARE_FLAG_0 0xe0
259 1.1 macallan #define XR_SOFTWARE_FLAG_1 0xe1
260 1.1 macallan #define XR_SOFTWARE_FLAG_2 0xe2
261 1.1 macallan #define XR_SOFTWARE_FLAG_3 0xe3
262 1.1 macallan #define XR_SOFTWARE_FLAG_4 0xe4
263 1.1 macallan #define XR_SOFTWARE_FLAG_5 0xe5
264 1.1 macallan #define XR_SOFTWARE_FLAG_6 0xe6
265 1.1 macallan #define XR_SOFTWARE_FLAG_7 0xe7
266 1.1 macallan
267 1.1 macallan #define XR_TEST_BLOCK_SELECT 0xf8
268 1.1 macallan #define XR_TEST_CONTROL_PORT 0xf9
269 1.1 macallan #define XR_TEST_DATA_PORT 0xfa
270 1.1 macallan #define XR_SCAN_TEST_CONTROL_0 0xfb
271 1.1 macallan #define XR_SCAN_TEST_CONTROL_1 0xfc
272 1.1 macallan
273 1.1 macallan /* flat panel control registers, via CT_FP_* */
274 1.1 macallan #define FP_FEATURE 0x00
275 1.1 macallan #define PANEL_EXISTS 0x01
276 1.1 macallan #define POPUP_EXISTS 0x04
277 1.1 macallan
278 1.1 macallan #define FP_CRT_FP_CONTROL 0x01
279 1.1 macallan #define ENABLE_CRT 0x01
280 1.1 macallan #define ENABLE_PANEL 0x02
281 1.1 macallan
282 1.1 macallan #define FP_MODE_CONTROL 0x02
283 1.1 macallan #define FP_DOT_CLOCK_SOURCE 0x03
284 1.1 macallan #define FP_CLOCK_0 0x00
285 1.1 macallan #define FP_CLOCK_1 0x04
286 1.1 macallan #define FP_CLOCK_2 0x08
287 1.1 macallan #define USE_VIDEO_CLOCK 0x00
288 1.1 macallan #define USE_MEM_CLOCK 0x10
289 1.1 macallan
290 1.1 macallan #define FP_POWER_SEQ_DELAY 0x04
291 1.1 macallan /*
292 1.1 macallan * upper 4 bits select power up delay in 3.4ms increments
293 1.1 macallan * lower 4 bits select power down delay in 29ms increments
294 1.1 macallan */
295 1.1 macallan
296 1.1 macallan #define FP_POWER_DOWN_CTL_1 0x05
297 1.1 macallan /* the lower 3 bits select how many refresh cycles per scanline are preformed */
298 1.1 macallan #define PANEL_POWER_OFF 0x08
299 1.1 macallan #define HOST_STANDBY 0x10
300 1.1 macallan #define PANEL_TRISTATE 0x20
301 1.1 macallan #define NO_SEFL_REFRESH 0x40
302 1.1 macallan #define PANEL_INACTIVE 0x80
303 1.1 macallan
304 1.1 macallan /* these bits are effective when the panel is powered down */
305 1.1 macallan #define FP_POWER_DOWN_CTL_0 0x06
306 1.1 macallan #define FP_VGA_PALETTE_POWERDOWN 0x01
307 1.1 macallan #define FP_VGA_PALETTE_ENABLE 0x02
308 1.1 macallan #define FP_ENABLE_SYNC 0x04
309 1.1 macallan
310 1.1 macallan #define FP_PIN_POLARITY 0x08
311 1.1 macallan #define FP_DISPLAY_NEGATIVE 0x02
312 1.1 macallan #define FP_HSYNC_NEGATIVE 0x04
313 1.1 macallan #define FP_VSYNC_NEGATIVE 0x08
314 1.1 macallan #define FP_TEXT_VIDEO_INVERT 0x10
315 1.1 macallan #define FP_GRAPHICS_INVERT 0x20
316 1.1 macallan #define CRT_HSYNC_NEGATIVE 0x40
317 1.1 macallan #define CRT_VSYNC_NEGATIVE 0x80
318 1.1 macallan
319 1.1 macallan #define FP_OUTPUT_DRIVE 0x0a
320 1.1 macallan #define VL_THRESHOLD_5V 0x02 /* 3.3v otherwise */
321 1.1 macallan #define FP_DRIVE_HIGH 0x04 /* req. with 3.3v */
322 1.1 macallan #define BUS_INTERFACE_LOW 0x08 /* req. with 3.3v */
323 1.1 macallan #define MEM_DRIVE_HIGHER 0x10
324 1.1 macallan #define MEM_C_DRIVE_HIGHER 0x20
325 1.1 macallan #define SYNC_DRIVE_HIGHER 0x40
326 1.1 macallan
327 1.1 macallan #define FP_PIN_CONTROL_1 0x0b
328 1.1 macallan #define DISPLAY_ENABLE_ON_69 0x01 /* M signal otherwise */
329 1.1 macallan #define DISPLAY_ENABLE_ON_68 0x02 /* FP Hsync otherwise */
330 1.1 macallan #define COMPOSITE_SYNC_ON_65 0x04 /* separate otherwise */
331 1.1 macallan #define BACKLIGHT_ON_61 0x08 /* on 54 otherwise */
332 1.1 macallan #define GPIO_ON_154 0x10
333 1.1 macallan #define SIMPLE_COMPOSITE_SYNC 0x20
334 1.1 macallan #define MEM_C_TRISTATE 0x80
335 1.1 macallan
336 1.1 macallan #define FP_PIN_CONTROL_2 0x0c
337 1.1 macallan #define ACTI_ON_53 0x00
338 1.1 macallan #define COMPOSITE_SYNC_ON_53 0x08
339 1.1 macallan #define GPIO_IN_ON_53 0x10
340 1.1 macallan #define GPIO_OUT_ON_53 0x18
341 1.1 macallan #define ENABKL_ON_54 0x00
342 1.1 macallan #define COMPOSITE_SYNC_ON_54 0x40
343 1.1 macallan #define GPIO_IN_ON_54 0x80
344 1.1 macallan #define GPIO_OUT_ON_54 0xc0
345 1.1 macallan
346 1.1 macallan #define FP_ACTIVITY_CONTROL 0x0f
347 1.1 macallan /* the lower 5 bits select a timeout in 28.1s increments */
348 1.1 macallan #define PANEL_OFF_ON_TIMEOUT 0x40 /* backlight off otherwise */
349 1.1 macallan #define ENABLE_ACTIVITY_TIMER 0x80
350 1.1 macallan
351 1.1 macallan #define FP_PANEL_FORMAT_0 0x10
352 1.1 macallan #define SINGLE_PANEL_SINGLE_DRIVE 0x00
353 1.1 macallan #define DUAL_PANEL_DUAL_DRIVE 0x03
354 1.1 macallan #define MONO_NTSC 0x00
355 1.1 macallan #define MONO_EQUIV_WEIGHT 0x04
356 1.1 macallan #define MONO_GREEN_ONLY 0x08
357 1.1 macallan #define COLOUR_PANEL 0x0c
358 1.1 macallan #define SHIFT_CLOCK_DIVIDER_MASK 0x70
359 1.1 macallan
360 1.1 macallan #define FP_PANEL_FORMAT_1 0x11
361 1.1 macallan
362 1.1 macallan #define FP_PANEL_FORMAT_2 0x12
363 1.1 macallan #define FP_PANEL_FORMAT_3 0x13
364 1.1 macallan
365 1.1 macallan #define FP_FRC_OPTION_SELECT 0x16
366 1.1 macallan #define FP_POLYNOMIAL_FRC_CTL 0x17
367 1.1 macallan
368 1.1 macallan #define FP_TEXTMODE_CONTROL 0x18
369 1.1 macallan #define FP_BLINK_RATE_CONTROL 0x19
370 1.1 macallan #define FP_FB_CONTROL 0x1a
371 1.1 macallan
372 1.1 macallan #define FP_ACDCLK_CONTROL 0x1e
373 1.1 macallan #define FP_DIAGNOSTIC 0x1f
374 1.1 macallan
375 1.1 macallan #define FP_HSIZE_LSB 0x20 /* panel size - 1 */
376 1.1 macallan #define FP_HSYNC_START 0x21 /* value - 1 */
377 1.1 macallan #define FP_HSYNC_END 0x22
378 1.1 macallan #define FP_HTOTAL_LSB 0x23 /* value - 5 */
379 1.1 macallan #define FP_HSYNC_DELAY_LSB 0x24
380 1.1 macallan #define FP_HORZ_OVERFLOW_1 0x25
381 1.1 macallan /*
382 1.1 macallan * upper 4 bits are upper 4 bits of FP_HSYNC_START
383 1.1 macallan * lower 4 bits are upper 4 bits of FP_HSIZE_LSB
384 1.1 macallan */
385 1.1 macallan
386 1.1 macallan #define FP_HORZ_OVERFLOW_2 0x26
387 1.1 macallan /*
388 1.1 macallan * upper 4 bits are upper 4 bits of FP_HSYNC_DELAY_LSB
389 1.1 macallan * lower 4 bits are upper 4 bits of FP_HTOTAL_LSB
390 1.1 macallan */
391 1.1 macallan
392 1.1 macallan #define FP_HSYNC_WIDTH_DISABLE 0x27
393 1.1 macallan /* lower 7 bits are HSYNC width - 1 */
394 1.1 macallan #define DELAY_DISABLE 0x80
395 1.1 macallan
396 1.1 macallan #define FP_VSIZE_LSB 0x30 /* panel size - 1 */
397 1.1 macallan #define FP_VSYNC_START 0x31 /* value - 1 */
398 1.1 macallan #define FP_VSYNC_END 0x32 /* value - 1 */
399 1.1 macallan #define FP_VTOTAL_LSB 0x33 /* value - 2 */
400 1.1 macallan #define FP_VSYNC_DELAY_LSB 0x34 /* value - 1 */
401 1.1 macallan #define FP_VERT_OVERFLOW_1 0x35
402 1.1 macallan /*
403 1.1 macallan * upper 4 bits are upper 4 bits of FP_VSYNC_START
404 1.1 macallan * lower 4 bits are upper 4 bits of FP_VSIZE_LSB
405 1.1 macallan */
406 1.1 macallan
407 1.1 macallan #define FP_VERT_OVERFLOW_2 0x36
408 1.1 macallan /*
409 1.1 macallan * upper 4 bits are upper 4 bits of FP_VSYNC_DELAY_LSB
410 1.1 macallan * lower 4 bits are upper 4 bits of FP_VTOTAL_LSB
411 1.1 macallan */
412 1.1 macallan
413 1.1 macallan #define FP_VSYNC_DISABLE 0x37
414 1.1 macallan #define FP_VSYNC_WIDTH_MASK 0x38 /* value - 1 */
415 1.1 macallan #define FP_VSYNC_IS_CRT_VSYNC 0x40
416 1.1 macallan #define FP_VSYNC_DELAY_DISABLE 0x80
417 1.1 macallan
418 1.1 macallan #define FP_HORZ_COMPENSATION 0x40
419 1.1 macallan #define FP_VERT_COMPENSATION 0x41
420 1.1 macallan #define FP_VERT_COMPENSATION2 0x48
421 1.1 macallan
422 1.1 macallan #define FP_TEXT_VSTRETCH_0_MSB 0x49
423 1.1 macallan #define FP_TEXT_VSTRETCH_0_LSB 0x4a
424 1.1 macallan #define FP_TEXT_VSTRETCH_1_MSB 0x4b
425 1.1 macallan #define FP_TEXT_VSTRETCH_1_LSB 0x4c
426 1.1 macallan #define FP_TEXT_LINE_REPL 0x4d
427 1.1 macallan #define FP_SEL_VSTRETCH_DISABLE 0x4e
428 1.1 macallan
429 1.1 macallan
430 1.1 macallan
431 1.1 macallan #endif
432