1 /* $NetBSD: ews4800keymap.c,v 1.3 2007/10/17 19:54:21 garbled Exp $ */
4 * Copyright (c) 2004 The NetBSD Foundation, Inc.
7 * This code is derived from software contributed to The NetBSD Foundation
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted provided that the following conditions
13 * 1. Redistributions of source code must retain the above copyright
14 * notice, this list of conditions and the following disclaimer.
15 * 2. Redistributions in binary form must reproduce the above copyright
16 * notice, this list of conditions and the following disclaimer in the
17 * documentation and/or other materials provided with the distribution.
19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
32 #include <sys/cdefs.h>
33 __KERNEL_RCSID(0, "$NetBSD: ews4800keymap.c,v 1.3 2007/10/17 19:54:21 garbled Exp $");
35 #include <sys/param.h>
36 #include <dev/wscons/wsksymdef.h>
37 #include <dev/wscons/wsksymvar.h>
39 #include <ews4800mips/dev/ews4800keymap.h>
41 #define KC(n) KS_KEYCODE(n)
43 const keysym_t ews4800kbd_keydesc
[] = {
45 KC(0x01), KS_1
, KS_exclam
,
46 KC(0x02), KS_2
, KS_quotedbl
,
47 KC(0x03), KS_3
, KS_numbersign
,
48 KC(0x04), KS_4
, KS_dollar
,
49 KC(0x05), KS_5
, KS_percent
,
50 KC(0x06), KS_6
, KS_ampersand
,
51 KC(0x07), KS_7
, KS_apostrophe
,
52 KC(0x08), KS_8
, KS_parenleft
,
53 KC(0x09), KS_9
, KS_parenright
,
54 KC(0x0a), KS_minus
, KS_equal
,
55 KC(0x0b), KS_asciicircum
, KS_grave
,
56 KC(0x0c), KS_backslash
, KS_bar
,
57 KC(0x0d), KS_colon
, KS_asterisk
,
58 KC(0x0e), KS_period
, KS_greater
,
59 KC(0x0f), KS_slash
, KS_question
,
60 KC(0x10), KS_at
, KS_asciitilde
,
87 KC(0x2b), KS_bracketleft
, KS_braceleft
,
88 KC(0x2c), KS_comma
, KS_less
,
89 KC(0x2d), KS_bracketright
, KS_braceright
,
90 KC(0x2e), KS_semicolon
, KS_plus
,
91 KC(0x2f), KS_underscore
, KS_underscore
,
104 KC(0x3e), KS_Hiragana_Katakana
, /* KANA */
109 KC(0x44), KS_KP_Enter
,
115 KC(0x50), KS_BackSpace
,
116 KC(0x52), KS_Clear
, KS_Home
,
119 KC(0x56), KS_Cmd_Screen0
, KS_f1
,
120 KC(0x57), KS_Cmd_Screen1
, KS_f2
,
121 KC(0x58), KS_Cmd_Screen2
, KS_f3
,
122 KC(0x59), KS_Cmd_Screen3
, KS_f4
,
123 KC(0x5a), KS_Cmd_Screen4
, KS_f5
,
124 KC(0x5b), KS_Cmd_Screen5
, KS_f6
,
125 KC(0x5c), KS_Cmd_Screen6
, KS_f7
,
126 KC(0x5d), KS_Cmd_Screen7
, KS_f8
,
127 KC(0x5e), KS_Cmd_Screen8
, KS_f9
,
128 KC(0x5f), KS_Cmd_Screen9
, KS_f10
,
129 KC(0x60), KS_f11
, /* No key top print */
130 KC(0x61), KS_f12
, /* No key top print */
131 KC(0x62), KS_f13
, /* No key top print */
132 KC(0x63), KS_f14
, /* No key top print */
133 KC(0x64), KS_f15
, /* No key top print */
134 KC(0x67), KS_Muhenkan
, /* NFER */
135 KC(0x68), KS_Henkan
, /* XFER */
138 KC(0x6d), KS_Meta_L
, /* GRAPH */
140 KC(0x71), KS_KP_Multiply
,
144 KC(0x75), KS_KP_Equal
,
146 KC(0x78), KS_Cmd1
, KS_Control_L
,
147 KC(0x79), KS_Caps_Lock
,
148 KC(0x7b), KS_Shift_L
,
149 KC(0x7c), KS_Shift_R
,
150 KC(0x7e), KS_Cmd2
, KS_Alt_L
,
151 KC(0x7f), KS_Cmd_Debugger
, KS_Cmd1
, /* FNC */
154 const struct wscons_keydesc ews4800kbd_keydesctab
[] = {
155 { KB_JP
, 0, sizeof(ews4800kbd_keydesc
) / sizeof(keysym_t
),
156 ews4800kbd_keydesc
, },