5 * this really is an extension of the vc_cons structure in console.c, but
6 * with information needed by the vt package
9 #include <linux/config.h>
13 * Presently, a lot of graphics programs do not restore the contents of
14 * the higher font pages. Defining this flag will avoid use of them, but
15 * will lose support for PIO_FONTRESET. Note that many font operations are
16 * not likely to work with these programs anyway; they need to be
17 * fixed. The linux/Documentation directory includes a code snippet
18 * to save and restore the text font.
20 #ifdef CONFIG_VGA_CONSOLE
21 #define BROKEN_GRAPHICS_PROGRAMS 1
24 extern struct vt_struct
{
25 int vc_num
; /* The console number */
26 unsigned char vc_mode
; /* KD_TEXT, ... */
27 struct vt_mode vt_mode
;
30 wait_queue_head_t paste_wait
;
31 } *vt_cons
[MAX_NR_CONSOLES
];
33 void (*kd_mksound
)(unsigned int hz
, unsigned int ticks
);
37 struct console_font_op
;
39 int vc_allocate(unsigned int console
);
40 int vc_cons_allocated(unsigned int console
);
41 int vc_resize(unsigned int lines
, unsigned int cols
,
42 unsigned int first
, unsigned int last
);
43 #define vc_resize_all(l, c) vc_resize(l, c, 0, MAX_NR_CONSOLES-1)
44 #define vc_resize_con(l, c, x) vc_resize(l, c, x, x)
45 void vc_disallocate(unsigned int console
);
46 void reset_palette(int currcons
);
47 void set_palette(int currcons
);
48 void do_blank_screen(int gfx_mode
);
49 void unblank_screen(void);
50 void poke_blanked_console(void);
51 int con_font_op(int currcons
, struct console_font_op
*op
);
52 int con_set_cmap(unsigned char *cmap
);
53 int con_get_cmap(unsigned char *cmap
);
55 void scrollfront(int);
56 void update_region(int currcons
, unsigned long start
, int count
);
57 void redraw_screen(int new_console
, int is_switch
);
58 #define update_screen(x) redraw_screen(x, 0)
59 #define switch_screen(x) redraw_screen(x, 1)
62 int tioclinux(struct tty_struct
*tty
, unsigned long arg
);
69 int con_set_trans_old(unsigned char * table
);
70 int con_get_trans_old(unsigned char * table
);
71 int con_set_trans_new(unsigned short * table
);
72 int con_get_trans_new(unsigned short * table
);
73 int con_clear_unimap(int currcons
, struct unimapinit
*ui
);
74 int con_set_unimap(int currcons
, ushort ct
, struct unipair
*list
);
75 int con_get_unimap(int currcons
, ushort ct
, ushort
*uct
, struct unipair
*list
);
76 int con_set_default_unimap(int currcons
);
77 void con_free_unimap(int currcons
);
78 void con_protect_unimap(int currcons
, int rdonly
);
79 int con_copy_unimap(int dstcons
, int srccons
);
83 extern unsigned int video_font_height
;
84 extern unsigned int default_font_height
;
85 extern unsigned int video_scan_lines
;
87 void complete_change_console(unsigned int new_console
);
88 int vt_waitactive(int vt
);
89 void change_console(unsigned int);
90 void reset_vc(unsigned int new_console
);
91 int vt_waitactive(int vt
);
93 #endif /* _VT_KERN_H */