bwtworeg.h revision 1.2
11.2Sagc/* $NetBSD: bwtworeg.h,v 1.2 2003/08/07 16:31:23 agc Exp $ */ 21.1Spk 31.1Spk/* 41.1Spk * Copyright (c) 1992, 1993 51.1Spk * The Regents of the University of California. All rights reserved. 61.1Spk * 71.1Spk * This software was developed by the Computer Systems Engineering group 81.1Spk * at Lawrence Berkeley Laboratory under DARPA contract BG 91-66 and 91.1Spk * contributed to Berkeley. 101.1Spk * 111.1Spk * All advertising materials mentioning features or use of this software 121.1Spk * must display the following acknowledgement: 131.1Spk * This product includes software developed by the University of 141.1Spk * California, Lawrence Berkeley Laboratory. 151.1Spk * 161.1Spk * Redistribution and use in source and binary forms, with or without 171.1Spk * modification, are permitted provided that the following conditions 181.1Spk * are met: 191.1Spk * 1. Redistributions of source code must retain the above copyright 201.1Spk * notice, this list of conditions and the following disclaimer. 211.1Spk * 2. Redistributions in binary form must reproduce the above copyright 221.1Spk * notice, this list of conditions and the following disclaimer in the 231.1Spk * documentation and/or other materials provided with the distribution. 241.2Sagc * 3. Neither the name of the University nor the names of its contributors 251.1Spk * may be used to endorse or promote products derived from this software 261.1Spk * without specific prior written permission. 271.1Spk * 281.1Spk * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 291.1Spk * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 301.1Spk * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 311.1Spk * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 321.1Spk * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 331.1Spk * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 341.1Spk * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 351.1Spk * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 361.1Spk * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 371.1Spk * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 381.1Spk * SUCH DAMAGE. 391.1Spk * 401.1Spk * @(#)bwtworeg.h 8.1 (Berkeley) 6/11/93 411.1Spk */ 421.1Spk 431.1Spk/* 441.1Spk * bwtwo display registers. 451.1Spk * 461.1Spk * The registers start at offset 0x400000 and repeat every 32 bytes 471.1Spk * (presumably only the low order address lines are decoded). Video RAM 481.1Spk * starts at offset 0x800000. We use separate pointers to each so that 491.1Spk * the sparc addressing modes work well. 501.1Spk */ 511.1Spkstruct bwtworeg { 521.1Spk struct fbcontrol bw_fbc; 531.1Spk}; 541.1Spk 551.1Spk/* offsets */ 561.1Spk#define BWREG_ID 0 571.1Spk#define BWREG_REG 0x400000 581.1Spk#define BWREG_MEM 0x800000 591.1Spk 601.1Spk/* same, but for gdb */ 611.1Spkstruct bwtwo_all { 621.1Spk long ba_id; /* ID = 0xfe010104 on my IPC */ 631.1Spk char ba_xxx0[0x400000-4]; 641.1Spk struct fbcontrol ba_reg; /* control registers */ 651.1Spk char ba_xxx1[0x400000-32]; 661.1Spk char ba_ram[4096]; /* actually larger */ 671.1Spk}; 68