patch-2.3.49 linux/include/asm-arm/arch-nexuspci/keyboard.h

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

diff -u --recursive --new-file v2.3.48/linux/include/asm-arm/arch-nexuspci/keyboard.h linux/include/asm-arm/arch-nexuspci/keyboard.h
@@ -0,0 +1,29 @@
+/*
+ * linux/include/asm-arm/arch-nexuspci/keyboard.h
+ *
+ * Driver definitions for PCI card dummy keyboard.
+ *
+ * Copyright (C) 1998 Russell King
+ * Copyright (C) 1998 Philip Blundell
+ */
+
+#define NR_SCANCODES 128
+
+#define kbd_setkeycode(sc,kc)		(-EINVAL)
+#define kbd_getkeycode(sc)		(-EINVAL)
+
+/* Prototype: int kbd_pretranslate(scancode, raw_mode)
+ * Returns  : 0 to ignore scancode
+ */
+#define kbd_pretranslate(sc,rm)	(1)
+
+/* Prototype: int kbd_translate(scancode, *keycode, *up_flag, raw_mode)
+ * Returns  : 0 to ignore scancode, *keycode set to keycode, *up_flag
+ *            set to 0200 if scancode indicates release
+ */
+#define kbd_translate(sc, kcp, rm) 0
+#define kbd_unexpected_up(kc)		(0200)
+#define kbd_leds(leds)			do { } while (0)
+#define kbd_init_hw()			do { } while (0)
+#define kbd_disable_irq()		do { } while (0)
+#define kbd_enable_irq()		do { } while (0)

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