v2.4.8 -> v2.4.8.1
[opensuse:kernel.git] / include / asm-alpha / keyboard.h
1 /*
2  *  linux/include/asm-alpha/keyboard.h
3  *
4  *  Created 3 Nov 1996 by Geert Uytterhoeven
5  */
6
7 /*
8  *  This file contains the alpha architecture specific keyboard definitions
9  */
10
11 #ifndef _ALPHA_KEYBOARD_H
12 #define _ALPHA_KEYBOARD_H
13
14 #ifdef __KERNEL__
15
16 #define KEYBOARD_IRQ                    1
17 #define DISABLE_KBD_DURING_INTERRUPTS   0
18
19 extern int pckbd_setkeycode(unsigned int scancode, unsigned int keycode);
20 extern int pckbd_getkeycode(unsigned int scancode);
21 extern int pckbd_translate(unsigned char scancode, unsigned char *keycode,
22                            char raw_mode);
23 extern char pckbd_unexpected_up(unsigned char keycode);
24 extern void pckbd_leds(unsigned char leds);
25 extern int pckbd_rate(struct kbd_repeat *rep);
26 extern void pckbd_init_hw(void);
27 extern unsigned char pckbd_sysrq_xlate[128];
28
29 #define kbd_setkeycode          pckbd_setkeycode
30 #define kbd_getkeycode          pckbd_getkeycode
31 #define kbd_translate           pckbd_translate
32 #define kbd_unexpected_up       pckbd_unexpected_up
33 #define kbd_leds                pckbd_leds
34 #define kbd_rate               pckbd_rate
35 #define kbd_init_hw             pckbd_init_hw
36 #define kbd_sysrq_xlate         pckbd_sysrq_xlate
37
38 #define INIT_KBD
39
40 #define SYSRQ_KEY 0x54
41
42 /* resource allocation */
43 #define kbd_request_region()
44 #define kbd_request_irq(handler) request_irq(KEYBOARD_IRQ, handler, 0, \
45                                              "keyboard", NULL)
46
47 /* How to access the keyboard macros on this platform.  */
48 #define kbd_read_input() inb(KBD_DATA_REG)
49 #define kbd_read_status() inb(KBD_STATUS_REG)
50 #define kbd_write_output(val) outb(val, KBD_DATA_REG)
51 #define kbd_write_command(val) outb(val, KBD_CNTL_REG)
52
53 /* Some stoneage hardware needs delays after some operations.  */
54 #define kbd_pause() do { } while(0)
55
56 /*
57  * Machine specific bits for the PS/2 driver
58  */
59
60 #define AUX_IRQ 12
61
62 #define aux_request_irq(hand, dev_id)                                  \
63        request_irq(AUX_IRQ, hand, SA_SHIRQ, "PS/2 Mouse", dev_id)
64
65 #define aux_free_irq(dev_id) free_irq(AUX_IRQ, dev_id)
66
67 #endif /* __KERNEL__ */
68
69 #endif /* __ASMalpha_KEYBOARD_H */