1*a73dadd6Smickey /* $OpenBSD: mc6845.h,v 1.5 2005/12/12 12:35:49 mickey Exp $ */ 27b91181aSmickey 37b91181aSmickey /* 47b91181aSmickey * Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch. 57b91181aSmickey * Copyright (c) 1992, 1993 Brian Dunford-Shore. 67b91181aSmickey * All rights reserved. 77b91181aSmickey * 87b91181aSmickey * Redistribution and use in source and binary forms, with or without 97b91181aSmickey * modification, are permitted provided that the following conditions 107b91181aSmickey * are met: 117b91181aSmickey * 1. Redistributions of source code must retain the above copyright 127b91181aSmickey * notice, this list of conditions and the following disclaimer. 137b91181aSmickey * 2. Redistributions in binary form must reproduce the above copyright 147b91181aSmickey * notice, this list of conditions and the following disclaimer in the 157b91181aSmickey * documentation and/or other materials provided with the distribution. 167b91181aSmickey * 3. All advertising materials mentioning features or use of this software 177b91181aSmickey * must display the following acknowledgement: 18*a73dadd6Smickey * This product includes software developed by 19*a73dadd6Smickey * Hellmuth Michaelis, Brian Dunford-Shore and Joerg Wunsch. 207b91181aSmickey * 4. The name of the author may not be used to endorse or promote products 217b91181aSmickey * derived from this software without specific prior written permission. 227b91181aSmickey * 237b91181aSmickey * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 247b91181aSmickey * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 257b91181aSmickey * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 267b91181aSmickey * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 277b91181aSmickey * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 287b91181aSmickey * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 297b91181aSmickey * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 307b91181aSmickey * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 317b91181aSmickey * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 327b91181aSmickey * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 337b91181aSmickey * SUCH DAMAGE. 347b91181aSmickey * 357b91181aSmickey */ 367b91181aSmickey 377b91181aSmickey 387b91181aSmickey #define MONO_BASE 0x3B4 /* crtc index register address mono */ 397b91181aSmickey #define CGA_BASE 0x3D4 /* crtc index register address color */ 407b91181aSmickey 417b91181aSmickey #define CRTC_ADDR 0x00 /* index register */ 427b91181aSmickey 437b91181aSmickey #define CRTC_HTOTAL 0x00 /* horizontal total */ 447b91181aSmickey #define CRTC_HDISPLE 0x01 /* horizontal display end */ 457b91181aSmickey #define CRTC_HBLANKS 0x02 /* horizontal blank start */ 467b91181aSmickey #define CRTC_HBLANKE 0x03 /* horizontal blank end */ 477b91181aSmickey #define CRTC_HSYNCS 0x04 /* horizontal sync start */ 487b91181aSmickey #define CRTC_HSYNCE 0x05 /* horizontal sync end */ 497b91181aSmickey #define CRTC_VTOTAL 0x06 /* vertical total */ 507b91181aSmickey #define CRTC_OVERFLL 0x07 /* overflow low */ 51f92e66c2Snate #define CRTC_IROWADDR 0x08 /* initial row address */ 527b91181aSmickey #define CRTC_MAXROW 0x09 /* maximum row address */ 537b91181aSmickey #define CRTC_CURSTART 0x0A /* cursor start row address */ 547b91181aSmickey #define CRTC_CUREND 0x0B /* cursor end row address */ 557b91181aSmickey #define CRTC_STARTADRH 0x0C /* linear start address mid */ 567b91181aSmickey #define CRTC_STARTADRL 0x0D /* linear start address low */ 577b91181aSmickey #define CRTC_CURSORH 0x0E /* cursor address mid */ 587b91181aSmickey #define CRTC_CURSORL 0x0F /* cursor address low */ 597b91181aSmickey #define CRTC_VSYNCS 0x10 /* vertical sync start */ 607b91181aSmickey #define CRTC_VSYNCE 0x11 /* vertical sync end */ 617b91181aSmickey #define CRTC_VDE 0x12 /* vertical display end */ 627b91181aSmickey #define CRTC_OFFSET 0x13 /* row offset */ 637b91181aSmickey #define CRTC_ULOC 0x14 /* underline row address */ 647b91181aSmickey #define CRTC_VBSTART 0x15 /* vertical blank start */ 657b91181aSmickey #define CRTC_VBEND 0x16 /* vertical blank end */ 667b91181aSmickey #define CRTC_MODE 0x17 /* CRTC mode register */ 677b91181aSmickey #define CRTC_SPLITL 0x18 /* split screen start low */ 687b91181aSmickey 697b91181aSmickey /* start of ET4000 extensions */ 707b91181aSmickey 717b91181aSmickey #define CRTC_RASCAS 0x32 /* ras/cas configuration */ 727b91181aSmickey #define CRTC_EXTSTART 0x33 /* extended start address */ 732408ed96Sjmc #define CRTC_COMPAT6845 0x34 /* 6845 compatibility control */ 747b91181aSmickey #define CRTC_OVFLHIGH 0x35 /* overflow high */ 757b91181aSmickey #define CRTC_SYSCONF1 0x36 /* video system configuration 1 */ 767b91181aSmickey #define CRTC_SYSCONF2 0x36 /* video system configuration 2 */ 777b91181aSmickey 787b91181aSmickey /* start of WD/Paradise extensions */ 797b91181aSmickey 807b91181aSmickey #define CRTC_PR10 0x29 /* r/w unlocking */ 817b91181aSmickey #define CRTC_PR11 0x2A /* ega switches */ 827b91181aSmickey #define CRTC_PR12 0x2B /* scratch pad */ 837b91181aSmickey #define CRTC_PR13 0x2C /* interlace h/2 start */ 847b91181aSmickey #define CRTC_PR14 0x2D /* interlace h/2 end */ 857b91181aSmickey #define CRTC_PR15 0x2E /* misc control #1 */ 867b91181aSmickey #define CRTC_PR16 0x2F /* misc control #2 */ 877b91181aSmickey #define CRTC_PR17 0x30 /* misc control #3 */ 887b91181aSmickey /* 0x31 .. 0x3f reserved */ 897b91181aSmickey /* Video 7 */ 907b91181aSmickey 917b91181aSmickey #define CRTC_V7ID 0x1f /* identification register */ 927b91181aSmickey 937b91181aSmickey /* Trident */ 947b91181aSmickey 957b91181aSmickey #define CRTC_MTEST 0x1e /* module test register */ 967b91181aSmickey #define CRTC_SOFTPROG 0x1f /* software programming */ 977b91181aSmickey #define CRTC_LATCHRDB 0x22 /* latch read back register */ 987b91181aSmickey #define CRTC_ATTRSRDB 0x24 /* attribute state read back register*/ 997b91181aSmickey #define CRTC_ATTRIRDB 0x26 /* attribute index read back register*/ 1007b91181aSmickey #define CRTC_HOSTAR 0x27 /* high order start address register */ 1017b91181aSmickey 102