Home | History | Annotate | Line # | Download | only in sun
wskbdmap_sun.c revision 1.16
      1  1.16       jdc /*	$NetBSD: wskbdmap_sun.c,v 1.16 2009/01/02 13:09:36 jdc Exp $	*/
      2   1.1    martin /*	$OpenBSD: sunkbd.c,v 1.9 2002/09/08 23:22:00 miod Exp $	*/
      3   1.1    martin 
      4   1.1    martin /*
      5   1.1    martin  * Copyright (c) 2002 Jason L. Wright (jason (at) thought.net)
      6   1.1    martin  * All rights reserved.
      7   1.1    martin  *
      8   1.1    martin  * Redistribution and use in source and binary forms, with or without
      9   1.1    martin  * modification, are permitted provided that the following conditions
     10   1.1    martin  * are met:
     11   1.1    martin  * 1. Redistributions of source code must retain the above copyright
     12   1.1    martin  *    notice, this list of conditions and the following disclaimer.
     13   1.1    martin  * 2. Redistributions in binary form must reproduce the above copyright
     14   1.1    martin  *    notice, this list of conditions and the following disclaimer in the
     15   1.1    martin  *    documentation and/or other materials provided with the distribution.
     16   1.1    martin  * 3. All advertising materials mentioning features or use of this software
     17   1.1    martin  *    must display the following acknowledgement:
     18   1.1    martin  *	This product includes software developed by Jason L. Wright
     19   1.1    martin  * 4. The name of the author may not be used to endorse or promote products
     20   1.1    martin  *    derived from this software without specific prior written permission.
     21   1.1    martin  *
     22   1.1    martin  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     23   1.1    martin  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
     24   1.1    martin  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
     25   1.1    martin  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
     26   1.1    martin  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
     27   1.1    martin  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
     28   1.1    martin  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     29   1.1    martin  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
     30   1.1    martin  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
     31   1.1    martin  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     32   1.1    martin  * POSSIBILITY OF SUCH DAMAGE.
     33   1.1    martin  *
     34   1.1    martin  * Effort sponsored in part by the Defense Advanced Research Projects
     35   1.1    martin  * Agency (DARPA) and Air Force Research Laboratory, Air Force
     36   1.1    martin  * Materiel Command, USAF, under agreement number F30602-01-2-0537.
     37   1.1    martin  *
     38   1.1    martin  */
     39   1.3     lukem 
     40   1.3     lukem #include <sys/cdefs.h>
     41  1.16       jdc __KERNEL_RCSID(0, "$NetBSD: wskbdmap_sun.c,v 1.16 2009/01/02 13:09:36 jdc Exp $");
     42   1.1    martin 
     43   1.1    martin #include <sys/types.h>
     44   1.1    martin #include <dev/wscons/wsksymdef.h>
     45   1.1    martin #include <dev/wscons/wsksymvar.h>
     46   1.1    martin 
     47  1.13  macallan #include "opt_sunkbd.h"
     48  1.13  macallan 
     49   1.1    martin #define KC(n) KS_KEYCODE(n)
     50   1.1    martin 
     51   1.1    martin static const keysym_t wssun_keydesctab_us [] = {
     52   1.1    martin /*  pos      command			normal		shifted */
     53   1.1    martin     KC(0x01), KS_Cmd,
     54   1.1    martin     KC(0x02), KS_Cmd_BrightnessDown,
     55   1.1    martin     KC(0x03),				KS_Again,
     56   1.1    martin     KC(0x04), KS_Cmd_BrightnessUp,
     57   1.4    martin     KC(0x05), KS_Cmd_Screen0,				KS_f1,
     58   1.4    martin     KC(0x06), KS_Cmd_Screen1,				KS_f2,
     59   1.4    martin     KC(0x07), KS_Cmd_Screen9,				KS_f10,
     60   1.4    martin     KC(0x08), KS_Cmd_Screen2,				KS_f3,
     61   1.1    martin     KC(0x09),				KS_f11,
     62   1.4    martin     KC(0x0a), KS_Cmd_Screen3,				KS_f4,
     63   1.1    martin     KC(0x0b),				KS_f12,
     64   1.4    martin     KC(0x0c), KS_Cmd_Screen4,				KS_f5,
     65   1.1    martin     KC(0x0d),				KS_Alt_R,
     66   1.4    martin     KC(0x0e), KS_Cmd_Screen5,				KS_f6,
     67   1.4    martin     KC(0x10), KS_Cmd_Screen6,				KS_f7,
     68   1.4    martin     KC(0x11), KS_Cmd_Screen7,				KS_f8,
     69   1.4    martin     KC(0x12), KS_Cmd_Screen8,				KS_f9,
     70   1.6  macallan #ifdef SPARCBOOK_CMD
     71   1.7  macallan     KC(0x13), KS_Cmd,			KS_Alt_L,
     72   1.6  macallan #else
     73   1.7  macallan     KC(0x13),				KS_Alt_L,
     74   1.6  macallan #endif
     75  1.14  macallan     KC(0x14), KS_Cmd_ScrollSlowUp,	KS_Up,
     76   1.1    martin     KC(0x15),				KS_Pause,
     77   1.1    martin     KC(0x16),				KS_Print_Screen,
     78   1.1    martin     KC(0x17),				KS_Hold_Screen,
     79   1.1    martin     KC(0x18),				KS_Left,
     80   1.1    martin     KC(0x19),				KS_Props,
     81   1.1    martin     KC(0x1a),				KS_Undo,
     82  1.14  macallan     KC(0x1b), KS_Cmd_ScrollSlowDown,	KS_Down,
     83   1.1    martin     KC(0x1c),				KS_Right,
     84   1.1    martin     KC(0x1d),				KS_Escape,
     85   1.1    martin     KC(0x1e),				KS_1,		KS_exclam,
     86   1.1    martin     KC(0x1f),				KS_2,		KS_at,
     87   1.1    martin     KC(0x20),				KS_3,		KS_numbersign,
     88   1.1    martin     KC(0x21),				KS_4,		KS_dollar,
     89   1.1    martin     KC(0x22),				KS_5,		KS_percent,
     90   1.1    martin     KC(0x23),				KS_6,		KS_asciicircum,
     91   1.1    martin     KC(0x24),				KS_7,		KS_ampersand,
     92   1.1    martin     KC(0x25),				KS_8,		KS_asterisk,
     93   1.1    martin     KC(0x26),				KS_9,		KS_parenleft,
     94   1.1    martin     KC(0x27),				KS_0,		KS_parenright,
     95   1.1    martin     KC(0x28),				KS_minus,	KS_underscore,
     96   1.1    martin     KC(0x29),				KS_equal,	KS_plus,
     97   1.1    martin     KC(0x2a),				KS_grave,	KS_asciitilde,
     98   1.1    martin     KC(0x2b),				KS_Delete,
     99   1.1    martin     KC(0x2c),				KS_Insert,
    100   1.1    martin     KC(0x2d),				KS_KP_Equal,
    101   1.1    martin     KC(0x2e),				KS_KP_Divide,
    102   1.1    martin     KC(0x2f),				KS_KP_Multiply,
    103   1.9    martin     KC(0x30),				KS_Power,
    104   1.1    martin     KC(0x31),				KS_Front,
    105   1.1    martin     KC(0x32),				KS_KP_Delete,	KS_KP_Decimal,
    106   1.1    martin     KC(0x33),				KS_Copy,
    107   1.1    martin     KC(0x34),				KS_Home,
    108   1.1    martin     KC(0x35),				KS_Tab,
    109   1.1    martin     KC(0x36),				KS_q,
    110   1.1    martin     KC(0x37),				KS_w,
    111   1.1    martin     KC(0x38),				KS_e,
    112   1.1    martin     KC(0x39),				KS_r,
    113   1.1    martin     KC(0x3a),				KS_t,
    114   1.1    martin     KC(0x3b),				KS_y,
    115   1.1    martin     KC(0x3c),				KS_u,
    116   1.1    martin     KC(0x3d),				KS_i,
    117   1.1    martin     KC(0x3e),				KS_o,
    118   1.1    martin     KC(0x3f),				KS_p,
    119   1.1    martin     KC(0x40),				KS_bracketleft,	KS_braceleft,
    120   1.1    martin     KC(0x41),				KS_bracketright,KS_braceright,
    121   1.1    martin     KC(0x42),				KS_Delete,
    122   1.1    martin     KC(0x43),				KS_Multi_key,
    123   1.1    martin     KC(0x44),				KS_KP_Home,	KS_KP_7,
    124  1.14  macallan     KC(0x45), KS_Cmd_ScrollSlowUp,	KS_KP_Up,	KS_KP_8,
    125  1.14  macallan     KC(0x46), KS_Cmd_ScrollFastUp,	KS_KP_Prior,	KS_KP_9,
    126   1.1    martin     KC(0x47),				KS_KP_Subtract,
    127   1.1    martin     KC(0x48),				KS_Open,
    128   1.1    martin     KC(0x49),				KS_Paste,
    129   1.1    martin     KC(0x4a),				KS_End,
    130   1.1    martin     KC(0x4c),				KS_Control_L,
    131   1.1    martin     KC(0x4d), KS_Cmd_Debugger,		KS_a,
    132   1.1    martin     KC(0x4e),				KS_s,
    133   1.1    martin     KC(0x4f),				KS_d,
    134   1.1    martin     KC(0x50),				KS_f,
    135   1.1    martin     KC(0x51),				KS_g,
    136   1.1    martin     KC(0x52),				KS_h,
    137   1.1    martin     KC(0x53),				KS_j,
    138   1.1    martin     KC(0x54),				KS_k,
    139   1.1    martin     KC(0x55),				KS_l,
    140   1.1    martin     KC(0x56),				KS_semicolon,	KS_colon,
    141   1.1    martin     KC(0x57),				KS_apostrophe,	KS_quotedbl,
    142   1.1    martin     KC(0x58),				KS_backslash,	KS_bar,
    143   1.1    martin     KC(0x59),				KS_Return,
    144   1.1    martin     KC(0x5a),				KS_KP_Enter,
    145   1.1    martin     KC(0x5b),				KS_KP_Left,	KS_KP_4,
    146   1.1    martin     KC(0x5c),				KS_KP_Begin,	KS_KP_5,
    147   1.1    martin     KC(0x5d),				KS_KP_Right,	KS_KP_6,
    148   1.1    martin     KC(0x5e),				KS_KP_Insert,	KS_KP_0,
    149   1.1    martin     KC(0x5f),				KS_Find,
    150  1.14  macallan     KC(0x60), KS_Cmd_ScrollFastUp,	KS_Prior,
    151   1.1    martin     KC(0x61),				KS_Cut,
    152   1.1    martin     KC(0x62),				KS_Num_Lock,
    153   1.1    martin     KC(0x63),				KS_Shift_L,
    154   1.1    martin     KC(0x64),				KS_z,
    155   1.1    martin     KC(0x65),				KS_x,
    156   1.1    martin     KC(0x66),				KS_c,
    157   1.1    martin     KC(0x67),				KS_v,
    158   1.1    martin     KC(0x68),				KS_b,
    159   1.1    martin     KC(0x69),				KS_n,
    160   1.1    martin     KC(0x6a),				KS_m,
    161   1.1    martin     KC(0x6b),				KS_comma,	KS_less,
    162   1.1    martin     KC(0x6c),				KS_period,	KS_greater,
    163   1.1    martin     KC(0x6d),				KS_slash,	KS_question,
    164   1.1    martin     KC(0x6e),				KS_Shift_R,
    165   1.1    martin     KC(0x6f),				KS_Linefeed,
    166   1.1    martin     KC(0x70),				KS_KP_End,	KS_KP_1,
    167  1.14  macallan     KC(0x71), KS_Cmd_ScrollSlowDown,	KS_KP_Down,	KS_KP_2,
    168  1.14  macallan     KC(0x72), KS_Cmd_ScrollFastDown,	KS_KP_Next,	KS_KP_3,
    169   1.1    martin     KC(0x76),				KS_Help,
    170   1.1    martin     KC(0x77),				KS_Caps_Lock,
    171   1.1    martin     KC(0x78),				KS_Meta_L,
    172   1.1    martin     KC(0x79),				KS_space,
    173   1.1    martin     KC(0x7a),				KS_Meta_R,
    174  1.14  macallan     KC(0x7b), KS_Cmd_ScrollFastDown,	KS_Next,
    175   1.1    martin     KC(0x7d),				KS_KP_Add,
    176   1.1    martin };
    177   1.1    martin 
    178   1.1    martin const keysym_t wssun_keydesctab_sv[] = {
    179   1.1    martin     KC(0x0d),		KS_Multi_key,
    180   1.5     perry     KC(0x0f),		KS_asciitilde,	KS_asciicircum,
    181   1.1    martin     KC(0x1f),		KS_2,		KS_quotedbl,	KS_at,
    182   1.1    martin     KC(0x20),		KS_3,		KS_numbersign,	KS_sterling,
    183   1.1    martin     KC(0x21),		KS_4,		KS_currency,	KS_dollar,
    184   1.1    martin     KC(0x23),		KS_6,		KS_ampersand,
    185   1.1    martin     KC(0x24),		KS_7,		KS_slash,	KS_braceleft,
    186   1.1    martin     KC(0x25),		KS_8,		KS_parenleft,	KS_bracketleft,
    187   1.1    martin     KC(0x26),		KS_9,		KS_parenright,	KS_bracketright,
    188   1.1    martin     KC(0x27),		KS_0,		KS_equal,	KS_braceright,
    189   1.1    martin     KC(0x28),		KS_plus,	KS_question,	KS_backslash,
    190   1.1    martin     KC(0x29),		KS_dead_acute,	KS_dead_grave,
    191   1.1    martin     KC(0x2a),		KS_apostrophe,	KS_asterisk,	KS_grave,
    192   1.1    martin     KC(0x40),		KS_aring,
    193   1.1    martin     KC(0x41),		KS_dead_diaeresis,KS_dead_circumflex,KS_dead_tilde,
    194   1.1    martin     KC(0x43),		KS_Mode_switch,
    195   1.1    martin     KC(0x4c),		KS_Caps_Lock,
    196   1.1    martin     KC(0x56),		KS_odiaeresis,
    197   1.1    martin     KC(0x57),		KS_adiaeresis,
    198   1.1    martin     KC(0x58),		KS_paragraph,	KS_onehalf,
    199   1.1    martin     KC(0x6b),		KS_comma,	KS_semicolon,
    200   1.1    martin     KC(0x6c),		KS_period,	KS_colon,
    201   1.1    martin     KC(0x6d),		KS_minus,	KS_underscore,
    202   1.1    martin     KC(0x77),		KS_Control_L,
    203   1.1    martin     KC(0x7c),		KS_less,	KS_greater,	KS_bar,
    204   1.1    martin };
    205   1.1    martin 
    206   1.1    martin const keysym_t wssun_keydesctab_sv_nodead[] = {
    207   1.1    martin     KC(0x29),		KS_apostrophe,	KS_grave,
    208   1.1    martin     KC(0x41),		KS_diaeresis,	KS_asciicircum,	KS_asciitilde,
    209   1.1    martin };
    210   1.1    martin 
    211   1.8    martin const keysym_t wssun_keydesctab_de[] = {
    212   1.8    martin     KC(0x0d),		KS_Mode_switch,	/* Alt Graph (Alt R code) */
    213   1.8    martin     KC(0x1f),		KS_2,		KS_quotedbl,	KS_twosuperior,
    214   1.8    martin     KC(0x20),		KS_3,		KS_paragraph,	KS_threesuperior,
    215   1.8    martin     KC(0x21),		KS_4,		KS_dollar,
    216   1.8    martin     KC(0x22),		KS_5,		KS_percent,
    217   1.8    martin     KC(0x23),		KS_6,		KS_ampersand,
    218   1.8    martin     KC(0x24),		KS_7,		KS_slash,	KS_braceleft,
    219   1.8    martin     KC(0x25),		KS_8,		KS_parenleft,	KS_bracketleft,
    220   1.8    martin     KC(0x26),		KS_9,		KS_parenright,	KS_bracketright,
    221   1.8    martin     KC(0x27),		KS_0,		KS_equal,	KS_braceright,
    222   1.8    martin     KC(0x28),		KS_ssharp,	KS_question,	KS_backslash,
    223   1.8    martin     KC(0x29),		KS_dead_acute,	KS_dead_grave,
    224   1.8    martin     KC(0x2a),		KS_dead_circumflex, KS_dead_abovering,
    225   1.8    martin     KC(0x36),		KS_q,		KS_Q,		KS_at,
    226   1.8    martin     KC(0x3b),		KS_z,
    227   1.8    martin     KC(0x40),		KS_udiaeresis,
    228   1.8    martin     /* KC(0x43) - Compose - could be used for mode switch too */
    229   1.8    martin     KC(0x41),		KS_plus,	KS_asterisk,	KS_dead_tilde,
    230   1.8    martin     KC(0x56),		KS_odiaeresis,
    231   1.8    martin     KC(0x57),		KS_adiaeresis,
    232   1.8    martin     KC(0x58),		KS_numbersign,	KS_apostrophe,	KS_acute,
    233   1.8    martin     KC(0x64),		KS_y,
    234   1.8    martin     KC(0x6a),		KS_m,		KS_M,		KS_mu,
    235   1.8    martin     KC(0x6b),		KS_comma,	KS_semicolon,
    236   1.8    martin     KC(0x6c),		KS_period,	KS_colon,
    237   1.8    martin     KC(0x6d),		KS_minus,	KS_underscore,
    238   1.8    martin     KC(0x7c),		KS_less,	KS_greater,	KS_bar,
    239   1.8    martin };
    240   1.8    martin 
    241   1.8    martin const keysym_t wssun_keydesctab_de_nodead[] = {
    242   1.8    martin     KC(0x29),		KS_apostrophe,	KS_grave,
    243   1.8    martin     KC(0x2a),		KS_asciicircum,	KS_degree,
    244   1.8    martin     KC(0x41),		KS_plus,	KS_asterisk,	KS_asciitilde,
    245   1.8    martin };
    246   1.8    martin 
    247  1.10       jdc const keysym_t wssun_keydesctab_uk[] = {
    248  1.10       jdc     KC(0x1f),		KS_2,		KS_quotedbl,
    249  1.10       jdc     KC(0x20),		KS_3,		KS_sterling,
    250  1.11       jdc     KC(0x21),		KS_4,		KS_dollar,	KS_currency,
    251  1.10       jdc     KC(0x2a),		KS_grave,	KS_notsign,
    252  1.10       jdc     KC(0x57),		KS_apostrophe,	KS_at,
    253  1.10       jdc     KC(0x58),		KS_numbersign,	KS_asciitilde,
    254  1.10       jdc     KC(0x7c),		KS_backslash,	KS_bar,
    255  1.10       jdc };
    256  1.10       jdc 
    257  1.15      ghen static const keysym_t wssun_keydesctab_us_dvorak[] = {
    258  1.15      ghen /*  pos      command			normal		shifted */
    259  1.15      ghen     KC(0x28),				KS_bracketleft,	KS_braceleft,
    260  1.15      ghen     KC(0x29),				KS_bracketright,KS_braceright,
    261  1.15      ghen     KC(0x36),				KS_apostrophe,	KS_quotedbl,
    262  1.15      ghen     KC(0x37),				KS_comma,	KS_less,
    263  1.15      ghen     KC(0x38),				KS_period,	KS_greater,
    264  1.15      ghen     KC(0x39),				KS_p,
    265  1.15      ghen     KC(0x3a),				KS_y,
    266  1.15      ghen     KC(0x3b),				KS_f,
    267  1.15      ghen     KC(0x3c),				KS_g,
    268  1.15      ghen     KC(0x3d),				KS_c,
    269  1.15      ghen     KC(0x3e),				KS_r,
    270  1.15      ghen     KC(0x3f),				KS_l,
    271  1.15      ghen     KC(0x40),				KS_slash,	KS_question,
    272  1.15      ghen     KC(0x41),				KS_equal,	KS_plus,
    273  1.15      ghen     KC(0x4d), KS_Cmd_Debugger,		KS_a,
    274  1.15      ghen     KC(0x4e),				KS_o,
    275  1.15      ghen     KC(0x4f),				KS_e,
    276  1.15      ghen     KC(0x50),				KS_u,
    277  1.15      ghen     KC(0x51),				KS_i,
    278  1.15      ghen     KC(0x52),				KS_d,
    279  1.15      ghen     KC(0x53),				KS_h,
    280  1.15      ghen     KC(0x54),				KS_t,
    281  1.15      ghen     KC(0x55),				KS_n,
    282  1.15      ghen     KC(0x56),				KS_s,
    283  1.15      ghen     KC(0x57),				KS_minus,	KS_underscore,
    284  1.15      ghen     KC(0x64),				KS_semicolon,	KS_colon,
    285  1.15      ghen     KC(0x65),				KS_q,
    286  1.15      ghen     KC(0x66),				KS_j,
    287  1.15      ghen     KC(0x67),				KS_k,
    288  1.15      ghen     KC(0x68),				KS_x,
    289  1.15      ghen     KC(0x69),				KS_b,
    290  1.15      ghen     KC(0x6a),				KS_m,
    291  1.15      ghen     KC(0x6b),				KS_w,
    292  1.15      ghen     KC(0x6c),				KS_v,
    293  1.15      ghen     KC(0x6d),				KS_z,
    294  1.15      ghen };
    295  1.15      ghen 
    296  1.15      ghen static const keysym_t wssun_keydesctab_us_colemak [] = {
    297  1.15      ghen /*  pos      command			normal		shifted */
    298  1.15      ghen     KC(0x36),				KS_q,
    299  1.15      ghen     KC(0x37),				KS_w,
    300  1.15      ghen     KC(0x38),				KS_f,
    301  1.15      ghen     KC(0x39),				KS_p,
    302  1.15      ghen     KC(0x3a),				KS_g,
    303  1.15      ghen     KC(0x3b),				KS_j,
    304  1.15      ghen     KC(0x3c),				KS_l,
    305  1.15      ghen     KC(0x3d),				KS_u,
    306  1.15      ghen     KC(0x3e),				KS_y,
    307  1.15      ghen     KC(0x3f),				KS_semicolon,	KS_colon,
    308  1.15      ghen     KC(0x4d), KS_Cmd_Debugger,		KS_a,
    309  1.15      ghen     KC(0x4e),				KS_r,
    310  1.15      ghen     KC(0x4f),				KS_s,
    311  1.15      ghen     KC(0x50),				KS_t,
    312  1.15      ghen     KC(0x51),				KS_d,
    313  1.15      ghen     KC(0x52),				KS_h,
    314  1.15      ghen     KC(0x53),				KS_n,
    315  1.15      ghen     KC(0x54),				KS_e,
    316  1.15      ghen     KC(0x55),				KS_i,
    317  1.15      ghen     KC(0x56),				KS_o,
    318  1.15      ghen     KC(0x64),				KS_z,
    319  1.15      ghen     KC(0x65),				KS_x,
    320  1.15      ghen     KC(0x66),				KS_c,
    321  1.15      ghen     KC(0x67),				KS_v,
    322  1.15      ghen     KC(0x68),				KS_b,
    323  1.15      ghen     KC(0x69),				KS_k,
    324  1.15      ghen     KC(0x6a),				KS_m,
    325  1.15      ghen     KC(0x77),				KS_Delete,
    326  1.15      ghen };
    327  1.15      ghen 
    328   1.1    martin #define KBD_MAP(name, base, map) \
    329   1.1    martin 			{ name, base, sizeof(map)/sizeof(keysym_t), map }
    330   1.1    martin /* KBD_NULLMAP generates a entry for machine native variant.
    331   1.1    martin    the entry will be modified by machine dependent keyboard driver. */
    332   1.1    martin #define KBD_NULLMAP(name, base) { name, base, 0, 0 }
    333   1.1    martin 
    334   1.1    martin const struct wscons_keydesc wssun_keydesctab[] = {
    335   1.1    martin 	KBD_MAP(KB_US,			0,	wssun_keydesctab_us),
    336   1.1    martin 	KBD_MAP(KB_SV,			KB_US,	wssun_keydesctab_sv),
    337   1.1    martin 	KBD_MAP(KB_SV | KB_NODEAD,	KB_SV,	wssun_keydesctab_sv_nodead),
    338   1.8    martin 	KBD_MAP(KB_DE,			KB_US,	wssun_keydesctab_de),
    339   1.8    martin 	KBD_MAP(KB_DE | KB_NODEAD,	KB_DE,	wssun_keydesctab_de_nodead),
    340  1.10       jdc 	KBD_MAP(KB_UK,			KB_US,	wssun_keydesctab_uk),
    341  1.15      ghen 	KBD_MAP(KB_US | KB_DVORAK,	KB_US,	wssun_keydesctab_us_dvorak),
    342  1.15      ghen 	KBD_MAP(KB_US | KB_COLEMAK,	KB_US,	wssun_keydesctab_us_colemak),
    343   1.1    martin 	{ 0, 0, 0, 0 }
    344   1.1    martin };
    345