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