patch-2.3.29 linux/include/asm-arm/arch-cl7500/keyboard.h

Next file: linux/include/asm-arm/arch-cl7500/memory.h
Previous file: linux/include/asm-arm/arch-cl7500/irqs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.28/linux/include/asm-arm/arch-cl7500/keyboard.h linux/include/asm-arm/arch-cl7500/keyboard.h
@@ -0,0 +1,29 @@
+/*
+ * linux/include/asm-arm/arch-cl7500/keyboard.h
+ *  from linux/include/asm-arm/arch-rpc/keyboard.h
+ *
+ * Keyboard driver definitions for CL7500 architecture
+ *
+ * (C) 1998 Russell King
+ */
+
+#include <asm/irq.h>
+
+#define NR_SCANCODES 128
+
+extern void ps2kbd_leds(unsigned char leds);
+extern void ps2kbd_init_hw(void);
+extern unsigned char ps2kbd_sysrq_xlate[NR_SCANCODES];
+
+#define kbd_setkeycode(sc,kc)		(-EINVAL)
+#define kbd_getkeycode(sc)		(-EINVAL)
+
+#define kbd_translate(sc, kcp, rm)	({ *(kcp) = (sc); 1; })
+#define kbd_unexpected_up(kc)		(0200)
+#define kbd_leds(leds)			ps2kbd_leds(leds)
+#define kbd_init_hw()			ps2kbd_init_hw()
+#define kbd_sysrq_xlate			ps2kbd_sysrq_xlate
+#define kbd_disable_irq()		disable_irq(IRQ_KEYBOARDRX)
+#define kbd_enable_irq()		enable_irq(IRQ_KEYBOARDRX)
+
+#define SYSRQ_KEY	13

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)