153931Shibler /* 253931Shibler * Copyright (c) 1991 University of Utah. 3*63151Sbostic * Copyright (c) 1990, 1993 4*63151Sbostic * The Regents of the University of California. All rights reserved. 553931Shibler * 653931Shibler * This code is derived from software contributed to Berkeley by 753931Shibler * the Systems Programming Group of the University of Utah Computer 853931Shibler * Science Department. 953931Shibler * 1053931Shibler * %sccs.include.redist.c% 1153931Shibler * 1253931Shibler * from: Utah $Hdr: grf_conf.c 1.2 92/01/22$ 1353931Shibler * 14*63151Sbostic * @(#)grf_conf.c 8.1 (Berkeley) 06/10/93 1553931Shibler */ 1653931Shibler 1753931Shibler /* 1853931Shibler * XXX this information could be generated by config. 1953931Shibler */ 2053931Shibler #include "grf.h" 2153931Shibler #if NGRF > 0 2253931Shibler 2356507Sbostic #include <sys/types.h> 2453931Shibler 2556507Sbostic #include <hp/dev/device.h> 2656507Sbostic #include <hp/dev/grfioctl.h> 2756507Sbostic #include <hp/dev/grfvar.h> 2856507Sbostic #include <hp/dev/grfreg.h> 2956507Sbostic 3053931Shibler extern int tc_init(), tc_mode(); 3153931Shibler extern int gb_init(), gb_mode(); 3253931Shibler extern int rb_init(), rb_mode(); 3353931Shibler extern int dv_init(), dv_mode(); 3453931Shibler extern int hy_init(), hy_mode(); 3553931Shibler 3653931Shibler struct grfsw grfsw[] = { 3753931Shibler GID_TOPCAT, GRFBOBCAT, "topcat", tc_init, tc_mode, 3853931Shibler GID_GATORBOX, GRFGATOR, "gatorbox", gb_init, gb_mode, 3953931Shibler GID_RENAISSANCE,GRFRBOX, "renaissance", rb_init, rb_mode, 4053931Shibler GID_LRCATSEYE, GRFCATSEYE, "lo-res catseye", tc_init, tc_mode, 4153931Shibler GID_HRCCATSEYE, GRFCATSEYE, "hi-res catseye", tc_init, tc_mode, 4253931Shibler GID_HRMCATSEYE, GRFCATSEYE, "hi-res catseye", tc_init, tc_mode, 4353931Shibler GID_DAVINCI, GRFDAVINCI, "davinci", dv_init, dv_mode, 4453931Shibler GID_HYPERION, GRFHYPERION, "hyperion", hy_init, hy_mode, 4553931Shibler }; 4653931Shibler int ngrfsw = sizeof(grfsw) / sizeof(grfsw[0]); 4753931Shibler 4853931Shibler #include "ite.h" 4953931Shibler #if NITE > 0 5053931Shibler 5156507Sbostic #include <hp/dev/itevar.h> 5253931Shibler 5353931Shibler extern u_char ite_readbyte(); 5453931Shibler extern int ite_writeglyph(); 5553931Shibler extern int topcat_scroll(), topcat_init(), topcat_deinit(); 5653931Shibler extern int topcat_clear(), topcat_putc(), topcat_cursor(); 5753931Shibler extern int gbox_scroll(), gbox_init(), gbox_deinit(); 5853931Shibler extern int gbox_clear(), gbox_putc(), gbox_cursor(); 5953931Shibler extern int rbox_scroll(), rbox_init(), rbox_deinit(); 6053931Shibler extern int rbox_clear(), rbox_putc(), rbox_cursor(); 6153931Shibler extern int dvbox_scroll(), dvbox_init(), dvbox_deinit(); 6253931Shibler extern int dvbox_clear(), dvbox_putc(), dvbox_cursor(); 6353931Shibler extern int hyper_scroll(), hyper_init(), hyper_deinit(); 6453931Shibler extern int hyper_clear(), hyper_putc(), hyper_cursor(); 6553931Shibler 6653931Shibler struct itesw itesw[] = { 6753931Shibler GID_TOPCAT, 6853931Shibler topcat_init, topcat_deinit, topcat_clear, topcat_putc, 6953931Shibler topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph, 7053931Shibler GID_GATORBOX, 7153931Shibler gbox_init, gbox_deinit, gbox_clear, gbox_putc, 7253931Shibler gbox_cursor, gbox_scroll, ite_readbyte, ite_writeglyph, 7353931Shibler GID_RENAISSANCE, 7453931Shibler rbox_init, rbox_deinit, rbox_clear, rbox_putc, 7553931Shibler rbox_cursor, rbox_scroll, ite_readbyte, ite_writeglyph, 7653931Shibler GID_LRCATSEYE, 7753931Shibler topcat_init, topcat_deinit, topcat_clear, topcat_putc, 7853931Shibler topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph, 7953931Shibler GID_HRCCATSEYE, 8053931Shibler topcat_init, topcat_deinit, topcat_clear, topcat_putc, 8153931Shibler topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph, 8253931Shibler GID_HRMCATSEYE, 8353931Shibler topcat_init, topcat_deinit, topcat_clear, topcat_putc, 8453931Shibler topcat_cursor, topcat_scroll, ite_readbyte, ite_writeglyph, 8553931Shibler GID_DAVINCI, 8653931Shibler dvbox_init, dvbox_deinit, dvbox_clear, dvbox_putc, 8753931Shibler dvbox_cursor, dvbox_scroll, ite_readbyte, ite_writeglyph, 8853931Shibler GID_HYPERION, 8953931Shibler hyper_init, hyper_deinit, hyper_clear, hyper_putc, 9053931Shibler hyper_cursor, hyper_scroll, ite_readbyte, ite_writeglyph, 9153931Shibler }; 9253931Shibler int nitesw = sizeof(itesw) / sizeof(itesw[0]); 9353931Shibler #endif 9453931Shibler #endif 95