wskbdmap_atari.c revision 1.1 1 /* $NetBSD: wskbdmap_atari.c,v 1.1 2003/02/02 17:56:55 thomas Exp $ */
2
3 /*-
4 * Copyright (c) 1997 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Juergen Hannken-Illjes.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
12 * are met:
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
18 * 3. All advertising materials mentioning features or use of this software
19 * must display the following acknowledgement:
20 * This product includes software developed by the NetBSD
21 * Foundation, Inc. and its contributors.
22 * 4. Neither the name of The NetBSD Foundation nor the names of its
23 * contributors may be used to endorse or promote products derived
24 * from this software without specific prior written permission.
25 *
26 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
27 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
30 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 * POSSIBILITY OF SUCH DAMAGE.
37 */
38
39 #include <sys/cdefs.h>
40 __KERNEL_RCSID(0, "$NetBSD: wskbdmap_atari.c,v 1.1 2003/02/02 17:56:55 thomas Exp $");
41
42 #include <sys/types.h>
43 #include <dev/wscons/wsksymdef.h>
44 #include <dev/wscons/wsksymvar.h>
45 #include <dev/pckbc/wskbdmap_mfii.h>
46
47 #define KC(n) KS_KEYCODE(n)
48
49 static const keysym_t atarikbd_keydesc_us[] = {
50 /* pos command normal shifted */
51 KC(1), KS_Cmd_Debugger, KS_Escape,
52 KC(2), KS_1, KS_exclam,
53 KC(3), KS_2, KS_at,
54 KC(4), KS_3, KS_numbersign,
55 KC(5), KS_4, KS_dollar,
56 KC(6), KS_5, KS_percent,
57 KC(7), KS_6, KS_asciicircum,
58 KC(8), KS_7, KS_ampersand,
59 KC(9), KS_8, KS_asterisk,
60 KC(10), KS_9, KS_parenleft,
61 KC(11), KS_0, KS_parenright,
62 KC(12), KS_minus, KS_underscore,
63 KC(13), KS_equal, KS_plus,
64 KC(14), KS_Cmd_ResetEmul, KS_Delete,
65 KC(15), KS_Tab,
66 KC(16), KS_q,
67 KC(17), KS_w,
68 KC(18), KS_e,
69 KC(19), KS_r,
70 KC(20), KS_t,
71 KC(21), KS_y,
72 KC(22), KS_u,
73 KC(23), KS_i,
74 KC(24), KS_o,
75 KC(25), KS_p,
76 KC(26), KS_bracketleft, KS_braceleft,
77 KC(27), KS_bracketright, KS_braceright,
78 KC(28), KS_Return,
79 KC(29), KS_Cmd1, KS_Control_L,
80 KC(30), KS_a,
81 KC(31), KS_s,
82 KC(32), KS_d,
83 KC(33), KS_f,
84 KC(34), KS_g,
85 KC(35), KS_h,
86 KC(36), KS_j,
87 KC(37), KS_k,
88 KC(38), KS_l,
89 KC(39), KS_semicolon, KS_colon,
90 KC(40), KS_apostrophe, KS_quotedbl,
91 KC(41), KS_grave, KS_asciitilde,
92 KC(42), KS_Shift_L,
93 KC(43), KS_backslash, KS_bar,
94 KC(44), KS_z,
95 KC(45), KS_x,
96 KC(46), KS_c,
97 KC(47), KS_v,
98 KC(48), KS_b,
99 KC(49), KS_n,
100 KC(50), KS_m,
101 KC(51), KS_comma, KS_less,
102 KC(52), KS_period, KS_greater,
103 KC(53), KS_slash, KS_question,
104 KC(54), KS_Shift_R,
105 KC(56), KS_Cmd2, KS_Alt_L,
106 KC(57), KS_space,
107 KC(58), KS_Caps_Lock,
108 KC(59), KS_Cmd_Screen0, KS_f1,
109 KC(60), KS_Cmd_Screen1, KS_f2,
110 KC(61), KS_Cmd_Screen2, KS_f3,
111 KC(62), KS_Cmd_Screen3, KS_f4,
112 KC(63), KS_Cmd_Screen4, KS_f5,
113 KC(64), KS_Cmd_Screen5, KS_f6,
114 KC(65), KS_Cmd_Screen6, KS_f7,
115 KC(66), KS_Cmd_Screen7, KS_f8,
116 KC(67), KS_Cmd_Screen8, KS_f9,
117 KC(68), KS_Cmd_Screen9, KS_f10,
118 KC(71), KS_KP_Home,
119 KC(72), KS_KP_Up, KS_KP_8,
120 KC(74), KS_KP_Subtract,
121 KC(75), KS_KP_Left, KS_KP_4,
122 KC(77), KS_KP_Right, KS_KP_6,
123 KC(78), KS_KP_Add,
124 KC(80), KS_KP_Down, KS_KP_2,
125 KC(82), KS_KP_Insert, KS_KP_0,
126 KC(83), KS_KP_Delete, KS_KP_Decimal,
127 KC(97), KS_Pause, /* should be KS_Help. but this is not available */
128 KC(98), KS_Help,
129 KC(99), KS_parenleft, /* should be KS_KP_parenleft */
130 KC(100), KS_parenright, /* should be KS_KP_parenright */
131 KC(101), KS_slash, /* should be KS_KP_slash */
132 KC(102), KS_KP_Multiply,
133 KC(103), KS_KP_7,
134 KC(104), KS_KP_8,
135 KC(105), KS_KP_9,
136 KC(106), KS_KP_4,
137 KC(107), KS_KP_5,
138 KC(108), KS_KP_6,
139 KC(109), KS_KP_1,
140 KC(110), KS_KP_2,
141 KC(111), KS_KP_3,
142 KC(112), KS_KP_0,
143 KC(113), KS_KP_Decimal,
144 KC(114), KS_KP_Enter,
145 };
146
147 static const keysym_t atarikbd_keydesc_de[] = {
148 /* pos normal shifted altgr shift-altgr */
149 KC(3), KS_2, KS_quotedbl,
150 KC(4), KS_3, KS_section,
151 KC(7), KS_6, KS_ampersand,
152 KC(8), KS_7, KS_slash,
153 KC(9), KS_8, KS_parenleft,
154 KC(10), KS_9, KS_parenright,
155 KC(11), KS_0, KS_equal,
156 KC(12), KS_ssharp, KS_question,
157 KC(13), KS_dead_acute, KS_dead_grave,
158 KC(16), KS_q, KS_Q,
159 KC(21), KS_z,
160 KC(26), KS_udiaeresis, KS_Udiaeresis, KS_at, KS_backslash,
161 KC(27), KS_plus, KS_asterisk,
162 KC(39), KS_odiaeresis, KS_Odiaeresis, KS_bracketleft, KS_braceleft,
163 KC(40), KS_adiaeresis, KS_Adiaeresis, KS_bracketright,KS_braceright,
164 KC(41), KS_numbersign, KS_dead_circumflex,
165 KC(43), KS_dead_tilde, KS_bar,
166 KC(44), KS_y,
167 KC(51), KS_comma, KS_semicolon,
168 KC(52), KS_period, KS_colon,
169 KC(53), KS_minus, KS_underscore,
170 KC(56), KS_Mode_switch, KS_Multi_key,
171 KC(96), KS_less, KS_greater,
172 };
173
174 static const keysym_t atarikbd_keydesc_de_nodead[] = {
175 /* pos normal shifted altgr shift-altgr */
176 KC(13), KS_apostrophe, KS_grave,
177 KC(41), KS_numbersign, KS_asciicircum,
178 KC(43), KS_asciitilde, KS_bar,
179 };
180
181 static const keysym_t atarikbd_keydesc_dk[] = {
182 /* pos normal shifted altgr shift-altgr */
183 KC(3), KS_2, KS_quotedbl, KS_at,
184 KC(4), KS_3, KS_numbersign, KS_sterling,
185 KC(5), KS_4, KS_currency, KS_dollar,
186 KC(7), KS_6, KS_ampersand,
187 KC(8), KS_7, KS_slash, KS_braceleft,
188 KC(9), KS_8, KS_parenleft, KS_bracketleft,
189 KC(10), KS_9, KS_parenright, KS_bracketright,
190 KC(11), KS_0, KS_equal, KS_braceright,
191 KC(12), KS_plus, KS_question,
192 KC(13), KS_dead_acute, KS_dead_grave, KS_bar,
193 KC(26), KS_aring,
194 KC(27), KS_dead_diaeresis, KS_dead_circumflex, KS_dead_tilde,
195 KC(39), KS_ae,
196 KC(40), KS_oslash,
197 KC(41), KS_onehalf, KS_paragraph,
198 KC(43), KS_apostrophe, KS_asterisk,
199 KC(51), KS_comma, KS_semicolon,
200 KC(52), KS_period, KS_colon,
201 KC(53), KS_minus, KS_underscore,
202 KC(86), KS_less, KS_greater, KS_backslash,
203 KC(184), KS_Mode_switch, KS_Multi_key,
204 };
205
206 static const keysym_t atarikbd_keydesc_dk_nodead[] = {
207 /* pos normal shifted altgr shift-altgr */
208 KC(13), KS_apostrophe, KS_grave, KS_bar,
209 KC(27), KS_diaeresis, KS_asciicircum, KS_asciitilde,
210 };
211
212 static const keysym_t atarikbd_keydesc_sv[] = {
213 /* pos normal shifted altgr shift-altgr */
214 KC(12), KS_plus, KS_question, KS_backslash,
215 KC(27), KS_dead_diaeresis, KS_dead_circumflex, KS_dead_tilde,
216 KC(39), KS_odiaeresis,
217 KC(40), KS_adiaeresis,
218 KC(41), KS_paragraph, KS_onehalf,
219 KC(86), KS_less, KS_greater, KS_bar,
220 KC(184), KS_Mode_switch, KS_Multi_key,
221 };
222
223 static const keysym_t atarikbd_keydesc_sv_nodead[] = {
224 /* pos normal shifted altgr shift-altgr */
225 KC(13), KS_apostrophe, KS_grave, KS_bar,
226 KC(27), KS_diaeresis, KS_asciicircum, KS_asciitilde,
227 };
228
229 static const keysym_t atarikbd_keydesc_no[] = {
230 /* pos normal shifted altgr shift-altgr */
231 KC(13), KS_backslash, KS_dead_grave, KS_dead_acute,
232 KC(27), KS_dead_diaeresis, KS_dead_circumflex, KS_dead_tilde,
233 KC(39), KS_oslash,
234 KC(40), KS_ae,
235 KC(41), KS_bar, KS_paragraph,
236 KC(86), KS_less, KS_greater,
237 };
238
239 static const keysym_t atarikbd_keydesc_no_nodead[] = {
240 /* pos normal shifted altgr shift-altgr */
241 KC(13), KS_backslash, KS_grave, KS_acute,
242 KC(27), KS_diaeresis, KS_asciicircum, KS_asciitilde,
243 };
244
245 static const keysym_t atarikbd_keydesc_fr[] = {
246 /* pos normal shifted altgr shift-altgr */
247 KC(2), KS_ampersand, KS_1,
248 KC(3), KS_eacute, KS_2, KS_asciitilde,
249 KC(4), KS_quotedbl, KS_3, KS_numbersign,
250 KC(5), KS_apostrophe, KS_4, KS_braceleft,
251 KC(6), KS_parenleft, KS_5, KS_bracketleft,
252 KC(7), KS_minus, KS_6, KS_bar,
253 KC(8), KS_egrave, KS_7, KS_grave,
254 KC(9), KS_underscore, KS_8, KS_backslash,
255 KC(10), KS_ccedilla, KS_9, KS_asciicircum,
256 KC(11), KS_agrave, KS_0, KS_at,
257 KC(12), KS_parenright, KS_degree, KS_bracketright,
258 KC(13), KS_equal, KS_plus, KS_braceright,
259 KC(16), KS_a,
260 KC(17), KS_z,
261 KC(26), KS_dead_circumflex, KS_dead_diaeresis,
262 KC(27), KS_dollar, KS_sterling, KS_currency,
263 KC(30), KS_q,
264 KC(39), KS_m,
265 KC(40), KS_ugrave, KS_percent,
266 KC(41), KS_twosuperior, KS_asciitilde,
267 KC(43), KS_asterisk, KS_mu,
268 KC(44), KS_w,
269 KC(50), KS_comma, KS_question,
270 KC(51), KS_semicolon, KS_period,
271 KC(52), KS_colon, KS_slash,
272 KC(53), KS_exclam, KS_section,
273 KC(86), KS_less, KS_greater,
274 KC(184), KS_Mode_switch, KS_Multi_key,
275 };
276
277 static const keysym_t atarikbd_keydesc_it[] = {
278 /* pos normal shifted altgr shift-altgr */
279 KC(3), KS_2, KS_quotedbl, KS_twosuperior,
280 KC(4), KS_3, KS_sterling, KS_threesuperior,
281 KC(5), KS_4, KS_dollar,
282 KC(6), KS_5, KS_percent,
283 KC(7), KS_6, KS_ampersand,
284 KC(8), KS_7, KS_slash,
285 KC(9), KS_8, KS_parenleft,
286 KC(10), KS_9, KS_parenright,
287 KC(11), KS_0, KS_equal,
288 KC(12), KS_apostrophe, KS_question,
289 KC(13), KS_igrave, KS_asciicircum,
290 KC(26), KS_egrave, KS_eacute, KS_braceleft, KS_bracketleft,
291 KC(27), KS_plus, KS_asterisk, KS_braceright, KS_bracketright,
292 KC(39), KS_ograve, KS_Ccedilla, KS_at,
293 KC(40), KS_agrave, KS_degree, KS_numbersign,
294 KC(41), KS_backslash, KS_bar,
295 KC(43), KS_ugrave, KS_section,
296 KC(51), KS_comma, KS_semicolon,
297 KC(52), KS_period, KS_colon,
298 KC(53), KS_minus, KS_underscore,
299 KC(86), KS_less, KS_greater,
300 KC(184), KS_Mode_switch, KS_Multi_key,
301 };
302
303 static const keysym_t atarikbd_keydesc_uk[] = {
304 /* pos normal shifted altgr shift-altgr */
305 KC(2), KS_1, KS_exclam, KS_plusminus, KS_exclamdown,
306 KC(3), KS_2, KS_quotedbl, KS_twosuperior, KS_cent,
307 KC(4), KS_3, KS_sterling, KS_threesuperior,
308 KC(5), KS_4, KS_dollar, KS_acute, KS_currency,
309 KC(6), KS_5, KS_percent, KS_mu, KS_yen,
310 KC(7), KS_6, KS_asciicircum, KS_paragraph,
311 KC(8), KS_7, KS_ampersand, KS_periodcentered, KS_brokenbar,
312 KC(9), KS_8, KS_asterisk, KS_cedilla, KS_ordfeminine,
313 KC(10), KS_9, KS_parenleft, KS_onesuperior, KS_diaeresis,
314 KC(11), KS_0, KS_parenright, KS_masculine, KS_copyright,
315 KC(12), KS_minus, KS_underscore, KS_hyphen, KS_ssharp,
316 KC(13), KS_equal, KS_plus, KS_onehalf, KS_guillemotleft,
317 KC(40), KS_apostrophe, KS_at, KS_section, KS_Agrave,
318 KC(41), KS_grave, KS_grave, KS_agrave, KS_agrave,
319 KC(43), KS_numbersign, KS_asciitilde, KS_sterling, KS_thorn,
320 KC(86), KS_backslash, KS_bar, KS_Udiaeresis,
321 };
322
323 static const keysym_t atarikbd_keydesc_jp[] = {
324 /* pos normal shifted altgr shift-altgr */
325 KC(3), KS_2, KS_quotedbl,
326 KC(7), KS_6, KS_ampersand,
327 KC(8), KS_7, KS_apostrophe,
328 KC(9), KS_8, KS_parenleft,
329 KC(10), KS_9, KS_parenright,
330 KC(11), KS_0,
331 KC(12), KS_minus, KS_equal,
332 KC(13), KS_asciicircum, KS_asciitilde,
333 KC(26), KS_at, KS_grave,
334 KC(27), KS_bracketleft, KS_braceleft,
335 KC(39), KS_semicolon, KS_plus,
336 KC(40), KS_colon, KS_asterisk,
337 KC(41), KS_Zenkaku_Hankaku, /* replace grave/tilde */
338 KC(43), KS_bracketright, KS_braceright,
339 KC(112), KS_Hiragana_Katakana,
340 KC(115), KS_backslash, KS_underscore,
341 KC(121), KS_Henkan,
342 KC(123), KS_Muhenkan,
343 KC(125), KS_backslash, KS_bar,
344 };
345
346 static const keysym_t atarikbd_keydesc_es[] = {
347 /* pos normal shifted altgr shift-altgr */
348 KC(2), KS_1, KS_exclam, KS_bar,
349 KC(3), KS_2, KS_quotedbl, KS_at,
350 KC(4), KS_3, KS_periodcentered, KS_numbersign,
351 KC(5), KS_4, KS_dollar, KS_asciitilde,
352 KC(7), KS_6, KS_ampersand,
353 KC(8), KS_7, KS_slash,
354 KC(9), KS_8, KS_parenleft,
355 KC(10), KS_9, KS_parenright,
356 KC(11), KS_0, KS_equal,
357 KC(12), KS_apostrophe, KS_question,
358 KC(13), KS_exclamdown, KS_questiondown,
359 KC(26), KS_dead_grave, KS_dead_circumflex, KS_bracketleft,
360 KC(27), KS_plus, KS_asterisk, KS_bracketright,
361 KC(39), KS_ntilde,
362 KC(40), KS_dead_acute, KS_dead_diaeresis, KS_braceleft,
363 KC(41), KS_degree, KS_ordfeminine, KS_backslash,
364 KC(43), KS_ccedilla, KS_Ccedilla, KS_braceright,
365 KC(51), KS_comma, KS_semicolon,
366 KC(52), KS_period, KS_colon,
367 KC(53), KS_minus, KS_underscore,
368 KC(86), KS_less, KS_greater,
369 KC(184), KS_Mode_switch, KS_Multi_key,
370 };
371
372 static const keysym_t atarikbd_keydesc_us_declk[] = {
373 /* pos normal shifted altgr shift-altgr */
374 KC(1), KS_grave, KS_asciitilde, /* replace escape */
375 KC(41), KS_less, KS_greater, /* replace grave/tilde */
376 KC(143), KS_Multi_key, /* left compose */
377 KC(157), KS_Multi_key, /* right compose, replace right control */
378 KC(87), KS_Cmd_Debugger, KS_Escape, /* replace F11 */
379 KC(189), KS_f13,
380 KC(190), KS_f14,
381 KC(191), KS_Help,
382 KC(192), KS_Execute,
383 KC(193), KS_f17,
384 KC(183), KS_f18,
385 KC(70), KS_f19, /* replace scroll lock */
386 KC(127), KS_f20, /* replace break */
387 KC(69), KS_KP_F1, /* replace num lock */
388 KC(181), KS_KP_F2, /* replace divide */
389 KC(55), KS_KP_F3, /* replace multiply */
390 KC(74), KS_KP_F4, /* replace subtract */
391
392 /* keypad is numbers only - no num lock */
393 KC(71), KS_KP_7,
394 KC(72), KS_KP_8,
395 KC(73), KS_KP_9,
396 KC(75), KS_KP_4,
397 KC(76), KS_KP_5,
398 KC(77), KS_KP_6,
399 KC(79), KS_KP_1,
400 KC(80), KS_KP_2,
401 KC(81), KS_KP_3,
402 KC(82), KS_KP_0,
403 KC(83), KS_KP_Decimal,
404
405 KC(206), KS_KP_Subtract,
406 KC(78), KS_KP_Separator, /* replace add */
407 KC(199), KS_Find, /* replace home */
408 KC(207), KS_Select, /* replace end */
409 };
410
411 static const keysym_t atarikbd_keydesc_us_dvorak[] = {
412 /* pos command normal shifted */
413 KC(12), KS_bracketleft, KS_braceleft,
414 KC(13), KS_bracketright, KS_braceright,
415 KC(16), KS_apostrophe, KS_quotedbl,
416 KC(17), KS_comma, KS_less,
417 KC(18), KS_period, KS_greater,
418 KC(19), KS_p,
419 KC(20), KS_y,
420 KC(21), KS_f,
421 KC(22), KS_g,
422 KC(23), KS_c,
423 KC(24), KS_r,
424 KC(25), KS_l,
425 KC(26), KS_slash, KS_question,
426 KC(27), KS_equal, KS_plus,
427 KC(31), KS_o,
428 KC(32), KS_e,
429 KC(33), KS_u,
430 KC(34), KS_i,
431 KC(35), KS_d,
432 KC(36), KS_h,
433 KC(37), KS_t,
434 KC(38), KS_n,
435 KC(39), KS_s,
436 KC(40), KS_minus, KS_underscore,
437 KC(44), KS_semicolon, KS_colon,
438 KC(45), KS_q,
439 KC(46), KS_j,
440 KC(47), KS_k,
441 KC(48), KS_x,
442 KC(49), KS_b,
443 KC(51), KS_w,
444 KC(52), KS_v,
445 KC(53), KS_z,
446 };
447
448 static const keysym_t atarikbd_keydesc_swapctrlcaps[] = {
449 /* pos command normal shifted */
450 KC(29), KS_Caps_Lock,
451 KC(58), KS_Cmd1, KS_Control_L,
452 };
453
454 static const keysym_t atarikbd_keydesc_iopener[] = {
455 /* pos command normal shifted */
456 KC(59), KS_Cmd_Debugger, KS_Escape,
457 KC(60), KS_Cmd_Screen0, KS_f1,
458 KC(61), KS_Cmd_Screen1, KS_f2,
459 KC(62), KS_Cmd_Screen2, KS_f3,
460 KC(63), KS_Cmd_Screen3, KS_f4,
461 KC(64), KS_Cmd_Screen4, KS_f5,
462 KC(65), KS_Cmd_Screen5, KS_f6,
463 KC(66), KS_Cmd_Screen6, KS_f7,
464 KC(67), KS_Cmd_Screen7, KS_f8,
465 KC(68), KS_Cmd_Screen8, KS_f9,
466 KC(87), KS_Cmd_Screen9, KS_f10,
467 KC(88), KS_f11,
468 };
469
470 #define KBD_MAP(name, base, map) \
471 { name, base, sizeof(map)/sizeof(keysym_t), map }
472 /* KBD_NULLMAP generates a entry for machine native variant.
473 the entry will be modified by machine dependent keyboard driver. */
474 #define KBD_NULLMAP(name, base) { name, base, 0, 0 }
475
476 const struct wscons_keydesc atarikbd_keydesctab[] = {
477 KBD_MAP(KB_US, 0, atarikbd_keydesc_us),
478 KBD_MAP(KB_DE, KB_US, atarikbd_keydesc_de),
479 KBD_MAP(KB_DE | KB_NODEAD, KB_DE, atarikbd_keydesc_de_nodead),
480 KBD_MAP(KB_FR, KB_US, atarikbd_keydesc_fr),
481 KBD_MAP(KB_DK, KB_US, atarikbd_keydesc_dk),
482 KBD_MAP(KB_DK | KB_NODEAD, KB_DK, atarikbd_keydesc_dk_nodead),
483 KBD_MAP(KB_IT, KB_US, atarikbd_keydesc_it),
484 KBD_MAP(KB_UK, KB_US, atarikbd_keydesc_uk),
485 KBD_MAP(KB_JP, KB_US, atarikbd_keydesc_jp),
486 KBD_MAP(KB_SV, KB_DK, atarikbd_keydesc_sv),
487 KBD_MAP(KB_SV | KB_NODEAD, KB_SV, atarikbd_keydesc_sv_nodead),
488 KBD_MAP(KB_NO, KB_DK, atarikbd_keydesc_no),
489 KBD_MAP(KB_NO | KB_NODEAD, KB_NO, atarikbd_keydesc_no_nodead),
490 KBD_MAP(KB_US | KB_DECLK, KB_US, atarikbd_keydesc_us_declk),
491 KBD_MAP(KB_US | KB_DVORAK, KB_US, atarikbd_keydesc_us_dvorak),
492 KBD_MAP(KB_US | KB_SWAPCTRLCAPS, KB_US, atarikbd_keydesc_swapctrlcaps),
493 KBD_MAP(KB_US | KB_IOPENER, KB_US, atarikbd_keydesc_iopener),
494 KBD_MAP(KB_JP | KB_SWAPCTRLCAPS, KB_JP, atarikbd_keydesc_swapctrlcaps),
495 KBD_MAP(KB_FR | KB_SWAPCTRLCAPS, KB_FR, atarikbd_keydesc_swapctrlcaps),
496 KBD_MAP(KB_US | KB_DVORAK | KB_SWAPCTRLCAPS, KB_US | KB_DVORAK,
497 atarikbd_keydesc_swapctrlcaps),
498 KBD_MAP(KB_US | KB_IOPENER | KB_SWAPCTRLCAPS, KB_US | KB_IOPENER,
499 atarikbd_keydesc_swapctrlcaps),
500 KBD_MAP(KB_ES , KB_US, atarikbd_keydesc_es),
501 KBD_NULLMAP(KB_US | KB_MACHDEP, KB_US),
502 KBD_NULLMAP(KB_JP | KB_MACHDEP, KB_JP),
503 KBD_NULLMAP(KB_US | KB_MACHDEP | KB_SWAPCTRLCAPS,
504 KB_US | KB_SWAPCTRLCAPS),
505 KBD_NULLMAP(KB_JP | KB_MACHDEP | KB_SWAPCTRLCAPS,
506 KB_JP | KB_SWAPCTRLCAPS),
507 {0, 0, 0, 0}
508 };
509
510 #undef KBD_MAP
511 #undef KC
512