xref: /csrg-svn/sys/pmax/dev/cfbreg.h (revision 63205)
152892Sbostic /*-
2*63205Sbostic  * Copyright (c) 1992, 1993
3*63205Sbostic  *	The Regents of the University of California.  All rights reserved.
452892Sbostic  *
552892Sbostic  * This code is derived from software contributed to Berkeley by
652892Sbostic  * Ralph Campbell.
752892Sbostic  *
852892Sbostic  * %sccs.include.redist.c%
952892Sbostic  *
10*63205Sbostic  *	@(#)cfbreg.h	8.1 (Berkeley) 06/10/93
1152892Sbostic  */
1252892Sbostic 
1352892Sbostic /*
1452892Sbostic  * Mach Operating System
1552892Sbostic  * Copyright (c) 1991,1990,1989 Carnegie Mellon University
1652892Sbostic  * All Rights Reserved.
1752892Sbostic  *
1852892Sbostic  * Permission to use, copy, modify and distribute this software and its
1952892Sbostic  * documentation is hereby granted, provided that both the copyright
2052892Sbostic  * notice and this permission notice appear in all copies of the
2152892Sbostic  * software, derivative works or modified versions, and any portions
2252892Sbostic  * thereof, and that both notices appear in supporting documentation.
2352892Sbostic  *
2452892Sbostic  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS
2552892Sbostic  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR
2652892Sbostic  * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
2752892Sbostic  *
2852892Sbostic  * Carnegie Mellon requests users of this software to return to
2952892Sbostic  *
3052892Sbostic  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
3152892Sbostic  *  School of Computer Science
3252892Sbostic  *  Carnegie Mellon University
3352892Sbostic  *  Pittsburgh PA 15213-3890
3452892Sbostic  *
3552892Sbostic  * any improvements or extensions that they make and grant Carnegie the
3652892Sbostic  * rights to redistribute these changes.
3752892Sbostic  */
3852892Sbostic 
3952892Sbostic /*
4052892Sbostic  * HISTORY
4152892Sbostic  * $Log:	bt459.h,v $
4252892Sbostic  * Revision 2.4  91/02/05  17:39:43  mrt
4352892Sbostic  * 	Added author notices
4452892Sbostic  * 	[91/02/04  11:11:57  mrt]
4552892Sbostic  *
4652892Sbostic  * 	Changed to use new Mach copyright
4752892Sbostic  * 	[91/02/02  12:09:39  mrt]
4852892Sbostic  *
4952892Sbostic  * Revision 2.3  90/12/05  23:30:26  af
5052892Sbostic  * 	Cursor color register are supported, contrary to specs.
5152892Sbostic  * 	[90/12/03  23:07:22  af]
5252892Sbostic  *
5352892Sbostic  * Revision 2.1.1.1  90/11/01  03:36:40  af
5452892Sbostic  * 	Created, from Brooktree specs:
5552892Sbostic  * 	"Product Databook 1989"
5652892Sbostic  * 	"Bt459 135 MHz Monolithic CMOS 256x64 Color Palette RAMDAC"
5752892Sbostic  * 	Brooktree Corp. San Diego, CA
5852892Sbostic  * 	LA59001 Rev. J
5952892Sbostic  * 	[90/09/03            af]
6052892Sbostic  */
6152892Sbostic 
6252892Sbostic /*
6352892Sbostic  *	File: bt459.h
6452892Sbostic  * 	Author: Alessandro Forin, Carnegie Mellon University
6552892Sbostic  *	Date:	9/90
6652892Sbostic  *
6752892Sbostic  *	Defines for the bt459 Cursor/RAMDAC chip
6852892Sbostic  */
6952892Sbostic 
7052892Sbostic typedef struct {
7152892Sbostic 	unsigned char	addr_lo;
7252892Sbostic 	char						pad0[3];
7352892Sbostic 	unsigned char	addr_hi;
7452892Sbostic 	char						pad1[3];
7552892Sbostic 	unsigned char	addr_reg;
7652892Sbostic 	char						pad2[3];
7752892Sbostic 	unsigned char	addr_cmap;
7852892Sbostic 	char						pad3[3];
7952892Sbostic } bt459_regmap_t;
8052892Sbostic 
8152892Sbostic /*
8252892Sbostic  * Additional registers addressed indirectly
8352892Sbostic  */
8452892Sbostic 
8552892Sbostic 				/* 0000-00ff Color Map entries */
8652892Sbostic 				/* 0100-010f Overlay color regs, unsupp */
8752892Sbostic #define	BT459_REG_CCOLOR_1	0x0181	/* Cursor color regs */
8852892Sbostic #define	BT459_REG_CCOLOR_2	0x0182
8952892Sbostic #define	BT459_REG_CCOLOR_3	0x0183
9052892Sbostic #define	BT459_REG_ID		0x0200	/* read-only, gives "4a" */
9152892Sbostic #define	BT459_REG_CMD0		0x0201
9252892Sbostic #define	BT459_REG_CMD1		0x0202
9352892Sbostic #define	BT459_REG_CMD2		0x0203
9452892Sbostic #define	BT459_REG_PRM		0x0204
9552892Sbostic 				/* 0205 reserved */
9652892Sbostic #define	BT459_REG_PBM		0x0206
9752892Sbostic 				/* 0207 reserved */
9852892Sbostic #define	BT459_REG_ORM		0x0208
9952892Sbostic #define	BT459_REG_OBM		0x0209
10052892Sbostic #define	BT459_REG_ILV		0x020a
10152892Sbostic #define	BT459_REG_TEST		0x020b
10252892Sbostic #define	BT459_REG_RSIG		0x020c
10352892Sbostic #define	BT459_REG_GSIG		0x020d
10452892Sbostic #define	BT459_REG_BSIG		0x020e
10552892Sbostic 				/* 020f-02ff reserved */
10652892Sbostic #define	BT459_REG_CCR		0x0300
10752892Sbostic #define	BT459_REG_CXLO		0x0301
10852892Sbostic #define	BT459_REG_CXHI		0x0302
10952892Sbostic #define	BT459_REG_CYLO		0x0303
11052892Sbostic #define	BT459_REG_CYHI		0x0304
11152892Sbostic #define	BT459_REG_WXLO		0x0305
11252892Sbostic #define	BT459_REG_WXHI		0x0306
11352892Sbostic #define	BT459_REG_WYLO		0x0307
11452892Sbostic #define	BT459_REG_WYHI		0x0308
11552892Sbostic #define	BT459_REG_WWLO		0x0309
11652892Sbostic #define	BT459_REG_WWHI		0x030a
11752892Sbostic #define	BT459_REG_WHLO		0x030b
11852892Sbostic #define	BT459_REG_WHHI		0x030c
11952892Sbostic 				/* 030d-03ff reserved */
12052892Sbostic #define BT459_REG_CRAM_BASE	0x0400
12152892Sbostic #define BT459_REG_CRAM_END	0x07ff
122