M68k keyboard
PATCH 1/1 M68k keyboard
M68k: Add missing definitions for pc_keyb.c, which is used on Mac if the input core is enabled (from Joshua Thompson, Ray Knight, and David D. Kilzer), and fix up a resulting conflict with the Q40/Q60 keyboard driver.
include/asm-m68k/keyboard.h +5 -0
@@ -117,6 +117,11 @@#define kbd_request_region ()#define kbd_request_irq (handler) +/* How to access the keyboard macros on this platform. */ +#define kbd_read_input () in_8(KBD_DATA_REG) +#define kbd_read_status () in_8(KBD_STATUS_REG) +#define kbd_write_output (val) out_8(KBD_DATA_REG, val) +#define kbd_write_command (val) out_8(KBD_CNTL_REG, val)extern unsigned int SYSRQ_KEY ;#endif /* !CONFIG_TEKXP */
drivers/char/q40_keyb.c +2 -2
@@ -400,7 +400,7 @@#define KBD_NO_DATA (-1)/* No data */ #define KBD_BAD_DATA (-2)/* Parity or other error */ -static int __init kbd_read_input (void ) +static int __init q40kbd_read_input (void ) {int retval =KBD_NO_DATA ;unsigned char status;
@@ -421,7 +421,7 @@int maxread =100 ;/* Random number */ do { -if (kbd_read_input () ==KBD_NO_DATA ) +if (q40kbd_read_input () ==KBD_NO_DATA )break ; }while (--maxread); }
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds