1*95e1ffb1Schristos /* $NetBSD: bw2reg.h,v 1.3 2005/12/11 12:19:20 christos Exp $ */ 263c3c68dSgwr 363c3c68dSgwr /* 463c3c68dSgwr * Copyright (c) 1992, 1993 563c3c68dSgwr * The Regents of the University of California. All rights reserved. 663c3c68dSgwr * 763c3c68dSgwr * This software was developed by the Computer Systems Engineering group 863c3c68dSgwr * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 963c3c68dSgwr * contributed to Berkeley. 1063c3c68dSgwr * 1163c3c68dSgwr * All advertising materials mentioning features or use of this software 1263c3c68dSgwr * must display the following acknowledgement: 1363c3c68dSgwr * This product includes software developed by the University of 1463c3c68dSgwr * California, Lawrence Berkeley Laboratory. 1563c3c68dSgwr * 1663c3c68dSgwr * Redistribution and use in source and binary forms, with or without 1763c3c68dSgwr * modification, are permitted provided that the following conditions 1863c3c68dSgwr * are met: 1963c3c68dSgwr * 1. Redistributions of source code must retain the above copyright 2063c3c68dSgwr * notice, this list of conditions and the following disclaimer. 2163c3c68dSgwr * 2. Redistributions in binary form must reproduce the above copyright 2263c3c68dSgwr * notice, this list of conditions and the following disclaimer in the 2363c3c68dSgwr * documentation and/or other materials provided with the distribution. 24aad01611Sagc * 3. Neither the name of the University nor the names of its contributors 2563c3c68dSgwr * may be used to endorse or promote products derived from this software 2663c3c68dSgwr * without specific prior written permission. 2763c3c68dSgwr * 2863c3c68dSgwr * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2963c3c68dSgwr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 3063c3c68dSgwr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 3163c3c68dSgwr * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 3263c3c68dSgwr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 3363c3c68dSgwr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 3463c3c68dSgwr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3563c3c68dSgwr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3663c3c68dSgwr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3763c3c68dSgwr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3863c3c68dSgwr * SUCH DAMAGE. 3963c3c68dSgwr * 4063c3c68dSgwr * @(#)bwtworeg.h 8.1 (Berkeley) 6/11/93 4163c3c68dSgwr */ 4263c3c68dSgwr 4363c3c68dSgwr /* Default physical address. */ 4463c3c68dSgwr #define BW2_50_PADDR 0x100000 4563c3c68dSgwr #define BW2_FB_PADDR 0xff000000 4663c3c68dSgwr #define BW2_CR_PADDR 0xff1c0000 4763c3c68dSgwr 4863c3c68dSgwr /* Sizes that can be mapped. */ 4963c3c68dSgwr #define BW2_FBSIZE 0x20000 /* size of frame buffer */ 5063c3c68dSgwr #define BW2_FBSIZE_HIRES 0x40000 /* size of hi-res FB */ 5163c3c68dSgwr 5263c3c68dSgwr /* 5363c3c68dSgwr * bwtwo control register (16-bits) 5463c3c68dSgwr */ 5563c3c68dSgwr 5663c3c68dSgwr #define VC_VIDEO_EN 0x8000 /* Video enable */ 5763c3c68dSgwr #define VC_COPY_EN 0x4000 /* Copy enable */ 5863c3c68dSgwr #define VC_INT_ENA 0x2000 /* Interrupt enable */ 5963c3c68dSgwr #define VC_INT_PEND 0x1000 /* Int active - r/o */ 6063c3c68dSgwr #define VC_B_JUMPER 0x0800 /* Config jumper, 0=default */ 6163c3c68dSgwr #define VC_A_JUMPER 0x0400 /* Config jumper, 0=default */ 6263c3c68dSgwr #define VC_COLOR_JP 0x0200 /* Config jumper, 0: def. 1: use P2-color */ 6363c3c68dSgwr #define VC_1024_JP 0x0100 /* Config jumper, 0: def. 1: use 1K by 1K */ 6463c3c68dSgwr /* Note copy-mode only on Sun3/160 */ 6563c3c68dSgwr #define VC_COPYBASE 0x00FF /* copy-mode high address bits */ 66