1 /* $NetBSD: grf_conf.c,v 1.4 1999/03/24 14:07:38 minoura Exp $ */ 2 3 /* 4 * Copyright (c) 1991 University of Utah. 5 * Copyright (c) 1990, 1993 6 * The Regents of the University of California. All rights reserved. 7 * 8 * This code is derived from software contributed to Berkeley by 9 * the Systems Programming Group of the University of Utah Computer 10 * Science Department. 11 * 12 * Redistribution and use in source and binary forms, with or without 13 * modification, are permitted provided that the following conditions 14 * are met: 15 * 1. Redistributions of source code must retain the above copyright 16 * notice, this list of conditions and the following disclaimer. 17 * 2. Redistributions in binary form must reproduce the above copyright 18 * notice, this list of conditions and the following disclaimer in the 19 * documentation and/or other materials provided with the distribution. 20 * 3. All advertising materials mentioning features or use of this software 21 * must display the following acknowledgement: 22 * This product includes software developed by the University of 23 * California, Berkeley and its contributors. 24 * 4. Neither the name of the University nor the names of its contributors 25 * may be used to endorse or promote products derived from this software 26 * without specific prior written permission. 27 * 28 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 29 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 30 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 31 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 32 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 38 * SUCH DAMAGE. 39 * 40 * from: Utah $Hdr: grf_conf.c 1.2 92/01/22$ 41 * 42 * @(#)grf_conf.c 8.1 (Berkeley) 6/10/93 43 */ 44 45 /* 46 * XXX this information could be generated by config. 47 */ 48 49 #include <sys/types.h> 50 #include <sys/device.h> 51 52 #include <machine/grfioctl.h> 53 54 #include <x68k/dev/grfvar.h> 55 #include <x68k/x68k/iodevice.h> 56 /*#include <x68k/dev/grfreg.h>*/ 57 58 int cc_init __P((struct grf_softc *, caddr_t)); 59 int cc_mode __P((struct grf_softc *, u_long, caddr_t)); 60 int gv_init __P((struct grf_softc *, caddr_t)); 61 int gv_mode __P((struct grf_softc *, u_long, caddr_t)); 62 #if 0 63 extern int tc_init(), tc_mode(); 64 extern int gb_init(), gb_mode(); 65 extern int rb_init(), rb_mode(); 66 extern int dv_init(), dv_mode(); 67 extern int hy_init(), hy_mode(); 68 #endif 69 70 struct grfsw grfsw[] = { 71 {GID_BUILTIN, GRFBUILTIN, "builtin", cc_init, cc_mode}, 72 {GID_GVRAM, GRFBUILTIN, "graphic", gv_init, gv_mode}, 73 #if 0 74 {GID_TOPCAT, GRFBOBCAT, "topcat", tc_init, tc_mode}, 75 {GID_GATORBOX, GRFGATOR, "gatorbox", gb_init, gb_mode}, 76 {GID_RENAISSANCE,GRFRBOX, "renaissance", rb_init, rb_mode}, 77 {GID_LRCATSEYE, GRFCATSEYE, "lo-res catseye", tc_init, tc_mode, 78 {GID_HRCCATSEYE,GRFCATSEYE, "hi-res catseye", tc_init, tc_mode}, 79 {GID_HRMCATSEYE,GRFCATSEYE, "hi-res catseye", tc_init, tc_mode}, 80 {GID_DAVINCI, GRFDAVINCI, "davinci", dv_init, dv_mode}, 81 {GID_HYPERION, GRFHYPERION, "hyperion", hy_init, hy_mode}, 82 #endif 83 }; 84 int ngrfsw = sizeof(grfsw) / sizeof(grfsw[0]); 85 86 #if 0 /* XXX? */ 87 #include "ite.h" 88 #if NITE > 0 89 90 #include <x68k/dev/itevar.h> 91 92 extern u_char ite_readbyte(); 93 extern int ite_writeglyph(); 94 extern int topcat_scroll(), topcat_init(), topcat_deinit(); 95 extern int topcat_clear(), topcat_putc(), topcat_cursor(); 96 extern int gbox_scroll(), gbox_init(), gbox_deinit(); 97 extern int gbox_clear(), gbox_putc(), gbox_cursor(); 98 extern int rbox_scroll(), rbox_init(), rbox_deinit(); 99 extern int rbox_clear(), rbox_putc(), rbox_cursor(); 100 extern int dvbox_scroll(), dvbox_init(), dvbox_deinit(); 101 extern int dvbox_clear(), dvbox_putc(), dvbox_cursor(); 102 extern int hyper_scroll(), hyper_init(), hyper_deinit(); 103 extern int hyper_clear(), hyper_putc(), hyper_cursor(); 104 105 struct itesw itesw[] = { 106 GID_TOPCAT, 107 topcat_init, topcat_deinit, topcat_clear, topcat_putc, 108 topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph, 109 GID_GATORBOX, 110 gbox_init, gbox_deinit, gbox_clear, gbox_putc, 111 gbox_cursor, gbox_scroll, ite_readbyte, ite_writeglyph, 112 GID_RENAISSANCE, 113 rbox_init, rbox_deinit, rbox_clear, rbox_putc, 114 rbox_cursor, rbox_scroll, ite_readbyte, ite_writeglyph, 115 GID_LRCATSEYE, 116 topcat_init, topcat_deinit, topcat_clear, topcat_putc, 117 topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph, 118 GID_HRCCATSEYE, 119 topcat_init, topcat_deinit, topcat_clear, topcat_putc, 120 topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph, 121 GID_HRMCATSEYE, 122 topcat_init, topcat_deinit, topcat_clear, topcat_putc, 123 topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph, 124 GID_DAVINCI, 125 dvbox_init, dvbox_deinit, dvbox_clear, dvbox_putc, 126 dvbox_cursor, dvbox_scroll, ite_readbyte, ite_writeglyph, 127 GID_HYPERION, 128 hyper_init, hyper_deinit, hyper_clear, hyper_putc, 129 hyper_cursor, hyper_scroll, ite_readbyte, ite_writeglyph, 130 }; 131 int nitesw = sizeof(itesw) / sizeof(itesw[0]); 132 #endif 133 #endif /* 0 */ 134