Home | History | Annotate | Line # | Download | only in include
      1  1.2   martin /*	$NetBSD: gareg.h,v 1.2 2008/04/28 20:23:18 martin Exp $	*/
      2  1.1  tsutsui 
      3  1.1  tsutsui /*-
      4  1.1  tsutsui  * Copyright (c) 2004 The NetBSD Foundation, Inc.
      5  1.1  tsutsui  * All rights reserved.
      6  1.1  tsutsui  *
      7  1.1  tsutsui  * This code is derived from software contributed to The NetBSD Foundation
      8  1.1  tsutsui  * by UCHIYAMA Yasushi.
      9  1.1  tsutsui  *
     10  1.1  tsutsui  * Redistribution and use in source and binary forms, with or without
     11  1.1  tsutsui  * modification, are permitted provided that the following conditions
     12  1.1  tsutsui  * are met:
     13  1.1  tsutsui  * 1. Redistributions of source code must retain the above copyright
     14  1.1  tsutsui  *    notice, this list of conditions and the following disclaimer.
     15  1.1  tsutsui  * 2. Redistributions in binary form must reproduce the above copyright
     16  1.1  tsutsui  *    notice, this list of conditions and the following disclaimer in the
     17  1.1  tsutsui  *    documentation and/or other materials provided with the distribution.
     18  1.1  tsutsui  *
     19  1.1  tsutsui  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     20  1.1  tsutsui  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     21  1.1  tsutsui  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     22  1.1  tsutsui  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     23  1.1  tsutsui  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     24  1.1  tsutsui  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     25  1.1  tsutsui  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     26  1.1  tsutsui  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     27  1.1  tsutsui  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     28  1.1  tsutsui  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     29  1.1  tsutsui  * POSSIBILITY OF SUCH DAMAGE.
     30  1.1  tsutsui  */
     31  1.1  tsutsui 
     32  1.1  tsutsui #ifndef _EWS4800MIPS_GAREG_H_
     33  1.1  tsutsui #define	_EWS4800MIPS_GAREG_H_
     34  1.1  tsutsui /* Graphic adapter */
     35  1.1  tsutsui 
     36  1.1  tsutsui #define	GA_FRB_ADDR			0xf0000000
     37  1.1  tsutsui #define	GA_FRB_SIZE			0x08000000
     38  1.1  tsutsui #define	GA_ROM_ADDR			0xf7e00000	/* 350 */
     39  1.1  tsutsui #define	GA_BLOCKWRITE_ADDR		0xf0c00000
     40  1.1  tsutsui #define	GA_PLANEMASK_ADDR		0xf1000000
     41  1.1  tsutsui #define	GA_OVLMASK_ADDR			0xf2000000
     42  1.1  tsutsui #define	GA_ID_ADDR			0xf3000000
     43  1.1  tsutsui #define	GA_REG_ADDR			0xf5f00000
     44  1.1  tsutsui #define	GA_REG_SIZE			0x4000
     45  1.1  tsutsui 
     46  1.1  tsutsui /* Register (offset from GA_REG_ADDR) */
     47  1.1  tsutsui 
     48  1.1  tsutsui #define	GA_PLANEMASK_REG		0x0400	/* write only */
     49  1.1  tsutsui #define	 GA_PLANEMASK_R		 0x0000ff
     50  1.1  tsutsui #define	 GA_PLANEMASK_G		 0x00ff00
     51  1.1  tsutsui #define	 GA_PLANEMASK_B		 0xff0000
     52  1.1  tsutsui 
     53  1.1  tsutsui #define	GA_DDA_PATTERN_DRAW_ADDR_LO	0x0900
     54  1.1  tsutsui #define	GA_DDA_PATTERN_DRAW_ADDR_HI	0x0904
     55  1.1  tsutsui #define	GA_DDA_PATTERN_DRAW_DATA	0x093c	/* data? */
     56  1.1  tsutsui 
     57  1.1  tsutsui #define	GA_BT463_ADDR_LO		0x0c80
     58  1.1  tsutsui #define	GA_BT463_ADDR_HI		0x0c84
     59  1.1  tsutsui #define	GA_BT463_IREG_DATA		0x0c88
     60  1.1  tsutsui #define	GA_BT463_CLUT_DATA		0x0c8c
     61  1.1  tsutsui #define	GA_BT431_BADDR_LO		0x0c90
     62  1.1  tsutsui #define	GA_BT431_BADDR_HI		0x0c94
     63  1.1  tsutsui #define	GA_BT431_BDATA			0x0c98
     64  1.1  tsutsui #define	GA_BT431_CADDR_LO		0x0ca0
     65  1.1  tsutsui #define	GA_BT431_CADDR_HI		0x0ca4
     66  1.1  tsutsui #define	GA_BT431_CDATA			0x0ca8
     67  1.1  tsutsui 
     68  1.1  tsutsui #define	GA_STATUS_REG			0x0e00
     69  1.1  tsutsui #define	 GA_STATUS_VSYNC	 0x1
     70  1.1  tsutsui #define	 GA_STATUS_CLOCK	 0x2
     71  1.1  tsutsui #define	  GA_STATUS_CLOCK_60HZ		0
     72  1.1  tsutsui #define	  GA_STATUS_CLOCK_71HZ		2
     73  1.1  tsutsui 
     74  1.1  tsutsui #define	GA_CLOCK_REG			0x0e08	/* write only */
     75  1.1  tsutsui #define	 GA_CLOCK_60HZ		 0x670
     76  1.1  tsutsui #define	 GA_CLOCK_71HZ		 0x790
     77  1.1  tsutsui #define	GA_BLOCKPLANEMASK_REG		0x0e80
     78  1.1  tsutsui 
     79  1.1  tsutsui #define	GA_DDA_STATUS_REG		0x0f00
     80  1.1  tsutsui 
     81  1.1  tsutsui #if 0
     82  1.1  tsutsui #define	GA_ROP_	0x0000
     83  1.1  tsutsui #define	GA_ROP_	0x0002
     84  1.1  tsutsui #define	GA_ROP_	0x0004
     85  1.1  tsutsui #define	GA_ROP_	0x1000
     86  1.1  tsutsui #define	GA_ROP_	0x1002
     87  1.1  tsutsui #define	GA_ROP_	0x1004
     88  1.1  tsutsui #define	GA_ROP_	0x2000
     89  1.1  tsutsui #define	GA_ROP_	0x2002
     90  1.1  tsutsui #define	GA_ROP_	0x2004
     91  1.1  tsutsui 
     92  1.1  tsutsui #define	GA_	0x0006
     93  1.1  tsutsui #define	GA_	0x0008
     94  1.1  tsutsui #define	GA_	0x000a
     95  1.1  tsutsui #define	GA_	0x000c
     96  1.1  tsutsui #define	GA_	0x000e
     97  1.1  tsutsui #define	GA_	0x0010
     98  1.1  tsutsui #define	GA_	0x0012
     99  1.1  tsutsui #define	GA_	0x0020
    100  1.1  tsutsui #endif
    101  1.1  tsutsui 
    102  1.1  tsutsui #endif	/* !_EWS4800MIPS_GAREG_H_ */
    103