Home | History | Annotate | Line # | Download | only in dev
mntvareg.h revision 1.1
      1 /*	$NetBSD: mntvareg.h,v 1.1 2016/10/03 14:26:02 rkujawa Exp $  */
      2 
      3 /*
      4  * Copyright (c) 2012, 2016 The NetBSD Foundation, Inc.
      5  * All rights reserved.
      6  *
      7  * This code is derived from software contributed to The NetBSD Foundation
      8  * by Lukas F. Hartmann.
      9  * This code is derived from software contributed to The NetBSD Foundation
     10  * by Radoslaw Kujawa.
     11  *
     12  * Redistribution and use in source and binary forms, with or without
     13  * modification, are permitted provided that the following conditions
     14  * are met:
     15  * 1. Redistributions of source code must retain the above copyright
     16  *    notice, this list of conditions and the following disclaimer.
     17  * 2. Redistributions in binary form must reproduce the above copyright
     18  *    notice, this list of conditions and the following disclaimer in the
     19  *    documentation and/or other materials provided with the distribution.
     20  *
     21  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     22  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     23  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     24  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     25  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     26  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     30  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     31  */
     32 
     33 #ifndef MNTVA2000REG_H
     34 #define MNTVA2000REG_H
     35 
     36 /* address space */
     37 #define MNTVA_OFF_REG		0x5f0000	/* memory mapped registers */
     38 #define MNTVA_REG_SIZE		0xFF
     39 
     40 #define MNTVA_OFF_FB		0x000000	/* frame buffer */
     41 #define MNTVA_FB_SIZE		0x5f0000
     42 
     43 /* registers */
     44 #define MNTVA_SCALEMODE		0x04
     45 #define MNTVA_SCALEMODE1X		0
     46 #define MNTVA_SCALEMODE2X		1
     47 #define MNTVA_SCALEMODE3X		2
     48 #define MNTVA_SCALEMODE4X		3
     49 
     50 #define MNTVA_SCREENW		0x06
     51 #define MNTVA_SCREENH		0x08
     52 
     53 #define MNTVA_BLITTERBASEHI	0x1C	/* [23:16] */
     54 #define MNTVA_BLITTERBASELO	0x1E	/* [15:0] */
     55 
     56 #define MNTVA_BLITTERX1		0x20
     57 #define MNTVA_BLITTERY1		0x22
     58 #define MNTVA_BLITTERX2		0x24
     59 #define MNTVA_BLITTERY2		0x26
     60 #define MNTVA_BLITTERRGB	0x28	/* filling for 16bit and 8bit modes */
     61 
     62 #define MNTVA_BLITTER_ENABLE	0x2A
     63 #define MNTVA_BLITTER_FILL		__BIT(0) /* fill [x1,y1]-[x2,y2] */
     64 #define MNTVA_BLITTER_COPY		__BIT(1) /* copy [x3,y3]-[x4,y4] to
     65 						         [x1,y1]-[x2,y2] */
     66 #define MNTVA_BLITTERX3		0x2C
     67 #define MNTVA_BLITTERY3		0x2E
     68 #define MNTVA_BLITTERX4		0x30
     69 #define MNTVA_BLITTERY4		0x32
     70 #define MNTVA_BLITTERRGB32HI	0x34	/* filling for 24bit and 32bit modes */
     71 #define MNTVA_BLITTERRGB32LO	0x36	/* filling for 24bit and 32bit modes */
     72 
     73 #define MNTVA_COLORMODE 	0x48
     74 #define MNTVA_COLORMODE8		0
     75 #define MNTVA_COLORMODE16		__BIT(0)
     76 #define MNTVA_COLORMODE32		__BIT(1)
     77 
     78 #define MNTVA_PANPTRHI 0x38 /* [23:16] */
     79 #define MNTVA_PANPTRLO 0x3A /* [15:0] */
     80 
     81 #define MNTVA_BLITTERX1		0x20
     82 #define MNTVA_BLITTERY1		0x22
     83 #define MNTVA_BLITTERX2		0x24
     84 #define MNTVA_BLITTERY2		0x26
     85 #define MNTVA_BLITTERRGB	0x28	/* filling for 16bit and 8bit modes */
     86 
     87 #define MNTVA_BLITTER_ENABLE	0x2A
     88 #define MNTVA_BLITTER_FILL		__BIT(0) /* fill [x1,y1]-[x2,y2] */
     89 #define MNTVA_BLITTER_COPY		__BIT(1) /* copy [x3,y3]-[x4,y4] to
     90 						         [x1,y1]-[x2,y2] */
     91 #define MNTVA_BLITTERX3		0x2C
     92 #define MNTVA_BLITTERY3		0x2E
     93 #define MNTVA_BLITTERX4		0x30
     94 #define MNTVA_BLITTERY4		0x32
     95 #define MNTVA_BLITTERRGB32HI	0x34	/* filling for 24bit and 32bit modes */
     96 #define MNTVA_BLITTERRGB32LO	0x36	/* filling for 24bit and 32bit modes */
     97 
     98 #define MNTVA_COLORMODE 	0x48
     99 #define MNTVA_COLORMODE8		0
    100 #define MNTVA_COLORMODE16		__BIT(0)
    101 #define MNTVA_COLORMODE32		__BIT(1)
    102 
    103 #define MNTVA_PANPTRHI 0x38 /* [23:16] */
    104 #define MNTVA_PANPTRLO 0x3A /* [15:0] */
    105 
    106 #endif /* MNTVA2000REG_H */
    107