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