1 /* $NetBSD: bt431reg.h,v 1.3 2005/12/11 12:21:26 christos Exp $ */
2 
3 /*
4  * Mach Operating System
5  * Copyright (c) 1991,1990,1989 Carnegie Mellon University
6  * All Rights Reserved.
7  *
8  * Permission to use, copy, modify and distribute this software and its
9  * documentation is hereby granted, provided that both the copyright
10  * notice and this permission notice appear in all copies of the
11  * software, derivative works or modified versions, and any portions
12  * thereof, and that both notices appear in supporting documentation.
13  *
14  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
15  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
16  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
17  *
18  * Carnegie Mellon requests users of this software to return to
19  *
20  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
21  *  School of Computer Science
22  *  Carnegie Mellon University
23  *  Pittsburgh PA 15213-3890
24  *
25  * any improvements or extensions that they make and grant Carnegie Mellon
26  * the rights to redistribute these changes.
27  */
28 
29 /*
30  * Register definitions for the Brooktree Bt431 Monolithic CMOS
31  * 64x64 Pixel Cursor Generator.
32  */
33 
34 #define   BT431_REG_COMMAND   0x000
35 #define   BT431_REG_CURSOR_X_LOW        0x001
36 #define   BT431_REG_CURSOR_X_HIGH       0x002
37 #define   BT431_REG_CURSOR_Y_LOW        0x003
38 #define   BT431_REG_CURSOR_Y_HIGH       0x004
39 #define   BT431_REG_WXLO                0x005
40 #define   BT431_REG_WXHI                0x006
41 #define   BT431_REG_WYLO                0x007
42 #define   BT431_REG_WYHI                0x008
43 #define   BT431_REG_WWLO                0x009
44 #define   BT431_REG_WWHI                0x00a
45 #define   BT431_REG_WHLO                0x00b
46 #define   BT431_REG_WHHI                0x00c
47 
48 #define BT431_REG_CRAM_BASE   0x000
49 #define BT431_REG_CRAM_END    0x1ff
50 
51 #define BT431_CMD_CURS_ENABLE 0x40
52 #define BT431_CMD_XHAIR_ENABLE          0x20
53 #define BT431_CMD_OR_CURSORS  0x10
54 #define BT431_CMD_AND_CURSORS 0x00
55 #define BT431_CMD_1_1_MUX     0x00
56 #define BT431_CMD_4_1_MUX     0x04
57 #define BT431_CMD_5_1_MUX     0x08
58 #define BT431_CMD_xxx_MUX     0x0c
59 #define BT431_CMD_THICK_1     0x00
60 #define BT431_CMD_THICK_3     0x01
61 #define BT431_CMD_THICK_5     0x02
62 #define BT431_CMD_THICK_7     0x03
63