patch-2.1.30 linux/include/asm-sparc/kbio.h

Next file: linux/include/asm-sparc/oplib.h
Previous file: linux/include/asm-sparc/init.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.29/linux/include/asm-sparc/kbio.h linux/include/asm-sparc/kbio.h
@@ -32,6 +32,18 @@
 /* Get keyboard leds */
 #define KIOCGLED    _IOR('k', 15, unsigned char)
 
+/* Used by KIOC[GS]RATE */
+struct kbd_rate {
+	unsigned char delay;	/* Delay in Hz before first repeat.	*/
+	unsigned char rate;	/* In characters per second (0..50).	*/
+};
+
+/* Set keyboard rate */
+#define KIOCSRATE   _IOW('k', 40, struct kbd_rate)
+
+/* Get keyboard rate */
+#define KIOCGRATE   _IOW('k', 41, struct kbd_rate)
+
 /* Top bit records if the key is up or down */
 #define KBD_UP      0x80
 

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