1#ifndef _VT_KERN_H
2#define _VT_KERN_H
3
4
5
6
7
8
9#include <linux/config.h>
10#include <linux/vt.h>
11#include <linux/kd.h>
12
13
14
15
16
17
18
19
20
21#ifdef CONFIG_VGA_CONSOLE
22#define BROKEN_GRAPHICS_PROGRAMS 1
23#endif
24
25extern struct vt_struct {
26 int vc_num;
27 unsigned char vc_mode;
28 struct vt_mode vt_mode;
29 int vt_pid;
30 int vt_newvt;
31 wait_queue_head_t paste_wait;
32} *vt_cons[MAX_NR_CONSOLES];
33
34extern void (*kd_mksound)(unsigned int hz, unsigned int ticks);
35extern int (*kbd_rate)(struct kbd_repeat *rep);
36
37
38
39struct console_font_op;
40
41int vc_allocate(unsigned int console);
42int vc_cons_allocated(unsigned int console);
43int vc_resize(unsigned int lines, unsigned int cols,
44 unsigned int first, unsigned int last);
45#define vc_resize_all(l, c) vc_resize(l, c, 0, MAX_NR_CONSOLES-1)
46#define vc_resize_con(l, c, x) vc_resize(l, c, x, x)
47void vc_disallocate(unsigned int console);
48void reset_palette(int currcons);
49void set_palette(int currcons);
50void do_blank_screen(int gfx_mode);
51void unblank_screen(void);
52void poke_blanked_console(void);
53int con_font_op(int currcons, struct console_font_op *op);
54int con_set_cmap(unsigned char *cmap);
55int con_get_cmap(unsigned char *cmap);
56void scrollback(int);
57void scrollfront(int);
58void update_region(int currcons, unsigned long start, int count);
59void redraw_screen(int new_console, int is_switch);
60#define update_screen(x) redraw_screen(x, 0)
61#define switch_screen(x) redraw_screen(x, 1)
62
63struct tty_struct;
64int tioclinux(struct tty_struct *tty, unsigned long arg);
65
66
67
68struct unimapinit;
69struct unipair;
70
71int con_set_trans_old(unsigned char * table);
72int con_get_trans_old(unsigned char * table);
73int con_set_trans_new(unsigned short * table);
74int con_get_trans_new(unsigned short * table);
75int con_clear_unimap(int currcons, struct unimapinit *ui);
76int con_set_unimap(int currcons, ushort ct, struct unipair *list);
77int con_get_unimap(int currcons, ushort ct, ushort *uct, struct unipair *list);
78int con_set_default_unimap(int currcons);
79void con_free_unimap(int currcons);
80void con_protect_unimap(int currcons, int rdonly);
81int con_copy_unimap(int dstcons, int srccons);
82
83
84
85extern unsigned int video_font_height;
86extern unsigned int default_font_height;
87extern unsigned int video_scan_lines;
88
89void complete_change_console(unsigned int new_console);
90int vt_waitactive(int vt);
91void change_console(unsigned int);
92void reset_vc(unsigned int new_console);
93
94#endif
95