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