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