1 #ifndef __ASM_SH_KEYBOARD_H 2 #define __ASM_SH_KEYBOARD_H 3 /* 4 * $Id: keyboard.h,v 1.2 2001/10/15 04:32:05 mrbrown Exp $ 5 */ 6 7 #include <linux/kd.h> 8 #include <linux/config.h> 9 #include <asm/machvec.h> 10 11 #ifdef CONFIG_SH_EC3104 12 #include <asm/keyboard-ec3104.h> 13 #elif defined(CONFIG_SH_HS7729PCI) 14 #include <asm/keyboard-hs7729pci.h> 15 #else kbd_setkeycode(unsigned int scancode,unsigned int keycode)16static __inline__ int kbd_setkeycode(unsigned int scancode, 17 unsigned int keycode) 18 { 19 return -EOPNOTSUPP; 20 } 21 kbd_getkeycode(unsigned int scancode)22static __inline__ int kbd_getkeycode(unsigned int scancode) 23 { 24 return scancode > 127 ? -EINVAL : scancode; 25 } 26 27 #ifdef CONFIG_SH_DREAMCAST 28 extern int kbd_translate(unsigned char scancode, unsigned char *keycode, 29 char raw_mode); 30 #else kbd_translate(unsigned char scancode,unsigned char * keycode,char raw_mode)31static __inline__ int kbd_translate(unsigned char scancode, 32 unsigned char *keycode, char raw_mode) 33 { 34 *keycode = scancode; 35 return 1; 36 } 37 #endif 38 kbd_unexpected_up(unsigned char keycode)39static __inline__ char kbd_unexpected_up(unsigned char keycode) 40 { 41 return 0200; 42 } 43 kbd_leds(unsigned char leds)44static __inline__ void kbd_leds(unsigned char leds) 45 { 46 } 47 48 extern void hp600_kbd_init_hw(void); 49 extern void dreamcast_kbd_init_hw(void); 50 kbd_init_hw(void)51static __inline__ void kbd_init_hw(void) 52 { 53 if (MACH_HP600) { 54 hp600_kbd_init_hw(); 55 } 56 } 57 58 #endif 59 #endif 60