1*c986eee9Stsutsui /* $NetBSD: pmreg.h,v 1.4 2023/02/11 18:30:45 tsutsui Exp $ */ 29aa9b8ebSad 39aa9b8ebSad /* 49aa9b8ebSad * Copyright (c) 1992, 1993 59aa9b8ebSad * The Regents of the University of California. All rights reserved. 69aa9b8ebSad * 79aa9b8ebSad * This code is derived from software contributed to Berkeley by 89aa9b8ebSad * Ralph Campbell. 99aa9b8ebSad * 109aa9b8ebSad * Redistribution and use in source and binary forms, with or without 119aa9b8ebSad * modification, are permitted provided that the following conditions 129aa9b8ebSad * are met: 139aa9b8ebSad * 1. Redistributions of source code must retain the above copyright 149aa9b8ebSad * notice, this list of conditions and the following disclaimer. 159aa9b8ebSad * 2. Redistributions in binary form must reproduce the above copyright 169aa9b8ebSad * notice, this list of conditions and the following disclaimer in the 179aa9b8ebSad * documentation and/or other materials provided with the distribution. 189aa9b8ebSad * 3. Neither the name of the University nor the names of its contributors 199aa9b8ebSad * may be used to endorse or promote products derived from this software 209aa9b8ebSad * without specific prior written permission. 219aa9b8ebSad * 229aa9b8ebSad * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 239aa9b8ebSad * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 249aa9b8ebSad * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 259aa9b8ebSad * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 269aa9b8ebSad * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 279aa9b8ebSad * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 289aa9b8ebSad * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 299aa9b8ebSad * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 309aa9b8ebSad * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 319aa9b8ebSad * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 329aa9b8ebSad * SUCH DAMAGE. 339aa9b8ebSad * 349aa9b8ebSad * @(#)pmreg.h 8.1 (Berkeley) 6/10/93 359aa9b8ebSad */ 369aa9b8ebSad 379aa9b8ebSad #ifndef _PMREG_H_ 389aa9b8ebSad #define _PMREG_H_ 399aa9b8ebSad 409aa9b8ebSad /* 419aa9b8ebSad * Magic offset for cursor X & Y locations. 429aa9b8ebSad */ 439aa9b8ebSad #define PCC_X_OFFSET 212 449aa9b8ebSad #define PCC_Y_OFFSET 34 459aa9b8ebSad 469aa9b8ebSad /* 479aa9b8ebSad * Defines for the BrookTree bt478 VDAC. 489aa9b8ebSad */ 499aa9b8ebSad typedef volatile struct VDACRegs { 509aa9b8ebSad u_char mapWA; /* address register (color map write) */ 519aa9b8ebSad char pad1[3]; 529aa9b8ebSad u_char map; /* color map */ 539aa9b8ebSad char pad2[3]; 549aa9b8ebSad u_char mask; /* pixel read mask */ 559aa9b8ebSad char pad3[3]; 569aa9b8ebSad u_char mapRA; /* address register (color map read) */ 579aa9b8ebSad char pad4[3]; 589aa9b8ebSad u_char overWA; /* address register (overlay map write) */ 599aa9b8ebSad char pad5[3]; 609aa9b8ebSad u_char over; /* overlay map */ 619aa9b8ebSad char pad6[7]; 629aa9b8ebSad u_char overRA; /* address register (overlay map read) */ 639aa9b8ebSad } VDACRegs; 649aa9b8ebSad 659aa9b8ebSad #endif /* !_PMREG_H_ */ 66