1 /* $NetBSD: newskeymap.c,v 1.1 2001/01/25 13:13:59 tsutsui Exp $ */
4 * Copyright (c) 2000 Tsubai Masanari. All rights reserved.
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 * 3. The name of the author may not be used to endorse or promote products
15 * derived from this software without specific prior written permission.
17 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
18 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 #include <sys/cdefs.h>
30 __KERNEL_RCSID(0, "$NetBSD$");
32 #include <sys/types.h>
33 #include <dev/wscons/wsksymdef.h>
34 #include <dev/wscons/wsksymvar.h>
36 #define KC(n) KS_KEYCODE(n)
38 const keysym_t newskb_keydesc_jp
[] = {
39 /* pos command normal shifted */
51 KC(11), KS_Cmd_Debugger
, KS_Escape
,
52 KC(12), KS_1
, KS_exclam
,
54 KC(14), KS_3
, KS_numbersign
,
55 KC(15), KS_4
, KS_dollar
,
56 KC(16), KS_5
, KS_percent
,
57 KC(17), KS_6
, KS_asciicircum
,
58 KC(18), KS_7
, KS_ampersand
,
59 KC(19), KS_8
, KS_asterisk
,
60 KC(20), KS_9
, KS_parenleft
,
61 KC(21), KS_0
, KS_parenright
,
62 KC(22), KS_minus
, KS_underscore
,
63 KC(23), KS_equal
, KS_plus
,
64 KC(24), KS_backslash
, KS_bar
,
78 KC(37), KS_bracketleft
, KS_braceleft
,
79 KC(38), KS_bracketright
, KS_braceright
,
80 KC(39), KS_Cmd_ResetEmul
, KS_Delete
,
82 KC(40), KS_Cmd1
, KS_Control_L
,
92 KC(50), KS_semicolon
, KS_colon
,
93 KC(51), KS_apostrophe
, KS_quotedbl
,
94 KC(52), KS_grave
, KS_asciitilde
,
105 KC(62), KS_comma
, KS_less
,
106 KC(63), KS_period
, KS_greater
,
107 KC(64), KS_slash
, KS_question
,
110 KC(67), KS_Cmd2
, KS_Alt_L
,
111 KC(68), KS_Caps_Lock
,
122 KC(78), KS_KP_Subtract
,
130 KC(86), KS_KP_Separator
,
133 KC(89), KS_KP_Decimal
,
139 KC(100), KS_KP_Multiply
,
140 KC(101), KS_KP_Divide
,
150 KC(122), /* power on */
153 #define KBD_MAP(name, base, map) \
154 { name, base, sizeof(map) / sizeof(keysym_t), map }
156 const struct wscons_keydesc newskb_keydesctab
[] = {
157 KBD_MAP(KB_JP
, 0, newskb_keydesc_jp
),