patch-2.1.40 linux/include/asm-m68k/keyboard.h

Next file: linux/include/asm-m68k/pgtable.h
Previous file: linux/include/asm-m68k/hardirq.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.39/linux/include/asm-m68k/keyboard.h linux/include/asm-m68k/keyboard.h
@@ -13,9 +13,43 @@
 
 #ifdef __KERNEL__
 
-#define TRANSLATE_SCANCODES		0
-#define USE_MACHDEP_ABSTRACTION		1
 #include <asm/machdep.h>
+
+static __inline__ int kbd_setkeycode(unsigned int scancode,
+				     unsigned int keycode)
+{
+    return -EOPNOTSUPP;
+}
+
+static __inline__ int kbd_getkeycode(unsigned int scancode)
+{
+    return -EOPNOTSUPP;
+}
+
+static __inline__ int kbd_pretranslate(unsigned char scancode, char raw_mode)
+{
+    return 1;
+}
+
+static __inline__ int kbd_translate(unsigned char scancode,
+				    unsigned char *keycode, char raw_mode)
+{
+    *keycode = scancode;
+    return 1;
+}
+
+static __inline__ char kbd_unexpected_up(unsigned char keycode)
+{
+    return 0200;
+}
+
+static __inline__ void kbd_leds(unsigned char leds)
+{
+    if (mach_kbd_leds)
+	mach_kbd_leds(leds);
+}
+
+#define kbd_init_hw	mach_keyb_init
 
 #endif /* __KERNEL__ */
 

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