/* $NetBSD: qdreg.h,v 1.9 2021/08/17 22:00:32 andvar Exp $ */
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* @(#)qdreg.h 7.1 (Berkeley) 5/9/91
*/
/************************************************************************
* *
* Copyright (c) 1985, 1986 by *
* Digital Equipment Corporation, Maynard, MA *
* All rights reserved. *
* *
* This software is furnished under a license and may be used and *
* copied only in accordance with the terms of such license and *
* with the inclusion of the above copyright notice. This *
* software or any other copies thereof may not be provided or *
* otherwise made available to any other person. No title to and *
* ownership of the software is hereby transferred. *
* *
* The information in this software is subject to change without *
* notice and should not be construed as a commitment by Digital *
* Equipment Corporation. *
* *
* Digital assumes no responsibility for the use or reliability *
* of its software on equipment which is not supplied by Digital. *
* *
************************************************************************/
u_short register_address; /* ADDER reg pntr for use by DGA */
u_short request_enable; /* DMA request enables */
u_short interrupt_enable; /* interrupt enables */
u_short status; /* ADDER status bits */
u_short reserved1; /* test function only */
u_short spare1; /* spare address (what else?) */
u_short reserved2; /* test function only */
u_short id_data; /* data path to I/D bus */
u_short command; /* ADDER chip command register */
u_short rasterop_mode; /* sets rasterop execution modes */
u_short cmd; /* duplicate path to above cmd reg */
u_short reserved3; /* test function only */
/* scroll registers */
u_short ID_scroll_data; /* I/D bus scroll data */
u_short ID_scroll_command; /* I/D bus scroll command */
u_short scroll_x_min; /* X scroll min - left boundary */
u_short scroll_x_max; /* X scroll max - right boundary */
u_short scroll_y_min; /* Y scroll min - upper boundary */
u_short scroll_y_max; /* Y scroll max - lower boundary */
u_short pause; /* Y coord to set stat when scanned */
u_short y_offset_pending; /* vertical scroll control */
u_short y_scroll_constant;
/* update control registers */
u_short x_index_pending; /* x pending index */
u_short y_index_pending; /* y pending index */
u_short x_index_new; /* new x index */
u_short y_index_new; /* new y index */
u_short x_index_old; /* old x index */
u_short y_index_old; /* old y index */
u_short x_clip_min; /* left clipping boundary */
u_short x_clip_max; /* right clipping boundary */
u_short y_clip_min; /* upper clipping boundary */
u_short y_clip_max; /* lower clipping boundary */
u_short spare2; /* spare address (another!) */
/* rasterop control registers */
u_short source_1_dx; /* source #1 x vector */
u_short source_1_dy; /* source #1 y vector*/
u_short source_1_x; /* source #1 x origin */
u_short source_1_y; /* source #1 y origin */
u_short destination_x; /* destination x origin */
u_short destination_y; /* destination y origin */
u_short fast_dest_dx; /* destination x fast vector */
u_short fast_dest_dy; /* destination y fast vector */
u_short slow_dest_dx; /* destination x slow vector */
u_short slow_dest_dy; /* destination y slow vector */
u_short fast_scale; /* scale factor for fast vector */
u_short slow_scale; /* scale factor for slow vector */
u_short source_2_x; /* source #2 x origin */
u_short source_2_y; /* source #2 y origin */
u_short source_2_size; /* source #2 height & width */
u_short error_1; /* error regs (?) */
u_short error_2;
/* screen format control registers */
u_short y_scan_count_0; /* y scan counts for vert timing */
u_short y_scan_count_1;
u_short y_scan_count_2;
u_short y_scan_count_3;
u_short x_scan_conf; /* x scan configuration */
u_short x_limit;
u_short y_limit;
u_short x_scan_count_0; /* x scan count for horiz timing */
u_short x_scan_count_1;
u_short x_scan_count_2;
u_short x_scan_count_3;
u_short x_scan_count_4;
u_short x_scan_count_5;
u_short x_scan_count_6;
u_short sync_phase_adj; /* sync phase (horiz sync count) */
};