patch-2.1.129 linux/drivers/char/vt.c

Next file: linux/drivers/macintosh/Makefile
Previous file: linux/drivers/char/random.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.128/linux/drivers/char/vt.c linux/drivers/char/vt.c
@@ -57,6 +57,11 @@
 
 struct vt_struct *vt_cons[MAX_NR_CONSOLES];
 
+/* Keyboard type: Default is KB_101, but can be set by machine
+ * specific code.
+ */
+unsigned char keyboard_type = KB_101;
+
 #ifndef __alpha__
 asmlinkage int sys_ioperm(unsigned long from, unsigned long num, int on);
 #endif
@@ -462,7 +467,7 @@
 		/*
 		 * this is naive.
 		 */
-		ucval = KB_101;
+		ucval = keyboard_type;
 		goto setchar;
 
 #ifndef __alpha__

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