patch-2.2.12 linux/include/asm-ppc/keyboard.h
Next file: linux/include/asm-ppc/ohare.h
Previous file: linux/include/asm-ppc/feature.h
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Wed Aug 25 17:29:49 1999
- Orig file:
v2.2.11/linux/include/asm-ppc/keyboard.h
- Orig date:
Mon Aug 9 16:05:57 1999
diff -u --recursive --new-file v2.2.11/linux/include/asm-ppc/keyboard.h linux/include/asm-ppc/keyboard.h
@@ -29,6 +29,10 @@
#define DISABLE_KBD_DURING_INTERRUPTS 0
#define INIT_KBD
+#ifdef CONFIG_PREP
+extern int prep_kbd_present;
+#endif /* CONFIG_PREP */
+
static inline int kbd_setkeycode(unsigned int scancode, unsigned int keycode)
{
return ppc_md.kbd_setkeycode(scancode, keycode);
@@ -52,12 +56,18 @@
static inline void kbd_leds(unsigned char leds)
{
- ppc_md.kbd_leds(leds);
+#ifdef CONFIG_PREP
+ if (prep_kbd_present)
+#endif /* CONFIG_PREP */
+ ppc_md.kbd_leds(leds);
}
static inline void kbd_init_hw(void)
{
- ppc_md.kbd_init_hw();
+#ifdef CONFIG_PREP
+ if (prep_kbd_present)
+#endif /* CONFIG_PREP */
+ ppc_md.kbd_init_hw();
}
#define kbd_sysrq_xlate (ppc_md.kbd_sysrq_xlate)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)