Home | History | Annotate | Line # | Download | only in dev
wskbdmap_amiga.c revision 1.7
      1 /*	$NetBSD: wskbdmap_amiga.c,v 1.7 2004/01/04 19:20:43 jandberg 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 maps for wscons.
     41  */
     42 
     43 /*
     44  * Keymaps: us, de, fr, es, sv converted from the old ite keymaps
     45  * which were created by Markus Wild, Eric Delcamp, Inaki Saez
     46  * and Stefan Pedersen.
     47  *
     48  * Copyright (c) 1993 Markus Wild
     49  * All rights reserved.
     50  *
     51  * Redistribution and use in source and binary forms, with or without
     52  * modification, are permitted provided that the following conditions
     53  * are met:
     54  * 1. Redistributions of source code must retain the above copyright
     55  *    notice, this list of conditions and the following disclaimer.
     56  * 2. Redistributions in binary form must reproduce the above copyright
     57  *    notice, this list of conditions and the following disclaimer in the
     58  *    documentation and/or other materials provided with the distribution.
     59  * 3. All advertising materials mentioning features or use of this software
     60  *    must display the following acknowledgement:
     61  *      This product includes software developed by Markus Wild.
     62  * 4. The name of the author may not be used to endorse or promote products
     63  *    derived from this software without specific prior written permission
     64  *
     65  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     66  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     67  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     68  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     69  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     70  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     71  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     72  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     73  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     74  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     75  */
     76 
     77 #include <sys/cdefs.h>
     78 __KERNEL_RCSID(0, "$NetBSD: wskbdmap_amiga.c,v 1.7 2004/01/04 19:20:43 jandberg Exp $");
     79 
     80 #include <sys/types.h>
     81 #include <dev/wscons/wsksymdef.h>
     82 #include <dev/wscons/wsksymvar.h>
     83 
     84 #define KC(n) KS_KEYCODE(n)
     85 
     86 static const keysym_t amikbd_keydesc_us[] = {
     87 /*  keycode  normal		shift		alt		shift-alt */
     88     KC(0),   KS_grave,		KS_asciitilde,
     89     KC(1),   KS_1,		KS_exclam,	KS_onesuperior,	KS_exclam,
     90     KC(2),   KS_2,		KS_at,		KS_twosuperior,	KS_at,
     91     KC(3),   KS_3,		KS_numbersign,	KS_threesuperior,KS_numbersign,
     92     KC(4),   KS_4,		KS_dollar,	KS_cent,	KS_dollar,
     93     KC(5),   KS_5,		KS_percent,	KS_onequarter,	KS_percent,
     94     KC(6),   KS_6,		KS_asciicircum,	KS_onehalf,	KS_asciicircum,
     95     KC(7),   KS_7,		KS_ampersand,	KS_threequarters,KS_ampersand,
     96     KC(8),   KS_8,		KS_asterisk,	KS_periodcentered,KS_asterisk,
     97     KC(9),   KS_9,		KS_parenleft,	KS_guillemotleft,KS_parenleft,
     98     KC(10),  KS_0,		KS_parenright,KS_guillemotright,KS_parenright,
     99     KC(11),  KS_minus,		KS_underscore,
    100     KC(12),  KS_equal,		KS_plus,
    101     KC(13),  KS_backslash,	KS_bar,
    102     KC(15),  KS_KP_0,
    103     KC(16),  KS_q,		KS_Q,		KS_aring,	KS_Aring,
    104     KC(17),  KS_w,		KS_W,		KS_degree,
    105     KC(18),  KS_e,		KS_E,		KS_copyright,
    106     KC(19),  KS_r,		KS_R,		KS_registered,
    107     KC(20),  KS_t,		KS_T,		KS_thorn,
    108     KC(21),  KS_y,		KS_Y,		KS_currency,	KS_yen,
    109     KC(22),  KS_u,		KS_U,		KS_mu,
    110     KC(23),  KS_i,		KS_I,		KS_exclamdown, 	KS_brokenbar,
    111     KC(24),  KS_o,		KS_O,		KS_oslash,	KS_Ooblique,
    112     KC(25),  KS_p,		KS_P,		KS_paragraph,
    113     KC(26),  KS_bracketleft,	KS_braceleft,
    114     KC(27),  KS_bracketright,	KS_braceright,
    115     KC(29),  KS_KP_1,		KS_KP_End,
    116     KC(30),  KS_KP_2,		KS_KP_Down,
    117     KC(31),  KS_KP_3,		KS_KP_Next,
    118     KC(32),  KS_a,		KS_A,		KS_ae,		KS_AE,
    119     KC(33),  KS_s,		KS_S,		KS_ssharp,	KS_section,
    120     KC(34),  KS_d,		KS_D,		KS_eth,		KS_ETH,
    121     KC(35),  KS_f,		KS_F,		KS_dead_acute,
    122     KC(36),  KS_g,		KS_G,		KS_dead_grave,
    123     KC(37),  KS_h,		KS_H,		KS_dead_circumflex,
    124     KC(38),  KS_j,		KS_J,		KS_dead_tilde,
    125     KC(39),  KS_k,		KS_K,		KS_dead_diaeresis,
    126     KC(40),  KS_l,		KS_L,		KS_sterling,
    127     KC(41),  KS_semicolon,	KS_colon,
    128     KC(42),  KS_apostrophe,	KS_quotedbl,
    129     KC(45),  KS_KP_4,		KS_KP_Left,
    130     KC(46),  KS_KP_5,		KS_KP_Begin,
    131     KC(47),  KS_KP_6,		KS_KP_Right,
    132     KC(49),  KS_z,		KS_Z,		KS_plusminus,
    133     KC(50),  KS_x,		KS_X,		KS_multiply,
    134     KC(51),  KS_c,		KS_C,		KS_ccedilla,
    135     KC(52),  KS_v,		KS_V,		KS_ordfeminine,
    136     KC(53),  KS_b,		KS_B,		KS_masculine,
    137     KC(54),  KS_n,		KS_N,		KS_hyphen,
    138     KC(55),  KS_m,		KS_M,		KS_cedilla,
    139     KC(56),  KS_comma,		KS_less,
    140     KC(57),  KS_period,		KS_greater,
    141     KC(58),  KS_slash,		KS_question,
    142     KC(60),  KS_KP_Decimal,	KS_KP_Delete,
    143     KC(61),  KS_KP_7,		KS_KP_Home,
    144     KC(62),  KS_KP_8,		KS_KP_Up,
    145     KC(63),  KS_KP_9,		KS_KP_Prior,
    146     KC(64),  KS_space,		KS_space,	KS_nobreakspace,KS_nobreakspace,
    147 
    148 /*  keycode  command		normal */
    149     KC(65),  KS_Cmd_ResetEmul,	KS_Delete,
    150     KC(66), 			KS_Tab,
    151     KC(67), 			KS_KP_Enter,
    152     KC(68), 			KS_Return,
    153     KC(69),  KS_Cmd_Debugger,	KS_Escape,
    154     KC(70),			KS_BackSpace,
    155     KC(74), 			KS_KP_Subtract,
    156     KC(76),			KS_Up,
    157     KC(77),			KS_Down,
    158     KC(78),			KS_Right,
    159     KC(79),			KS_Left,
    160     KC(80),  KS_Cmd_Screen0,	KS_f1,
    161     KC(81),  KS_Cmd_Screen1,	KS_f2,
    162     KC(82),  KS_Cmd_Screen2,	KS_f3,
    163     KC(83),  KS_Cmd_Screen3,	KS_f4,
    164     KC(84),  KS_Cmd_Screen4,	KS_f5,
    165     KC(85),  KS_Cmd_Screen5,	KS_f6,
    166     KC(86),  KS_Cmd_Screen6,	KS_f7,
    167     KC(87),  KS_Cmd_Screen7,	KS_f8,
    168     KC(88),  KS_Cmd_Screen8,	KS_f9,
    169     KC(89),  KS_Cmd_Screen9,	KS_f10,
    170     KC(90), 			KS_parenleft,
    171     KC(91), 			KS_parenright,
    172     KC(92), 			KS_KP_Divide,
    173     KC(93), 			KS_KP_Multiply,
    174     KC(94), 			KS_KP_Add,
    175     KC(95), 			KS_Help,
    176     KC(96), 			KS_Shift_L,
    177     KC(97), 			KS_Shift_R,
    178     KC(99),  KS_Cmd1,		KS_Control_L,
    179     KC(100), KS_Cmd2,		KS_Mode_switch,
    180     KC(101),			KS_Mode_switch,
    181     KC(102), KS_Cmd,		KS_Alt_L,
    182     KC(103), 			KS_Multi_key,
    183 };
    184 
    185 static const keysym_t amikbd_keydesc_de[] = {
    186 /*  keycode  normal		shift		alt		shift-alt */
    187     KC(2),   KS_2,		KS_quotedbl,	KS_at,		KS_twosuperior,
    188     KC(3),   KS_3,		KS_section,	KS_threesuperior,KS_numbersign,
    189     KC(4),   KS_4,		KS_dollar,	KS_degree,	KS_cent,
    190     KC(6),   KS_6,		KS_ampersand,	KS_onehalf,	KS_asciicircum,
    191     KC(7),   KS_7,		KS_slash,	KS_threequarters,KS_ampersand,
    192     KC(8),   KS_8,		KS_parenleft,	KS_periodcentered,KS_asterisk,
    193     KC(9),   KS_9,		KS_parenright,	KS_guillemotleft,KS_parenleft,
    194     KC(10),  KS_0,		KS_equal,	KS_guillemotright,KS_parenright,
    195     KC(11),  KS_ssharp,		KS_question,	KS_minus,	KS_underscore,
    196     KC(12),  KS_dead_acute,	KS_dead_grave,	KS_equal,	KS_plus,
    197     KC(21),  KS_z,		KS_Z,		KS_currency,	KS_yen,
    198     KC(26),  KS_udiaeresis,	KS_Udiaeresis,	KS_bracketleft,	KS_braceleft,
    199     KC(27),  KS_plus,		KS_asterisk,	KS_bracketright,KS_braceright,
    200     KC(41),  KS_odiaeresis,	KS_Odiaeresis,	KS_semicolon,	KS_colon,
    201     KC(42),  KS_adiaeresis,	KS_Adiaeresis,	KS_apostrophe,	KS_quotedbl,
    202     KC(43),  KS_numbersign,	KS_asciicircum,
    203     KC(48),  KS_less,		KS_greater,
    204     KC(49),  KS_y,		KS_Y,		KS_plusminus,	KS_notsign,
    205     KC(50),  KS_x,		KS_X,		KS_multiply,	KS_division,
    206     KC(51),  KS_c,		KS_C,		KS_ccedilla,	KS_Ccedilla,
    207     KC(54),  KS_n,		KS_N,		KS_hyphen,	KS_macron,
    208     KC(55),  KS_m,		KS_M,		KS_cedilla,	KS_questiondown,
    209     KC(56),  KS_comma,		KS_semicolon,	KS_comma,	KS_less,
    210     KC(57),  KS_period,		KS_colon,	KS_period,	KS_greater,
    211     KC(58),  KS_minus,		KS_underscore,	KS_slash,	KS_question,
    212     KC(90),  KS_bracketleft,	KS_braceleft,
    213     KC(91),  KS_bracketright,	KS_braceright,
    214 };
    215 
    216 static const keysym_t amikbd_keydesc_de_nodead[] = {
    217 /*  keycode  normal		shift		alt		shift-alt */
    218     KC(12),  KS_apostrophe,	KS_grave,	KS_equal,	KS_plus,
    219 };
    220 
    221 static const keysym_t amikbd_keydesc_pl[] = {
    222 /*  pos      normal		shifted		altgr		shift-altgr */
    223     KC(18),  KS_e,		KS_E,		KS_ecircumflex,	KS_Ecircumflex,
    224     KC(24),  KS_o,		KS_O,		KS_oacute,	KS_Oacute,
    225     KC(32),  KS_a,		KS_A,		KS_plusminus,	KS_exclamdown,
    226     KC(33),  KS_s,		KS_S,		KS_paragraph,	KS_brokenbar,
    227     KC(40),  KS_l,		KS_L,		KS_threesuperior, KS_sterling,
    228     KC(49),  KS_z,		KS_Z,		KS_questiondown, KS_macron,
    229     KC(50),  KS_x,		KS_X,		KS_onequarter,	KS_notsign,
    230     KC(51),  KS_c,		KS_C,		KS_ae,		KS_AE,
    231     KC(54),  KS_n,		KS_N,		KS_ntilde,	KS_Ntilde,
    232 };
    233 
    234 static const keysym_t amikbd_keydesc_fr[] = {
    235 /*  keycode  normal		shift		alt		shift-alt */
    236     KC(1),   KS_ampersand,	KS_1,		KS_onesuperior,	KS_exclam,
    237     KC(2),   KS_eacute,		KS_2,		KS_twosuperior,	KS_at,
    238     KC(3),   KS_quotedbl,	KS_3,		KS_threesuperior,KS_numbersign,
    239     KC(4),   KS_apostrophe,	KS_4,		KS_cent,	KS_dollar,
    240     KC(5),   KS_parenleft,	KS_5,		KS_onequarter,	KS_percent,
    241     KC(6),   KS_section,	KS_6,		KS_onehalf,	KS_asciicircum,
    242     KC(7),   KS_egrave,		KS_7,		KS_threequarters,KS_ampersand,
    243     KC(8),   KS_exclam,		KS_8,		KS_periodcentered,KS_asterisk,
    244     KC(9),   KS_ccedilla,	KS_9,		KS_guillemotleft,KS_parenleft,
    245     KC(10),  KS_agrave,		KS_0,		KS_guillemotright,KS_parenright,
    246     KC(11),  KS_parenright,	KS_degree,	KS_minus,	KS_underscore,
    247     KC(12),  KS_minus,		KS_underscore,	KS_equal,	KS_plus,
    248     KC(16),  KS_a,		KS_A,		KS_aring,	KS_Aring,
    249     KC(17),  KS_z,		KS_Z,		KS_degree,	KS_degree,
    250     KC(26),  KS_dead_circumflex,KS_dead_diaeresis,KS_bracketleft,KS_braceleft,
    251     KC(27),  KS_dollar,		KS_asterisk,	KS_bracketright,KS_braceright,
    252     KC(32),  KS_q,		KS_Q,		KS_ae,		KS_AE,
    253     KC(41),  KS_m,		KS_M,		KS_semicolon,	KS_semicolon,
    254     KC(42),  KS_Ugrave,		KS_percent,	KS_apostrophe,	KS_quotedbl,
    255     KC(43),  KS_mu,		KS_sterling,	KS_mu,		KS_sterling,
    256     KC(48),  KS_less,		KS_greater,	KS_less,	KS_greater,
    257     KC(49),  KS_w,		KS_W,		KS_plusminus,	KS_notsign,
    258     KC(50),  KS_x,		KS_X,		KS_multiply,	KS_division,
    259     KC(54),  KS_n,		KS_N,		KS_hyphen,	KS_macron,
    260     KC(55),  KS_comma,		KS_question,	KS_cedilla,	KS_questiondown,
    261     KC(56),  KS_semicolon,	KS_period,	KS_comma,	KS_less,
    262     KC(57),  KS_colon,		KS_slash,	KS_period,	KS_greater,
    263     KC(58),  KS_equal,		KS_plus,	KS_slash,	KS_question,
    264     KC(90),  KS_bracketleft,	KS_braceleft,
    265     KC(91),  KS_bracketright,	KS_braceright,
    266 };
    267 
    268 static const keysym_t amikbd_keydesc_fr_nodead[] = {
    269 /*  keycode  normal		shift		alt		shift-alt */
    270     KC(26),  KS_asciicircum,	KS_diaeresis,	KS_bracketleft,	KS_braceleft,
    271 };
    272 
    273 static const keysym_t amikbd_keydesc_dk[] = {
    274 /*  pos      normal		shifted		altgr		shift-altgr */
    275     KC(3),   KS_3,		KS_numbersign,	KS_threesuperior,KS_numbersign,
    276     KC(4),   KS_4,		KS_currency,	KS_cent,	KS_dollar,
    277     KC(41),  KS_ae,		KS_AE,		KS_semicolon,	KS_colon,
    278     KC(42),  KS_oslash,		KS_Ooblique,	KS_apostrophe,	KS_quotedbl,
    279 };
    280 
    281 static const keysym_t amikbd_keydesc_sv[] = {
    282 /*  keycode  normal		shift		alt		shift-alt */
    283     KC(2),   KS_2,		KS_quotedbl,    KS_twosuperior,	KS_at,
    284     KC(3),   KS_3,		KS_sterling,	KS_threesuperior,KS_numbersign,
    285     KC(6),   KS_6,		KS_ampersand,   KS_onehalf,	KS_asciicircum,
    286     KC(7),   KS_7,		KS_slash,	KS_threequarters,KS_ampersand,
    287     KC(8),   KS_8,		KS_parenleft,	KS_periodcentered,KS_asterisk,
    288     KC(9),   KS_9,		KS_parenright,	KS_guillemotleft,KS_parenleft,
    289     KC(10),  KS_0,		KS_equal,	KS_guillemotright,KS_parenright,
    290     KC(11),  KS_plus,		KS_question,	KS_minus,	KS_underscore,
    291     KC(12),  KS_dead_acute,	KS_dead_grave,	KS_equal,	KS_plus,
    292     KC(26),  KS_acircumflex,	KS_Acircumflex, KS_bracketleft,	KS_braceleft,
    293     KC(27),  KS_dead_diaeresis,KS_dead_circumflex,KS_bracketright,KS_braceright,
    294     KC(41),  KS_odiaeresis,	KS_Odiaeresis,	KS_semicolon,	KS_colon,
    295     KC(42),  KS_adiaeresis,	KS_Adiaeresis,	KS_apostrophe,	KS_quotedbl,
    296     KC(43),  KS_apostrophe,	KS_asterisk,
    297     KC(48),  KS_less,		KS_greater,
    298     KC(56),  KS_comma,		KS_semicolon,	KS_comma,	KS_less,
    299     KC(57),  KS_period,		KS_colon,	KS_period,	KS_greater,
    300     KC(58),  KS_minus,		KS_underscore,	KS_slash,	KS_question,
    301     KC(90),  KS_bracketleft,	KS_braceleft,
    302     KC(91),  KS_bracketright,	KS_braceright,
    303 };
    304 
    305 static const keysym_t amikbd_keydesc_sv_nodead[] = {
    306 /*  keycode  normal		shift		alt		shift-alt */
    307     KC(12),  KS_apostrophe,	KS_grave,	KS_equal,	KS_plus,
    308     KC(27),  KS_diaeresis,	KS_asciicircum,	KS_bracketleft,	KS_braceleft,
    309 };
    310 
    311 static const keysym_t amikbd_keydesc_no[] = {
    312 /*  pos      normal		shifted		altgr		shift-altgr */
    313     KC(41),  KS_oslash,		KS_Ooblique,	KS_semicolon,	KS_colon,
    314     KC(42),  KS_ae,		KS_AE,		KS_apostrophe,	KS_quotedbl,
    315 };
    316 
    317 static const keysym_t amikbd_keydesc_es[] = {
    318 /*  keycode  normal		shift		alt		shift-alt */
    319     KC(1),   KS_1,		KS_exclamdown,	KS_onesuperior, KS_exclam,
    320     KC(2),   KS_2,		KS_questiondown,KS_twosuperior,	KS_at,
    321     KC(4),   KS_4,		KS_dollar,	KS_cent,	KS_degree,
    322     KC(5),   KS_5,		KS_percent,	KS_onequarter,	KS_percent,
    323     KC(6),   KS_6,		KS_slash,	KS_onehalf,	KS_asciicircum,
    324     KC(26),  KS_dead_acute,	KS_dead_diaeresis,KS_bracketleft,KS_braceleft,
    325     KC(27),  KS_dead_grave,KS_dead_circumflex,KS_bracketright,KS_braceright,
    326     KC(41),  KS_ntilde,		KS_Ntilde,	KS_semicolon,	KS_colon,
    327     KC(42),  KS_semicolon,	KS_colon,	KS_apostrophe,	KS_quotedbl,
    328     KC(43),  KS_ccedilla,	KS_Ccedilla,	KS_ordfeminine,	KS_masculine,
    329     KC(48),  KS_less,		KS_greater,KS_guillemotleft,KS_guillemotright,
    330     KC(49),  KS_z,		KS_Z,		KS_plusminus,	KS_notsign,
    331     KC(50),  KS_x,		KS_X,		KS_multiply,	KS_division,
    332     KC(54),  KS_n,		KS_N,		KS_hyphen,	KS_macron,
    333     KC(55),  KS_m,		KS_M,		KS_cedilla,	KS_questiondown,
    334     KC(56),  KS_comma,		KS_question,	KS_comma,	KS_less,
    335     KC(57),  KS_period,		KS_exclam,	KS_period,	KS_greater,
    336     KC(58),  KS_apostrophe,	KS_quotedbl,	KS_slash,	KS_question,
    337     KC(90),  KS_bracketleft,	KS_braceleft,
    338     KC(91),  KS_bracketright,	KS_braceright,
    339 };
    340 
    341 static const keysym_t amikbd_keydesc_es_nodead[] = {
    342 /*  keycode  normal		shift		alt		shift-alt */
    343     KC(26),  KS_apostrophe,	KS_diaeresis,	KS_bracketleft,	KS_braceleft,
    344     KC(27),  KS_grave,		KS_asciicircum,	KS_bracketright,KS_braceright,
    345 };
    346 
    347 #define KBD_MAP(name, base, map) \
    348 			{ name, base, sizeof(map)/sizeof(keysym_t), map }
    349 
    350 const struct wscons_keydesc amigakbd_keydesctab[] = {
    351 	KBD_MAP(KB_US,			0,	amikbd_keydesc_us),
    352 	KBD_MAP(KB_DE,			KB_US,	amikbd_keydesc_de),
    353 	KBD_MAP(KB_DE | KB_NODEAD,	KB_DE,	amikbd_keydesc_de_nodead),
    354 	KBD_MAP(KB_FR,			KB_US,	amikbd_keydesc_fr),
    355 	KBD_MAP(KB_FR | KB_NODEAD,	KB_FR,	amikbd_keydesc_fr_nodead),
    356 	KBD_MAP(KB_DK,			KB_SV,	amikbd_keydesc_dk),
    357 	KBD_MAP(KB_DK | KB_NODEAD,	KB_DK,	amikbd_keydesc_sv_nodead),
    358 	KBD_MAP(KB_PL,			KB_US,	amikbd_keydesc_pl),
    359 	KBD_MAP(KB_SV,			KB_US,	amikbd_keydesc_sv),
    360 	KBD_MAP(KB_SV | KB_NODEAD,	KB_SV,	amikbd_keydesc_sv_nodead),
    361 	KBD_MAP(KB_NO,			KB_SV,	amikbd_keydesc_no),
    362 	KBD_MAP(KB_NO | KB_NODEAD,	KB_NO,	amikbd_keydesc_sv_nodead),
    363 	KBD_MAP(KB_ES,			KB_US,	amikbd_keydesc_es),
    364 	KBD_MAP(KB_ES | KB_NODEAD,	KB_ES,	amikbd_keydesc_es_nodead),
    365 	{ 0, 0, 0, 0}
    366 };
    367 
    368 #undef KBD_MAP
    369 #undef KC
    370