OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [include/] [asm-sh/] [keyboard.h] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#ifndef __ASM_SH_KEYBOARD_H
2
#define __ASM_SH_KEYBOARD_H
3
/*
4
 *      $Id: keyboard.h,v 1.1.1.1 2004-04-15 02:37:45 phoenix 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
16
static __inline__ int kbd_setkeycode(unsigned int scancode,
17
                                     unsigned int keycode)
18
{
19
    return -EOPNOTSUPP;
20
}
21
 
22
static __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
31
static __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
 
39
static __inline__ char kbd_unexpected_up(unsigned char keycode)
40
{
41
    return 0200;
42
}
43
 
44
static __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
 
51
static __inline__ void kbd_init_hw(void)
52
{
53
        if (MACH_HP600) {
54
                hp600_kbd_init_hw();
55
        }
56
}
57
 
58
#endif
59
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.