Home | History | Annotate | Line # | Download | only in dev
wskbdmap_amiga.c revision 1.4
      1 /*	$NetBSD: wskbdmap_amiga.c,v 1.4 2002/01/28 09:57:04 aymeric 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 /*
     40  * Amiga keyboard map for wscons.
     41  *
     42  * Modified from wskbdmap_mfii.c
     43  * The parts which have not been converted to use Amiga keycodes have
     44  * been commented out.
     45  *
     46  * US/DE keymaps are the ones that are supposed to work at least
     47  * partially.
     48  */
     49 
     50 #include <sys/cdefs.h>
     51 __KERNEL_RCSID(0, "$NetBSD: wskbdmap_amiga.c,v 1.4 2002/01/28 09:57:04 aymeric Exp $");
     52 
     53 #include <sys/types.h>
     54 #include <dev/wscons/wsksymdef.h>
     55 #include <dev/wscons/wsksymvar.h>
     56 #include <dev/pckbc/wskbdmap_mfii.h>
     57 
     58 #define KC(n) KS_KEYCODE(n)
     59 
     60 static const keysym_t amikbd_keydesc_us[] = {
     61 /*  pos      command		normal		shifted */
     62     KC(69),   KS_Cmd_Debugger,	KS_Escape,
     63     KC(1),                      KS_1,		KS_exclam,
     64     KC(2),                      KS_2,		KS_at,
     65     KC(3),                      KS_3,		KS_numbersign,
     66     KC(4),                      KS_4,		KS_dollar,
     67     KC(5),                      KS_5,		KS_percent,
     68     KC(6),                  	KS_6,		KS_asciicircum,
     69     KC(7),                 	KS_7,		KS_ampersand,
     70     KC(8),               	KS_8,		KS_asterisk,
     71     KC(9),                 	KS_9,		KS_parenleft,
     72     KC(10),                	KS_0,		KS_parenright,
     73     KC(11), 			KS_minus,	KS_underscore,
     74     KC(12), 			KS_equal,	KS_plus,
     75     KC(65),  KS_Cmd_ResetEmul,	KS_Delete,
     76     KC(66), 			KS_Tab,
     77     KC(16), 			KS_q,
     78     KC(17), 			KS_w,
     79     KC(18), 			KS_e,
     80     KC(19), 			KS_r,
     81     KC(20), 			KS_t,
     82     KC(21), 			KS_y,
     83     KC(22), 			KS_u,
     84     KC(23), 			KS_i,
     85     KC(24), 			KS_o,
     86     KC(25), 			KS_p,
     87     KC(26), 			KS_bracketleft,	KS_braceleft,
     88     KC(27), 			KS_bracketright, KS_braceright,
     89     KC(68), 			KS_Return,
     90     KC(99),  KS_Cmd1,		KS_Control_L,
     91     KC(32), 			KS_a,
     92     KC(33), 			KS_s,
     93     KC(34), 			KS_d,
     94     KC(35), 			KS_f,
     95     KC(36), 			KS_g,
     96     KC(37), 			KS_h,
     97     KC(38), 			KS_j,
     98     KC(39), 			KS_k,
     99     KC(40), 			KS_l,
    100     KC(41), 			KS_semicolon,	KS_colon,
    101     KC(42), 			KS_apostrophe,	KS_quotedbl,
    102     KC(0), 			KS_grave,	KS_asciitilde,
    103     KC(96), 			KS_Shift_L,
    104     KC(13), 			KS_backslash,	KS_bar,
    105     KC(48),                     KS_less,        KS_greater,
    106     KC(49), 			KS_z,
    107     KC(50), 			KS_x,
    108     KC(51), 			KS_c,
    109     KC(52), 			KS_v,
    110     KC(53), 			KS_b,
    111     KC(54), 			KS_n,
    112     KC(55), 			KS_m,
    113     KC(56), 			KS_comma,	KS_less,
    114     KC(57), 			KS_period,	KS_greater,
    115     KC(58), 			KS_slash,	KS_question,
    116     KC(97), 			KS_Shift_R,
    117     KC(100),  KS_Cmd2,		KS_Alt_L,
    118     KC(64), 			KS_space,
    119 /*    KC(58), 			KS_Caps_Lock,*/
    120     KC(80),  KS_Cmd_Screen0,	KS_f1,
    121     KC(81),  KS_Cmd_Screen1,	KS_f2,
    122     KC(82),  KS_Cmd_Screen2,	KS_f3,
    123     KC(83),  KS_Cmd_Screen3,	KS_f4,
    124     KC(84),  KS_Cmd_Screen4,	KS_f5,
    125     KC(85),  KS_Cmd_Screen5,	KS_f6,
    126     KC(86),  KS_Cmd_Screen6,	KS_f7,
    127     KC(87),  KS_Cmd_Screen7,	KS_f8,
    128     KC(88),  KS_Cmd_Screen8,	KS_f9,
    129     KC(89),  KS_Cmd_Screen9,	KS_f10,
    130 
    131 /*    KC(70), 			KS_Hold_Screen,*/
    132 
    133     /* numeric keypad */
    134 
    135     KC(61), 			KS_KP_7,        KS_KP_Home,
    136     KC(62), 			KS_KP_8,        KS_KP_Up,
    137     KC(63), 			KS_KP_9,        KS_KP_Prior,
    138     KC(74), 			KS_KP_Subtract,
    139     KC(45), 			KS_KP_4,        KS_KP_Left,
    140     KC(46), 			KS_KP_5,        KS_KP_Begin,
    141     KC(47), 			KS_KP_6,        KS_KP_Right,
    142     KC(94), 			KS_KP_Add,
    143     KC(29), 			KS_KP_1,        KS_KP_End,
    144     KC(30), 			KS_KP_2,        KS_KP_Down,
    145     KC(31), 			KS_KP_3,        KS_KP_Next,
    146     KC(15), 			KS_KP_0,        KS_KP_Insert,
    147     KC(60), 			KS_KP_Decimal,  KS_KP_Delete,
    148     KC(67), 			KS_KP_Enter,
    149     KC(90), 			KS_bracketleft,	KS_braceleft,
    150     KC(91), 			KS_bracketright,KS_braceright,
    151     KC(92), 			KS_KP_Divide,
    152     KC(93), 			KS_KP_Multiply,
    153 
    154 /*    KC(87), 			KS_f11,*/
    155 /*    KC(88), 			KS_f12,*/
    156 
    157 /*    KC(127),			KS_Pause,*/ /* Break */
    158 /*    KC(157),			KS_Control_R,*/
    159 /*    KC(170),			KS_Print_Screen,*/
    160 /*   KC(183),			KS_Print_Screen,*/
    161     KC(101),			KS_Alt_R,	KS_Multi_key,
    162 /*    KC(199),			KS_Home,*/
    163     KC(76),			KS_Up,
    164 /*    KC(90),			KS_Prior,*/
    165     KC(79),			KS_Left,
    166     KC(78),			KS_Right,
    167 /*    KC(207),			KS_End,*/
    168     KC(77),			KS_Down,
    169 /*    KC(91),			KS_Next,*/
    170 /*    KC(210),			KS_Insert,*/
    171 /*    KC(211),			KS_KP_Delete,*/
    172     KC(102),	KS_Cmd,		KS_Meta_L,
    173     KC(103),	KS_Cmd,		KS_Meta_R,
    174 /*    KC(221),			KS_Menu,*/
    175 };
    176 
    177 static const keysym_t amikbd_keydesc_de[] = {
    178 /*  pos      normal		shifted		altgr		shift-altgr */
    179     KC(2),   KS_2,		KS_quotedbl,	KS_twosuperior,
    180     KC(3),   KS_3,		KS_section,	KS_threesuperior,
    181     KC(6),   KS_6,		KS_ampersand,
    182     KC(7),   KS_7,		KS_slash,	KS_braceleft,
    183     KC(8),   KS_8,		KS_parenleft,	KS_bracketleft,
    184     KC(9),   KS_9,		KS_parenright,	KS_bracketright,
    185     KC(10),  KS_0,		KS_equal,	KS_braceright,
    186     KC(11),  KS_ssharp,		KS_question,	KS_backslash,
    187     KC(12),  KS_dead_acute,	KS_dead_grave,
    188     KC(16),  KS_q,		KS_Q,		KS_at,
    189     KC(21),  KS_z,
    190     KC(26),  KS_udiaeresis,
    191     KC(27),  KS_plus,		KS_asterisk,	KS_dead_tilde,
    192     KC(41),  KS_odiaeresis,
    193     KC(42),  KS_adiaeresis,
    194     KC(13),  KS_dead_circumflex,KS_dead_abovering,
    195     KC(43),  KS_numbersign,	KS_apostrophe,
    196     KC(49),  KS_y,
    197     KC(55),  KS_m,		KS_M,		KS_mu,
    198     KC(56),  KS_comma,		KS_semicolon,
    199     KC(57),  KS_period,		KS_colon,
    200     KC(58),  KS_minus,		KS_underscore,
    201     KC(48),  KS_less,		KS_greater,	KS_bar,		KS_brokenbar,
    202     KC(101), KS_Mode_switch,	KS_Multi_key,
    203 };
    204 
    205 static const keysym_t amikbd_keydesc_de_nodead[] = {
    206 /*  pos      normal		shifted		altgr		shift-altgr */
    207     KC(12),  KS_apostrophe,	KS_grave,
    208     KC(27),  KS_plus,		KS_asterisk,	KS_asciitilde,
    209     KC(0),   KS_asciicircum,	KS_degree,
    210 };
    211 
    212 static const keysym_t pckbd_keydesc_fr[] = {
    213 /*  pos      normal		shifted		altgr		shift-altgr */
    214     KC(1),   KS_ampersand,	KS_1,
    215     KC(2),   KS_eacute,		KS_2,		KS_2,		KS_at,
    216     KC(3),   KS_quotedbl,	KS_3,		KS_3,		KS_numbersign,
    217     KC(4),   KS_apostrophe,	KS_4,
    218     KC(5),   KS_parenleft,	KS_5,
    219     KC(6),   KS_section,	KS_6,
    220     KC(7),   KS_egrave,		KS_7,
    221     KC(8),   KS_exclam,		KS_8,
    222     KC(9),   KS_ccedilla,	KS_9,
    223     KC(10),  KS_agrave,		KS_0,
    224     KC(11),  KS_parenright,	KS_degree,
    225     KC(12),  KS_minus,		KS_underscore,
    226     KC(16),  KS_a,
    227     KC(17),  KS_z,
    228     KC(26),  KS_dead_circumflex, KS_dead_diaeresis,
    229     KC(27),  KS_dollar,		KS_asterisk,
    230     KC(32),  KS_q,
    231     KC(41),  KS_m,
    232     KC(42),  KS_ugrave,		KS_percent,
    233     KC(43),  KS_mu,		KS_sterling,
    234     KC(49),  KS_w,
    235     KC(55),  KS_comma,		KS_question,
    236     KC(56),  KS_semicolon,	KS_period,
    237     KC(57),  KS_colon,		KS_slash,
    238     KC(58),  KS_equal,		KS_plus,
    239 };
    240 
    241 static const keysym_t amikbd_keydesc_dk[] = {
    242 /*  pos      normal		shifted		altgr		shift-altgr */
    243     KC(2),   KS_2,		KS_quotedbl,	KS_at,
    244     KC(3),   KS_3,		KS_numbersign,	KS_sterling,
    245     KC(4),   KS_4,		KS_currency,	KS_dollar,
    246     KC(6),   KS_6,		KS_ampersand,
    247     KC(7),   KS_7,		KS_slash,	KS_braceleft,
    248     KC(8),   KS_8,		KS_parenleft,	KS_bracketleft,
    249     KC(9),   KS_9,		KS_parenright,	KS_bracketright,
    250     KC(10),  KS_0,		KS_equal,	KS_braceright,
    251     KC(11),  KS_plus,		KS_question,
    252     KC(12),  KS_dead_acute,	KS_dead_grave,	KS_bar,
    253     KC(26),  KS_aring,
    254     KC(27),  KS_dead_diaeresis,	KS_dead_circumflex, KS_dead_tilde,
    255     KC(41),  KS_ae,
    256     KC(42),  KS_oslash,
    257     KC(43),  KS_apostrophe,	KS_asterisk,
    258     KC(56),  KS_comma,		KS_semicolon,
    259     KC(57),  KS_period,		KS_colon,
    260     KC(58),  KS_minus,		KS_underscore,
    261     KC(48),  KS_less,		KS_greater,	KS_backslash,
    262     KC(101), KS_Mode_switch,	KS_Multi_key,
    263 };
    264 
    265 static const keysym_t amikbd_keydesc_dk_nodead[] = {
    266 /*  pos      normal		shifted		altgr		shift-altgr */
    267     KC(12),  KS_apostrophe,	KS_grave,	KS_bar,
    268     KC(27),  KS_diaeresis,	KS_asciicircum,	KS_asciitilde,
    269 };
    270 
    271 static const keysym_t amikbd_keydesc_sv[] = {
    272 /*  pos      normal		shifted		altgr		shift-altgr */
    273     KC(11),  KS_plus,		KS_question,	KS_backslash,
    274     KC(27),  KS_dead_diaeresis,	KS_dead_circumflex, KS_dead_tilde,
    275     KC(41),  KS_odiaeresis,
    276     KC(42),  KS_adiaeresis,
    277     KC(48),  KS_less,		KS_greater,	KS_bar,
    278     KC(101), KS_Mode_switch,	KS_Multi_key,
    279 };
    280 
    281 static const keysym_t amikbd_keydesc_sv_nodead[] = {
    282 /*  pos      normal		shifted		altgr		shift-altgr */
    283     KC(12),  KS_apostrophe,	KS_grave,	KS_bar,
    284     KC(27),  KS_diaeresis,	KS_asciicircum,	KS_asciitilde,
    285 };
    286 
    287 static const keysym_t amikbd_keydesc_no[] = {
    288 /*  pos      normal		shifted		altgr		shift-altgr */
    289     KC(12),  KS_backslash,	KS_dead_grave,	KS_dead_acute,
    290     KC(27),  KS_dead_diaeresis,	KS_dead_circumflex, KS_dead_tilde,
    291     KC(41),  KS_oslash,
    292     KC(42),  KS_ae,
    293     KC(48),  KS_less,		KS_greater,
    294 };
    295 
    296 static const keysym_t amikbd_keydesc_no_nodead[] = {
    297 /*  pos      normal		shifted		altgr		shift-altgr */
    298     KC(12),  KS_backslash,	KS_grave,	KS_acute,
    299     KC(27),  KS_diaeresis,	KS_asciicircum,	KS_asciitilde,
    300 };
    301 
    302 static const keysym_t pckbd_keydesc_it[] = {
    303 /*  pos      normal		shifted		altgr		shift-altgr */
    304     KC(3),   KS_2,	    	KS_quotedbl,	KS_twosuperior,
    305     KC(4),   KS_3,	    	KS_sterling,	KS_threesuperior,
    306     KC(5),   KS_4,	    	KS_dollar,
    307     KC(6),   KS_5,	    	KS_percent,
    308     KC(7),   KS_6,	    	KS_ampersand,
    309     KC(8),   KS_7,	    	KS_slash,
    310     KC(9),   KS_8,	    	KS_parenleft,
    311     KC(10),  KS_9,	    	KS_parenright,
    312     KC(11),  KS_0,	    	KS_equal,
    313     KC(12),  KS_apostrophe,	KS_question,
    314     KC(13),  KS_igrave,	    	KS_asciicircum,
    315     KC(26),  KS_egrave,		KS_eacute,	KS_braceleft,	KS_bracketleft,
    316     KC(27),  KS_plus,		KS_asterisk,	KS_braceright,	KS_bracketright,
    317     KC(39),  KS_ograve,		KS_Ccedilla,	KS_at,
    318     KC(40),  KS_agrave,		KS_degree,	KS_numbersign,
    319     KC(41),  KS_backslash,	KS_bar,
    320     KC(43),  KS_ugrave,		KS_section,
    321     KC(51),  KS_comma,		KS_semicolon,
    322     KC(52),  KS_period,		KS_colon,
    323     KC(53),  KS_minus,		KS_underscore,
    324     KC(86),  KS_less,		KS_greater,
    325     KC(184), KS_Mode_switch,	KS_Multi_key,
    326 };
    327 
    328 static const keysym_t pckbd_keydesc_uk[] = {
    329 /*  pos      normal             shifted         altgr           shift-altgr */
    330     KC(2),   KS_1,              KS_exclam,      KS_plusminus,   KS_exclamdown,
    331     KC(3),   KS_2,              KS_quotedbl,    KS_twosuperior, KS_cent,
    332     KC(4),   KS_3,              KS_sterling,    KS_threesuperior,
    333     KC(5),   KS_4,              KS_dollar,      KS_acute,       KS_currency,
    334     KC(6),   KS_5,              KS_percent,     KS_mu,          KS_yen,
    335     KC(7),   KS_6,              KS_asciicircum, KS_paragraph,
    336     KC(8),   KS_7,              KS_ampersand,   KS_periodcentered, KS_brokenbar,
    337     KC(9),   KS_8,              KS_asterisk,    KS_cedilla,     KS_ordfeminine,
    338     KC(10),  KS_9,              KS_parenleft,   KS_onesuperior, KS_diaeresis,
    339     KC(11),  KS_0,              KS_parenright,  KS_masculine,   KS_copyright,
    340     KC(12),  KS_minus,          KS_underscore,  KS_hyphen,      KS_ssharp,
    341     KC(13),  KS_equal,          KS_plus,        KS_onehalf,    KS_guillemotleft,
    342     KC(40),  KS_apostrophe,     KS_at,          KS_section,     KS_Agrave,
    343     KC(41),  KS_grave,          KS_grave,       KS_agrave,      KS_agrave,
    344     KC(43),  KS_numbersign,     KS_asciitilde,  KS_sterling,    KS_thorn,
    345     KC(86),  KS_backslash,      KS_bar,         KS_Udiaeresis,
    346 };
    347 
    348 static const keysym_t pckbd_keydesc_jp[] = {
    349 /*  pos      normal		shifted		altgr		shift-altgr */
    350     KC(3),   KS_2,              KS_quotedbl,
    351     KC(7),   KS_6,              KS_ampersand,
    352     KC(8),   KS_7,              KS_apostrophe,
    353     KC(9),   KS_8,              KS_parenleft,
    354     KC(10),  KS_9,              KS_parenright,
    355     KC(11),  KS_0,
    356     KC(12),  KS_minus,          KS_equal,
    357     KC(13),  KS_asciicircum,    KS_asciitilde,
    358     KC(26),  KS_at,             KS_grave,
    359     KC(27),  KS_bracketleft,    KS_braceleft,
    360     KC(39),  KS_semicolon,      KS_plus,
    361     KC(40),  KS_colon,          KS_asterisk,
    362     KC(41),  KS_Zenkaku_Hankaku, /* replace grave/tilde */
    363     KC(43),  KS_bracketright,   KS_braceright,
    364     KC(112), KS_Hiragana_Katakana,
    365     KC(115), KS_backslash,      KS_underscore,
    366     KC(121), KS_Henkan,
    367     KC(123), KS_Muhenkan,
    368     KC(125), KS_backslash,      KS_bar,
    369 };
    370 
    371 static const keysym_t pckbd_keydesc_es[] = {
    372 /*  pos      normal		shifted		altgr		shift-altgr */
    373     KC(2),   KS_1,		KS_exclam,	KS_bar,
    374     KC(3),   KS_2,		KS_quotedbl,	KS_at,
    375     KC(4),   KS_3,		KS_periodcentered, KS_numbersign,
    376     KC(5),   KS_4,		KS_dollar,	KS_asciitilde,
    377     KC(7),   KS_6,		KS_ampersand,
    378     KC(8),   KS_7,		KS_slash,
    379     KC(9),   KS_8,		KS_parenleft,
    380     KC(10),  KS_9,		KS_parenright,
    381     KC(11),  KS_0,		KS_equal,
    382     KC(12),  KS_grave,		KS_question,
    383     KC(13),  KS_exclamdown,	KS_questiondown,
    384     KC(26),  KS_dead_grave,	KS_dead_circumflex, KS_bracketleft,
    385     KC(27),  KS_plus,		KS_asterisk,	KS_bracketright,
    386     KC(39),  KS_ntilde,
    387     KC(40),  KS_dead_acute,	KS_dead_diaeresis, KS_braceleft,
    388     KC(41),  KS_degree,		KS_ordfeminine,	KS_backslash,
    389     KC(43),  KS_ccedilla,	KS_Ccedilla,	KS_braceright,
    390     KC(51),  KS_comma,		KS_semicolon,
    391     KC(52),  KS_period,		KS_colon,
    392     KC(53),  KS_minus,		KS_underscore,
    393     KC(86),  KS_less,		KS_greater,
    394     KC(184), KS_Mode_switch,	KS_Multi_key,
    395 };
    396 
    397 static const keysym_t pckbd_keydesc_us_declk[] = {
    398 /*  pos      normal		shifted		altgr		shift-altgr */
    399     KC(1),	KS_grave,	KS_asciitilde, /* replace escape */
    400     KC(41),	KS_less,	KS_greater, /* replace grave/tilde */
    401     KC(143),	KS_Multi_key, /* left compose */
    402     KC(157),	KS_Multi_key, /* right compose, replace right control */
    403     KC(87),	KS_Cmd_Debugger,	KS_Escape, /* replace F11 */
    404     KC(189),	KS_f13,
    405     KC(190),	KS_f14,
    406     KC(191),	KS_Help,
    407     KC(192),	KS_Execute,
    408     KC(193),	KS_f17,
    409     KC(183),	KS_f18,
    410     KC(70),	KS_f19, /* replace scroll lock */
    411     KC(127),	KS_f20, /* replace break */
    412     KC(69),	KS_KP_F1, /* replace num lock */
    413     KC(181),	KS_KP_F2, /* replace divide */
    414     KC(55),	KS_KP_F3, /* replace multiply */
    415     KC(74),	KS_KP_F4, /* replace subtract */
    416 
    417     /* keypad is numbers only - no num lock */
    418     KC(71), 	KS_KP_7,
    419     KC(72), 	KS_KP_8,
    420     KC(73), 	KS_KP_9,
    421     KC(75), 	KS_KP_4,
    422     KC(76), 	KS_KP_5,
    423     KC(77), 	KS_KP_6,
    424     KC(79), 	KS_KP_1,
    425     KC(80), 	KS_KP_2,
    426     KC(81), 	KS_KP_3,
    427     KC(82), 	KS_KP_0,
    428     KC(83), 	KS_KP_Decimal,
    429 
    430     KC(206),	KS_KP_Subtract,
    431     KC(78),	KS_KP_Separator, /* replace add */
    432     KC(199),	KS_Find, /* replace home */
    433     KC(207),	KS_Select, /* replace end */
    434 };
    435 
    436 static const keysym_t pckbd_keydesc_us_dvorak[] = {
    437 /*  pos      command		normal		shifted */
    438     KC(12), 			KS_bracketleft,	KS_braceleft,
    439     KC(13), 			KS_bracketright, KS_braceright,
    440     KC(16), 			KS_apostrophe, KS_quotedbl,
    441     KC(17), 			KS_comma, KS_less,
    442     KC(18), 			KS_period, KS_greater,
    443     KC(19), 			KS_p,
    444     KC(20), 			KS_y,
    445     KC(21), 			KS_f,
    446     KC(22), 			KS_g,
    447     KC(23), 			KS_c,
    448     KC(24), 			KS_r,
    449     KC(25), 			KS_l,
    450     KC(26), 			KS_slash, KS_question,
    451     KC(27), 			KS_equal, KS_plus,
    452     KC(31), 			KS_o,
    453     KC(32), 			KS_e,
    454     KC(33), 			KS_u,
    455     KC(34), 			KS_i,
    456     KC(35), 			KS_d,
    457     KC(36), 			KS_h,
    458     KC(37), 			KS_t,
    459     KC(38), 			KS_n,
    460     KC(39), 			KS_s,
    461     KC(40), 			KS_minus, KS_underscore,
    462     KC(44), 			KS_semicolon, KS_colon,
    463     KC(45), 			KS_q,
    464     KC(46), 			KS_j,
    465     KC(47), 			KS_k,
    466     KC(48), 			KS_x,
    467     KC(49), 			KS_b,
    468     KC(51), 			KS_w,
    469     KC(52), 			KS_v,
    470     KC(53), 			KS_z,
    471 };
    472 
    473 static const keysym_t pckbd_keydesc_swapctrlcaps[] = {
    474 /*  pos      command		normal		shifted */
    475     KC(29), 			KS_Caps_Lock,
    476     KC(58),  KS_Cmd1,		KS_Control_L,
    477 };
    478 
    479 #define KBD_MAP(name, base, map) \
    480 			{ name, base, sizeof(map)/sizeof(keysym_t), map }
    481 
    482 const struct wscons_keydesc amigakbd_keydesctab[] = {
    483 	KBD_MAP(KB_US,			0,	amikbd_keydesc_us),
    484 	KBD_MAP(KB_DE,			KB_US,	amikbd_keydesc_de),
    485 	KBD_MAP(KB_DE | KB_NODEAD,	KB_DE,	amikbd_keydesc_de_nodead),
    486 	KBD_MAP(KB_FR,                  KB_US,  pckbd_keydesc_fr),
    487 	KBD_MAP(KB_DK,			KB_US,	amikbd_keydesc_dk),
    488 	KBD_MAP(KB_DK | KB_NODEAD,	KB_DK,	amikbd_keydesc_dk_nodead),
    489 /*	KBD_MAP(KB_IT,			KB_US,	pckbd_keydesc_it),
    490 	KBD_MAP(KB_UK,			KB_US,	pckbd_keydesc_uk),
    491 	KBD_MAP(KB_JP,			KB_US,	pckbd_keydesc_jp),*/
    492 	KBD_MAP(KB_SV,			KB_DK,	amikbd_keydesc_sv),
    493 	KBD_MAP(KB_SV | KB_NODEAD,	KB_SV,	amikbd_keydesc_sv_nodead),
    494 	KBD_MAP(KB_NO,			KB_DK,	amikbd_keydesc_no),
    495 	KBD_MAP(KB_NO | KB_NODEAD,	KB_NO,	amikbd_keydesc_no_nodead),
    496 /*	KBD_MAP(KB_US | KB_DECLK,	KB_US,	pckbd_keydesc_us_declk),
    497 	KBD_MAP(KB_US | KB_DVORAK,	KB_US,	pckbd_keydesc_us_dvorak),
    498 	KBD_MAP(KB_US | KB_SWAPCTRLCAPS, KB_US,	pckbd_keydesc_swapctrlcaps),
    499 	KBD_MAP(KB_JP | KB_SWAPCTRLCAPS, KB_JP, pckbd_keydesc_swapctrlcaps),
    500 	KBD_MAP(KB_US | KB_DVORAK | KB_SWAPCTRLCAPS,	KB_US | KB_DVORAK,
    501 		pckbd_keydesc_swapctrlcaps),
    502 	KBD_MAP(KB_ES ,			KB_US,	pckbd_keydesc_es),
    503 */
    504 	{0, 0, 0, 0}
    505 };
    506 
    507 #undef KBD_MAP
    508 #undef KC
    509