1 /* $Id: keyboard.h,v 1.5 2001/08/18 09:40:46 davem Exp $
2  * linux/include/asm-sparc64/keyboard.h
3  *
4  * Created Aug 29 1997 by Eddie C. Dost (ecd@skynet.be)
5  */
6 
7 /*
8  *  This file contains the Ultra/PCI architecture specific keyboard definitions
9  */
10 
11 #ifndef _SPARC64_KEYBOARD_H
12 #define _SPARC64_KEYBOARD_H 1
13 
14 #ifdef __KERNEL__
15 
16 #include <linux/kernel.h>
17 #include <linux/kd.h>
18 
19 #define KEYBOARD_IRQ			1
20 #define DISABLE_KBD_DURING_INTERRUPTS	0
21 
22 extern int pcikbd_setkeycode(unsigned int scancode, unsigned int keycode);
23 extern int pcikbd_getkeycode(unsigned int scancode);
24 extern int pcikbd_translate(unsigned char scancode, unsigned char *keycode,
25 			    char raw_mode);
26 extern char pcikbd_unexpected_up(unsigned char keycode);
27 extern void pcikbd_leds(unsigned char leds);
28 extern void pcikbd_init_hw(void);
29 extern unsigned char pcikbd_sysrq_xlate[128];
30 
31 #define kbd_setkeycode			pcikbd_setkeycode
32 #define kbd_getkeycode			pcikbd_getkeycode
33 #define kbd_translate			pcikbd_translate
34 #define kbd_unexpected_up		pcikbd_unexpected_up
35 #define kbd_leds			pcikbd_leds
36 #define kbd_init_hw			pcikbd_init_hw
37 #define kbd_sysrq_xlate			pcikbd_sysrq_xlate
38 #define kbd_init			pcikbd_init
39 
40 #define compute_shiftstate		pci_compute_shiftstate
41 #define getkeycode			pci_getkeycode
42 #define setkeycode			pci_setkeycode
43 #define getledstate			pci_getledstate
44 #define setledstate			pci_setledstate
45 #define register_leds			pci_register_leds
46 
47 #define SYSRQ_KEY 0x54
48 
49 #endif /* __KERNEL__ */
50 
51 #endif /* !(_SPARC64_KEYBOARD_H) */
52