|
|
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: bt431.h ! 28: * Author: Alessandro Forin, Carnegie Mellon University ! 29: * Date: 8/91 ! 30: * ! 31: * Defines for the bt431 Cursor chip ! 32: */ ! 33: ! 34: ! 35: typedef struct { ! 36: volatile unsigned char addr_lo; ! 37: volatile unsigned char addr_hi; ! 38: volatile unsigned char addr_cmap; ! 39: volatile unsigned char addr_reg; ! 40: } bt431_regmap_t; ! 41: ! 42: /* ! 43: * Additional registers addressed indirectly ! 44: */ ! 45: ! 46: #define BT431_REG_CMD 0x0000 ! 47: #define BT431_REG_CXLO 0x0001 ! 48: #define BT431_REG_CXHI 0x0002 ! 49: #define BT431_REG_CYLO 0x0003 ! 50: #define BT431_REG_CYHI 0x0004 ! 51: #define BT431_REG_WXLO 0x0005 ! 52: #define BT431_REG_WXHI 0x0006 ! 53: #define BT431_REG_WYLO 0x0007 ! 54: #define BT431_REG_WYHI 0x0008 ! 55: #define BT431_REG_WWLO 0x0009 ! 56: #define BT431_REG_WWHI 0x000a ! 57: #define BT431_REG_WHLO 0x000b ! 58: #define BT431_REG_WHHI 0x000c ! 59: ! 60: #define BT431_REG_CRAM_BASE 0x0000 ! 61: #define BT431_REG_CRAM_END 0x01ff ! 62: ! 63: /* ! 64: * Command register ! 65: */ ! 66: ! 67: #define BT431_CMD_CURS_ENABLE 0x40 ! 68: #define BT431_CMD_XHAIR_ENABLE 0x20 ! 69: #define BT431_CMD_OR_CURSORS 0x10 ! 70: #define BT431_CMD_AND_CURSORS 0x00 ! 71: #define BT431_CMD_1_1_MUX 0x00 ! 72: #define BT431_CMD_4_1_MUX 0x04 ! 73: #define BT431_CMD_5_1_MUX 0x08 ! 74: #define BT431_CMD_xxx_MUX 0x0c ! 75: #define BT431_CMD_THICK_1 0x00 ! 76: #define BT431_CMD_THICK_3 0x01 ! 77: #define BT431_CMD_THICK_5 0x02 ! 78: #define BT431_CMD_THICK_7 0x03
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.