1 #ifndef_VT_KERN_H 2 #define_VT_KERN_H 3
4 /* 5 * this really is an extension of the vc_cons structure in console.c, but 6 * with information needed by the vt package 7 */ 8
9 #include <linux/vt.h>
10
11 /* 12 * Presently, a lot of graphics programs do not restore the contents of 13 * the higher font pages. Defining this flag will avoid use of them, but 14 * will lose support for PIO_FONTRESET. Note that many font operations are 15 * not likely to work with these programs anyway; they need to be 16 * fixed. The linux/Documentation directory includes a code snippet 17 * to save and restore the text font. 18 */ 19 #defineBROKEN_GRAPHICS_PROGRAMS 1
20
21 externstructvt_struct{ 22 intvc_num; /* The console number */ 23 unsignedcharvc_mode; /* KD_TEXT, ... */ 24 unsignedchar vc_kbdraw;
25 unsignedchar vc_kbde0;
26 unsignedchar vc_kbdleds;
27 structvt_modevt_mode;
28 intvt_pid;
29 intvt_newvt;
30 structwait_queue *paste_wait;
31 } *vt_cons[MAX_NR_CONSOLES];
32
33 voidkd_mksound(unsignedintcount, unsignedintticks);
34 intvc_allocate(unsignedintconsole);
35 intvc_cons_allocated(unsignedintconsole);
36 intvc_resize(unsignedlonglines, unsignedlongcols);
37 voidvc_disallocate(unsignedintconsole);
38
39 #endif/* _VT_KERN_H */