1*d874cce4Sray /* $OpenBSD: bt463reg.h,v 1.3 2008/06/26 05:42:15 ray Exp $ */ 29823cef1Smickey /* $NetBSD: bt463reg.h,v 1.1 1998/08/18 07:43:09 thorpej Exp $ */ 39823cef1Smickey 49823cef1Smickey /*- 59823cef1Smickey * Copyright (c) 1998 The NetBSD Foundation, Inc. 69823cef1Smickey * All rights reserved. 79823cef1Smickey * 89823cef1Smickey * This code is derived from software contributed to The NetBSD Foundation 99823cef1Smickey * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, 109823cef1Smickey * NASA Ames Research Center. 119823cef1Smickey * 129823cef1Smickey * Redistribution and use in source and binary forms, with or without 139823cef1Smickey * modification, are permitted provided that the following conditions 149823cef1Smickey * are met: 159823cef1Smickey * 1. Redistributions of source code must retain the above copyright 169823cef1Smickey * notice, this list of conditions and the following disclaimer. 179823cef1Smickey * 2. Redistributions in binary form must reproduce the above copyright 189823cef1Smickey * notice, this list of conditions and the following disclaimer in the 199823cef1Smickey * documentation and/or other materials provided with the distribution. 209823cef1Smickey * 219823cef1Smickey * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 229823cef1Smickey * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 239823cef1Smickey * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 249823cef1Smickey * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 259823cef1Smickey * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 269823cef1Smickey * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 279823cef1Smickey * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 289823cef1Smickey * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 299823cef1Smickey * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 309823cef1Smickey * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 319823cef1Smickey * POSSIBILITY OF SUCH DAMAGE. 329823cef1Smickey */ 339823cef1Smickey 349823cef1Smickey /* 359823cef1Smickey * Register definitions for the Brooktree Bt463 135MHz Monolithic 369823cef1Smickey * CMOS TrueVu RAMDAC. 379823cef1Smickey */ 389823cef1Smickey 399823cef1Smickey /* 409823cef1Smickey * Directly-accessible registers. Note the address register is 419823cef1Smickey * auto-incrementing. 429823cef1Smickey */ 439823cef1Smickey #define BT463_REG_ADDR_LOW 0x00 /* C1,C0 == 0,0 */ 449823cef1Smickey #define BT463_REG_ADDR_HIGH 0x01 /* C1,C0 == 0,1 */ 459823cef1Smickey #define BT463_REG_IREG_DATA 0x02 /* C1,C0 == 1,0 */ 469823cef1Smickey #define BT463_REG_CMAP_DATA 0x03 /* C1,C0 == 1,1 */ 479823cef1Smickey 489823cef1Smickey #define BT463_REG_MAX BT463_REG_CMAP_DATA 499823cef1Smickey 509823cef1Smickey /* 519823cef1Smickey * All internal register access to the Bt463 is done indirectly via the 529823cef1Smickey * Address Register (mapped into the host bus in a device-specific 539823cef1Smickey * fashion). The following register definitions are in terms of 549823cef1Smickey * their address register address values. 559823cef1Smickey */ 569823cef1Smickey 579823cef1Smickey /* C1,C0 must be 1,0 */ 589823cef1Smickey #define BT463_IREG_CURSOR_COLOR_0 0x0100 /* 3 r/w cycles */ 599823cef1Smickey #define BT463_IREG_CURSOR_COLOR_1 0x0101 /* 3 r/w cycles */ 609823cef1Smickey #define BT463_IREG_ID 0x0200 619823cef1Smickey #define BT463_IREG_COMMAND_0 0x0201 629823cef1Smickey #define BT463_IREG_COMMAND_1 0x0202 639823cef1Smickey #define BT463_IREG_COMMAND_2 0x0203 649823cef1Smickey #define BT463_IREG_READ_MASK_P0_P7 0x0205 659823cef1Smickey #define BT463_IREG_READ_MASK_P8_P15 0x0206 669823cef1Smickey #define BT463_IREG_READ_MASK_P16_P23 0x0207 679823cef1Smickey #define BT463_IREG_READ_MASK_P24_P27 0x0208 689823cef1Smickey #define BT463_IREG_BLINK_MASK_P0_P7 0x0209 699823cef1Smickey #define BT463_IREG_BLINK_MASK_P8_P15 0x020a 709823cef1Smickey #define BT463_IREG_BLINK_MASK_P16_P23 0x020b 719823cef1Smickey #define BT463_IREG_BLINK_MASK_P24_P27 0x020c 729823cef1Smickey #define BT463_IREG_TEST 0x020d 739823cef1Smickey #define BT463_IREG_INPUT_SIG 0x020e /* 2 of 3 r/w cycles */ 749823cef1Smickey #define BT463_IREG_OUTPUT_SIG 0x020f /* 3 r/w cycles */ 759823cef1Smickey #define BT463_IREG_REVISION 0x0220 769823cef1Smickey #define BT463_IREG_WINDOW_TYPE_TABLE 0x0300 /* 3 r/w cycles */ 779823cef1Smickey 789823cef1Smickey #define BT463_NWTYPE_ENTRIES 0x10 /* 16 window type entries */ 799823cef1Smickey 809823cef1Smickey /* C1,C0 must be 1,1 */ 819823cef1Smickey #define BT463_IREG_CPALETTE_RAM 0x0000 /* 3 r/w cycles */ 829823cef1Smickey 839823cef1Smickey #define BT463_NCMAP_ENTRIES 0x210 /* 528 CMAP entries */ 84