gareg.h revision 1.1 1 1.1 tsutsui /* $NetBSD: gareg.h,v 1.1 2005/12/29 15:20:08 tsutsui 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 * 3. All advertising materials mentioning features or use of this software
19 1.1 tsutsui * must display the following acknowledgement:
20 1.1 tsutsui * This product includes software developed by the NetBSD
21 1.1 tsutsui * Foundation, Inc. and its contributors.
22 1.1 tsutsui * 4. Neither the name of The NetBSD Foundation nor the names of its
23 1.1 tsutsui * contributors may be used to endorse or promote products derived
24 1.1 tsutsui * from this software without specific prior written permission.
25 1.1 tsutsui *
26 1.1 tsutsui * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 1.1 tsutsui * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 1.1 tsutsui * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 1.1 tsutsui * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 1.1 tsutsui * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 1.1 tsutsui * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 1.1 tsutsui * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 1.1 tsutsui * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 1.1 tsutsui * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 1.1 tsutsui * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 1.1 tsutsui * POSSIBILITY OF SUCH DAMAGE.
37 1.1 tsutsui */
38 1.1 tsutsui
39 1.1 tsutsui #ifndef _EWS4800MIPS_GAREG_H_
40 1.1 tsutsui #define _EWS4800MIPS_GAREG_H_
41 1.1 tsutsui /* Graphic adapter */
42 1.1 tsutsui
43 1.1 tsutsui #define GA_FRB_ADDR 0xf0000000
44 1.1 tsutsui #define GA_FRB_SIZE 0x08000000
45 1.1 tsutsui #define GA_ROM_ADDR 0xf7e00000 /* 350 */
46 1.1 tsutsui #define GA_BLOCKWRITE_ADDR 0xf0c00000
47 1.1 tsutsui #define GA_PLANEMASK_ADDR 0xf1000000
48 1.1 tsutsui #define GA_OVLMASK_ADDR 0xf2000000
49 1.1 tsutsui #define GA_ID_ADDR 0xf3000000
50 1.1 tsutsui #define GA_REG_ADDR 0xf5f00000
51 1.1 tsutsui #define GA_REG_SIZE 0x4000
52 1.1 tsutsui
53 1.1 tsutsui /* Register (offset from GA_REG_ADDR) */
54 1.1 tsutsui
55 1.1 tsutsui #define GA_PLANEMASK_REG 0x0400 /* write only */
56 1.1 tsutsui #define GA_PLANEMASK_R 0x0000ff
57 1.1 tsutsui #define GA_PLANEMASK_G 0x00ff00
58 1.1 tsutsui #define GA_PLANEMASK_B 0xff0000
59 1.1 tsutsui
60 1.1 tsutsui #define GA_DDA_PATTERN_DRAW_ADDR_LO 0x0900
61 1.1 tsutsui #define GA_DDA_PATTERN_DRAW_ADDR_HI 0x0904
62 1.1 tsutsui #define GA_DDA_PATTERN_DRAW_DATA 0x093c /* data? */
63 1.1 tsutsui
64 1.1 tsutsui #define GA_BT463_ADDR_LO 0x0c80
65 1.1 tsutsui #define GA_BT463_ADDR_HI 0x0c84
66 1.1 tsutsui #define GA_BT463_IREG_DATA 0x0c88
67 1.1 tsutsui #define GA_BT463_CLUT_DATA 0x0c8c
68 1.1 tsutsui #define GA_BT431_BADDR_LO 0x0c90
69 1.1 tsutsui #define GA_BT431_BADDR_HI 0x0c94
70 1.1 tsutsui #define GA_BT431_BDATA 0x0c98
71 1.1 tsutsui #define GA_BT431_CADDR_LO 0x0ca0
72 1.1 tsutsui #define GA_BT431_CADDR_HI 0x0ca4
73 1.1 tsutsui #define GA_BT431_CDATA 0x0ca8
74 1.1 tsutsui
75 1.1 tsutsui #define GA_STATUS_REG 0x0e00
76 1.1 tsutsui #define GA_STATUS_VSYNC 0x1
77 1.1 tsutsui #define GA_STATUS_CLOCK 0x2
78 1.1 tsutsui #define GA_STATUS_CLOCK_60HZ 0
79 1.1 tsutsui #define GA_STATUS_CLOCK_71HZ 2
80 1.1 tsutsui
81 1.1 tsutsui #define GA_CLOCK_REG 0x0e08 /* write only */
82 1.1 tsutsui #define GA_CLOCK_60HZ 0x670
83 1.1 tsutsui #define GA_CLOCK_71HZ 0x790
84 1.1 tsutsui #define GA_BLOCKPLANEMASK_REG 0x0e80
85 1.1 tsutsui
86 1.1 tsutsui #define GA_DDA_STATUS_REG 0x0f00
87 1.1 tsutsui
88 1.1 tsutsui #if 0
89 1.1 tsutsui #define GA_ROP_ 0x0000
90 1.1 tsutsui #define GA_ROP_ 0x0002
91 1.1 tsutsui #define GA_ROP_ 0x0004
92 1.1 tsutsui #define GA_ROP_ 0x1000
93 1.1 tsutsui #define GA_ROP_ 0x1002
94 1.1 tsutsui #define GA_ROP_ 0x1004
95 1.1 tsutsui #define GA_ROP_ 0x2000
96 1.1 tsutsui #define GA_ROP_ 0x2002
97 1.1 tsutsui #define GA_ROP_ 0x2004
98 1.1 tsutsui
99 1.1 tsutsui #define GA_ 0x0006
100 1.1 tsutsui #define GA_ 0x0008
101 1.1 tsutsui #define GA_ 0x000a
102 1.1 tsutsui #define GA_ 0x000c
103 1.1 tsutsui #define GA_ 0x000e
104 1.1 tsutsui #define GA_ 0x0010
105 1.1 tsutsui #define GA_ 0x0012
106 1.1 tsutsui #define GA_ 0x0020
107 1.1 tsutsui #endif
108 1.1 tsutsui
109 1.1 tsutsui #endif /* !_EWS4800MIPS_GAREG_H_ */
110