patch-2.4.19 linux-2.4.19/include/asm-arm/arch-clps711x/keyboard.h

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

diff -urN linux-2.4.18/include/asm-arm/arch-clps711x/keyboard.h linux-2.4.19/include/asm-arm/arch-clps711x/keyboard.h
@@ -0,0 +1,26 @@
+/*
+ * linux/include/asm-arm/arch-clps711x/keyboard.h
+ *
+ * Copyright (C) 1998-2001 Russell King
+ */
+#include <asm/mach-types.h>
+
+#define NR_SCANCODES 128
+
+#define kbd_disable_irq()	do { } while (0)
+#define kbd_enable_irq()	do { } while (0)
+
+/*
+ * EDB7211 keyboard driver
+ */
+extern void edb7211_kbd_init_hw(void);
+extern void clps711x_kbd_init_hw(void);
+
+static inline void kbd_init_hw(void)
+{
+	if (machine_is_edb7211())
+		edb7211_kbd_init_hw();
+
+	if (machine_is_autcpu12())
+		clps711x_kbd_init_hw();
+}

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