|
|
1.1 root 1: /*
2: * Copyright (c) 1988 University of Utah.
3: * Copyright (c) 1990 The Regents of the University of California.
4: * 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.
9: *
10: * Redistribution is only permitted until one year after the first shipment
11: * of 4.4BSD by the Regents. Otherwise, redistribution and use in source and
12: * binary forms are permitted provided that: (1) source distributions retain
13: * this entire copyright notice and comment, and (2) distributions including
14: * binaries display the following acknowledgement: This product includes
15: * software developed by the University of California, Berkeley and its
16: * contributors'' in the documentation or other materials provided with the
17: * distribution and in all advertising materials mentioning features or use
18: * of this software. Neither the name of the University nor the names of
19: * its contributors may be used to endorse or promote products derived from
20: * this software without specific prior written permission.
21: * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
22: * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
23: * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
24: *
25: * from: Utah $Hdr: grf_gbreg.h 1.10 89/08/25$
26: *
27: * @(#)grf_gbreg.h 7.1 (Berkeley) 5/8/90
28: */
29:
30: /*
31: * Gatorbox driver regs
32: */
33:
34: #define TILER_ENABLE 0x80
35: #define LINE_MOVER_ENABLE 0x80
36: #define UP_LEFT 0x00
37: #define DOWN_RIGHT 0x40
38: #define MOVE_UP_LEFT TILER_ENABLE|UP_LEFT
39: #define MOVE_DOWN_RIGHT TILER_ENABLE|DOWN_RIGHT
40:
41: #define tile_mover_waitbusy(regaddr) \
42: while (((struct gboxfb *)(regaddr))->sec_interrupt & 0x10)
43:
44: #define line_mover_waitbusy(regaddr) \
45: while ((((struct gboxfb *)(regaddr))->status & 0x80) == 0)
46:
47: #define gbcm_waitbusy(regaddr) \
48: while (((struct gboxfb *)(regaddr))->cmap_busy != 0xff)
49:
50: #define vu_char volatile u_char
51:
52: struct gboxfb {
53: u_char :8;
54: vu_char reset; /* reset register 0x01 */
55: vu_char sec_interrupt; /* Secondary interrupt register 0x03 */
56: vu_char interrupt; /* interrupt register 0x03 */
57: u_char :8;
58: vu_char fbwmsb; /* frame buffer width MSB 0x05 */
59: u_char :8;
60: vu_char fbwlsb; /* frame buffer width MSB 0x07 */
61: u_char :8;
62: vu_char fbhmsb; /* frame buffer height MSB 0x09 */
63: u_char :8;
64: vu_char fbhlsb; /* frame buffer height MSB 0x0b */
65: u_char :8;
66: vu_char dwmsb; /* display width MSB 0x0d */
67: u_char :8;
68: vu_char dwlsb; /* display width MSB 0x0f */
69: u_char :8;
70: vu_char dhmsb; /* display height MSB 0x11 */
71: u_char :8;
72: vu_char dhlsb; /* display height MSB 0x13 */
73: u_char :8;
74: vu_char fbid; /* Scondary frame buffer id 0x15 */
75: u_char f1[0x5d-0x15-1];
76: vu_char fbomsb; /* frame buffer offset MSB 0x5d */
77: u_char :8;
78: vu_char fbolsb; /* frame buffer offset LSB 0x5f */
79: u_char f2[0x4000-0x5f-1];
80: vu_char crtc_address; /* CTR controller address reg 0x4000 */
81: vu_char status; /* Status register 0x4001 */
82: vu_char crtc_data; /* CTR controller data reg 0x4002 */
83: u_char f3[6];
84: vu_char line_mover_rep_rule; /* Line move rep rule */
85: u_char :8, :8;
86: vu_char line_mover_width; /* Line move width */
87: u_char f4[0xff3];
88: vu_char width; /* width in tiles 0x5001 */
89: u_char :8;
90: vu_char height; /* height in tiles 0x5003 */
91: u_char f5[3];
92: vu_char rep_rule; /* replacement rule 0x5007 */
93: u_char f6[0x6001-0x5007-1];
94: vu_char blink1; /* blink 1 0x6001 */
95: u_char f7[3];
96: vu_char blink2; /* blink 2 0x6005 */
97: u_char f8[3];
98: vu_char write_protect; /* write protect 0x6009 */
99: u_char f9[0x6803-0x6009-1];
100: vu_char cmap_busy; /* color map busy 0x6803 */
101: u_char f10[0x68b9-0x6803-1];
102: vu_char creg_select; /* color map register select 0x68b8 */
103: u_char f11[0x68f1-0x68b9-1];
104: vu_char cmap_write; /* color map write trigger 0x68f1 */
105: u_char f12[0x69b3-0x68f1-1];
106: vu_char cmap_red; /* red value register 0x69b3 */
107: u_char :8;
108: vu_char cmap_grn; /* green value register 0x69b5 */
109: u_char :8;
110: vu_char cmap_blu; /* blue value register 0x69b6 */
111: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.