Home | History | Annotate | Line # | Download | only in dev
ews4800keymap.c revision 1.1.40.1
      1  1.1.40.1  garbled /*	$NetBSD: ews4800keymap.c,v 1.1.40.1 2007/06/26 18:12:23 garbled Exp $	*/
      2       1.1  tsutsui 
      3       1.1  tsutsui /*-
      4       1.1  tsutsui  * Copyright (c) 2004 The NetBSD Foundation, Inc.
      5       1.1  tsutsui  * All rights reserved.
      6       1.1  tsutsui  *
      7       1.1  tsutsui  * This code is derived from software contributed to The NetBSD Foundation
      8       1.1  tsutsui  * by UCHIYAMA Yasushi.
      9       1.1  tsutsui  *
     10       1.1  tsutsui  * Redistribution and use in source and binary forms, with or without
     11       1.1  tsutsui  * modification, are permitted provided that the following conditions
     12       1.1  tsutsui  * are met:
     13       1.1  tsutsui  * 1. Redistributions of source code must retain the above copyright
     14       1.1  tsutsui  *    notice, this list of conditions and the following disclaimer.
     15       1.1  tsutsui  * 2. Redistributions in binary form must reproduce the above copyright
     16       1.1  tsutsui  *    notice, this list of conditions and the following disclaimer in the
     17       1.1  tsutsui  *    documentation and/or other materials provided with the distribution.
     18       1.1  tsutsui  * 3. All advertising materials mentioning features or use of this software
     19       1.1  tsutsui  *    must display the following acknowledgement:
     20       1.1  tsutsui  *        This product includes software developed by the NetBSD
     21       1.1  tsutsui  *        Foundation, Inc. and its contributors.
     22       1.1  tsutsui  * 4. Neither the name of The NetBSD Foundation nor the names of its
     23       1.1  tsutsui  *    contributors may be used to endorse or promote products derived
     24       1.1  tsutsui  *    from this software without specific prior written permission.
     25       1.1  tsutsui  *
     26       1.1  tsutsui  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
     27       1.1  tsutsui  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
     28       1.1  tsutsui  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
     29       1.1  tsutsui  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
     30       1.1  tsutsui  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     31       1.1  tsutsui  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     32       1.1  tsutsui  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     33       1.1  tsutsui  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     34       1.1  tsutsui  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     35       1.1  tsutsui  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
     36       1.1  tsutsui  * POSSIBILITY OF SUCH DAMAGE.
     37       1.1  tsutsui  */
     38       1.1  tsutsui 
     39       1.1  tsutsui #include <sys/cdefs.h>
     40  1.1.40.1  garbled __KERNEL_RCSID(0, "$NetBSD: ews4800keymap.c,v 1.1.40.1 2007/06/26 18:12:23 garbled Exp $");
     41       1.1  tsutsui 
     42       1.1  tsutsui #include <sys/param.h>
     43       1.1  tsutsui #include <dev/wscons/wsksymdef.h>
     44       1.1  tsutsui #include <dev/wscons/wsksymvar.h>
     45       1.1  tsutsui 
     46       1.1  tsutsui #include <ews4800mips/dev/ews4800keymap.h>
     47       1.1  tsutsui 
     48       1.1  tsutsui #define	KC(n) KS_KEYCODE(n)
     49       1.1  tsutsui 
     50       1.1  tsutsui const keysym_t ews4800kbd_keydesc[] = {
     51       1.1  tsutsui 	KC(0x00), KS_0,
     52       1.1  tsutsui 	KC(0x01), KS_1, KS_exclam,
     53       1.1  tsutsui 	KC(0x02), KS_2, KS_quotedbl,
     54       1.1  tsutsui 	KC(0x03), KS_3, KS_numbersign,
     55       1.1  tsutsui 	KC(0x04), KS_4, KS_dollar,
     56       1.1  tsutsui 	KC(0x05), KS_5, KS_percent,
     57       1.1  tsutsui 	KC(0x06), KS_6, KS_ampersand,
     58       1.1  tsutsui 	KC(0x07), KS_7, KS_apostrophe,
     59       1.1  tsutsui 	KC(0x08), KS_8, KS_parenleft,
     60       1.1  tsutsui 	KC(0x09), KS_9, KS_parenright,
     61       1.1  tsutsui 	KC(0x0a), KS_minus, KS_equal,
     62       1.1  tsutsui 	KC(0x0b), KS_asciicircum, KS_grave,
     63       1.1  tsutsui 	KC(0x0c), KS_backslash, KS_bar,
     64       1.1  tsutsui 	KC(0x0d), KS_colon, KS_asterisk,
     65       1.1  tsutsui 	KC(0x0e), KS_period, KS_greater,
     66       1.1  tsutsui 	KC(0x0f), KS_slash, KS_question,
     67       1.1  tsutsui 	KC(0x10), KS_at, KS_asciitilde,
     68       1.1  tsutsui 	KC(0x11), KS_a,
     69       1.1  tsutsui 	KC(0x12), KS_b,
     70       1.1  tsutsui 	KC(0x13), KS_c,
     71       1.1  tsutsui 	KC(0x14), KS_d,
     72       1.1  tsutsui 	KC(0x15), KS_e,
     73       1.1  tsutsui 	KC(0x16), KS_f,
     74       1.1  tsutsui 	KC(0x17), KS_g,
     75       1.1  tsutsui 	KC(0x18), KS_h,
     76       1.1  tsutsui 	KC(0x19), KS_i,
     77       1.1  tsutsui 	KC(0x1a), KS_j,
     78       1.1  tsutsui 	KC(0x1b), KS_k,
     79       1.1  tsutsui 	KC(0x1c), KS_l,
     80       1.1  tsutsui 	KC(0x1d), KS_m,
     81       1.1  tsutsui 	KC(0x1e), KS_n,
     82       1.1  tsutsui 	KC(0x1f), KS_o,
     83       1.1  tsutsui 	KC(0x20), KS_p,
     84       1.1  tsutsui 	KC(0x21), KS_q,
     85       1.1  tsutsui 	KC(0x22), KS_r,
     86       1.1  tsutsui 	KC(0x23), KS_s,
     87       1.1  tsutsui 	KC(0x24), KS_t,
     88       1.1  tsutsui 	KC(0x25), KS_u,
     89       1.1  tsutsui 	KC(0x26), KS_v,
     90       1.1  tsutsui 	KC(0x27), KS_w,
     91       1.1  tsutsui 	KC(0x28), KS_x,
     92       1.1  tsutsui 	KC(0x29), KS_y,
     93       1.1  tsutsui 	KC(0x2a), KS_z,
     94       1.1  tsutsui 	KC(0x2b), KS_bracketleft, KS_braceleft,
     95       1.1  tsutsui 	KC(0x2c), KS_comma, KS_less,
     96       1.1  tsutsui 	KC(0x2d), KS_bracketright, KS_braceright,
     97       1.1  tsutsui 	KC(0x2e), KS_semicolon, KS_plus,
     98       1.1  tsutsui 	KC(0x2f), KS_underscore, KS_underscore,
     99       1.1  tsutsui 	KC(0x30), KS_KP_0,
    100       1.1  tsutsui 	KC(0x31), KS_KP_1,
    101       1.1  tsutsui 	KC(0x32), KS_KP_2,
    102       1.1  tsutsui 	KC(0x33), KS_KP_3,
    103       1.1  tsutsui 	KC(0x34), KS_KP_4,
    104       1.1  tsutsui 	KC(0x35), KS_KP_5,
    105       1.1  tsutsui 	KC(0x36), KS_KP_6,
    106       1.1  tsutsui 	KC(0x37), KS_KP_7,
    107       1.1  tsutsui 	KC(0x38), KS_KP_8,
    108       1.1  tsutsui 	KC(0x39), KS_KP_9,
    109       1.1  tsutsui 	KC(0x3a), KS_space,
    110       1.1  tsutsui 	KC(0x3b), KS_comma,
    111       1.1  tsutsui 	KC(0x3e), KS_Hiragana_Katakana, /* KANA */
    112  1.1.40.1  garbled 	KC(0x40), KS_Return,
    113       1.1  tsutsui 	KC(0x41), KS_Return,
    114       1.1  tsutsui 	KC(0x42), KS_Prior,
    115       1.1  tsutsui 	KC(0x43), KS_Next,
    116       1.1  tsutsui 	KC(0x44), KS_KP_Enter,
    117       1.1  tsutsui 	KC(0x46), KS_minus,
    118       1.1  tsutsui 	KC(0x47), KS_period,
    119       1.1  tsutsui 	KC(0x48), KS_Left,
    120       1.1  tsutsui 	KC(0x48), KS_Return,
    121       1.1  tsutsui 	KC(0x49), KS_Right,
    122       1.1  tsutsui 	KC(0x50), KS_BackSpace,
    123       1.1  tsutsui 	KC(0x52), KS_Clear, KS_Home,
    124       1.1  tsutsui 	KC(0x53), KS_Delete,
    125       1.1  tsutsui 	KC(0x54), KS_Insert,
    126       1.1  tsutsui 	KC(0x56), KS_Cmd_Screen0, KS_f1,
    127       1.1  tsutsui 	KC(0x57), KS_Cmd_Screen1, KS_f2,
    128       1.1  tsutsui 	KC(0x58), KS_Cmd_Screen2, KS_f3,
    129       1.1  tsutsui 	KC(0x59), KS_Cmd_Screen3, KS_f4,
    130       1.1  tsutsui 	KC(0x5a), KS_Cmd_Screen4, KS_f5,
    131       1.1  tsutsui 	KC(0x5b), KS_Cmd_Screen5, KS_f6,
    132       1.1  tsutsui 	KC(0x5c), KS_Cmd_Screen6, KS_f7,
    133       1.1  tsutsui 	KC(0x5d), KS_Cmd_Screen7, KS_f8,
    134       1.1  tsutsui 	KC(0x5e), KS_Cmd_Screen8, KS_f9,
    135       1.1  tsutsui 	KC(0x5f), KS_Cmd_Screen9, KS_f10,
    136       1.1  tsutsui 	KC(0x60), KS_f11, /* No key top print */
    137       1.1  tsutsui 	KC(0x61), KS_f12, /* No key top print */
    138       1.1  tsutsui 	KC(0x62), KS_f13, /* No key top print */
    139       1.1  tsutsui 	KC(0x63), KS_f14, /* No key top print */
    140       1.1  tsutsui 	KC(0x64), KS_f15, /* No key top print */
    141       1.1  tsutsui 	KC(0x67), KS_Muhenkan, /* NFER */
    142       1.1  tsutsui 	KC(0x68), KS_Henkan, /* XFER */
    143       1.1  tsutsui 	KC(0x6a), KS_Up,
    144       1.1  tsutsui 	KC(0x6b), KS_Down,
    145       1.1  tsutsui 	KC(0x6d), KS_Meta_L, /* GRAPH */
    146       1.1  tsutsui 	KC(0x70), KS_KP_Add,
    147       1.1  tsutsui 	KC(0x71), KS_KP_Multiply,
    148       1.1  tsutsui 	KC(0x72), KS_slash,
    149       1.1  tsutsui 	KC(0x73), KS_Escape,
    150       1.1  tsutsui 	KC(0x74), KS_Help,
    151       1.1  tsutsui 	KC(0x75), KS_KP_Equal,
    152       1.1  tsutsui 	KC(0x76), KS_Tab,
    153       1.1  tsutsui 	KC(0x78), KS_Cmd1, KS_Control_L,
    154       1.1  tsutsui 	KC(0x79), KS_Caps_Lock,
    155       1.1  tsutsui 	KC(0x7b), KS_Shift_L,
    156       1.1  tsutsui 	KC(0x7c), KS_Shift_R,
    157       1.1  tsutsui 	KC(0x7e), KS_Cmd2, KS_Alt_L,
    158       1.1  tsutsui 	KC(0x7f), KS_Cmd_Debugger, KS_Cmd1, /* FNC */
    159       1.1  tsutsui };
    160       1.1  tsutsui 
    161       1.1  tsutsui const struct wscons_keydesc ews4800kbd_keydesctab[] = {
    162       1.1  tsutsui 	{ KB_JP, 0, sizeof(ews4800kbd_keydesc) / sizeof(keysym_t),
    163       1.1  tsutsui 	    ews4800kbd_keydesc, },
    164       1.1  tsutsui 	{ 0, 0, 0, NULL },
    165       1.1  tsutsui };
    166