/* $NetBSD: mntvareg.h,v 1.1 2016/10/03 14:26:02 rkujawa Exp $ */ /* * Copyright (c) 2012, 2016 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Lukas F. Hartmann. * This code is derived from software contributed to The NetBSD Foundation * by Radoslaw Kujawa. * * 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. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``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 AUTHOR 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. */ #ifndef MNTVA2000REG_H #define MNTVA2000REG_H /* address space */ #define MNTVA_OFF_REG 0x5f0000 /* memory mapped registers */ #define MNTVA_REG_SIZE 0xFF #define MNTVA_OFF_FB 0x000000 /* frame buffer */ #define MNTVA_FB_SIZE 0x5f0000 /* registers */ #define MNTVA_SCALEMODE 0x04 #define MNTVA_SCALEMODE1X 0 #define MNTVA_SCALEMODE2X 1 #define MNTVA_SCALEMODE3X 2 #define MNTVA_SCALEMODE4X 3 #define MNTVA_SCREENW 0x06 #define MNTVA_SCREENH 0x08 #define MNTVA_BLITTERBASEHI 0x1C /* [23:16] */ #define MNTVA_BLITTERBASELO 0x1E /* [15:0] */ #define MNTVA_BLITTERX1 0x20 #define MNTVA_BLITTERY1 0x22 #define MNTVA_BLITTERX2 0x24 #define MNTVA_BLITTERY2 0x26 #define MNTVA_BLITTERRGB 0x28 /* filling for 16bit and 8bit modes */ #define MNTVA_BLITTER_ENABLE 0x2A #define MNTVA_BLITTER_FILL __BIT(0) /* fill [x1,y1]-[x2,y2] */ #define MNTVA_BLITTER_COPY __BIT(1) /* copy [x3,y3]-[x4,y4] to [x1,y1]-[x2,y2] */ #define MNTVA_BLITTERX3 0x2C #define MNTVA_BLITTERY3 0x2E #define MNTVA_BLITTERX4 0x30 #define MNTVA_BLITTERY4 0x32 #define MNTVA_BLITTERRGB32HI 0x34 /* filling for 24bit and 32bit modes */ #define MNTVA_BLITTERRGB32LO 0x36 /* filling for 24bit and 32bit modes */ #define MNTVA_COLORMODE 0x48 #define MNTVA_COLORMODE8 0 #define MNTVA_COLORMODE16 __BIT(0) #define MNTVA_COLORMODE32 __BIT(1) #define MNTVA_PANPTRHI 0x38 /* [23:16] */ #define MNTVA_PANPTRLO 0x3A /* [15:0] */ #define MNTVA_BLITTERX1 0x20 #define MNTVA_BLITTERY1 0x22 #define MNTVA_BLITTERX2 0x24 #define MNTVA_BLITTERY2 0x26 #define MNTVA_BLITTERRGB 0x28 /* filling for 16bit and 8bit modes */ #define MNTVA_BLITTER_ENABLE 0x2A #define MNTVA_BLITTER_FILL __BIT(0) /* fill [x1,y1]-[x2,y2] */ #define MNTVA_BLITTER_COPY __BIT(1) /* copy [x3,y3]-[x4,y4] to [x1,y1]-[x2,y2] */ #define MNTVA_BLITTERX3 0x2C #define MNTVA_BLITTERY3 0x2E #define MNTVA_BLITTERX4 0x30 #define MNTVA_BLITTERY4 0x32 #define MNTVA_BLITTERRGB32HI 0x34 /* filling for 24bit and 32bit modes */ #define MNTVA_BLITTERRGB32LO 0x36 /* filling for 24bit and 32bit modes */ #define MNTVA_COLORMODE 0x48 #define MNTVA_COLORMODE8 0 #define MNTVA_COLORMODE16 __BIT(0) #define MNTVA_COLORMODE32 __BIT(1) #define MNTVA_PANPTRHI 0x38 /* [23:16] */ #define MNTVA_PANPTRLO 0x3A /* [15:0] */ #endif /* MNTVA2000REG_H */