xref: /original-bsd/sys/hp300/dev/grf_hyreg.h (revision 9639f1d4)
1 /*
2  * Copyright (c) 1991 University of Utah.
3  * Copyright (c) 1990, 1993
4  *	The Regents of the University of California.  All rights reserved.
5  *
6  * This code is derived from software contributed to Berkeley by
7  * the Systems Programming Group of the University of Utah Computer
8  * Science Department and Mark Davies of the Department of Computer
9  * Science, Victoria University of Wellington, New Zealand.
10  *
11  * %sccs.include.redist.c%
12  *
13  * from: Utah $Hdr: grf_hyreg.h 1.1 92/01/22$
14  *
15  *	@(#)grf_hyreg.h	8.1 (Berkeley) 06/10/93
16  */
17 
18 #include <hp/dev/iotypes.h>	/* XXX */
19 
20 struct hyboxfb {
21   u_char 	:8;
22   vu_char 	reset;			/* reset register		0x01 */
23   vu_char	fb_address;		/* frame buffer address 	0x02 */
24   vu_char	interrupt;		/* interrupt register		0x03 */
25   u_char	:8;
26   vu_char	fbwmsb;			/* frame buffer width MSB	0x05 */
27   u_char	:8;
28   vu_char	fbwlsb;			/* frame buffer width MSB	0x07 */
29   u_char	:8;
30   vu_char	fbhmsb;			/* frame buffer height MSB	0x09 */
31   u_char	:8;
32   vu_char	fbhlsb;			/* frame buffer height MSB	0x0b */
33   u_char	:8;
34   vu_char	dwmsb;			/* display width MSB		0x0d */
35   u_char	:8;
36   vu_char	dwlsb;			/* display width MSB		0x0f */
37   u_char	:8;
38   vu_char	dhmsb;			/* display height MSB		0x11 */
39   u_char	:8;
40   vu_char	dhlsb;			/* display height MSB		0x13 */
41   u_char	:8;
42   vu_char	fbid;			/* Scondary frame buffer id	0x15 */
43   u_char	:8;
44   vu_char	bits;			/* square(0)/double-high(1) 	0x17 */
45   u_char	f1[0x5b-0x17-1];
46   vu_char	num_planes;		/* number of color planes       0x5b */
47   u_char	:8;
48   vu_char	fbomsb;			/* frame buffer offset MSB	0x5d */
49   u_char	:8;
50   vu_char	fbolsb;			/* frame buffer offset LSB	0x5f */
51   u_char	f2[0x4000-0x5f-1];
52   vu_char	nblank;			/* display enable planes      0x4000 */
53 };
54 
55