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