patch-2.1.109 linux/include/linux/vt_kern.h

Next file: linux/include/net/p8022tr.h
Previous file: linux/include/linux/vt_buffer.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.108/linux/include/linux/vt_kern.h linux/include/linux/vt_kern.h
@@ -6,6 +6,7 @@
  * with information needed by the vt package
  */
 
+#include <linux/config.h>
 #include <linux/vt.h>
 
 /*
@@ -21,9 +22,11 @@
 extern struct vt_struct {
 	int vc_num;				/* The console number */
 	unsigned char	vc_mode;		/* KD_TEXT, ... */
+#if 0	/* FIXME: Does anyone use these? */
 	unsigned char	vc_kbdraw;
 	unsigned char	vc_kbde0;
 	unsigned char   vc_kbdleds;
+#endif
 	struct vt_mode	vt_mode;
 	int		vt_pid;
 	int		vt_newvt;
@@ -31,11 +34,67 @@
 } *vt_cons[MAX_NR_CONSOLES];
 
 void (*kd_mksound)(unsigned int hz, unsigned int ticks);
-int vc_allocate(unsigned int console);
+
+/* console.c */
+
+int vc_allocate(unsigned int console, int init);
 int vc_cons_allocated(unsigned int console);
-int vc_resize(unsigned long lines, unsigned long cols);
-void vc_resize_con(unsigned long lines, unsigned long cols,
-		   unsigned int currcons);
+int vc_resize(unsigned int lines, unsigned int cols,
+	      unsigned int first, unsigned int last);
+#define vc_resize_all(l, c) vc_resize(l, c, 0, MAX_NR_CONSOLES-1)
+#define vc_resize_con(l, c, x) vc_resize(l, c, x, x)
 void vc_disallocate(unsigned int console);
+void poke_blanked_console(void);
+void set_vesa_blanking(unsigned long arg);
+void vesa_blank(void);
+void vesa_powerdown(void);
+void reset_palette(int currcons);
+void set_palette(void);
+void do_blank_screen(int nopowersave);
+int con_set_font(char * fontmap, int w, int h, int chars);
+int con_get_font(char * fontmap, int *w, int *h, int *chars);
+int con_set_cmap(unsigned char *cmap);
+int con_get_cmap(unsigned char *cmap);
+void scrollback(int);
+void scrollfront(int);
+
+struct tty_struct;
+int tioclinux(struct tty_struct *tty, unsigned long arg);
+
+#if defined(CONFIG_PMAC_CONSOLE) || defined(CONFIG_FB_COMPAT_XPMAC)
+#include <asm/vc_ioctl.h>
+extern int console_getmode(struct vc_mode *);
+extern int console_setmode(struct vc_mode *, int);
+extern int console_setcmap(int, unsigned char *,
+			   unsigned char *, unsigned char *);
+extern int console_powermode(int);
+#endif
+
+/* consolemap.c */
+
+struct unimapinit;
+struct unipair;
+
+int con_set_trans_old(unsigned char * table);
+int con_get_trans_old(unsigned char * table);
+int con_set_trans_new(unsigned short * table);
+int con_get_trans_new(unsigned short * table);
+void con_clear_unimap(struct unimapinit *ui);
+int con_set_unimap(ushort ct, struct unipair *list);
+int con_get_unimap(ushort ct, ushort *uct, struct unipair *list);
+void con_set_default_unimap(void);
+
+/* vt.c */
+
+extern unsigned int video_mode_512ch;
+extern unsigned int video_font_height;
+extern unsigned int default_font_height;
+extern unsigned int video_scan_lines;
+
+void complete_change_console(unsigned int new_console);
+int vt_waitactive(int vt);
+void change_console(unsigned int);
+void reset_vc(unsigned int new_console);
+int vt_waitactive(int vt);
 
 #endif /* _VT_KERN_H */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov