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