Annotation of Gnu-Mach/chips/dc503.h, revision 1.1.1.1

1.1       root        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  [email protected]
                     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:  *     File: dc503.h
                     28:  *     Author: Alessandro Forin, Carnegie Mellon University
                     29:  *     Date:   9/90
                     30:  *
                     31:  *     Defines for the DEC DC503 Programmable Cursor
                     32:  */
                     33: 
                     34: typedef struct {
                     35:        volatile unsigned short pcc_cmdr;       /* all regs are wo */
                     36:        volatile unsigned short pcc_xpos;
                     37:        volatile unsigned short pcc_ypos;
                     38:        volatile unsigned short pcc_xmin1;
                     39:        volatile unsigned short pcc_xmax1;
                     40:        volatile unsigned short pcc_ymin1;
                     41:        volatile unsigned short pcc_ymax1;
                     42:        volatile unsigned short pcc_xmin2;
                     43:        volatile unsigned short pcc_xmax2;
                     44:        volatile unsigned short pcc_ymin2;
                     45:        volatile unsigned short pcc_ymax2;
                     46:        volatile unsigned short pcc_memory;
                     47: } dc503_regmap_t;
                     48: 
                     49: /*
                     50:  *     Command register bits
                     51:  */
                     52: 
                     53: #define        DC503_CMD_TEST          0x8000  /* cursor test flip-flop */
                     54: #define        DC503_CMD_HSHI          0x4000  /* Hor sync polarity */
                     55: #define        DC503_CMD_VBHI          0x2000  /* Ver blank polarity */
                     56: #define        DC503_CMD_LODSA         0x1000  /* load sprite array */
                     57: #define        DC503_CMD_FORG2         0x0800  /* force detector2 to one */
                     58: #define        DC503_CMD_ENRG2         0x0400  /* enable detector2 */
                     59: #define        DC503_CMD_FORG1         0x0200  /* force detector1 to one */
                     60: #define        DC503_CMD_ENRG1         0x0100  /* enable detector1 */
                     61: #define        DC503_CMD_XHWID         0x0080  /* hair cursor (double) width */
                     62: #define        DC503_CMD_XHCL1         0x0040  /* hair clip region */
                     63: #define        DC503_CMD_XHCLP         0x0020  /* clip hair inside region */
                     64: #define        DC503_CMD_XHAIR         0x0010  /* enable hair cursor */
                     65: #define        DC503_CMD_FOPB          0x0008  /* force curs plane B to one */
                     66: #define        DC503_CMD_ENPB          0x0004  /* enable curs plane B */
                     67: #define        DC503_CMD_FOPA          0x0002  /* force curs plane A to one */
                     68: #define        DC503_CMD_ENPA          0x0001  /* enable curs plane A */
                     69: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.