xref: /openbsd/sys/dev/ic/bt485reg.h (revision e16d2fb6)
1 /* $OpenBSD: bt485reg.h,v 1.2 2001/04/21 20:03:55 aaron Exp $ */
2 /* $NetBSD: bt485reg.h,v 1.1 1998/04/15 20:16:30 drochner Exp $ */
3 
4 /*
5  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
6  * All rights reserved.
7  *
8  * Author: Chris G. Demetriou
9  *
10  * Permission to use, copy, modify and distribute this software and
11  * its documentation is hereby granted, provided that both the copyright
12  * notice and this permission notice appear in all copies of the
13  * software, derivative works or modified versions, and any portions
14  * thereof, and that both notices appear in supporting documentation.
15  *
16  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
17  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
18  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
19  *
20  * Carnegie Mellon requests users of this software to return to
21  *
22  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
23  *  School of Computer Science
24  *  Carnegie Mellon University
25  *  Pittsburgh PA 15213-3890
26  *
27  * any improvements or extensions that they make and grant Carnegie the
28  * rights to redistribute these changes.
29  */
30 
31 /*
32  * Register definitions for the Brooktree Bt485A 170MHz Monolithic
33  * CMOS True-Color RAMDAC.
34  */
35 
36 
37 /*
38  * Directly-addressed registers.
39  */
40 #define	BT485_REG_PCRAM_WRADDR	0x00
41 #define	BT485_REG_PALETTE	0x01
42 #define	BT485_REG_PIXMASK	0x02
43 #define	BT485_REG_PCRAM_RDADDR	0x03
44 #define	BT485_REG_COC_WRADDR	0x04
45 #define	BT485_REG_COCDATA	0x05
46 #define	BT485_REG_COMMAND_0	0x06
47 #define	BT485_REG_COC_RDADDR	0x07
48 #define	BT485_REG_COMMAND_1	0x08
49 #define	BT485_REG_COMMAND_2	0x09
50 #define	BT485_REG_STATUS	0x0a
51 #define	BT485_REG_EXTENDED	BT485_REG_STATUS
52 #define	BT485_REG_CURSOR_RAM	0x0b
53 #define	BT485_REG_CURSOR_X_LOW	0x0c
54 #define	BT485_REG_CURSOR_X_HIGH	0x0d
55 #define	BT485_REG_CURSOR_Y_LOW	0x0e
56 #define	BT485_REG_CURSOR_Y_HIGH	0x0f
57 
58 #define	BT485_REG_MAX		0x0f
59 
60 #define	BT485_IREG_STATUS	0x00
61 #define	BT485_IREG_COMMAND_3	0x01
62 #define	BT485_IREG_COMMAND_4	0x02
63 #define	BT485_IREG_RSA		0x20
64 #define	BT485_IREG_GSA		0x21
65 #define	BT485_IREG_BSA		0x22
66