1 /*- 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Ralph Campbell. 7 * 8 * %sccs.include.redist.c% 9 * 10 * @(#)cfbreg.h 8.1 (Berkeley) 06/10/93 11 */ 12 13 /* 14 * Mach Operating System 15 * Copyright (c) 1991,1990,1989 Carnegie Mellon University 16 * All Rights Reserved. 17 * 18 * Permission to use, copy, modify and distribute this software and its 19 * documentation is hereby granted, provided that both the copyright 20 * notice and this permission notice appear in all copies of the 21 * software, derivative works or modified versions, and any portions 22 * thereof, and that both notices appear in supporting documentation. 23 * 24 * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS 25 * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR 26 * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. 27 * 28 * Carnegie Mellon requests users of this software to return to 29 * 30 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 31 * School of Computer Science 32 * Carnegie Mellon University 33 * Pittsburgh PA 15213-3890 34 * 35 * any improvements or extensions that they make and grant Carnegie the 36 * rights to redistribute these changes. 37 */ 38 39 /* 40 * HISTORY 41 * $Log: bt459.h,v $ 42 * Revision 2.4 91/02/05 17:39:43 mrt 43 * Added author notices 44 * [91/02/04 11:11:57 mrt] 45 * 46 * Changed to use new Mach copyright 47 * [91/02/02 12:09:39 mrt] 48 * 49 * Revision 2.3 90/12/05 23:30:26 af 50 * Cursor color register are supported, contrary to specs. 51 * [90/12/03 23:07:22 af] 52 * 53 * Revision 2.1.1.1 90/11/01 03:36:40 af 54 * Created, from Brooktree specs: 55 * "Product Databook 1989" 56 * "Bt459 135 MHz Monolithic CMOS 256x64 Color Palette RAMDAC" 57 * Brooktree Corp. San Diego, CA 58 * LA59001 Rev. J 59 * [90/09/03 af] 60 */ 61 62 /* 63 * File: bt459.h 64 * Author: Alessandro Forin, Carnegie Mellon University 65 * Date: 9/90 66 * 67 * Defines for the bt459 Cursor/RAMDAC chip 68 */ 69 70 typedef struct { 71 unsigned char addr_lo; 72 char pad0[3]; 73 unsigned char addr_hi; 74 char pad1[3]; 75 unsigned char addr_reg; 76 char pad2[3]; 77 unsigned char addr_cmap; 78 char pad3[3]; 79 } bt459_regmap_t; 80 81 /* 82 * Additional registers addressed indirectly 83 */ 84 85 /* 0000-00ff Color Map entries */ 86 /* 0100-010f Overlay color regs, unsupp */ 87 #define BT459_REG_CCOLOR_1 0x0181 /* Cursor color regs */ 88 #define BT459_REG_CCOLOR_2 0x0182 89 #define BT459_REG_CCOLOR_3 0x0183 90 #define BT459_REG_ID 0x0200 /* read-only, gives "4a" */ 91 #define BT459_REG_CMD0 0x0201 92 #define BT459_REG_CMD1 0x0202 93 #define BT459_REG_CMD2 0x0203 94 #define BT459_REG_PRM 0x0204 95 /* 0205 reserved */ 96 #define BT459_REG_PBM 0x0206 97 /* 0207 reserved */ 98 #define BT459_REG_ORM 0x0208 99 #define BT459_REG_OBM 0x0209 100 #define BT459_REG_ILV 0x020a 101 #define BT459_REG_TEST 0x020b 102 #define BT459_REG_RSIG 0x020c 103 #define BT459_REG_GSIG 0x020d 104 #define BT459_REG_BSIG 0x020e 105 /* 020f-02ff reserved */ 106 #define BT459_REG_CCR 0x0300 107 #define BT459_REG_CXLO 0x0301 108 #define BT459_REG_CXHI 0x0302 109 #define BT459_REG_CYLO 0x0303 110 #define BT459_REG_CYHI 0x0304 111 #define BT459_REG_WXLO 0x0305 112 #define BT459_REG_WXHI 0x0306 113 #define BT459_REG_WYLO 0x0307 114 #define BT459_REG_WYHI 0x0308 115 #define BT459_REG_WWLO 0x0309 116 #define BT459_REG_WWHI 0x030a 117 #define BT459_REG_WHLO 0x030b 118 #define BT459_REG_WHHI 0x030c 119 /* 030d-03ff reserved */ 120 #define BT459_REG_CRAM_BASE 0x0400 121 #define BT459_REG_CRAM_END 0x07ff 122