MOXA linux-2.6.x / linux-2.6.19-uc1 from UC-7110-LX-BOOTLOADER-1.9_VERSION-4.2.tgz
[linux-2.6.19-moxart.git] / include / asm-arm / arch-s3c24a0 / s3c24a0-key.h
blobec6876a66c2753dacf74306c77944114b273ac2a
1 /*
2 * include/asm-arm/arch-s3c24a0/s3c24a0-key.h
4 * $Id: s3c24a0-key.h,v 1.2 2005/11/28 03:55:11 gerg Exp $
6 * This file is subject to the terms and conditions of the GNU General Public
7 * License. See the file COPYING in the main directory of this archive
8 * for more details.
9 *
10 * Changes
12 * 2004/06/15 <heechul.yun@samsung.com> Added SPJ key scancode
15 #ifndef _SPJ_KEY_H_
16 #define _SPJ_KEY_H_
17 #ifndef __ASSEMBLY__
19 #define KEY_RELEASED 0
20 #define KEY_PRESSED 1
23 * Definition of Generic Key Scancode
25 #define SCANCODE_LEFT 0x69
26 #define SCANCODE_RIGHT 0x6a
27 #define SCANCODE_UP 0x67
28 #define SCANCODE_DOWN 0x6c
29 #define SCANCODE_ENTER 0x1c
30 #define SCANCODE_PAGE_UP 0x68 /* Page Up */
31 #define SCANCODE_PAGE_DOWN 0x6d /* Page Down */
32 #define SCANCODE_BKSP 0x0e /* Back Space */
35 * Key PAD
37 #define SCANCODE_PAD_0 0x52
38 #define SCANCODE_PAD_1 0x4f
39 #define SCANCODE_PAD_2 0x50
40 #define SCANCODE_PAD_3 0x51
41 #define SCANCODE_PAD_4 0x4b
42 #define SCANCODE_PAD_5 0x4c
43 #define SCANCODE_PAD_6 0x4d
44 #define SCANCODE_PAD_7 0x47
45 #define SCANCODE_PAD_8 0x48
46 #define SCANCODE_PAD_9 0x49
47 #define SCANCODE_PAD_MINUS 0x4a
48 #define SCANCODE_PAD_PLUS 0x4e
49 #define SCANCODE_PAD_ENTER 0x60
50 #define SCANCODE_PAD_PERIOD 0x53
51 #define SCANCODE_PAD_SLASH 0x62
52 #define SCANCODE_PAD_ASTERISK 0x37
55 * Function Key
57 #define SCANCODE_F5 0x3f
58 #define SCANCODE_F6 0x40
59 #define SCANCODE_F7 0x41
60 #define SCANCODE_F8 0x42
61 #define SCANCODE_F9 0x43
62 #define SCANCODE_F10 0x44
63 #define SCANCODE_F11 0x57
64 #define SCANCODE_F12 0x58
67 * Undefined Region
69 #define SCANCODE_U1 0x78 /* Unknown */
70 #define SCANCODE_U2 0x79 /* Unknown */
71 #define SCANCODE_U3 0x70 /* Unknown */
72 #define SCANCODE_U4 0x71 /* Unknown */
73 #define SCANCODE_U5 0x72 /* Unknown */
74 #define SCANCODE_U6 0x73 /* Unknown */
75 #define SCANCODE_U7 0x74 /* Unknown */
76 #define SCANCODE_U8 0x75 /* Unknown */
77 #define SCANCODE_U9 0x76 /* Unknown */
80 * Common key definition for PDA
82 #define SCANCODE_POWER 0x7a
83 #define SCANCODE_RECORD 0x7b
84 #define SCANCODE_ACTION SCANCODE_ENTER
85 #define SCANCODE_SLIDE_UP SCANCODE_PAGE_UP
86 #define SCANCODE_SLIDE_DOWN SCANCODE_PAGE_DOWN
87 #define SCANCODE_SLIDE_CENTER SCANCODE_PAD_ENTER
90 * Common key definition for Phone
92 #define SCANCODE_ASTERISK SCANCODE_PAD_ASTERISK
93 #define SCANCODE_SHARP SCANCODE_PAD_MINUS
94 #define SCANCODE_SEND 0x7c
95 #define SCANCODE_END 0x7d
96 #define SCANCODE_MENU 0x7e
97 #define NCODE_CLR 0x7f
100 /* These are the scancodes for SPJ buttons on the SMDK24a0 */
102 #define scPOWER 120 /* sw1 - 0x78 */
103 #define scMENU 121 /* sw3 - 0x79 */
104 #define scTOOL 122 /* sw13 - 0x7a */
105 #define scRETURN 123 /* sw11 - 0x7b */
106 #define scVOLUP 124 /* sw5 - 0x7c */
107 #define scVOLDOWN 125 /* sw10 - 0x7d */
108 #define scHOLD 126 /* sw21 - 0x7e*/
109 #define scUP 103 /* sw2, - 0x67 keycode up*/
110 #define scRIGHT 106 /* sw8, - 0x6a keycode right */
111 #define scLEFT 105 /* sw6, - 0x69 keycode left */
112 #define scDOWN 108 /* sw12, - 0x6c keycode down */
113 #define scACTION 96 /* sw7, - 0x60 keycode keypad enter */
115 #endif /* __ASSEMBLY__ */
116 #endif /* _SPJ_KEY_H_ */