1e00d3f43Smatthieu /* $NetBSD: ibm561reg.h,v 1.1 2001/12/12 07:46:48 elric Exp $ */ 2*d874cce4Sray /* $OpenBSD: ibm561reg.h,v 1.2 2008/06/26 05:42:15 ray Exp $ */ 3e00d3f43Smatthieu 4e00d3f43Smatthieu /*- 5e00d3f43Smatthieu * Copyright (c) 2001 The NetBSD Foundation, Inc. 6e00d3f43Smatthieu * All rights reserved. 7e00d3f43Smatthieu * 8e00d3f43Smatthieu * This code is derived from software contributed to The NetBSD Foundation 9e00d3f43Smatthieu * by Roland C. Dowdeswell of Ponte, Inc. 10e00d3f43Smatthieu * 11e00d3f43Smatthieu * Redistribution and use in source and binary forms, with or without 12e00d3f43Smatthieu * modification, are permitted provided that the following conditions 13e00d3f43Smatthieu * are met: 14e00d3f43Smatthieu * 1. Redistributions of source code must retain the above copyright 15e00d3f43Smatthieu * notice, this list of conditions and the following disclaimer. 16e00d3f43Smatthieu * 2. Redistributions in binary form must reproduce the above copyright 17e00d3f43Smatthieu * notice, this list of conditions and the following disclaimer in the 18e00d3f43Smatthieu * documentation and/or other materials provided with the distribution. 19e00d3f43Smatthieu * 20e00d3f43Smatthieu * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 21e00d3f43Smatthieu * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 22e00d3f43Smatthieu * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 23e00d3f43Smatthieu * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 24e00d3f43Smatthieu * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25e00d3f43Smatthieu * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26e00d3f43Smatthieu * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27e00d3f43Smatthieu * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28e00d3f43Smatthieu * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29e00d3f43Smatthieu * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30e00d3f43Smatthieu * POSSIBILITY OF SUCH DAMAGE. 31e00d3f43Smatthieu */ 32e00d3f43Smatthieu 33e00d3f43Smatthieu #define IBM561_ADDR_LOW 0x00 34e00d3f43Smatthieu #define IBM561_ADDR_HIGH 0x01 35e00d3f43Smatthieu #define IBM561_CMD 0x02 36e00d3f43Smatthieu #define IBM561_CMD_FB_WAT 0x03 37e00d3f43Smatthieu #define IBM561_CMD_CMAP 0x03 38e00d3f43Smatthieu #define IBM561_CMD_GAMMA 0x03 39e00d3f43Smatthieu 40e00d3f43Smatthieu #define IBM561_CONFIG_REG1 0x0001 41e00d3f43Smatthieu #define IBM561_CONFIG_REG2 0x0002 42e00d3f43Smatthieu #define IBM561_CONFIG_REG3 0x0003 43e00d3f43Smatthieu #define IBM561_CONFIG_REG4 0x0004 44e00d3f43Smatthieu 45e00d3f43Smatthieu #define IBM561_SYNC_CNTL 0x0020 46e00d3f43Smatthieu #define IBM561_PLL_VCO_DIV 0x0021 47e00d3f43Smatthieu #define IBM561_PLL_REF_REG 0x0022 48e00d3f43Smatthieu #define IBM561_CURS_CNTL_REG 0x0030 49e00d3f43Smatthieu #define IBM561_HOTSPOT_REG 0x0034 50e00d3f43Smatthieu #define IBM561_VRAM_MASK_REG 0x0050 51e00d3f43Smatthieu #define IBM561_DIV_DOTCLCK 0x0082 52e00d3f43Smatthieu #define IBM561_FB_WINTYPE 0x1000 53e00d3f43Smatthieu #define IBM561_AUXFB_WINTYPE 0x0e00 54e00d3f43Smatthieu #define IBM561_OL_WINTYPE 0x1400 55e00d3f43Smatthieu #define IBM561_AUXOL_WINTYPE 0x0f00 56e00d3f43Smatthieu #define IBM561_CMAP_TABLE 0x4000 57e00d3f43Smatthieu #define IBM561_RED_GAMMA_TABLE 0x3000 58e00d3f43Smatthieu #define IBM561_GREEN_GAMMA_TABLE 0x3400 59e00d3f43Smatthieu #define IBM561_BLUE_GAMMA_TABLE 0x3800 60e00d3f43Smatthieu 61e00d3f43Smatthieu #define IBM561_CHROMAKEY0 0x0010 62e00d3f43Smatthieu #define IBM561_CHROMAKEY1 0x0011 63e00d3f43Smatthieu #define IBM561_CHROMAKEYMASK0 0x0012 64e00d3f43Smatthieu #define IBM561_CHROMAKEYMASK1 0x0013 65e00d3f43Smatthieu 66e00d3f43Smatthieu #define IBM561_WAT_SEG_REG 0x0006 67e00d3f43Smatthieu 68e00d3f43Smatthieu #define IBM561_NCMAP_ENTRIES 1024 69e00d3f43Smatthieu #define IBM561_NGAMMA_ENTRIES 256 70e00d3f43Smatthieu 71e00d3f43Smatthieu /* we actually have 1024 of them, but I am just 72e00d3f43Smatthieu * going define a few, so this is good. 73e00d3f43Smatthieu */ 74e00d3f43Smatthieu #define IBM561_NWTYPES 16 75