patch-1.3.33 linux/drivers/char/kbd_kern.h

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

diff -u --recursive --new-file v1.3.32/linux/drivers/char/kbd_kern.h linux/drivers/char/kbd_kern.h
@@ -33,6 +33,7 @@
 #define VC_SHIFTRLOCK	KG_SHIFTR	/* shiftr lock mode */
 #define VC_CTRLLLOCK	KG_CTRLL 	/* ctrll lock mode */
 #define VC_CTRLRLOCK	KG_CTRLR 	/* ctrlr lock mode */
+	unsigned char slockstate; 	/* for `sticky' Shift, Ctrl, etc. */
 
 	unsigned char ledmode:2; 	/* one 2-bit value */
 #define LED_SHOW_FLAGS 0        /* traditional state */
@@ -61,7 +62,7 @@
 
 extern struct kbd_struct kbd_table[];
 
-extern unsigned long kbd_init(unsigned long);
+extern int kbd_init(void);
 
 extern unsigned char getledstate(void);
 extern void setledstate(struct kbd_struct *kbd, unsigned int led);
@@ -104,6 +105,11 @@
 extern inline void chg_vc_kbd_lock(struct kbd_struct * kbd, int flag)
 {
 	kbd->lockstate ^= 1 << flag;
+}
+
+extern inline void chg_vc_kbd_slock(struct kbd_struct * kbd, int flag)
+{
+	kbd->slockstate ^= 1 << flag;
 }
 
 extern inline void chg_vc_kbd_mode(struct kbd_struct * kbd, int flag)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this