No empty .Rs/.Re
[netbsd-mini2440.git] / sys / arch / hp300 / dev / grf_hyreg.h
blob7d01fba65c250910f81bd27886116544dae53c07
1 /* $NetBSD: grf_hyreg.h,v 1.2.66.3 2004/09/21 13:15:14 skrll Exp $ */
3 /*
4 * Copyright (c) 1990, 1993
5 * The Regents of the University of California. All rights reserved.
7 * This code is derived from software contributed to Berkeley by
8 * the Systems Programming Group of the University of Utah Computer
9 * Science Department and Mark Davies of the Department of Computer
10 * Science, Victoria University of Wellington, New Zealand.
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.
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.
36 * from: Utah $Hdr: grf_hyreg.h 1.1 92/01/22$
38 * @(#)grf_hyreg.h 8.1 (Berkeley) 6/10/93
42 * Copyright (c) 1991 University of Utah.
44 * This code is derived from software contributed to Berkeley by
45 * the Systems Programming Group of the University of Utah Computer
46 * Science Department and Mark Davies of the Department of Computer
47 * Science, Victoria University of Wellington, New Zealand.
49 * Redistribution and use in source and binary forms, with or without
50 * modification, are permitted provided that the following conditions
51 * are met:
52 * 1. Redistributions of source code must retain the above copyright
53 * notice, this list of conditions and the following disclaimer.
54 * 2. Redistributions in binary form must reproduce the above copyright
55 * notice, this list of conditions and the following disclaimer in the
56 * documentation and/or other materials provided with the distribution.
57 * 3. All advertising materials mentioning features or use of this software
58 * must display the following acknowledgement:
59 * This product includes software developed by the University of
60 * California, Berkeley and its contributors.
61 * 4. Neither the name of the University nor the names of its contributors
62 * may be used to endorse or promote products derived from this software
63 * without specific prior written permission.
65 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
66 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
67 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
68 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
69 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
70 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
71 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
72 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
73 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
74 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
75 * SUCH DAMAGE.
77 * from: Utah $Hdr: grf_hyreg.h 1.1 92/01/22$
79 * @(#)grf_hyreg.h 8.1 (Berkeley) 6/10/93
82 #include <hp300/dev/iotypes.h> /* XXX */
84 struct hyboxfb {
85 u_char :8;
86 vu_char reset; /* reset register 0x01 */
87 vu_char fb_address; /* frame buffer address 0x02 */
88 vu_char interrupt; /* interrupt register 0x03 */
89 u_char :8;
90 vu_char fbwmsb; /* frame buffer width MSB 0x05 */
91 u_char :8;
92 vu_char fbwlsb; /* frame buffer width MSB 0x07 */
93 u_char :8;
94 vu_char fbhmsb; /* frame buffer height MSB 0x09 */
95 u_char :8;
96 vu_char fbhlsb; /* frame buffer height MSB 0x0b */
97 u_char :8;
98 vu_char dwmsb; /* display width MSB 0x0d */
99 u_char :8;
100 vu_char dwlsb; /* display width MSB 0x0f */
101 u_char :8;
102 vu_char dhmsb; /* display height MSB 0x11 */
103 u_char :8;
104 vu_char dhlsb; /* display height MSB 0x13 */
105 u_char :8;
106 vu_char fbid; /* Scondary frame buffer id 0x15 */
107 u_char :8;
108 vu_char bits; /* square(0)/double-high(1) 0x17 */
109 u_char f1[0x5b-0x17-1];
110 vu_char num_planes; /* number of color planes 0x5b */
111 u_char :8;
112 vu_char fbomsb; /* frame buffer offset MSB 0x5d */
113 u_char :8;
114 vu_char fbolsb; /* frame buffer offset LSB 0x5f */
115 u_char f2[0x4000-0x5f-1];
116 vu_char nblank; /* display enable planes 0x4000 */