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