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