Put pciehci.device in DEVS:USBHardware, like the other host-controller
[AROS.git] / workbench / devs / keymaps / pc105_rus.c
blob3d99bd9c77c365d25dfab4d688d4352c65495c58
1 // Kbdru_Russian_pkf.txt
2 /*
3 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
4 $Id$
6 Desc: Russian PC105 Keymap
7 Lang: English
8 */
10 #include <devices/keymap.h>
12 STATIC char keymapname[] = "pc105_rus";
14 STATIC CONST UBYTE lokeymaptypes[];
15 STATIC CONST IPTR lokeymap[];
16 STATIC CONST UBYTE locapsable[];
17 STATIC CONST UBYTE lorepeatable[];
19 STATIC CONST UBYTE hikeymaptypes[];
20 STATIC CONST IPTR hikeymap[];
21 STATIC CONST UBYTE hicapsable[];
22 STATIC CONST UBYTE hirepeatable[];
24 CONST struct KeyMapNode km =
27 NULL, NULL, 0, 0, keymapname
30 (UBYTE *)lokeymaptypes,
31 (IPTR *)lokeymap,
32 (UBYTE *)locapsable,
33 (UBYTE *)lorepeatable,
34 (UBYTE *)hikeymaptypes,
35 (IPTR *)hikeymap,
36 (UBYTE *)hicapsable,
37 (UBYTE *)hirepeatable
41 #undef N
42 #undef S
43 #undef A
44 #undef C
45 #undef D
46 #undef V
47 #undef ST
48 #undef NOP
50 #define N KC_NOQUAL
51 #define S KCF_SHIFT
52 #define A KCF_ALT
53 #define C KCF_CONTROL
54 #define D KCF_DEAD
55 #define V KC_VANILLA
56 #define ST KCF_STRING
57 #define NOP KCF_NOP
59 #define EUR 0xA4 /* ISO 8859-15: Euro = 164 = 0xA4) */
61 STATIC CONST UBYTE lokeymaptypes[] =
63 S, /* 00 */
64 S, /* 01 */
65 S|A, /* 02 */
66 S|A, /* 03 */
67 S|A, /* 04 */
68 S, /* 05 */
69 S, /* 06 */
70 S, /* 07 */
71 S, /* 08 */
72 S, /* 09 */
73 S, /* 0A */
74 S, /* 0B */
75 S, /* 0C */
76 N, /* 0D */
77 N, /* 0E */
78 S|A, /* 0F */
79 V, /* 10 q */
80 V, /* 11 w */
81 V, /* 12 e */
82 V, /* 13 r */
83 V, /* 14 t */
84 V, /* 15 z */
85 V, /* 16 u */
86 V, /* 17 i */
87 V, /* 18 o */
88 V, /* 19 p */
89 S, /* 1A */
90 S|A, /* 1B */
91 S|A, /* 1C */
92 S|A, /* 1D */
93 S|A, /* 1E */
94 S|A, /* 1F */
95 V, /* 20 a */
96 V, /* 21 s */
97 V, /* 22 d */
98 V, /* 23 f */
99 V, /* 24 g */
100 V, /* 25 h */
101 V, /* 26 j */
102 V, /* 27 k */
103 V, /* 28 l */
104 S, /* 29 */
105 S, /* 2A */
106 S, /* 2B */
107 N, /* 2C */
108 N, /* 2D */
109 N, /* 2E */
110 N, /* 2F */
111 S|A, /* 30 */
112 V, /* 31 y */
113 V, /* 32 x */
114 V, /* 33 c */
115 V, /* 34 v */
116 V, /* 35 b */
117 V, /* 36 n */
118 V, /* 37 m */
119 S|A, /* 38 */
120 S|A, /* 39 */
121 S, /* 3A */
122 N, /* 3B */
123 N, /* 3C */
124 N, /* 3D */
125 N, /* 3E */
126 N, /* 3F */
129 STATIC CONST UBYTE hikeymaptypes[] =
131 N, /* 40 SPACE */
132 N, /* 41 BACKSPACE */
133 ST|S, /* 42 TAB */
134 N, /* 43 ENTER */
135 C, /* 44 RETURN */
136 A, /* 45 ESCAPE */
137 N, /* 46 DEL */
138 ST|S, /* 47 INSERT ?? */
139 ST|S, /* 48 PAGE UP ?? */
140 ST|S, /* 49 PAGE DOWN ?? */
141 N, /* 4A NUMERIC PAD - */
142 ST|S, /* 4B F11 ?? */
143 ST|S, /* 4C CURSORUP*/
144 ST|S, /* 4D CURSORDOWN */
145 ST|S, /* 4E CURSORRIGHT */
146 ST|S, /* 4F CURSORLEFT */
147 ST|S, /* 50 F1 */
148 ST|S, /* 51 F2 */
149 ST|S, /* 52 F3 */
150 ST|S, /* 53 F4 */
151 ST|S, /* 54 F5 */
152 ST|S, /* 55 F6 */
153 ST|S, /* 56 F7 */
154 ST|S, /* 57 F8 */
155 ST|S, /* 58 F9 */
156 ST|S, /* 59 F10 */
157 NOP, /* 5A NUMLOCK */
158 N, /* 5B NUMPAD ) */
159 N, /* 5C NUMPAD / */
160 N, /* 5D NUMPAD * */
161 N, /* 5E NUMPAD + */
162 ST, /* 5F HELP */
163 NOP, /* 60 LEFT SHIFT*/
164 NOP, /* 61 RIGHT SHIFT */
165 NOP, /* 62 CAPS LOCK */
166 NOP, /* 63 CONTROL */
167 NOP, /* 64 LALT */
168 NOP, /* 65 RALT */
169 NOP, /* 66 LCOMMAND */
170 NOP, /* 67 RCOMMAND */
171 NOP, /* 68 LEFT MOUSE BUTTON*/
172 NOP, /* 69 RIGHT MOUSE BUTTON */
173 NOP, /* 6A MIDDLE MOUSE BUTTON */
174 NOP, /* 6B */
175 NOP, /* 6C */
176 NOP, /* 6D */
177 ST|A, /* 6E PAUSE/BREAK ??*/
178 ST|S, /* 6F F12 ?? */
179 ST|C, /* 70 HOME ?? */
180 ST|C, /* 71 END ?? */
181 NOP, /* 72 */
182 NOP, /* 73 */
183 NOP, /* 74 */
184 NOP, /* 75 */
185 NOP, /* 76 */
186 NOP, /* 77 */
187 NOP, /* 78 */
188 NOP, /* 79 */
189 NOP, /* 7A */
190 NOP, /* 7B */
191 NOP, /* 7C */
192 NOP, /* 7D */
193 NOP, /* 7E */
194 NOP /* 7F */
197 #undef N
198 #undef S
199 #undef A
200 #undef C
201 #undef D
202 #undef V
203 #undef ST
204 #undef NOP
206 #undef STRING
207 #undef DEAD
208 #undef BYTES
210 #define STRING(x) (IPTR)x
211 #define DEAD(x) (IPTR)x
212 #define BYTES(b0, b1, b2, b3) \
213 (((UBYTE)b0)<<24) | (((UBYTE)b1)<<16) | (((UBYTE)b2)<<8) | (((UBYTE)b3)<<0)
215 STATIC CONST IPTR lokeymap[] =
217 /*---- 1st QWERTY row - 0x00 to 0x0F */
218 BYTES(0xA6,0x7E,0xA8,0xB8),
219 BYTES(0xB9,0xB1,'!' ,'1' ),
220 BYTES(0xB2,'@' ,0x22,'2' ),
221 BYTES(0xB3,0xA1,0xB9,'3' ),
222 BYTES(0xBC,'$' ,';' ,'4' ),
223 BYTES(0xBD,0xBF,'%' ,'5' ),
224 BYTES(0xBE,0x5E,':' ,'6' ),
225 BYTES(0x83,'&' ,'?' ,'7' ),
226 BYTES(0xAB,0x8B,'*' ,'8' ),
227 BYTES(0xBB,0x9B,'(' ,'9' ),
228 BYTES(0x84,0x82,')' ,'0' ),
229 BYTES(0x93,0x91,'_' ,'-' ),
230 BYTES(0x94,0x92,'+' ,'=' ),
231 BYTES(0xA6,0x7E,0xA8,0xB8),
232 BYTES(0, 0, 0, 0 ),
233 BYTES('0', '0', '0', '0'),
234 /*---- 2nd QWERTY row - 0x10 to 0x1F */
235 BYTES('Q' ,'q' ,0xC9,0xE9),
236 BYTES('W' ,'w' ,0xD6,0xF6),
237 BYTES('E' ,'e' ,0xD3,0xF3),
238 BYTES('R' ,'r' ,0xCA,0xEA),
239 BYTES('T' ,'t' ,0xC5,0xE5),
240 BYTES('Y' ,'y' ,0xCD,0xED),
241 BYTES('U' ,'u' ,0xC3,0xE3),
242 BYTES('I' ,'i' ,0xD8,0xF8),
243 BYTES('O' ,'o' ,0xD9,0xF9),
244 BYTES('P' ,'p' ,0xC7,0xE7),
245 BYTES('{' ,'[' ,0xD5,0xF5),
246 BYTES('}' ,']' ,0xDA,0xFA),
247 BYTES(0, 0, 0, 0 ),
248 BYTES('1', '1', '1', '1'),
249 BYTES('2', '2', '2', '2'),
250 BYTES('3', '3', '3', '3'),
251 /*---- 3rd QWERTY row - 0x20 to 0x2F */
252 BYTES('A' ,'a' ,0xD4,0xF4),
253 BYTES('S' ,'s' ,0xDB,0xFB),
254 BYTES('D' ,'d' ,0xC2,0xE2),
255 BYTES('F' ,'f' ,0xC0,0xE0),
256 BYTES('G' ,'g' ,0xCF,0xEF),
257 BYTES('H' ,'h' ,0xD0,0xF0),
258 BYTES('J' ,'j' ,0xCE,0xEE),
259 BYTES('K' ,'k' ,0xCB,0xEB),
260 BYTES('L' ,'l' ,0xC4,0xE4),
261 BYTES(':' ,';' ,0xC6,0xE6),
262 BYTES(0x22,0x27,0xDD,0xFD),
263 BYTES(0x7C,0x5C,0x2F,0x5C),
264 BYTES(0, 0, 0, 0 ),
265 BYTES('4', '4', '4', '4'),
266 BYTES('5', '5', '5', '5'),
267 BYTES('6', '6', '6', '6'),
268 /*---- 4th QWERTY row - 0x30 to 0x3F */
269 BYTES('>' ,'<' ,0x7C,0x5C),
270 BYTES('Z' ,'z' ,0xDF,0xFF),
271 BYTES('X' ,'x' ,0xD7,0xF7),
272 BYTES('C' ,'c' ,0xD1,0xF1),
273 BYTES('V' ,'v' ,0xCC,0xEC),
274 BYTES('B' ,'b' ,0xC8,0xE8),
275 BYTES('N' ,'n' ,0xD2,0xF2),
276 BYTES('M' ,'m' ,0xDC,0xFC),
277 BYTES('<' ,',' ,0xC1,0xE1),
278 BYTES('>' ,'.' ,0xDE,0xFE),
279 BYTES('?' ,0x2F,',' ,'.' ),
280 BYTES(0, 0, 0, 0 ),
281 BYTES(',', '.', ',', '.'),
282 BYTES('7', '7', '7', '7'),
283 BYTES('8', '8', '8', '8'),
284 BYTES('9', '9', '9', '9'),
287 #include "standard.h"
289 STATIC CONST IPTR hikeymap[] =
291 BYTES(' ', ' ', ' ', ' '), /* 40 */
292 BYTES(8, 8, 8, 8), /* 41 BACKSPACE*/
293 STRING(tab_descr), /* 42 TAB */
294 BYTES(13, 13, 13, 13), /* 43 ENTER */
295 BYTES(0, 0, 10, 13), /* 44 RETURN */
296 BYTES(0, 0, 0x9B, 27), /* 45 ESCAPE */
297 BYTES(127, 127, 127, 127), /* 46 DEL */
298 STRING(insert_descr), /* 47 INSERT ?? */
299 STRING(pageup_descr), /* 48 PAGEUP ?? */
300 STRING(pagedown_descr), /* 49 PAGEDOWN ?? */
301 BYTES('-', '-', '-', '-'), /* 4A NUMPAD - */
302 STRING(f11_descr), /* 4B F11 ?? */
303 STRING(up_descr), /* 4C CURSOR UP*/
304 STRING(down_descr), /* 4D CURSOR DOWN*/
305 STRING(right_descr), /* 4E CURSOR RIGHT */
306 STRING(left_descr), /* 4F CURSOR LEFT */
307 STRING(f1_descr), /* 50 F1 */
308 STRING(f2_descr), /* 51 */
309 STRING(f3_descr), /* 52 */
310 STRING(f4_descr), /* 53 */
311 STRING(f5_descr), /* 54 */
312 STRING(f6_descr), /* 55 */
313 STRING(f7_descr), /* 56 */
314 STRING(f8_descr), /* 57 */
315 STRING(f9_descr), /* 58 */
316 STRING(f10_descr), /* 59 */
317 BYTES(0, 0, 0, 0), /* 5A */
318 BYTES('/', '/', '/', '/'), /* 5B */
319 BYTES('*', '*', '*', '*'), /* 5C */
320 BYTES('-', '-', '-', '-'), /* 5D */
321 BYTES('+', '+', '+', '+'), /* 5E */
322 STRING(help_descr), /* 5F HELP */
323 BYTES(0, 0, 0, 0), /* 60 */
324 BYTES(0, 0, 0, 0), /* 61 */
325 BYTES(0, 0, 0, 0), /* 62 */
326 BYTES(0, 0, 0, 0), /* 63 */
327 BYTES(0, 0, 0, 0), /* 64 */
328 BYTES(0, 0, 0, 0), /* 65 */
329 BYTES(0, 0, 0, 0), /* 66 */
330 BYTES(0, 0, 0, 0), /* 67 */
331 BYTES(0, 0, 0, 0), /* 68 */
332 BYTES(0, 0, 0, 0), /* 69 */
333 BYTES(0, 0, 0, 0), /* 6A */
334 BYTES(0, 0, 0, 0), /* 6B */
335 BYTES(0, 0, 0, 0), /* 6C */
336 BYTES(0, 0, 0, 0), /* 6D */
337 STRING(pausebreak_descr), /* 6E PAUSE/BREAK ?? */
338 STRING(f12_descr), /* 6F F12 ?? */
339 STRING(home_descr), /* 70 HOME ?? */
340 STRING(end_descr), /* 71 END ?? */
341 BYTES(0, 0, 0, 0), /* 72 */
342 BYTES(0, 0, 0, 0), /* 73 */
343 BYTES(0, 0, 0, 0), /* 74 */
344 BYTES(0, 0, 0, 0), /* 75 */
345 BYTES(0, 0, 0, 0), /* 76 */
346 BYTES(0, 0, 0, 0), /* 77 */
347 BYTES(0, 0, 0, 0), /* 78 */
348 BYTES(0, 0, 0, 0), /* 79 */
349 BYTES(0, 0, 0, 0), /* 7A */
350 BYTES(0, 0, 0, 0), /* 7B */
351 BYTES(0, 0, 0, 0), /* 7C */
352 BYTES(0, 0, 0, 0), /* 7D */
353 BYTES(0, 0, 0, 0), /* 7E */
354 BYTES(0, 0, 0, 0), /* 7F */
357 #undef SETBITS
359 #define SETBITS(b0, b1, b2, b3, b4, b5, b6, b7) \
360 (b0<<0)|(b1<<1)|(b2<<2)|(b3<<3)|(b4<<4)|(b5<<5)|(b6<<6)|(b7<<7)
362 STATIC CONST UBYTE locapsable[] =
364 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 00 - 07 */
365 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 08 - 0F */
367 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 10 - 17 */
368 SETBITS(1, 1, 1, 0, 0, 0, 0, 0), /* 18 - 1F */
370 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 20 - 27 */
371 SETBITS(1, 1, 1, 0, 0, 0, 0, 0), /* 28 - 2F */
373 SETBITS(0, 1, 1, 1, 1, 1, 1, 1), /* 30 - 37 */
374 SETBITS(1, 1, 0, 0, 0, 0, 0, 0) /* 38 - 3F */
377 STATIC CONST UBYTE hicapsable[] =
379 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 40 - 47 */
380 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 48 - 4F */
382 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 50 - 57 */
383 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 58 - 5F */
385 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 60 - 67 */
386 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 68 - 6F */
388 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 70 - 77 */
389 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 78 - 7F */
392 STATIC CONST UBYTE lorepeatable[] =
394 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 00 - 07 */
395 SETBITS(1, 1, 1, 1, 1, 1, 0, 1), /* 08 - 0F */
397 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 10 - 17 */
398 SETBITS(1, 1, 1, 1, 0, 1, 1, 1), /* 18 - 1F */
400 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 20 - 27 */
401 SETBITS(1, 1, 1, 1, 0, 1, 1, 1), /* 28 - 2F */
403 SETBITS(1, 1, 1, 1, 1, 1, 1, 1), /* 30 - 37 */
404 SETBITS(1, 1, 1, 0, 1, 1, 1, 1) /* 38 - 3F */
407 STATIC CONST UBYTE hirepeatable[] =
409 SETBITS(1, 1, 1, 0, 0, 0, 1, 0), /* 40 - 47 */
410 SETBITS(1, 1, 0, 0, 1, 1, 1, 1), /* 48 - 4F */
412 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 50 - 57 */
413 SETBITS(0, 0, 1, 1, 1, 1, 1, 0), /* 58 - 5F */
415 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 60 - 67 */
416 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 68 - 6F */
418 SETBITS(0, 0, 0, 0, 0, 0, 0, 0), /* 70 - 77 */
419 SETBITS(0, 0, 0, 0, 0, 0, 0, 0) /* 78 - 7F */