1 /* $NetBSD: wskbdmap_lk201.c,v 1.5 2001/11/13 12:49:45 lukem Exp $ */
4 __KERNEL_RCSID(0, "$NetBSD: wskbdmap_lk201.c,v 1.5 2001/11/13 12:49:45 lukem Exp $");
7 #include <dev/wscons/wsksymdef.h>
8 #include <dev/wscons/wsksymvar.h>
9 #include <dev/dec/wskbdmap_lk201.h>
11 #define KC(n) KS_KEYCODE((n) - MIN_LK201_KEY)
13 static const keysym_t lkkbd_keydesc_us
[] = {
14 /* pos command normal shifted */
15 KC(86), KS_Cmd_Screen0
, KS_f1
,
16 KC(87), KS_Cmd_Screen1
, KS_f2
,
17 KC(88), KS_Cmd_Screen2
, KS_f3
,
18 KC(89), KS_Cmd_Screen3
, KS_f4
,
19 KC(90), KS_Cmd_Screen4
, KS_f5
,
20 KC(100), KS_Cmd_Screen5
, KS_f6
,
21 KC(101), KS_Cmd_Screen6
, KS_f7
,
22 KC(102), KS_Cmd_Screen7
, KS_f8
,
23 KC(103), KS_Cmd_Screen8
, KS_f9
,
24 KC(104), KS_Cmd_Screen9
, KS_f10
,
25 KC(113), KS_Cmd_Debugger
, KS_Escape
, /* F11 */
30 KC(125), KS_Cmd
, KS_Execute
,
37 KC(140), KS_KP_Delete
,
42 KC(148), KS_KP_Decimal
,
50 KC(156), KS_KP_Separator
,
54 KC(160), KS_KP_Subtract
,
64 KC(175), KS_Cmd1
, KS_Control_L
,
65 KC(176), KS_Caps_Lock
,
66 KC(177), KS_Cmd2
, KS_Multi_key
, /* (left) compose */
70 KC(191), KS_grave
, KS_asciitilde
,
71 KC(192), KS_1
, KS_exclam
,
79 KC(201), KS_less
, KS_greater
,
80 KC(203), KS_3
, KS_numbersign
,
84 KC(208), KS_4
, KS_dollar
,
89 KC(214), KS_5
, KS_percent
,
93 KC(219), KS_6
, KS_asciicircum
,
97 KC(224), KS_7
, KS_ampersand
,
101 KC(229), KS_8
, KS_asterisk
,
104 KC(232), KS_comma
, KS_less
,
105 KC(234), KS_9
, KS_parenleft
,
108 KC(237), KS_period
, KS_greater
,
109 KC(239), KS_0
, KS_parenright
,
111 KC(242), KS_semicolon
, KS_colon
,
112 KC(243), KS_slash
, KS_question
,
113 KC(245), KS_equal
, KS_plus
,
114 KC(246), KS_bracketright
, KS_braceright
,
115 KC(247), KS_backslash
, KS_bar
,
116 KC(249), KS_minus
, KS_underscore
,
117 KC(250), KS_bracketleft
, KS_braceleft
,
118 KC(251), KS_apostrophe
, KS_quotedbl
,
121 static const keysym_t lkkbd_keydesc_us_lk401
[] = {
123 KC(172), KS_Cmd2
, KS_Alt_L
,
124 KC(173), KS_Multi_key
, /* right compose */
125 KC(177), KS_Multi_key
, /* left compose, not "cmd" */
129 #define KBD_MAP(name, base, map) \
130 { name, base, sizeof(map)/sizeof(keysym_t), map }
132 const struct wscons_keydesc lkkbd_keydesctab
[] = {
133 KBD_MAP(KB_US
, 0, lkkbd_keydesc_us
),
134 KBD_MAP(KB_US
| KB_LK401
, KB_US
, lkkbd_keydesc_us_lk401
),