|
|
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: bt459.h
28: * Author: Alessandro Forin, Carnegie Mellon University
29: * Date: 9/90
30: *
31: * Defines for the bt459 Cursor/RAMDAC chip
32: */
33:
34: typedef struct {
35: volatile unsigned char addr_lo;
36: volatile unsigned char addr_hi;
37: volatile unsigned char addr_reg;
38: volatile unsigned char addr_cmap;
39: } bt459_regmap_t;
40:
41: /*
42: * Additional registers addressed indirectly
43: */
44:
45: /* 0000-00ff Color Map entries */
46: /* 0100-010f Overlay color regs, unsupp */
47: #define BT459_REG_CCOLOR_1 0x0181 /* Cursor color regs */
48: #define BT459_REG_CCOLOR_2 0x0182
49: #define BT459_REG_CCOLOR_3 0x0183
50: #define BT459_REG_ID 0x0200 /* read-only, gives "4a" */
51: #define BT459_REG_CMD0 0x0201
52: #define BT459_REG_CMD1 0x0202
53: #define BT459_REG_CMD2 0x0203
54: #define BT459_REG_PRM 0x0204
55: /* 0205 reserved */
56: #define BT459_REG_PBM 0x0206
57: /* 0207 reserved */
58: #define BT459_REG_ORM 0x0208
59: #define BT459_REG_OBM 0x0209
60: #define BT459_REG_ILV 0x020a
61: #define BT459_REG_TEST 0x020b
62: #define BT459_REG_RSIG 0x020c
63: #define BT459_REG_GSIG 0x020d
64: #define BT459_REG_BSIG 0x020e
65: /* 020f-02ff reserved */
66: #define BT459_REG_CCR 0x0300
67: #define BT459_REG_CXLO 0x0301
68: #define BT459_REG_CXHI 0x0302
69: #define BT459_REG_CYLO 0x0303
70: #define BT459_REG_CYHI 0x0304
71: #define BT459_REG_WXLO 0x0305
72: #define BT459_REG_WXHI 0x0306
73: #define BT459_REG_WYLO 0x0307
74: #define BT459_REG_WYHI 0x0308
75: #define BT459_REG_WWLO 0x0309
76: #define BT459_REG_WWHI 0x030a
77: #define BT459_REG_WHLO 0x030b
78: #define BT459_REG_WHHI 0x030c
79: /* 030d-03ff reserved */
80: #define BT459_REG_CRAM_BASE 0x0400
81: #define BT459_REG_CRAM_END 0x07ff
82:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.