patch-2.1.42 linux/drivers/char/selection.h

Next file: linux/drivers/char/stallion.c
Previous file: linux/drivers/char/selection.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.41/linux/drivers/char/selection.h linux/drivers/char/selection.h
@@ -3,6 +3,9 @@
  *
  * Interface between console.c, tty_io.c, vt.c, vc_screen.c and selection.c
  */
+
+#include <linux/config.h>
+
 extern int sel_cons;
 
 extern void clear_selection(void);
@@ -11,6 +14,16 @@
 extern int sel_loadlut(const unsigned long arg);
 extern int mouse_reporting(void);
 extern void mouse_report(struct tty_struct * tty, int butt, int mrx, int mry);
+
+#ifdef CONFIG_FB_CONSOLE
+extern unsigned long get_video_num_columns(unsigned int console);
+extern unsigned long get_video_num_lines(unsigned int console);
+extern unsigned long get_video_size_row(unsigned int console);
+#else
+#define get_video_num_columns(dummy) video_num_columns
+#define get_video_num_lines(dummy) video_num_lines
+#define get_video_size_row(dummy) video_size_row
+#endif
 
 extern unsigned long video_num_columns;
 extern unsigned long video_num_lines;

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