pmreg.h revision 1.1.12.3 1 1.1.12.3 skrll /* $NetBSD: pmreg.h,v 1.1.12.3 2004/09/21 13:20:21 skrll Exp $ */
2 1.1.12.1 skrll
3 1.1.12.1 skrll /*
4 1.1.12.1 skrll * Copyright (c) 1992, 1993
5 1.1.12.1 skrll * The Regents of the University of California. All rights reserved.
6 1.1.12.1 skrll *
7 1.1.12.1 skrll * This code is derived from software contributed to Berkeley by
8 1.1.12.1 skrll * Ralph Campbell.
9 1.1.12.1 skrll *
10 1.1.12.1 skrll * Redistribution and use in source and binary forms, with or without
11 1.1.12.1 skrll * modification, are permitted provided that the following conditions
12 1.1.12.1 skrll * are met:
13 1.1.12.1 skrll * 1. Redistributions of source code must retain the above copyright
14 1.1.12.1 skrll * notice, this list of conditions and the following disclaimer.
15 1.1.12.1 skrll * 2. Redistributions in binary form must reproduce the above copyright
16 1.1.12.1 skrll * notice, this list of conditions and the following disclaimer in the
17 1.1.12.1 skrll * documentation and/or other materials provided with the distribution.
18 1.1.12.1 skrll * 3. Neither the name of the University nor the names of its contributors
19 1.1.12.1 skrll * may be used to endorse or promote products derived from this software
20 1.1.12.1 skrll * without specific prior written permission.
21 1.1.12.1 skrll *
22 1.1.12.1 skrll * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
23 1.1.12.1 skrll * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 1.1.12.1 skrll * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 1.1.12.1 skrll * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
26 1.1.12.1 skrll * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27 1.1.12.1 skrll * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
28 1.1.12.1 skrll * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
29 1.1.12.1 skrll * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
30 1.1.12.1 skrll * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
31 1.1.12.1 skrll * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 1.1.12.1 skrll * SUCH DAMAGE.
33 1.1.12.1 skrll *
34 1.1.12.1 skrll * @(#)pmreg.h 8.1 (Berkeley) 6/10/93
35 1.1.12.1 skrll */
36 1.1.12.1 skrll
37 1.1.12.1 skrll #ifndef _PMREG_H_
38 1.1.12.1 skrll #define _PMREG_H_
39 1.1.12.1 skrll
40 1.1.12.1 skrll /*
41 1.1.12.1 skrll * Structure to describe the programmable cursor chip (DC503) from DEC.
42 1.1.12.1 skrll */
43 1.1.12.1 skrll typedef volatile struct PCCRegs {
44 1.1.12.1 skrll u_short cmdr; /* cursor command register */
45 1.1.12.1 skrll short pad1;
46 1.1.12.1 skrll u_short xpos; /* cursor X position */
47 1.1.12.1 skrll short pad2;
48 1.1.12.1 skrll u_short ypos; /* cursor Y position */
49 1.1.12.1 skrll short pad3;
50 1.1.12.1 skrll u_short xmin1; /* region 1 left edge */
51 1.1.12.1 skrll short pad4;
52 1.1.12.1 skrll u_short xmax1; /* region 1 right edge */
53 1.1.12.1 skrll short pad5;
54 1.1.12.1 skrll u_short ymin1; /* region 1 top edge */
55 1.1.12.1 skrll short pad6;
56 1.1.12.1 skrll u_short ymax1; /* region 1 bottom edge */
57 1.1.12.1 skrll short pad7[9];
58 1.1.12.1 skrll u_short xmin2; /* region 2 left edge */
59 1.1.12.1 skrll short pad8;
60 1.1.12.1 skrll u_short xmax2; /* region 2 right edge */
61 1.1.12.1 skrll short pad9;
62 1.1.12.1 skrll u_short ymin2; /* region 2 top edge */
63 1.1.12.1 skrll short pad10;
64 1.1.12.1 skrll u_short ymax2; /* region 2 bottom edge */
65 1.1.12.1 skrll short pad11;
66 1.1.12.1 skrll u_short memory; /* cursor sprite pattern load */
67 1.1.12.1 skrll } PCCRegs;
68 1.1.12.1 skrll
69 1.1.12.1 skrll /*
70 1.1.12.1 skrll * Bits in pcc_cmdr.
71 1.1.12.1 skrll */
72 1.1.12.1 skrll #define PCC_TEST 0x8000
73 1.1.12.1 skrll #define PCC_HSHI 0x4000
74 1.1.12.1 skrll #define PCC_VBHI 0x2000
75 1.1.12.1 skrll #define PCC_LODSA 0x1000
76 1.1.12.1 skrll #define PCC_FORG2 0x0800
77 1.1.12.1 skrll #define PCC_ENRG2 0x0400
78 1.1.12.1 skrll #define PCC_FORG1 0x0200
79 1.1.12.1 skrll #define PCC_ENRG1 0x0100
80 1.1.12.1 skrll #define PCC_XHWID 0x0080
81 1.1.12.1 skrll #define PCC_XHCL1 0x0040
82 1.1.12.1 skrll #define PCC_XHCLP 0x0020
83 1.1.12.1 skrll #define PCC_XHAIR 0x0010
84 1.1.12.1 skrll #define PCC_FOPB 0x0008
85 1.1.12.1 skrll #define PCC_ENPB 0x0004
86 1.1.12.1 skrll #define PCC_FOPA 0x0002
87 1.1.12.1 skrll #define PCC_ENPA 0x0001
88 1.1.12.1 skrll
89 1.1.12.1 skrll /*
90 1.1.12.1 skrll * Magic offset for cursor X & Y locations.
91 1.1.12.1 skrll */
92 1.1.12.1 skrll #define PCC_X_OFFSET 212
93 1.1.12.1 skrll #define PCC_Y_OFFSET 34
94 1.1.12.1 skrll
95 1.1.12.1 skrll /*
96 1.1.12.1 skrll * Defines for the BrookTree bt478 VDAC.
97 1.1.12.1 skrll */
98 1.1.12.1 skrll typedef volatile struct VDACRegs {
99 1.1.12.1 skrll u_char mapWA; /* address register (color map write) */
100 1.1.12.1 skrll char pad1[3];
101 1.1.12.1 skrll u_char map; /* color map */
102 1.1.12.1 skrll char pad2[3];
103 1.1.12.1 skrll u_char mask; /* pixel read mask */
104 1.1.12.1 skrll char pad3[3];
105 1.1.12.1 skrll u_char mapRA; /* address register (color map read) */
106 1.1.12.1 skrll char pad4[3];
107 1.1.12.1 skrll u_char overWA; /* address register (overlay map write) */
108 1.1.12.1 skrll char pad5[3];
109 1.1.12.1 skrll u_char over; /* overlay map */
110 1.1.12.1 skrll char pad6[7];
111 1.1.12.1 skrll u_char overRA; /* address register (overlay map read) */
112 1.1.12.1 skrll } VDACRegs;
113 1.1.12.1 skrll
114 1.1.12.1 skrll #endif /* !_PMREG_H_ */
115