Home | History | Annotate | Line # | Download | only in dev
plumvideoreg.h revision 1.2
      1  1.2  uch /*	$NetBSD: plumvideoreg.h,v 1.2 2000/03/25 15:08:26 uch Exp $ */
      2  1.1  uch 
      3  1.1  uch /*
      4  1.2  uch  * Copyright (c) 1999, 2000 by UCHIYAMA Yasushi
      5  1.1  uch  * All rights reserved.
      6  1.1  uch  *
      7  1.1  uch  * Redistribution and use in source and binary forms, with or without
      8  1.1  uch  * modification, are permitted provided that the following conditions
      9  1.1  uch  * are met:
     10  1.1  uch  * 1. Redistributions of source code must retain the above copyright
     11  1.1  uch  *    notice, this list of conditions and the following disclaimer.
     12  1.1  uch  * 2. The name of the developer may NOT be used to endorse or promote products
     13  1.1  uch  *    derived from this software without specific prior written permission.
     14  1.1  uch  *
     15  1.1  uch  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
     16  1.1  uch  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     17  1.1  uch  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     18  1.1  uch  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
     19  1.1  uch  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     20  1.1  uch  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     21  1.1  uch  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     22  1.1  uch  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     23  1.1  uch  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     24  1.1  uch  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     25  1.1  uch  * SUCH DAMAGE.
     26  1.1  uch  *
     27  1.1  uch  */
     28  1.1  uch /* (CS3) */
     29  1.1  uch #define	PLUM_VIDEO_REGBASE		0x1000
     30  1.1  uch #define	PLUM_VIDEO_REGSIZE		0x200
     31  1.1  uch 
     32  1.1  uch /* (MCS0) */
     33  1.1  uch /* VRAM 4MByte */
     34  1.1  uch #define PLUM_VIDEO_VRAM_IOBASE		0x00000000
     35  1.1  uch #define PLUM_VIDEO_VRAM_IOSIZE		0x00400000
     36  1.1  uch /* Color palette LCD 4KByte */
     37  1.1  uch #define	PLUM_VIDEO_CLUT_LCD_IOBASE	0x00400000
     38  1.1  uch #define	PLUM_VIDEO_CLUT_LCD_IOSIZE	0x00001000
     39  1.1  uch /* Color palette CRT 4KByte */
     40  1.1  uch #define	PLUM_VIDEO_CLUT_CRT_IOBASE	0x00401000
     41  1.1  uch #define	PLUM_VIDEO_CLUT_CRT_IOSIZE	0x00001000
     42  1.1  uch /* BitBlt 4KByte */
     43  1.1  uch #define PLUM_VIDEO_BITBLT_IOBASE	0x00402000
     44  1.1  uch #define PLUM_VIDEO_BITBLT_IOSIZE	0x00401000
     45  1.1  uch 
     46  1.1  uch /*
     47  1.1  uch  *	Common Control Register
     48  1.1  uch  */
     49  1.1  uch /* Interrupt Status enable and IRQ line enable */
     50  1.1  uch #define	PLUM_VIDEO_POSENIEN_REG		0x000
     51  1.1  uch /* Interrupt Status */
     52  1.1  uch #define	PLUM_VIDEO_POIST_REG		0x004
     53  1.1  uch /* Buffer Control */
     54  1.1  uch #define	PLUM_VIDEO_POBFC_REG		0x008
     55  1.1  uch /* VRAM Control */
     56  1.1  uch #define	PLUM_VIDEO_PORAM_REG		0x00c
     57  1.1  uch /* VRAM Refresh Control */
     58  1.1  uch #define	PLUM_VIDEO_POREF_REG		0x010
     59  1.1  uch /* LCD Clock Source select and control */
     60  1.1  uch #define	PLUM_VIDEO_POCKL_REG		0x014
     61  1.1  uch /* CRT Clock Source select and control */
     62  1.1  uch #define	PLUM_VIDEO_POCKC_REG		0x018
     63  1.1  uch /* PLL Clock Source select and control */
     64  1.1  uch #define	PLUM_VIDEO_POPLL_REG		0x01c
     65  1.1  uch 
     66  1.1  uch /*
     67  1.1  uch  *	LCD Panel Control Register
     68  1.1  uch  */
     69  1.1  uch /* LCD Control */
     70  1.1  uch #define	PLUM_VIDEO_PLCNT_REG		0x040
     71  1.1  uch /* STN Control */
     72  1.1  uch #define	PLUM_VIDEO_PLSTN_REG		0x044
     73  1.1  uch /* LCD Level control */
     74  1.1  uch #define	PLUM_VIDEO_PLLEV_REG		0x048
     75  1.1  uch /* LCD Luminance control */
     76  1.1  uch #define	PLUM_VIDEO_PLLUM_REG		0x04c
     77  1.1  uch /* DSTN Dither Pattern base address */
     78  1.1  uch #define	PLUM_VIDEO_PLDPA_REG		0x050
     79  1.1  uch /* DSTN VRAM Offscreen buffer address */
     80  1.1  uch #define	PLUM_VIDEO_PLOSA_REG		0x054
     81  1.1  uch 
     82  1.1  uch /*
     83  1.1  uch  *	CRT Control Register
     84  1.1  uch  */
     85  1.1  uch /* DAC Control */
     86  1.1  uch #define	PLUM_VIDEO_PCDAC_REG		0x060
     87  1.1  uch /* CRT Border Color */
     88  1.1  uch #define	PLUM_VIDEO_PCBOC_REG		0x064
     89  1.1  uch /* Palette snoop */
     90  1.1  uch #define	PLUM_VIDEO_PCSNP_REG		0x068
     91  1.1  uch 
     92  1.1  uch /*
     93  1.1  uch  *	LCD Timing Register
     94  1.1  uch  */
     95  1.1  uch /* Horizontanl Total */
     96  1.1  uch #define	PLUM_VIDEO_PLHT_REG		0x080
     97  1.1  uch /* Horizontal Display Start */
     98  1.1  uch #define	PLUM_VIDEO_PLHDS_REG		0x084
     99  1.1  uch /* H-Sync Start/End */
    100  1.1  uch #define	PLUM_VIDEO_PLHSEHSS_REG		0x088
    101  1.1  uch /* H-Blanking Start/End */
    102  1.1  uch #define	PLUM_VIDEO_PLHBEHSS_REG		0x08c
    103  1.1  uch /* Horizontal # of pixel */
    104  1.1  uch #define	PLUM_VIDEO_PLHPX_REG		0x090
    105  1.1  uch /* Vertical Total */
    106  1.1  uch #define	PLUM_VIDEO_PLVT_REG		0x094
    107  1.1  uch /* Vertical Display Start */
    108  1.1  uch #define	PLUM_VIDEO_PLVDS_REG		0x098
    109  1.1  uch /* V-Sync Start/End */
    110  1.1  uch #define	PLUM_VIDEO_PLVSEVSS_REG		0x09c
    111  1.1  uch /* V-Blankng Start/End */
    112  1.1  uch #define	PLUM_VIDEO_PLVBEVBS_REG		0x0a0
    113  1.1  uch /* Current Line # */
    114  1.1  uch #define	PLUM_VIDEO_PLCLN_REG		0x0a8
    115  1.1  uch /* Interrupt Line # */
    116  1.1  uch #define	PLUM_VIDEO_PLILN_REG		0x0ac
    117  1.1  uch /* Mode */
    118  1.1  uch #define	PLUM_VIDEO_PLMOD_REG		0x0b0
    119  1.1  uch /* LCD controller test */
    120  1.1  uch #define	PLUM_VIDEO_PLTST_REG		0x0bc
    121  1.1  uch 
    122  1.1  uch /*
    123  1.1  uch  *	LCD Graphics Register
    124  1.1  uch  */
    125  1.1  uch /* Double Buffer Select */
    126  1.1  uch #define	PLUM_VIDEO_PLBSL_REG		0x0c0
    127  1.1  uch /* Graphics Display Start Address */
    128  1.1  uch #define	PLUM_VIDEO_PLDSA0_REG		0x0c4
    129  1.1  uch #define	PLUM_VIDEO_PLDSA1_REG		0x0c8
    130  1.1  uch /* VRAM Pitch 1 */
    131  1.1  uch #define	PLUM_VIDEO_PLPIT1_REG		0x0cc
    132  1.1  uch /* VRAM Pitch 2 */
    133  1.1  uch #define	PLUM_VIDEO_PLPIT2_REG		0x0d0
    134  1.2  uch #define PLUM_VIDEO_PLPIT2_MASK		0xffffffe0
    135  1.1  uch /* VRAM Offset */
    136  1.1  uch #define	PLUM_VIDEO_PLOFS_REG		0x0d4
    137  1.1  uch /* VRAM Lower Screen Address offset */
    138  1.1  uch #define	PLUM_VIDEO_PLLSA_REG		0x0d8
    139  1.1  uch /* Graphics Mode */
    140  1.1  uch #define	PLUM_VIDEO_PLGMD_REG		0x0dc
    141  1.1  uch 
    142  1.1  uch #define PLUM_VIDEO_PLGMD_MASK		0x3
    143  1.1  uch #define PLUM_VIDEO_PLGMD_DISABLE	0x0
    144  1.1  uch #define PLUM_VIDEO_PLGMD_8BPP		0x1
    145  1.1  uch #define PLUM_VIDEO_PLGMD_16BPP		0x2
    146  1.1  uch /*
    147  1.1  uch  *	CRT Timing Register
    148  1.1  uch  */
    149  1.1  uch /* notyet */
    150  1.1  uch /*
    151  1.1  uch  *	CRT Graphics Register
    152  1.1  uch  */
    153  1.1  uch /* notyet */
    154