The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/usb/ukbdmap.c

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*      $NetBSD: ukbdmap.c,v 1.12 2003/10/22 17:24:43 augustss Exp $    */
    2 
    3 /*
    4  * Copyright (c) 1999,2001 The NetBSD Foundation, Inc.
    5  * All rights reserved.
    6  *
    7  * This code is derived from software contributed to The NetBSD Foundation
    8  * by Lennart Augustsson (lennart@augustsson.net) at
    9  * Carlstedt Research & Technology.
   10  *
   11  * Redistribution and use in source and binary forms, with or without
   12  * modification, are permitted provided that the following conditions
   13  * are met:
   14  * 1. Redistributions of source code must retain the above copyright
   15  *    notice, this list of conditions and the following disclaimer.
   16  * 2. Redistributions in binary form must reproduce the above copyright
   17  *    notice, this list of conditions and the following disclaimer in the
   18  *    documentation and/or other materials provided with the distribution.
   19  * 3. All advertising materials mentioning features or use of this software
   20  *    must display the following acknowledgement:
   21  *      This product includes software developed by the NetBSD
   22  *      Foundation, Inc. and its contributors.
   23  * 4. Neither the name of The NetBSD Foundation nor the names of its
   24  *    contributors may be used to endorse or promote products derived
   25  *    from this software without specific prior written permission.
   26  *
   27  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
   28  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
   29  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
   30  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
   31  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   32  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   33  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   34  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   35  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   36  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   37  * POSSIBILITY OF SUCH DAMAGE.
   38  */
   39 
   40 #include <sys/cdefs.h>
   41 __KERNEL_RCSID(0, "$NetBSD: ukbdmap.c,v 1.12 2003/10/22 17:24:43 augustss Exp $");
   42 
   43 #include <sys/types.h>
   44 #include <dev/wscons/wsksymdef.h>
   45 #include <dev/wscons/wsksymvar.h>
   46 
   47 #include <dev/usb/usb_port.h>
   48 
   49 #define KC(n)           KS_KEYCODE(n)
   50 
   51 Static const keysym_t ukbd_keydesc_us[] = {
   52 /*  pos      command            normal          shifted */
   53     KC(4),                      KS_a,
   54     KC(5),                      KS_b,
   55     KC(6),                      KS_c,
   56     KC(7),                      KS_d,
   57     KC(8),                      KS_e,
   58     KC(9),                      KS_f,
   59     KC(10),                     KS_g,
   60     KC(11),                     KS_h,
   61     KC(12),                     KS_i,
   62     KC(13),                     KS_j,
   63     KC(14),                     KS_k,
   64     KC(15),                     KS_l,
   65     KC(16),                     KS_m,
   66     KC(17),                     KS_n,
   67     KC(18),                     KS_o,
   68     KC(19),                     KS_p,
   69     KC(20),                     KS_q,
   70     KC(21),                     KS_r,
   71     KC(22),                     KS_s,
   72     KC(23),                     KS_t,
   73     KC(24),                     KS_u,
   74     KC(25),                     KS_v,
   75     KC(26),                     KS_w,
   76     KC(27),                     KS_x,
   77     KC(28),                     KS_y,
   78     KC(29),                     KS_z,
   79     KC(30),                     KS_1,           KS_exclam,
   80     KC(31),                     KS_2,           KS_at,
   81     KC(32),                     KS_3,           KS_numbersign,
   82     KC(33),                     KS_4,           KS_dollar,
   83     KC(34),                     KS_5,           KS_percent,
   84     KC(35),                     KS_6,           KS_asciicircum,
   85     KC(36),                     KS_7,           KS_ampersand,
   86     KC(37),                     KS_8,           KS_asterisk,
   87     KC(38),                     KS_9,           KS_parenleft,
   88     KC(39),                     KS_0,           KS_parenright,
   89     KC(40),                     KS_Return,
   90     KC(41),   KS_Cmd_Debugger,  KS_Escape,
   91     KC(42),                     KS_BackSpace,
   92     KC(43),                     KS_Tab,
   93     KC(44),                     KS_space,
   94     KC(45),                     KS_minus,       KS_underscore,
   95     KC(46),                     KS_equal,       KS_plus,
   96     KC(47),                     KS_bracketleft, KS_braceleft,
   97     KC(48),                     KS_bracketright,KS_braceright,
   98     KC(49),                     KS_backslash,   KS_bar,
   99     KC(50),                     KS_backslash,   KS_bar,
  100     KC(51),                     KS_semicolon,   KS_colon,
  101     KC(52),                     KS_apostrophe,  KS_quotedbl,
  102     KC(53),                     KS_grave,       KS_asciitilde,
  103     KC(54),                     KS_comma,       KS_less,
  104     KC(55),                     KS_period,      KS_greater,
  105     KC(56),                     KS_slash,       KS_question,
  106     KC(57),                     KS_Caps_Lock,
  107     KC(58),  KS_Cmd_Screen0,    KS_f1,
  108     KC(59),  KS_Cmd_Screen1,    KS_f2,
  109     KC(60),  KS_Cmd_Screen2,    KS_f3,
  110     KC(61),  KS_Cmd_Screen3,    KS_f4,
  111     KC(62),  KS_Cmd_Screen4,    KS_f5,
  112     KC(63),  KS_Cmd_Screen5,    KS_f6,
  113     KC(64),  KS_Cmd_Screen6,    KS_f7,
  114     KC(65),  KS_Cmd_Screen7,    KS_f8,
  115     KC(66),  KS_Cmd_Screen8,    KS_f9,
  116     KC(67),  KS_Cmd_Screen9,    KS_f10,
  117     KC(68),                     KS_f11,
  118     KC(69),                     KS_f12,
  119     KC(70),                     KS_Print_Screen,
  120     KC(71),                     KS_Hold_Screen,
  121     KC(72),                     KS_Pause,
  122     KC(73),                     KS_Insert,
  123     KC(74),                     KS_Home,
  124     KC(75),                     KS_Prior,
  125     KC(76),                     KS_Delete,
  126     KC(77),                     KS_End,
  127     KC(78),                     KS_Next,
  128     KC(79),                     KS_Right,
  129     KC(80),                     KS_Left,
  130     KC(81),                     KS_Down,
  131     KC(82),                     KS_Up,
  132     KC(83),                     KS_Num_Lock,
  133     KC(84),                     KS_KP_Divide,
  134     KC(85),                     KS_KP_Multiply,
  135     KC(86),                     KS_KP_Subtract,
  136     KC(87),                     KS_KP_Add,
  137     KC(88),                     KS_KP_Enter,
  138     KC(89),                     KS_KP_End,      KS_KP_1,
  139     KC(90),                     KS_KP_Down,     KS_KP_2,
  140     KC(91),                     KS_KP_Next,     KS_KP_3,
  141     KC(92),                     KS_KP_Left,     KS_KP_4,
  142     KC(93),                     KS_KP_Begin,    KS_KP_5,
  143     KC(94),                     KS_KP_Right,    KS_KP_6,
  144     KC(95),                     KS_KP_Home,     KS_KP_7,
  145     KC(96),                     KS_KP_Up,       KS_KP_8,
  146     KC(97),                     KS_KP_Prior,    KS_KP_9,
  147     KC(98),                     KS_KP_Insert,   KS_KP_0,
  148     KC(99),                     KS_KP_Delete,   KS_KP_Decimal,
  149     KC(100),                    KS_backslash,   KS_bar,
  150     KC(101),                    KS_Menu,
  151 /* ... many unmapped keys ... */
  152     KC(224),  KS_Cmd1,          KS_Control_L,
  153     KC(225),                    KS_Shift_L,
  154     KC(226),  KS_Cmd2,          KS_Alt_L,
  155     KC(227),                    KS_Meta_L,
  156     KC(228),                    KS_Control_R,
  157     KC(229),                    KS_Shift_R,
  158     KC(230),                    KS_Alt_R,       KS_Multi_key,
  159     KC(231),                    KS_Meta_R,
  160 };
  161 
  162 Static const keysym_t ukbd_keydesc_jp[] = {
  163 /*  pos      command            normal                  shifted */
  164     KC(31),                     KS_2,                   KS_quotedbl,
  165     KC(35),                     KS_6,                   KS_ampersand,
  166     KC(36),                     KS_7,                   KS_apostrophe,
  167     KC(37),                     KS_8,                   KS_parenleft,
  168     KC(38),                     KS_9,                   KS_parenright,
  169     KC(39),                     KS_0,
  170     KC(45),                     KS_minus,               KS_equal,
  171     KC(46),                     KS_asciicircum,         KS_asciitilde,
  172     KC(47),                     KS_at,                  KS_grave,
  173     KC(48),                     KS_bracketleft,         KS_braceleft,
  174     KC(50),                     KS_bracketright,        KS_braceright,
  175     KC(51),                     KS_semicolon,           KS_plus,
  176     KC(52),                     KS_colon,               KS_asterisk,
  177     KC(53),                     KS_Zenkaku_Hankaku, /* replace grave/tilde */
  178     KC(135),                    KS_backslash,           KS_underscore,
  179     KC(136),                    KS_Hiragana_Katakana,
  180     KC(137),                    KS_backslash,           KS_bar,
  181     KC(138),                    KS_Henkan,
  182     KC(139),                    KS_Muhenkan,
  183 };
  184 
  185 Static const keysym_t ukbd_keydesc_us_dvorak[] = {
  186 /*  pos      command            normal                  shifted */
  187     KC(4),                      KS_a,
  188     KC(5),                      KS_x,
  189     KC(6),                      KS_j,
  190     KC(7),                      KS_e,
  191     KC(8),                      KS_period,              KS_greater,
  192     KC(9),                      KS_u,
  193     KC(10),                     KS_i,
  194     KC(11),                     KS_d,
  195     KC(12),                     KS_c,
  196     KC(13),                     KS_h,
  197     KC(14),                     KS_t,
  198     KC(15),                     KS_n,
  199     KC(16),                     KS_m,
  200     KC(17),                     KS_b,
  201     KC(18),                     KS_r,
  202     KC(19),                     KS_l,
  203     KC(20),                     KS_apostrophe,          KS_quotedbl,
  204     KC(21),                     KS_p,
  205     KC(22),                     KS_o,
  206     KC(23),                     KS_y,
  207     KC(24),                     KS_g,
  208     KC(25),                     KS_k,
  209     KC(26),                     KS_comma,               KS_less,
  210     KC(27),                     KS_q,
  211     KC(28),                     KS_f,
  212     KC(29),                     KS_semicolon,           KS_colon,
  213     KC(45),                     KS_bracketleft,         KS_braceleft,
  214     KC(46),                     KS_bracketright,        KS_braceright,
  215     KC(47),                     KS_slash,               KS_question,
  216     KC(48),                     KS_equal,               KS_plus,
  217     KC(51),                     KS_s,
  218     KC(52),                     KS_minus,               KS_underscore,
  219     KC(54),                     KS_w,
  220     KC(55),                     KS_v,
  221     KC(56),                     KS_z,
  222 };
  223 
  224 Static const keysym_t ukbd_keydesc_swapctrlcaps[] = {
  225 /*  pos      command            normal          shifted */
  226     KC(57),                     KS_Control_L,
  227     KC(224), KS_Cmd1,           KS_Caps_Lock,
  228 };
  229 
  230 Static const keysym_t ukbd_keydesc_de[] = {
  231 /*  pos      normal             shifted         altgr           shift-altgr */
  232     KC(16),  KS_m,              KS_M,           KS_mu,
  233     KC(20),  KS_q,              KS_Q,           KS_at,
  234     KC(28),  KS_z,
  235     KC(29),  KS_y,
  236     KC(31),  KS_2,              KS_quotedbl,    KS_twosuperior,
  237     KC(32),  KS_3,              KS_section,     KS_threesuperior,
  238     KC(35),  KS_6,              KS_ampersand,
  239     KC(36),  KS_7,              KS_slash,       KS_braceleft,
  240     KC(37),  KS_8,              KS_parenleft,   KS_bracketleft,
  241     KC(38),  KS_9,              KS_parenright,  KS_bracketright,
  242     KC(39),  KS_0,              KS_equal,       KS_braceright,
  243     KC(45),  KS_ssharp,         KS_question,    KS_backslash,
  244     KC(46),  KS_dead_acute,     KS_dead_grave,
  245     KC(47),  KS_udiaeresis,
  246     KC(48),  KS_plus,           KS_asterisk,    KS_dead_tilde,
  247     KC(50),  KS_numbersign,     KS_apostrophe,
  248     KC(51),  KS_odiaeresis,
  249     KC(52),  KS_adiaeresis,
  250     KC(53),  KS_dead_circumflex,KS_dead_abovering,
  251     KC(54),  KS_comma,          KS_semicolon,
  252     KC(55),  KS_period,         KS_colon,
  253     KC(56),  KS_minus,          KS_underscore,
  254     KC(100), KS_less,           KS_greater,     KS_bar,         KS_brokenbar,
  255     KC(230), KS_Mode_switch,    KS_Multi_key,
  256 };
  257 
  258 Static const keysym_t ukbd_keydesc_de_nodead[] = {
  259 /*  pos      normal             shifted         altgr           shift-altgr */
  260     KC(46),  KS_apostrophe,     KS_grave,
  261     KC(48),  KS_plus,           KS_asterisk,    KS_asciitilde,
  262     KC(53),  KS_asciicircum,    KS_degree,
  263 };
  264 
  265 Static const keysym_t ukbd_keydesc_dk[] = {
  266 /*  pos      normal             shifted         altgr           shift-altgr */
  267     KC(31),  KS_2,              KS_quotedbl,    KS_at,
  268     KC(32),  KS_3,              KS_numbersign,  KS_sterling,
  269     KC(33),  KS_4,              KS_currency,    KS_dollar,
  270     KC(35),  KS_6,              KS_ampersand,
  271     KC(36),  KS_7,              KS_slash,       KS_braceleft,
  272     KC(37),  KS_8,              KS_parenleft,   KS_bracketleft,
  273     KC(38),  KS_9,              KS_parenright,  KS_bracketright,
  274     KC(39),  KS_0,              KS_equal,       KS_braceright,
  275     KC(45),  KS_plus,           KS_question,
  276     KC(46),  KS_dead_acute,     KS_dead_grave,  KS_bar,
  277     KC(47),  KS_aring,
  278     KC(48),  KS_dead_diaeresis, KS_dead_circumflex, KS_dead_tilde,
  279     KC(50),  KS_apostrophe,     KS_asterisk,
  280     KC(51),  KS_ae,
  281     KC(52),  KS_oslash,
  282     KC(53),  KS_onehalf,        KS_paragraph,
  283     KC(54),  KS_comma,          KS_semicolon,
  284     KC(55),  KS_period,         KS_colon,
  285     KC(56),  KS_minus,          KS_underscore,
  286     KC(100), KS_less,           KS_greater,     KS_backslash,
  287     KC(230), KS_Mode_switch,    KS_Multi_key,
  288 };
  289 
  290 Static const keysym_t ukbd_keydesc_dk_nodead[] = {
  291 /*  pos      normal             shifted         altgr           shift-altgr */
  292     KC(46),  KS_apostrophe,     KS_grave,       KS_bar,
  293     KC(48),  KS_diaeresis,      KS_asciicircum, KS_asciitilde,
  294 };
  295 
  296 Static const keysym_t ukbd_keydesc_sv[] = {
  297 /*  pos      normal             shifted         altgr           shift-altgr */
  298     KC(45),  KS_plus,           KS_question,    KS_backslash,
  299     KC(48),  KS_dead_diaeresis, KS_dead_circumflex, KS_dead_tilde,
  300     KC(50),  KS_comma,          KS_asterisk,
  301     KC(51),  KS_odiaeresis,
  302     KC(52),  KS_adiaeresis,
  303     KC(53),  KS_paragraph,      KS_onehalf,
  304     KC(100), KS_less,           KS_greater,     KS_bar,
  305     KC(230), KS_Mode_switch,    KS_Multi_key,
  306 };
  307 
  308 Static const keysym_t ukbd_keydesc_sv_nodead[] = {
  309 /*  pos      normal             shifted         altgr           shift-altgr */
  310     KC(46),  KS_apostrophe,     KS_grave,       KS_bar,
  311     KC(48),  KS_diaeresis,      KS_asciicircum, KS_asciitilde,
  312 };
  313 
  314 Static const keysym_t ukbd_keydesc_no[] = {
  315 /*  pos      normal             shifted         altgr           shift-altgr */
  316     KC(46),  KS_backslash,      KS_dead_grave,  KS_dead_acute,
  317     KC(48),  KS_dead_diaeresis, KS_dead_circumflex, KS_dead_tilde,
  318     KC(50),  KS_comma,          KS_asterisk,
  319     KC(51),  KS_oslash,
  320     KC(52),  KS_ae,
  321     KC(53),  KS_bar,            KS_paragraph,
  322     KC(100), KS_less,           KS_greater,
  323 };
  324 
  325 Static const keysym_t ukbd_keydesc_no_nodead[] = {
  326 /*  pos      normal             shifted         altgr           shift-altgr */
  327     KC(46),  KS_backslash,      KS_grave,       KS_acute,
  328     KC(48),  KS_diaeresis,      KS_asciicircum, KS_asciitilde,
  329 };
  330 
  331 Static const keysym_t ukbd_keydesc_fr[] = {
  332 /*  pos      normal             shifted         altgr           shift-altgr */
  333     KC(4),   KS_q,
  334     KC(16),  KS_comma,          KS_question,
  335     KC(20),  KS_a,
  336     KC(26),  KS_z,
  337     KC(29),  KS_w,
  338     KC(30),  KS_ampersand,      KS_1,
  339     KC(31),  KS_eacute,         KS_2,           KS_asciitilde,
  340     KC(32),  KS_quotedbl,       KS_3,           KS_numbersign,
  341     KC(33),  KS_apostrophe,     KS_4,           KS_braceleft,
  342     KC(34),  KS_parenleft,      KS_5,           KS_bracketleft,
  343     KC(35),  KS_minus,          KS_6,           KS_bar,
  344     KC(36),  KS_egrave,         KS_7,           KS_grave,
  345     KC(37),  KS_underscore,     KS_8,           KS_backslash,
  346     KC(38),  KS_ccedilla,       KS_9,           KS_asciicircum,
  347     KC(39),  KS_agrave,         KS_0,           KS_at,
  348     KC(45),  KS_parenright,     KS_degree,      KS_bracketright,
  349     KC(46),  KS_equal,          KS_plus,        KS_braceright,
  350     KC(47),  KS_dead_circumflex, KS_dead_diaeresis,
  351     KC(48),  KS_dollar,         KS_sterling,    KS_currency,
  352     KC(50),  KS_asterisk,       KS_mu,
  353     KC(51),  KS_m,
  354     KC(52),  KS_ugrave,         KS_percent,
  355     KC(53),  KS_twosuperior,
  356     KC(54),  KS_semicolon,      KS_period,
  357     KC(55),  KS_colon,          KS_slash,
  358     KC(56),  KS_exclam,         KS_section,
  359     KC(100), KS_less,           KS_greater,
  360     KC(230), KS_Mode_switch,    KS_Multi_key,
  361 };
  362 
  363 Static const keysym_t ukbd_keydesc_it[] = {
  364 /*  pos      normal             shifted         altgr           shift-altgr */
  365     KC(31),  KS_2,              KS_quotedbl,    KS_twosuperior,
  366     KC(32),  KS_3,              KS_sterling,    KS_threesuperior,
  367     KC(33),  KS_4,              KS_dollar,
  368     KC(34),  KS_5,              KS_percent,
  369     KC(35),  KS_6,              KS_ampersand,
  370     KC(36),  KS_7,              KS_slash,
  371     KC(37),  KS_8,              KS_parenleft,
  372     KC(38),  KS_9,              KS_parenright,
  373     KC(39),  KS_0,              KS_equal,
  374     KC(45),  KS_apostrophe,     KS_question,
  375     KC(46),  KS_igrave,         KS_asciicircum,
  376     KC(47),  KS_egrave,         KS_eacute,      KS_braceleft,   KS_bracketleft,
  377     KC(48),  KS_plus,           KS_asterisk,    KS_braceright,  KS_bracketright,
  378     KC(49),  KS_ugrave,         KS_section,
  379     KC(51),  KS_ograve,         KS_Ccedilla,    KS_at,
  380     KC(52),  KS_agrave,         KS_degree,      KS_numbersign,
  381     KC(53),  KS_backslash,      KS_bar,
  382     KC(54),  KS_comma,          KS_semicolon,
  383     KC(55),  KS_period,         KS_colon,
  384     KC(56),  KS_minus,          KS_underscore,
  385     KC(100), KS_less,           KS_greater,
  386     KC(230), KS_Mode_switch,    KS_Multi_key,
  387 };
  388 
  389 Static const keysym_t ukbd_keydesc_uk[] = {
  390 /*  pos      normal             shifted         altgr           shift-altgr */
  391     KC(30),  KS_1,              KS_exclam,      KS_plusminus,   KS_exclamdown,
  392     KC(31),  KS_2,              KS_quotedbl,    KS_twosuperior, KS_cent,
  393     KC(32),  KS_3,              KS_sterling,    KS_threesuperior,
  394     KC(33),  KS_4,              KS_dollar,      KS_acute,       KS_currency,
  395     KC(34),  KS_5,              KS_percent,     KS_mu,          KS_yen,
  396     KC(35),  KS_6,              KS_asciicircum, KS_paragraph,
  397     KC(36),  KS_7,              KS_ampersand,   KS_periodcentered, KS_brokenbar,
  398     KC(37),  KS_8,              KS_asterisk,    KS_cedilla,     KS_ordfeminine,
  399     KC(38),  KS_9,              KS_parenleft,   KS_onesuperior, KS_diaeresis,
  400     KC(39),  KS_0,              KS_parenright,  KS_masculine,   KS_copyright,
  401     KC(45),  KS_minus,          KS_underscore,  KS_hyphen,      KS_ssharp,
  402     KC(46),  KS_equal,          KS_plus,        KS_onehalf,    KS_guillemotleft,
  403     KC(49),  KS_numbersign,     KS_asciitilde,  KS_sterling,    KS_thorn,
  404     KC(50),  KS_numbersign,     KS_asciitilde,
  405     KC(52),  KS_apostrophe,     KS_at,          KS_section,     KS_Agrave,
  406     KC(53),  KS_grave,          KS_grave,       KS_agrave,      KS_agrave,
  407     KC(100), KS_backslash,      KS_bar,         KS_Udiaeresis,
  408 };
  409 
  410 Static const keysym_t ukbd_keydesc_es[] = {
  411 /*  pos      normal             shifted         altgr           shift-altgr */
  412     KC(30),  KS_1,              KS_exclam,      KS_bar,
  413     KC(31),  KS_2,              KS_quotedbl,    KS_at,
  414     KC(32),  KS_3,              KS_periodcentered, KS_numbersign,
  415     KC(33),  KS_4,              KS_dollar,      KS_asciitilde,
  416     KC(35),  KS_6,              KS_ampersand,
  417     KC(36),  KS_7,              KS_slash,
  418     KC(37),  KS_8,              KS_parenleft,
  419     KC(38),  KS_9,              KS_parenright,
  420     KC(39),  KS_0,              KS_equal,
  421     KC(45),  KS_grave,          KS_question,
  422     KC(46),  KS_exclamdown,     KS_questiondown,
  423     KC(47),  KS_dead_grave,     KS_dead_circumflex, KS_bracketleft,
  424     KC(48),  KS_plus,           KS_asterisk,    KS_bracketright,
  425     KC(49),  KS_ccedilla,       KS_Ccedilla,    KS_braceright,
  426     KC(51),  KS_ntilde,
  427     KC(52),  KS_dead_acute,     KS_dead_diaeresis, KS_braceleft,
  428     KC(53),  KS_degree,         KS_ordfeminine, KS_backslash,
  429     KC(54),  KS_comma,          KS_semicolon,
  430     KC(55),  KS_period,         KS_colon,
  431     KC(56),  KS_minus,          KS_underscore,
  432     KC(100), KS_less,           KS_greater,
  433     KC(230), KS_Mode_switch,    KS_Multi_key,
  434 };
  435 
  436 Static const keysym_t ukbd_keydesc_sg[] = {
  437 /*  pos      normal             shifted         altgr           shift-altgr */
  438     KC(30),  KS_1,              KS_plus,        KS_bar,
  439     KC(31),  KS_2,              KS_quotedbl,    KS_at,
  440     KC(32),  KS_3,              KS_asterisk,    KS_numbersign,
  441     KC(33),  KS_4,              KS_ccedilla,
  442     KC(35),  KS_6,              KS_ampersand,   KS_notsign,
  443     KC(36),  KS_7,              KS_slash,       KS_brokenbar,
  444     KC(37),  KS_8,              KS_parenleft,   KS_cent,
  445     KC(38),  KS_9,              KS_parenright,
  446     KC(39),  KS_0,              KS_equal,
  447     KC(45),  KS_apostrophe,     KS_question,    KS_dead_acute,
  448     KC(46),  KS_dead_circumflex,KS_dead_grave,  KS_dead_tilde,
  449     KC(8),   KS_e,              KS_E,           KS_currency,
  450     KC(28),  KS_z,
  451     KC(47),  KS_udiaeresis,     KS_egrave,      KS_bracketleft,
  452     KC(48),  KS_dead_diaeresis, KS_exclam,      KS_bracketright,
  453     KC(51),  KS_odiaeresis,     KS_eacute,
  454     KC(52),  KS_adiaeresis,     KS_agrave,      KS_braceleft,
  455     KC(53),  KS_section,        KS_degree,      KS_dead_abovering,
  456     KC(50),  KS_dollar,         KS_sterling,    KS_braceright,
  457     KC(29),  KS_y,
  458     KC(54),  KS_comma,          KS_semicolon,
  459     KC(55),  KS_period,         KS_colon,
  460     KC(56),  KS_minus,          KS_underscore,
  461     KC(100), KS_less,           KS_greater,     KS_backslash,
  462     KC(230), KS_Mode_switch,    KS_Multi_key,
  463 };
  464 
  465 Static const keysym_t ukbd_keydesc_sg_nodead[] = {
  466 /*  pos      normal             shifted         altgr           shift-altgr */
  467     KC(45),  KS_apostrophe,     KS_question,    KS_acute,
  468     KC(46),  KS_asciicircum,    KS_grave,       KS_asciitilde,
  469     KC(48),  KS_diaeresis,      KS_exclam,      KS_bracketright
  470 };
  471 
  472 Static const keysym_t ukbd_keydesc_sf[] = {
  473 /*  pos      normal            shifted         altgr           shift-altgr */
  474     KC(47),  KS_egrave,        KS_udiaeresis,  KS_bracketleft,
  475     KC(51),  KS_eacute,        KS_odiaeresis,
  476     KC(52),  KS_agrave,        KS_adiaeresis,  KS_braceleft
  477 };
  478 
  479 #define KBD_MAP(name, base, map) \
  480                         { name, base, sizeof(map)/sizeof(keysym_t), map }
  481 
  482 const struct wscons_keydesc ukbd_keydesctab[] = {
  483         KBD_MAP(KB_US,                  0,      ukbd_keydesc_us),
  484         KBD_MAP(KB_US | KB_SWAPCTRLCAPS,KB_US,  ukbd_keydesc_swapctrlcaps),
  485         KBD_MAP(KB_US | KB_DVORAK,      KB_US,  ukbd_keydesc_us_dvorak),
  486         KBD_MAP(KB_JP,                  KB_US,  ukbd_keydesc_jp),
  487         KBD_MAP(KB_JP | KB_SWAPCTRLCAPS,KB_JP,  ukbd_keydesc_swapctrlcaps),
  488         KBD_MAP(KB_DE,                  KB_US,  ukbd_keydesc_de),
  489         KBD_MAP(KB_DE | KB_NODEAD,      KB_DE,  ukbd_keydesc_de_nodead),
  490         KBD_MAP(KB_FR,                  KB_US,  ukbd_keydesc_fr),
  491         KBD_MAP(KB_FR | KB_SWAPCTRLCAPS,KB_FR,  ukbd_keydesc_swapctrlcaps),
  492         KBD_MAP(KB_DK,                  KB_US,  ukbd_keydesc_dk),
  493         KBD_MAP(KB_DK | KB_NODEAD,      KB_DK,  ukbd_keydesc_dk_nodead),
  494         KBD_MAP(KB_IT,                  KB_US,  ukbd_keydesc_it),
  495         KBD_MAP(KB_UK,                  KB_US,  ukbd_keydesc_uk),
  496         KBD_MAP(KB_SV,                  KB_DK,  ukbd_keydesc_sv),
  497         KBD_MAP(KB_SV | KB_NODEAD,      KB_SV,  ukbd_keydesc_sv_nodead),
  498         KBD_MAP(KB_NO,                  KB_DK,  ukbd_keydesc_no),
  499         KBD_MAP(KB_NO | KB_NODEAD,      KB_NO,  ukbd_keydesc_no_nodead),
  500         KBD_MAP(KB_ES ,                 KB_US,  ukbd_keydesc_es),
  501         KBD_MAP(KB_SG,                  KB_US,  ukbd_keydesc_sg),
  502         KBD_MAP(KB_SG | KB_NODEAD,      KB_SG,  ukbd_keydesc_sg_nodead),
  503         KBD_MAP(KB_SF,                  KB_SG,  ukbd_keydesc_sf),
  504         KBD_MAP(KB_SF | KB_NODEAD,      KB_SF,  ukbd_keydesc_sg_nodead),
  505         {0, 0, 0, 0}
  506 };
  507 
  508 #undef KBD_MAP
  509 #undef KC

Cache object: 82209b32ebb6893a0d153358a178bbac


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.