FreeBSD/Linux Kernel Cross Reference
sys/chips/bt459.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: bt459.h,v $
29 * Revision 2.7 91/08/24 11:50:31 af
30 * Padding is a machdep issue: moved into implementation file.
31 * [91/08/02 02:03:49 af]
32 *
33 * Revision 2.6 91/06/19 11:46:02 rvb
34 * File moved here from mips/PMAX since it tries to be generic.
35 * [91/06/04 rvb]
36 *
37 * Revision 2.5 91/05/14 17:19:27 mrt
38 * Correcting copyright
39 *
40 * Revision 2.4 91/02/05 17:39:43 mrt
41 * Added author notices
42 * [91/02/04 11:11:57 mrt]
43 *
44 * Changed to use new Mach copyright
45 * [91/02/02 12:09:39 mrt]
46 *
47 * Revision 2.3 90/12/05 23:30:26 af
48 * Cursor color register are supported, contrary to specs.
49 * [90/12/03 23:07:22 af]
50 *
51 * Revision 2.1.1.1 90/11/01 03:36:40 af
52 * Created, from Brooktree specs:
53 * "Product Databook 1989"
54 * "Bt459 135 MHz Monolithic CMOS 256x64 Color Palette RAMDAC"
55 * Brooktree Corp. San Diego, CA
56 * LA59001 Rev. J
57 * [90/09/03 af]
58 */
59 /*
60 * File: bt459.h
61 * Author: Alessandro Forin, Carnegie Mellon University
62 * Date: 9/90
63 *
64 * Defines for the bt459 Cursor/RAMDAC chip
65 */
66
67 typedef struct {
68 volatile unsigned char addr_lo;
69 volatile unsigned char addr_hi;
70 volatile unsigned char addr_reg;
71 volatile unsigned char addr_cmap;
72 } bt459_regmap_t;
73
74 /*
75 * Additional registers addressed indirectly
76 */
77
78 /* 0000-00ff Color Map entries */
79 /* 0100-010f Overlay color regs, unsupp */
80 #define BT459_REG_CCOLOR_1 0x0181 /* Cursor color regs */
81 #define BT459_REG_CCOLOR_2 0x0182
82 #define BT459_REG_CCOLOR_3 0x0183
83 #define BT459_REG_ID 0x0200 /* read-only, gives "4a" */
84 #define BT459_REG_CMD0 0x0201
85 #define BT459_REG_CMD1 0x0202
86 #define BT459_REG_CMD2 0x0203
87 #define BT459_REG_PRM 0x0204
88 /* 0205 reserved */
89 #define BT459_REG_PBM 0x0206
90 /* 0207 reserved */
91 #define BT459_REG_ORM 0x0208
92 #define BT459_REG_OBM 0x0209
93 #define BT459_REG_ILV 0x020a
94 #define BT459_REG_TEST 0x020b
95 #define BT459_REG_RSIG 0x020c
96 #define BT459_REG_GSIG 0x020d
97 #define BT459_REG_BSIG 0x020e
98 /* 020f-02ff reserved */
99 #define BT459_REG_CCR 0x0300
100 #define BT459_REG_CXLO 0x0301
101 #define BT459_REG_CXHI 0x0302
102 #define BT459_REG_CYLO 0x0303
103 #define BT459_REG_CYHI 0x0304
104 #define BT459_REG_WXLO 0x0305
105 #define BT459_REG_WXHI 0x0306
106 #define BT459_REG_WYLO 0x0307
107 #define BT459_REG_WYHI 0x0308
108 #define BT459_REG_WWLO 0x0309
109 #define BT459_REG_WWHI 0x030a
110 #define BT459_REG_WHLO 0x030b
111 #define BT459_REG_WHHI 0x030c
112 /* 030d-03ff reserved */
113 #define BT459_REG_CRAM_BASE 0x0400
114 #define BT459_REG_CRAM_END 0x07ff
115
Cache object: a52ea9fe71cf09804b87b2abdc03a454
|