xref: /openbsd-src/sys/dev/ic/bt485reg.h (revision e16d2fb6e4a333aaa9fd390cb2e81e5896941c81)
1*e16d2fb6Saaron /* $OpenBSD: bt485reg.h,v 1.2 2001/04/21 20:03:55 aaron Exp $ */
29823cef1Smickey /* $NetBSD: bt485reg.h,v 1.1 1998/04/15 20:16:30 drochner Exp $ */
39823cef1Smickey 
49823cef1Smickey /*
59823cef1Smickey  * Copyright (c) 1995, 1996 Carnegie-Mellon University.
69823cef1Smickey  * All rights reserved.
79823cef1Smickey  *
89823cef1Smickey  * Author: Chris G. Demetriou
99823cef1Smickey  *
109823cef1Smickey  * Permission to use, copy, modify and distribute this software and
119823cef1Smickey  * its documentation is hereby granted, provided that both the copyright
129823cef1Smickey  * notice and this permission notice appear in all copies of the
139823cef1Smickey  * software, derivative works or modified versions, and any portions
149823cef1Smickey  * thereof, and that both notices appear in supporting documentation.
159823cef1Smickey  *
169823cef1Smickey  * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
179823cef1Smickey  * CONDITION.  CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
189823cef1Smickey  * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
199823cef1Smickey  *
209823cef1Smickey  * Carnegie Mellon requests users of this software to return to
219823cef1Smickey  *
229823cef1Smickey  *  Software Distribution Coordinator  or  Software.Distribution@CS.CMU.EDU
239823cef1Smickey  *  School of Computer Science
249823cef1Smickey  *  Carnegie Mellon University
259823cef1Smickey  *  Pittsburgh PA 15213-3890
269823cef1Smickey  *
279823cef1Smickey  * any improvements or extensions that they make and grant Carnegie the
289823cef1Smickey  * rights to redistribute these changes.
299823cef1Smickey  */
309823cef1Smickey 
319823cef1Smickey /*
329823cef1Smickey  * Register definitions for the Brooktree Bt485A 170MHz Monolithic
339823cef1Smickey  * CMOS True-Color RAMDAC.
349823cef1Smickey  */
359823cef1Smickey 
369823cef1Smickey 
379823cef1Smickey /*
389823cef1Smickey  * Directly-addressed registers.
399823cef1Smickey  */
409823cef1Smickey #define	BT485_REG_PCRAM_WRADDR	0x00
419823cef1Smickey #define	BT485_REG_PALETTE	0x01
429823cef1Smickey #define	BT485_REG_PIXMASK	0x02
439823cef1Smickey #define	BT485_REG_PCRAM_RDADDR	0x03
449823cef1Smickey #define	BT485_REG_COC_WRADDR	0x04
459823cef1Smickey #define	BT485_REG_COCDATA	0x05
469823cef1Smickey #define	BT485_REG_COMMAND_0	0x06
479823cef1Smickey #define	BT485_REG_COC_RDADDR	0x07
489823cef1Smickey #define	BT485_REG_COMMAND_1	0x08
499823cef1Smickey #define	BT485_REG_COMMAND_2	0x09
509823cef1Smickey #define	BT485_REG_STATUS	0x0a
519823cef1Smickey #define	BT485_REG_EXTENDED	BT485_REG_STATUS
529823cef1Smickey #define	BT485_REG_CURSOR_RAM	0x0b
539823cef1Smickey #define	BT485_REG_CURSOR_X_LOW	0x0c
549823cef1Smickey #define	BT485_REG_CURSOR_X_HIGH	0x0d
559823cef1Smickey #define	BT485_REG_CURSOR_Y_LOW	0x0e
569823cef1Smickey #define	BT485_REG_CURSOR_Y_HIGH	0x0f
579823cef1Smickey 
589823cef1Smickey #define	BT485_REG_MAX		0x0f
599823cef1Smickey 
609823cef1Smickey #define	BT485_IREG_STATUS	0x00
619823cef1Smickey #define	BT485_IREG_COMMAND_3	0x01
629823cef1Smickey #define	BT485_IREG_COMMAND_4	0x02
639823cef1Smickey #define	BT485_IREG_RSA		0x20
649823cef1Smickey #define	BT485_IREG_GSA		0x21
659823cef1Smickey #define	BT485_IREG_BSA		0x22
66