FreeBSD/Linux Kernel Cross Reference
sys/chips/dc503.h
1 /*
2 * Mach Operating System
3 * Copyright (c) 1991,1990,1989 Carnegie Mellon University
4 * All Rights Reserved.
5 *
6 * Permission to use, copy, modify and distribute this software and its
7 * documentation is hereby granted, provided that both the copyright
8 * notice and this permission notice appear in all copies of the
9 * software, derivative works or modified versions, and any portions
10 * thereof, and that both notices appear in supporting documentation.
11 *
12 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
13 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
14 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
15 *
16 * Carnegie Mellon requests users of this software to return to
17 *
18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU
19 * School of Computer Science
20 * Carnegie Mellon University
21 * Pittsburgh PA 15213-3890
22 *
23 * any improvements or extensions that they make and grant Carnegie Mellon
24 * the rights to redistribute these changes.
25 */
26 /*
27 * HISTORY
28 * $Log: dc503.h,v $
29 * Revision 2.7 91/08/24 11:51:41 af
30 * Moved padding issues down in impl file.
31 * Struct pcc hack is gone.
32 * [91/08/02 02:28:28 af]
33 *
34 * Revision 2.6 91/06/19 11:47:24 rvb
35 * File moved here from mips/PMAX since it tries to be generic;
36 * it is used on the PMAX and the Vax3100.
37 * [91/06/04 rvb]
38 *
39 * Revision 2.5 91/05/14 17:20:42 mrt
40 * Correcting copyright
41 *
42 * Revision 2.4 91/02/05 17:40:19 mrt
43 * Added author notices
44 * [91/02/04 11:12:44 mrt]
45 *
46 * Changed to use new Mach copyright
47 * [91/02/02 12:10:31 mrt]
48 *
49 * Revision 2.3 90/12/05 23:30:44 af
50 * Fixed padding, works now.
51 * [90/12/03 23:13:30 af]
52 *
53 * Revision 2.1.1.1 90/11/01 03:43:26 af
54 * Created, from the DEC specs:
55 * "DECstation 3100 Desktop Workstation Functional Specification"
56 * Workstation Systems Engineering, Palo Alto, CA. Aug 28, 1990.
57 * [90/09/03 af]
58 */
59 /*
60 * File: dc503.h
61 * Author: Alessandro Forin, Carnegie Mellon University
62 * Date: 9/90
63 *
64 * Defines for the DEC DC503 Programmable Cursor
65 */
66
67 typedef struct {
68 volatile unsigned short pcc_cmdr; /* all regs are wo */
69 volatile unsigned short pcc_xpos;
70 volatile unsigned short pcc_ypos;
71 volatile unsigned short pcc_xmin1;
72 volatile unsigned short pcc_xmax1;
73 volatile unsigned short pcc_ymin1;
74 volatile unsigned short pcc_ymax1;
75 volatile unsigned short pcc_xmin2;
76 volatile unsigned short pcc_xmax2;
77 volatile unsigned short pcc_ymin2;
78 volatile unsigned short pcc_ymax2;
79 volatile unsigned short pcc_memory;
80 } dc503_regmap_t;
81
82 /*
83 * Command register bits
84 */
85
86 #define DC503_CMD_TEST 0x8000 /* cursor test flip-flop */
87 #define DC503_CMD_HSHI 0x4000 /* Hor sync polarity */
88 #define DC503_CMD_VBHI 0x2000 /* Ver blank polarity */
89 #define DC503_CMD_LODSA 0x1000 /* load sprite array */
90 #define DC503_CMD_FORG2 0x0800 /* force detector2 to one */
91 #define DC503_CMD_ENRG2 0x0400 /* enable detector2 */
92 #define DC503_CMD_FORG1 0x0200 /* force detector1 to one */
93 #define DC503_CMD_ENRG1 0x0100 /* enable detector1 */
94 #define DC503_CMD_XHWID 0x0080 /* hair cursor (double) width */
95 #define DC503_CMD_XHCL1 0x0040 /* hair clip region */
96 #define DC503_CMD_XHCLP 0x0020 /* clip hair inside region */
97 #define DC503_CMD_XHAIR 0x0010 /* enable hair cursor */
98 #define DC503_CMD_FOPB 0x0008 /* force curs plane B to one */
99 #define DC503_CMD_ENPB 0x0004 /* enable curs plane B */
100 #define DC503_CMD_FOPA 0x0002 /* force curs plane A to one */
101 #define DC503_CMD_ENPA 0x0001 /* enable curs plane A */
102
Cache object: 2cf15412967a669613d6ccc1869fa218
|