1 /* 2 * Copyright (c) 1991 University of Utah. 3 * Copyright (c) 1990 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the Systems Programming Group of the University of Utah Computer 8 * Science Department. 9 * 10 * %sccs.include.redist.c% 11 * 12 * from: Utah $Hdr: grf_conf.c 1.2 92/01/22$ 13 * 14 * @(#)grf_conf.c 7.1 (Berkeley) 06/05/92 15 */ 16 17 /* 18 * XXX this information could be generated by config. 19 */ 20 #include "grf.h" 21 #if NGRF > 0 22 23 #include "sys/types.h" 24 #include "hp/dev/device.h" 25 #include "hp/dev/grfioctl.h" 26 #include "hp/dev/grfvar.h" 27 #include "hp/dev/grfreg.h" 28 29 extern int tc_init(), tc_mode(); 30 extern int gb_init(), gb_mode(); 31 extern int rb_init(), rb_mode(); 32 extern int dv_init(), dv_mode(); 33 extern int hy_init(), hy_mode(); 34 35 struct grfsw grfsw[] = { 36 GID_TOPCAT, GRFBOBCAT, "topcat", tc_init, tc_mode, 37 GID_GATORBOX, GRFGATOR, "gatorbox", gb_init, gb_mode, 38 GID_RENAISSANCE,GRFRBOX, "renaissance", rb_init, rb_mode, 39 GID_LRCATSEYE, GRFCATSEYE, "lo-res catseye", tc_init, tc_mode, 40 GID_HRCCATSEYE, GRFCATSEYE, "hi-res catseye", tc_init, tc_mode, 41 GID_HRMCATSEYE, GRFCATSEYE, "hi-res catseye", tc_init, tc_mode, 42 GID_DAVINCI, GRFDAVINCI, "davinci", dv_init, dv_mode, 43 GID_HYPERION, GRFHYPERION, "hyperion", hy_init, hy_mode, 44 }; 45 int ngrfsw = sizeof(grfsw) / sizeof(grfsw[0]); 46 47 #include "ite.h" 48 #if NITE > 0 49 50 #include "hp/dev/itevar.h" 51 52 extern u_char ite_readbyte(); 53 extern int ite_writeglyph(); 54 extern int topcat_scroll(), topcat_init(), topcat_deinit(); 55 extern int topcat_clear(), topcat_putc(), topcat_cursor(); 56 extern int gbox_scroll(), gbox_init(), gbox_deinit(); 57 extern int gbox_clear(), gbox_putc(), gbox_cursor(); 58 extern int rbox_scroll(), rbox_init(), rbox_deinit(); 59 extern int rbox_clear(), rbox_putc(), rbox_cursor(); 60 extern int dvbox_scroll(), dvbox_init(), dvbox_deinit(); 61 extern int dvbox_clear(), dvbox_putc(), dvbox_cursor(); 62 extern int hyper_scroll(), hyper_init(), hyper_deinit(); 63 extern int hyper_clear(), hyper_putc(), hyper_cursor(); 64 65 struct itesw itesw[] = { 66 GID_TOPCAT, 67 topcat_init, topcat_deinit, topcat_clear, topcat_putc, 68 topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph, 69 GID_GATORBOX, 70 gbox_init, gbox_deinit, gbox_clear, gbox_putc, 71 gbox_cursor, gbox_scroll, ite_readbyte, ite_writeglyph, 72 GID_RENAISSANCE, 73 rbox_init, rbox_deinit, rbox_clear, rbox_putc, 74 rbox_cursor, rbox_scroll, ite_readbyte, ite_writeglyph, 75 GID_LRCATSEYE, 76 topcat_init, topcat_deinit, topcat_clear, topcat_putc, 77 topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph, 78 GID_HRCCATSEYE, 79 topcat_init, topcat_deinit, topcat_clear, topcat_putc, 80 topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph, 81 GID_HRMCATSEYE, 82 topcat_init, topcat_deinit, topcat_clear, topcat_putc, 83 topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph, 84 GID_DAVINCI, 85 dvbox_init, dvbox_deinit, dvbox_clear, dvbox_putc, 86 dvbox_cursor, dvbox_scroll, ite_readbyte, ite_writeglyph, 87 GID_HYPERION, 88 hyper_init, hyper_deinit, hyper_clear, hyper_putc, 89 hyper_cursor, hyper_scroll, ite_readbyte, ite_writeglyph, 90 }; 91 int nitesw = sizeof(itesw) / sizeof(itesw[0]); 92 #endif 93 #endif 94