Home | History | Annotate | Line # | Download | only in include
lcgreg.h revision 1.1.30.3
      1  1.1.30.3  skrll /* $NetBSD: lcgreg.h,v 1.1.30.3 2004/09/21 13:23:43 skrll Exp $ */
      2       1.1   matt 
      3       1.1   matt /*-
      4       1.1   matt  * Copyright (c) 2000 The NetBSD Foundation, Inc.
      5       1.1   matt  * All rights reserved.
      6       1.1   matt  *
      7       1.1   matt  * This code is derived from software contributed to The NetBSD Foundation
      8       1.1   matt  * by Matt Thomas of 3am Software Foundry.
      9       1.1   matt  *
     10       1.1   matt  * Redistribution and use in source and binary forms, with or without
     11       1.1   matt  * modification, are permitted provided that the following conditions
     12       1.1   matt  * are met:
     13       1.1   matt  * 1. Redistributions of source code must retain the above copyright
     14       1.1   matt  *    notice, this list of conditions and the following disclaimer.
     15       1.1   matt  * 2. Redistributions in binary form must reproduce the above copyright
     16       1.1   matt  *    notice, this list of conditions and the following disclaimer in the
     17       1.1   matt  *    documentation and/or other materials provided with the distribution.
     18       1.1   matt  * 3. All advertising materials mentioning features or use of this software
     19       1.1   matt  *    must display the following acknowledgement:
     20       1.1   matt  *	This product includes software developed by the NetBSD
     21       1.1   matt  *	Foundation, Inc. and its contributors.
     22       1.1   matt  * 4. Neither the name of The NetBSD Foundation nor the names of its
     23       1.1   matt  *    contributors may be used to endorse or promote products derived
     24       1.1   matt  *    from this software without specific prior written permission.
     25       1.1   matt  *
     26       1.1   matt  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     27       1.1   matt  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     28       1.1   matt  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     29       1.1   matt  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     30       1.1   matt  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     31       1.1   matt  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     32       1.1   matt  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     33       1.1   matt  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     34       1.1   matt  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     35       1.1   matt  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     36       1.1   matt  * POSSIBILITY OF SUCH DAMAGE.
     37       1.1   matt  */
     38       1.1   matt 
     39       1.1   matt #ifndef	_VAX_LCGREG_H
     40       1.1   matt #define	_VAX_LCGREG_H
     41       1.1   matt 
     42       1.1   matt /* The registers of the LCG used in the VS4000/60 and VS4000/VLC.
     43       1.1   matt  * All relative to 0x20100000
     44       1.1   matt  */
     45       1.1   matt 
     46       1.1   matt /* Memory Control, Flow Control, Configration Registers
     47       1.1   matt  */
     48       1.1   matt #define	LCG_REG_MEM_CONFIG		0x001800
     49       1.1   matt #define	LCG_REG_MEM_STATUS		0x001804
     50       1.1   matt #define	LCG_REG_MEM_CURRENT_STATE	0x001808
     51       1.1   matt #define	LCG_REG_MEM_ERROR		0x00180c
     52       1.1   matt #define	LCG_REG_SLOW_CONTROL_STATUS	0x001810
     53       1.1   matt 
     54       1.1   matt /* Video Control Registers
     55       1.1   matt  */
     56       1.1   matt #define	LCG_REG_VIDEO_CONFIG		0x001e00
     57       1.1   matt #define	LCG_REG_VIDEO_HTIMING		0x001e10
     58       1.1   matt #define	LCG_REG_VIDEO_VTIMING		0x001e14
     59       1.1   matt #define	LCG_REG_VIDEO_TIMING		0x001e18
     60       1.1   matt #define	LCG_REG_VIDEO_X			0x000e30
     61       1.1   matt #define	LCG_REG_VIDEO_Y			0x000e30
     62       1.1   matt #define	LCG_REG_VIDEO_REFRESH_BASE	0x000e34
     63       1.1   matt #define	LCG_REG_VIDEO_REFRESH_SHIFT	0x000e40
     64       1.1   matt #define	LCG_REG_VIDEO_LUT_LOAD_COUNT	0x000e40
     65       1.1   matt #define	LCG_REG_CURSOR_SCANLINE_LW0	0x000e50
     66       1.1   matt #define	LCG_REG_CURSOR_SCANLINE_LW1	0x000e54
     67       1.1   matt #define	LCG_REG_CURSOR_SCANLINE_LW2	0x000e58
     68       1.1   matt #define	LCG_REG_CURSOR_SCANLINE_LW3	0x000e5c
     69       1.1   matt #define	LCG_REG_CURSOR_BASE		0x000e80
     70       1.1   matt #define	LCG_REG_CURSOR_XY		0x000e84
     71       1.1   matt #define	LCG_REG_CURSOR_X		0x000e84
     72       1.1   matt #define	LCG_REG_CURSOR_Y		0x000e84
     73       1.1   matt #define	LCG_REG_LUT_CONSOLE_SEL		0x000ee0
     74       1.1   matt #define	LCG_REG_LUT_COLOR_BASE_W	0x0006e4
     75       1.1   matt #define	LCG_REG_LUT_COLOR_BASE_R	0x0006e4
     76       1.1   matt #define	LCG_REG_LUT_CONTROL_BASE	0x000ee8
     77       1.1   matt #define	LCG_REG_VIDEO_COUNTER_TEST	0x000f00
     78       1.1   matt #define	LCG_REG_MEM_REFRESH_BASE	0x000f04
     79       1.1   matt 
     80       1.1   matt /* Graphics Control and VM Registers
     81       1.1   matt  */
     82       1.1   matt #define	LCG_REG_LCG_GO			0x000c80
     83       1.1   matt #define	LCG_REG_NEXT_ADDRESS		0x001334
     84       1.1   matt #define	LCG_REG_PA_SPTE_PTE		0x001338
     85       1.1   matt #define	LCG_REG_TB_INVALIDATE_SINGLE	0x001a00
     86       1.1   matt #define	LCG_REG_TB_INVALIDATE_ALL	0x001a08
     87       1.1   matt #define	LCG_REG_TB_INVALIDATE_STATUS	0x001a10
     88       1.1   matt #define	LCG_REG_TB_STATUS		0x001c00
     89       1.1   matt #define	LCG_REG_TB_VPN_COUNT		0x001c04
     90       1.1   matt #define	LCG_REG_TB_DEST_VPN		0x001c14
     91       1.1   matt #define	LCG_REG_TB_SOURCE_VPN		0x001c18
     92       1.1   matt #define	LCG_REG_TB_STENCIL_VPN		0x001c1c
     93       1.1   matt #define	LCG_REG_TB_DEST_DATA_PFN_R	0x001c24
     94       1.1   matt #define	LCG_REG_TB_DEST_DATA_PFN_W	0x001c24
     95       1.1   matt #define	LCG_REG_TB_SOURCE_DATA_PFN_R	0x001c28
     96       1.1   matt #define	LCG_REG_TB_SOURCE_DATA_PFN_W	0x001c28
     97       1.1   matt #define	LCG_REG_TB_STENCIL_DATA_PFN_R	0x001c2c
     98       1.1   matt #define	LCG_REG_TB_STENCIL_DATA_PFN_W	0x001c2c
     99       1.1   matt #define	LCG_REG_TB_DEST_PRE_PFN_R	0x001c34
    100       1.1   matt #define	LCG_REG_TB_DEST_PRE_PFN_W	0x001c34
    101       1.1   matt #define	LCG_REG_TB_SOURCE_PTE_PFN_R	0x001c38
    102       1.1   matt #define	LCG_REG_TB_SOURCE_PTE_PFN_W	0x001c38
    103       1.1   matt #define	LCG_REG_TB_STENCIL_PTE_PFN_R	0x001c3c
    104       1.1   matt #define	LCG_REG_TB_STENCIL_PTE_PFN_W	0x001c3c
    105       1.1   matt #define	LCG_REG_GRAPHICS_CONFIG		0x001c90
    106       1.1   matt #define	LCG_REG_GRAPHICS_INT_STATUS	0x001c94
    107       1.1   matt #define	LCG_REG_GRAPHICS_INT_SET_ENABLE	0x001c98
    108       1.1   matt #define	LCG_REG_GRAPHICS_INT_CLR_ENABLE	0x001c9c
    109       1.1   matt #define	LCG_REG_GRAPHICS_SUB_STATUS	0x001ca0
    110       1.1   matt #define	LCG_REG_GRAPHICS_CONTROL	0x001ca4
    111       1.1   matt #define	LCG_REG_BREAKPT_ADDRESS		0x001cb0
    112       1.1   matt #define	LCG_REG_BREAKPT_VIRTUAL		0x001cb0
    113       1.1   matt #define	LCG_REG_WRITE_PROTECT_LOW_HIGH	0x001cc0
    114       1.1   matt #define	LCG_REG_WRITE_PROTECT_LOW	0x001cc0
    115       1.1   matt #define	LCG_REG_WRITE_PROTECT_HIGH	0x001cc0
    116       1.1   matt #define	LCG_REG_MAX_VIRTUAL_ADDRESS	0x002350
    117       1.1   matt #define	LCG_REG_PA_SPTE_POBR		0x002354
    118       1.1   matt 
    119       1.1   matt /* Clip List / Command FIFO Registers
    120       1.1   matt  */
    121       1.1   matt #define	LCG_REG_CLIP_LIST_OFFSET	0x0004e4
    122       1.1   matt #define	LCG_REG_CLIP_LIST_BASE		0x0004e4
    123       1.1   matt #define	LCG_REG_CLIP_LIST		0x0004e4
    124       1.1   matt #define	LCG_REG_FIFO_MASKS		0x000570
    125       1.1   matt #define	LCG_REG_FIFO_HEAD_OFFSET	0x000574
    126       1.1   matt #define	LCG_REG_FIFO_BASE		0x000574
    127       1.1   matt #define	LCG_REG_FIFO_HEAD		0x000574
    128       1.1   matt #define	LCG_REG_FIFO_TAIL_OFFSET	0x000578
    129       1.1   matt #define	LCG_REG_FIFO_BASE2		0x000578
    130       1.1   matt #define	LCG_REG_FIFO_TAIL		0x000578
    131       1.1   matt #define	LCG_REG_CLIP_LIST_SAVE_OFFSET	0x000ce4
    132  1.1.30.1  skrll #define	LCG_REG_FIFO_RESIDUE_LW0	0x000d04
    133  1.1.30.1  skrll #define	LCG_REG_FIFO_RESIDUE_LW1	0x000d08
    134       1.1   matt #define	LCG_REG_FIFO_RESIDUE_LW2	0x000d0c
    135       1.1   matt #define	LCG_REG_FIFO_LENGTH		0x000d70
    136       1.1   matt #define	LCG_REG_FIFO_SAVE_HEAD_OFFSET	0x000d74
    137       1.1   matt #define	LCG_REG_FIFO_WINDOW_BASE	0x080000
    138       1.1   matt #define	LCG_REG_FIFO_WINDOW_END		0x100000
    139       1.1   matt 
    140       1.1   matt /* Graphics Data Buffer and Pixel SLU Registers
    141       1.1   matt  */
    142       1.1   matt #define	LCG_REG_LOGICAL_FUNCTION	0x000220
    143       1.1   matt #define	LCG_REG_PLANE_MASK		0x000234
    144       1.1   matt #define	LCG_REG_SOURCE_PLANE_INDEX	0x00026c
    145       1.1   matt #define	LCG_REG_FOREGROUND_PIXEL	0x0002c0
    146       1.1   matt #define	LCG_REG_BACKGROUND_PIXEL	0x0004c0
    147       1.1   matt #define	LCG_REG_GDB_LW0			0x000d80
    148       1.1   matt #define	LCG_REG_GDB_LW1			0x000d84
    149       1.1   matt #define	LCG_REG_GDB_LW2			0x000d88
    150       1.1   matt #define	LCG_REG_GDB_LW3			0x000d8c
    151       1.1   matt #define	LCG_REG_GDB_LW4			0x000d90
    152       1.1   matt #define	LCG_REG_GDB_LW5			0x000d94
    153       1.1   matt #define	LCG_REG_GDB_LW6			0x000d98
    154       1.1   matt #define	LCG_REG_GDB_LW7			0x000d9c
    155       1.1   matt #define	LCG_REG_SLU_STATE		0x000da0
    156       1.1   matt 
    157       1.1   matt /* Address Generator Registers
    158       1.1   matt  */
    159       1.1   matt #define	LCG_REG_CLIP_MIN_Y		0x000244
    160       1.1   matt #define	LCG_REG_CLIP_MIN_MAX_X		0x000248
    161       1.1   matt #define	LCG_REG_CLIP_MIN_X		0x000248
    162       1.1   matt #define	LCG_REG_CLIP_MAX_X		0x000248
    163       1.1   matt #define	LCG_REG_CLIP_MAX_Y		0x00024c
    164       1.1   matt #define	LCG_REG_DEST_X_BIAS		0x000250
    165       1.1   matt #define	LCG_REG_DEST_Y_ORIGIN		0x000254
    166       1.1   matt #define	LCG_REG_DEST_Y_STEP		0x000258
    167       1.1   matt #define	LCG_REG_SOURCE_X_BIAS		0x000260
    168       1.1   matt #define	LCG_REG_SOURCE_Y_BASE		0x000264
    169       1.1   matt #define	LCG_REG_SOURCE_Y_STEP_WIDTH	0x000268
    170       1.1   matt #define	LCG_REG_SOURCE_Y_STEP		0x000268
    171       1.1   matt #define	LCG_REG_SOURCE_WIDTH		0x000268
    172       1.1   matt #define	LCG_REG_STENCIL_X_BIAS		0x000270
    173       1.1   matt #define	LCG_REG_STENCIL_Y_BASE		0x000274
    174       1.1   matt #define	LCG_REG_STENCIL_Y_STEP		0x000278
    175       1.1   matt #define	LCG_REG_DEST_Y_BASE		0x000284
    176       1.1   matt #define	LCG_REG_DEST_X			0x000290
    177       1.1   matt #define	LCG_REG_DEST_WIDTH_HEIGHT	0x000294
    178       1.1   matt #define	LCG_REG_DEST_WIDTH		0x000294
    179       1.1   matt #define	LCG_REG_DEST_HEIGHT		0x000294
    180       1.1   matt #define	LCG_REG_AG_STATUS2		0x000320
    181       1.1   matt #define	LCG_REG_AG_CURRENT_STATE	0x000320
    182       1.1   matt #define	LCG_REG_CURRENT_OPCODE		0x000320
    183       1.1   matt #define	LCG_REG_OP_ACTION_CODE		0x000320
    184       1.1   matt #define	LCG_REG_AG_STATUS		0x000324
    185       1.1   matt #define	LCG_REG_NEXT_X			0x000330
    186       1.1   matt #define	LCG_REG_CLIP_X_DIFF		0x000330
    187       1.1   matt #define	LCG_REG_SOURCE_X_BIAS0		0x000460
    188       1.1   matt #define	LCG_REG_SOURCE_WIDTH0		0x000468
    189       1.1   matt #define	LCG_REG_DEST_X0			0x000490
    190       1.1   matt #define	LCG_REG_DEST_WIDTH0		0x000494
    191       1.1   matt #define	LCG_REG_TILE_ROTATION		0x000660
    192       1.1   matt #define	LCG_REG_TILE_WIDTH		0x000668
    193       1.1   matt 
    194       1.1   matt #endif	/* _VAX_LCGREG_H */
    195