1*0dbcc8a2Sderaadt /* $OpenBSD: mc6845reg.h,v 1.2 2004/04/02 04:39:50 deraadt Exp $ */ 21876d96bSaaron /* $NetBSD: mc6845reg.h,v 1.1 1998/05/28 16:48:40 drochner Exp $ */ 31876d96bSaaron 41876d96bSaaron /* 51876d96bSaaron * Copyright (c) 1998 61876d96bSaaron * Matthias Drochner. All rights reserved. 71876d96bSaaron * 81876d96bSaaron * Redistribution and use in source and binary forms, with or without 91876d96bSaaron * modification, are permitted provided that the following conditions 101876d96bSaaron * are met: 111876d96bSaaron * 1. Redistributions of source code must retain the above copyright 121876d96bSaaron * notice, this list of conditions and the following disclaimer. 131876d96bSaaron * 2. Redistributions in binary form must reproduce the above copyright 141876d96bSaaron * notice, this list of conditions and the following disclaimer in the 151876d96bSaaron * documentation and/or other materials provided with the distribution. 161876d96bSaaron * 171876d96bSaaron * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 181876d96bSaaron * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 191876d96bSaaron * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 201876d96bSaaron * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 211876d96bSaaron * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 221876d96bSaaron * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 231876d96bSaaron * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 241876d96bSaaron * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 251876d96bSaaron * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 261876d96bSaaron * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 271876d96bSaaron * 281876d96bSaaron */ 291876d96bSaaron 301876d96bSaaron struct reg_mc6845 { /* indexed via port 0x3d4 (mono 0x3b4) */ 311876d96bSaaron char htotal, hdisple, hblanks, hblanke; 321876d96bSaaron char hsyncs, hsynce, vtotal, overfll; 331876d96bSaaron char irowaddr, maxrow, curstart, curend; 341876d96bSaaron char startadrh, startadrl, cursorh, cursorl; 351876d96bSaaron char vsyncs, vsynce, vde, offset; 361876d96bSaaron char uloc, vbstart, vbend, mode; 371876d96bSaaron char splitl; 381876d96bSaaron }; 391876d96bSaaron #define MC6845_INDEX 4 401876d96bSaaron #define MC6845_DATA 5 41