1#ifndef __ASM_SH_KEYBOARD_H 2#define __ASM_SH_KEYBOARD_H 3/* 4 * $Id: keyboard.h,v 1.1.1.1 2008/10/15 03:27:26 james26_jang 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#else 14static __inline__ int kbd_setkeycode(unsigned int scancode, 15 unsigned int keycode) 16{ 17 return -EOPNOTSUPP; 18} 19 20static __inline__ int kbd_getkeycode(unsigned int scancode) 21{ 22 return scancode > 127 ? -EINVAL : scancode; 23} 24 25#ifdef CONFIG_SH_DREAMCAST 26extern int kbd_translate(unsigned char scancode, unsigned char *keycode, 27 char raw_mode); 28#else 29static __inline__ int kbd_translate(unsigned char scancode, 30 unsigned char *keycode, char raw_mode) 31{ 32 *keycode = scancode; 33 return 1; 34} 35#endif 36 37static __inline__ char kbd_unexpected_up(unsigned char keycode) 38{ 39 return 0200; 40} 41 42static __inline__ void kbd_leds(unsigned char leds) 43{ 44} 45 46extern void hp600_kbd_init_hw(void); 47extern void dreamcast_kbd_init_hw(void); 48 49static __inline__ void kbd_init_hw(void) 50{ 51 if (MACH_HP600) { 52 hp600_kbd_init_hw(); 53 } 54} 55 56#endif 57#endif 58