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