1 /* $NetBSD: diofbreg.h,v 1.4 2023/01/15 06:19:45 tsutsui Exp $ */ 2 /* $OpenBSD: diofbreg.h,v 1.3 2007/01/07 15:13:52 miod Exp $ */ 3 4 /* 5 * Copyright (c) 1991 University of Utah. 6 * Copyright (c) 1990, 1993 7 * The Regents of the University of California. All rights reserved. 8 * 9 * This code is derived from software contributed to Berkeley by 10 * the Systems Programming Group of the University of Utah Computer 11 * Science Department. 12 * 13 * Redistribution and use in source and binary forms, with or without 14 * modification, are permitted provided that the following conditions 15 * are met: 16 * 1. Redistributions of source code must retain the above copyright 17 * notice, this list of conditions and the following disclaimer. 18 * 2. Redistributions in binary form must reproduce the above copyright 19 * notice, this list of conditions and the following disclaimer in the 20 * documentation and/or other materials provided with the distribution. 21 * 3. Neither the name of the University nor the names of its contributors 22 * may be used to endorse or promote products derived from this software 23 * without specific prior written permission. 24 * 25 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 26 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 27 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 29 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 * SUCH DAMAGE. 36 * 37 * from: Utah $Hdr: grfreg.h 1.6 92/01/31$ 38 * 39 * @(#)grfreg.h 8.1 (Berkeley) 6/10/93 40 */ 41 42 /* 300 bitmapped display hardware primary id */ 43 #define GRFHWID 0x39 44 45 /* 300 internal bitmapped display address */ 46 #define GRFIADDR 0x560000 47 48 /* 300 hardware secondary ids */ 49 #define GID_GATORBOX 1 50 #define GID_TOPCAT 2 51 #define GID_RENAISSANCE 4 52 #define GID_LRCATSEYE 5 53 #define GID_HRCCATSEYE 6 54 #define GID_HRMCATSEYE 7 55 #define GID_DAVINCI 8 56 #define GID_XXXCATSEYE 9 57 #define GID_XGENESIS 11 58 #define GID_TIGER 12 59 #define GID_YGENESIS 13 60 #define GID_HYPERION 14 61 #define GID_A1474MID 16 62 #define GID_A147xVGA 17 63 64 #ifndef _LOCORE 65 struct diofbreg { 66 uint8_t :8; 67 uint8_t id; /* id and reset register 0x01 */ 68 uint8_t sec_interrupt; /* secondary interrupt register 0x02 */ 69 uint8_t interrupt; /* interrupt register 0x03 */ 70 uint8_t :8; 71 uint8_t fbwmsb; /* frame buffer width MSB 0x05 */ 72 uint8_t :8; 73 uint8_t fbwlsb; /* frame buffer height LSB 0x07 */ 74 uint8_t :8; 75 uint8_t fbhmsb; /* frame buffer height MSB 0x09 */ 76 uint8_t :8; 77 uint8_t fbhlsb; /* frame buffer height LSB 0x0b */ 78 uint8_t :8; 79 uint8_t dwmsb; /* display width MSB 0x0d */ 80 uint8_t :8; 81 uint8_t dwlsb; /* display width LSB 0x0f */ 82 uint8_t :8; 83 uint8_t dhmsb; /* display height MSB 0x11 */ 84 uint8_t :8; 85 uint8_t dhlsb; /* display height LSB 0x13 */ 86 uint8_t :8; 87 uint8_t fbid; /* frame buffer id 0x15 */ 88 uint8_t pad2[0x45]; 89 uint8_t num_planes; /* number of color planes 0x5b */ 90 uint8_t :8; 91 uint8_t fbomsb; /* frame buffer offset MSB 0x5d */ 92 uint8_t :8; 93 uint8_t fbolsb; /* frame buffer offset LSB 0x5f */ 94 }; 95 #endif 96