1*9b6bd2d9Srmind /* $NetBSD: grf_hyreg.h,v 1.2 2011/02/08 20:20:14 rmind Exp $ */ 213b242e4Stsutsui 313b242e4Stsutsui /* 4*9b6bd2d9Srmind * Copyright (c) 1991 University of Utah. 513b242e4Stsutsui * Copyright (c) 1990, 1993 613b242e4Stsutsui * The Regents of the University of California. All rights reserved. 713b242e4Stsutsui * 813b242e4Stsutsui * This code is derived from software contributed to Berkeley by 913b242e4Stsutsui * the Systems Programming Group of the University of Utah Computer 1013b242e4Stsutsui * Science Department and Mark Davies of the Department of Computer 1113b242e4Stsutsui * Science, Victoria University of Wellington, New Zealand. 1213b242e4Stsutsui * 1313b242e4Stsutsui * Redistribution and use in source and binary forms, with or without 1413b242e4Stsutsui * modification, are permitted provided that the following conditions 1513b242e4Stsutsui * are met: 1613b242e4Stsutsui * 1. Redistributions of source code must retain the above copyright 1713b242e4Stsutsui * notice, this list of conditions and the following disclaimer. 1813b242e4Stsutsui * 2. Redistributions in binary form must reproduce the above copyright 1913b242e4Stsutsui * notice, this list of conditions and the following disclaimer in the 2013b242e4Stsutsui * documentation and/or other materials provided with the distribution. 2113b242e4Stsutsui * 3. Neither the name of the University nor the names of its contributors 2213b242e4Stsutsui * may be used to endorse or promote products derived from this software 2313b242e4Stsutsui * without specific prior written permission. 2413b242e4Stsutsui * 2513b242e4Stsutsui * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2613b242e4Stsutsui * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2713b242e4Stsutsui * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2813b242e4Stsutsui * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2913b242e4Stsutsui * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3013b242e4Stsutsui * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3113b242e4Stsutsui * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3213b242e4Stsutsui * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3313b242e4Stsutsui * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3413b242e4Stsutsui * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3513b242e4Stsutsui * SUCH DAMAGE. 3613b242e4Stsutsui * 3713b242e4Stsutsui * from: Utah $Hdr: grf_hyreg.h 1.1 92/01/22$ 3813b242e4Stsutsui * 3913b242e4Stsutsui * @(#)grf_hyreg.h 8.1 (Berkeley) 6/10/93 4013b242e4Stsutsui */ 4113b242e4Stsutsui 4213b242e4Stsutsui #include <hp300/dev/iotypes.h> /* XXX */ 4313b242e4Stsutsui 4413b242e4Stsutsui struct hyboxfb { 4513b242e4Stsutsui u_char :8; 4613b242e4Stsutsui vu_char reset; /* reset register 0x01 */ 4713b242e4Stsutsui vu_char fb_address; /* frame buffer address 0x02 */ 4813b242e4Stsutsui vu_char interrupt; /* interrupt register 0x03 */ 4913b242e4Stsutsui u_char :8; 5013b242e4Stsutsui vu_char fbwmsb; /* frame buffer width MSB 0x05 */ 5113b242e4Stsutsui u_char :8; 5213b242e4Stsutsui vu_char fbwlsb; /* frame buffer width MSB 0x07 */ 5313b242e4Stsutsui u_char :8; 5413b242e4Stsutsui vu_char fbhmsb; /* frame buffer height MSB 0x09 */ 5513b242e4Stsutsui u_char :8; 5613b242e4Stsutsui vu_char fbhlsb; /* frame buffer height MSB 0x0b */ 5713b242e4Stsutsui u_char :8; 5813b242e4Stsutsui vu_char dwmsb; /* display width MSB 0x0d */ 5913b242e4Stsutsui u_char :8; 6013b242e4Stsutsui vu_char dwlsb; /* display width MSB 0x0f */ 6113b242e4Stsutsui u_char :8; 6213b242e4Stsutsui vu_char dhmsb; /* display height MSB 0x11 */ 6313b242e4Stsutsui u_char :8; 6413b242e4Stsutsui vu_char dhlsb; /* display height MSB 0x13 */ 6513b242e4Stsutsui u_char :8; 6613b242e4Stsutsui vu_char fbid; /* Scondary frame buffer id 0x15 */ 6713b242e4Stsutsui u_char :8; 6813b242e4Stsutsui vu_char bits; /* square(0)/double-high(1) 0x17 */ 6913b242e4Stsutsui u_char f1[0x5b-0x17-1]; 7013b242e4Stsutsui vu_char num_planes; /* number of color planes 0x5b */ 7113b242e4Stsutsui u_char :8; 7213b242e4Stsutsui vu_char fbomsb; /* frame buffer offset MSB 0x5d */ 7313b242e4Stsutsui u_char :8; 7413b242e4Stsutsui vu_char fbolsb; /* frame buffer offset LSB 0x5f */ 7513b242e4Stsutsui u_char f2[0x4000-0x5f-1]; 7613b242e4Stsutsui vu_char nblank; /* display enable planes 0x4000 */ 7713b242e4Stsutsui }; 7813b242e4Stsutsui 79