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