xref: /openbmc/u-boot/include/linux/input.h (revision 3ba98ed8)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Copyright (c) 1999-2002 Vojtech Pavlik
4  */
5 
6 #ifndef _LINUX_INPUT_H
7 #define _LINUX_INPUT_H
8 
9 /*
10  * Keys and buttons
11  *
12  * Most of the keys/buttons are modeled after USB HUT 1.12
13  * (see http://www.usb.org/developers/hidpage).
14  * Abbreviations in the comments:
15  * AC - Application Control
16  * AL - Application Launch Button
17  * SC - System Control
18  */
19 
20 #define KEY_RESERVED		0
21 #define KEY_ESC			1
22 #define KEY_1			2
23 #define KEY_2			3
24 #define KEY_3			4
25 #define KEY_4			5
26 #define KEY_5			6
27 #define KEY_6			7
28 #define KEY_7			8
29 #define KEY_8			9
30 #define KEY_9			10
31 #define KEY_0			11
32 #define KEY_MINUS		12
33 #define KEY_EQUAL		13
34 #define KEY_BACKSPACE		14
35 #define KEY_TAB			15
36 #define KEY_Q			16
37 #define KEY_W			17
38 #define KEY_E			18
39 #define KEY_R			19
40 #define KEY_T			20
41 #define KEY_Y			21
42 #define KEY_U			22
43 #define KEY_I			23
44 #define KEY_O			24
45 #define KEY_P			25
46 #define KEY_LEFTBRACE		26
47 #define KEY_RIGHTBRACE		27
48 #define KEY_ENTER		28
49 #define KEY_LEFTCTRL		29
50 #define KEY_A			30
51 #define KEY_S			31
52 #define KEY_D			32
53 #define KEY_F			33
54 #define KEY_G			34
55 #define KEY_H			35
56 #define KEY_J			36
57 #define KEY_K			37
58 #define KEY_L			38
59 #define KEY_SEMICOLON		39
60 #define KEY_APOSTROPHE		40
61 #define KEY_GRAVE		41
62 #define KEY_LEFTSHIFT		42
63 #define KEY_BACKSLASH		43
64 #define KEY_Z			44
65 #define KEY_X			45
66 #define KEY_C			46
67 #define KEY_V			47
68 #define KEY_B			48
69 #define KEY_N			49
70 #define KEY_M			50
71 #define KEY_COMMA		51
72 #define KEY_DOT			52
73 #define KEY_SLASH		53
74 #define KEY_RIGHTSHIFT		54
75 #define KEY_KPASTERISK		55
76 #define KEY_LEFTALT		56
77 #define KEY_SPACE		57
78 #define KEY_CAPSLOCK		58
79 #define KEY_F1			59
80 #define KEY_F2			60
81 #define KEY_F3			61
82 #define KEY_F4			62
83 #define KEY_F5			63
84 #define KEY_F6			64
85 #define KEY_F7			65
86 #define KEY_F8			66
87 #define KEY_F9			67
88 #define KEY_F10			68
89 #define KEY_NUMLOCK		69
90 #define KEY_SCROLLLOCK		70
91 #define KEY_KP7			71
92 #define KEY_KP8			72
93 #define KEY_KP9			73
94 #define KEY_KPMINUS		74
95 #define KEY_KP4			75
96 #define KEY_KP5			76
97 #define KEY_KP6			77
98 #define KEY_KPPLUS		78
99 #define KEY_KP1			79
100 #define KEY_KP2			80
101 #define KEY_KP3			81
102 #define KEY_KP0			82
103 #define KEY_KPDOT		83
104 
105 #define KEY_ZENKAKUHANKAKU	85
106 #define KEY_102ND		86
107 #define KEY_F11			87
108 #define KEY_F12			88
109 #define KEY_RO			89
110 #define KEY_KATAKANA		90
111 #define KEY_HIRAGANA		91
112 #define KEY_HENKAN		92
113 #define KEY_KATAKANAHIRAGANA	93
114 #define KEY_MUHENKAN		94
115 #define KEY_KPJPCOMMA		95
116 #define KEY_KPENTER		96
117 #define KEY_RIGHTCTRL		97
118 #define KEY_KPSLASH		98
119 #define KEY_SYSRQ		99
120 #define KEY_RIGHTALT		100
121 #define KEY_LINEFEED		101
122 #define KEY_HOME		102
123 #define KEY_UP			103
124 #define KEY_PAGEUP		104
125 #define KEY_LEFT		105
126 #define KEY_RIGHT		106
127 #define KEY_END			107
128 #define KEY_DOWN		108
129 #define KEY_PAGEDOWN		109
130 #define KEY_INSERT		110
131 #define KEY_DELETE		111
132 #define KEY_MACRO		112
133 #define KEY_MUTE		113
134 #define KEY_VOLUMEDOWN		114
135 #define KEY_VOLUMEUP		115
136 #define KEY_POWER		116	/* SC System Power Down */
137 #define KEY_KPEQUAL		117
138 #define KEY_KPPLUSMINUS		118
139 #define KEY_PAUSE		119
140 #define KEY_SCALE		120	/* AL Compiz Scale (Expose) */
141 
142 #define KEY_KPCOMMA		121
143 #define KEY_HANGEUL		122
144 #define KEY_HANGUEL		KEY_HANGEUL
145 #define KEY_HANJA		123
146 #define KEY_YEN			124
147 #define KEY_LEFTMETA		125
148 #define KEY_RIGHTMETA		126
149 #define KEY_COMPOSE		127
150 #define KEY_FN			0x1d0
151 
152 #endif
153