Home | History | Annotate | Line # | Download | only in obio
      1 /* $NetBSD: grf_obioreg.h,v 1.1 2019/07/26 10:48:44 rin Exp $ */
      2 
      3 /* NetBSD: grf_obio.c,v 1.58 2012/10/27 17:18:00 chs Exp */
      4 /*
      5  * Copyright (C) 1998 Scott Reynolds
      6  * All rights reserved.
      7  *
      8  * Redistribution and use in source and binary forms, with or without
      9  * modification, are permitted provided that the following conditions
     10  * are met:
     11  * 1. Redistributions of source code must retain the above copyright
     12  *    notice, this list of conditions and the following disclaimer.
     13  * 2. Redistributions in binary form must reproduce the above copyright
     14  *    notice, this list of conditions and the following disclaimer in the
     15  *    documentation and/or other materials provided with the distribution.
     16  * 3. The name of the author may not be used to endorse or promote products
     17  *    derived from this software without specific prior written permission.
     18  *
     19  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     20  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     21  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     22  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     23  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     24  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     25  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     26  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     27  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     28  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     29  */
     30 /*
     31  * Copyright (c) 1995 Allen Briggs.  All rights reserved.
     32  *
     33  * Redistribution and use in source and binary forms, with or without
     34  * modification, are permitted provided that the following conditions
     35  * are met:
     36  * 1. Redistributions of source code must retain the above copyright
     37  *    notice, this list of conditions and the following disclaimer.
     38  * 2. Redistributions in binary form must reproduce the above copyright
     39  *    notice, this list of conditions and the following disclaimer in the
     40  *    documentation and/or other materials provided with the distribution.
     41  * 3. All advertising materials mentioning features or use of this software
     42  *    must display the following acknowledgement:
     43  *	This product includes software developed by Allen Briggs.
     44  * 4. The name of the author may not be used to endorse or promote products
     45  *    derived from this software without specific prior written permission.
     46  *
     47  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     48  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     49  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     50  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     51  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     52  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     53  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     54  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     55  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     56  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     57  */
     58 
     59 /*
     60  * DAFB framebuffer and register definitions
     61  */
     62 #define	DAFB_FB_BASE		0xf9000000
     63 
     64 #define	DAFB_CONTROL_BASE	0xf9800000
     65 
     66 #define	DAFB_CMAP_BASE		0xf9800200	/* Taken from Linux */
     67 #define	DAFB_CMAP_LEN		0x14
     68 #define	DAFB_CMAP_RESET		0x00
     69 #define	DAFB_CMAP_LUT		0x13
     70 
     71 /*
     72  * Civic framebuffer and register definitions
     73  */
     74 #define	CIVIC_FB_BASE		0x50100000
     75 
     76 #define	CIVIC_CONTROL_BASE	0x50036000
     77 
     78 #define	CIVIC_CMAP_BASE		0x50f30800	/* Taken from Linux */
     79 #define	CIVIC_CMAP_LEN		0x30
     80 #define	CIVIC_CMAP_ADDR		0x00
     81 #define	CIVIC_CMAP_LUT		0x10
     82 #define	CIVIC_CMAP_STATUS	0x20
     83 #define	CIVIC_CMAP_VBLADDR	0x28
     84 #define	CIVIC_CMAP_STATUS2	0x2c
     85 
     86 /*
     87  * Valkyrie framebuffer and register definitions
     88  */
     89 #define	VALKYRIE_FB_BASE	0xf9000000
     90 
     91 #define	VALKYRIE_CONTROL_BASE	0x50f2a000
     92 
     93 #define	VALKYRIE_CMAP_BASE	0x50f24000	/* Taken from Linux */
     94 #define	VALKYRIE_CMAP_LEN	0x8
     95 #define	VALKYRIE_CMAP_ADDR	0x0
     96 #define	VALKYRIE_CMAP_LUT	0x4
     97 
     98 /*
     99  * RBV register definitions
    100  */
    101 #define	DAC_CMAP_BASE		0x50f24000	/* Taken from Linux */
    102 #define	RBV_CMAP_BASE		DAC_CMAP_BASE
    103 #define	RBV_CMAP_LEN		0xc
    104 #define	RBV_CMAP_ADDR		0x0
    105 #define	RBV_CMAP_LUT		0x4
    106 #define	RBV_CMAP_CNTL		0x8
    107