summaryrefslogtreecommitdiffstats
path: root/src/hci/keymap/keymap_mt.c
diff options
context:
space:
mode:
authorMichael Brown2011-03-16 04:22:45 +0100
committerMichael Brown2011-03-16 13:02:59 +0100
commit1febd879e340958c7a4a54823a82784fcb3672ca (patch)
tree2280bd30a465fa8bb2e4a4c25aef0ef85b417279 /src/hci/keymap/keymap_mt.c
parent[console] Add facility for rudimentary keyboard mapping (diff)
downloadipxe-1febd879e340958c7a4a54823a82784fcb3672ca.tar.gz
ipxe-1febd879e340958c7a4a54823a82784fcb3672ca.tar.xz
ipxe-1febd879e340958c7a4a54823a82784fcb3672ca.zip
[console] Add keymap generator
Inspired by LILO's keytab-lilo.pl, genkeymap.pl uses "loadkeys -b" to obtain a Linux keyboard map, and generates a file keymap_xx.c in hci/keymap. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/hci/keymap/keymap_mt.c')
-rw-r--r--src/hci/keymap/keymap_mt.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/hci/keymap/keymap_mt.c b/src/hci/keymap/keymap_mt.c
new file mode 100644
index 000000000..e50e2b8cb
--- /dev/null
+++ b/src/hci/keymap/keymap_mt.c
@@ -0,0 +1,21 @@
+/** @file
+ *
+ * "mt" keyboard mapping
+ *
+ * This file is automatically generated; do not edit
+ *
+ */
+
+FILE_LICENCE ( PUBLIC_DOMAIN );
+
+#include <ipxe/keymap.h>
+
+/** "mt" keyboard mapping */
+struct key_mapping mt_mapping[] __keymap = {
+ { 0x22, 0x40 }, /* '"' => '@' */
+ { 0x23, 0x04 }, /* '#' => Ctrl-D */
+ { 0x40, 0x22 }, /* '@' => '"' */
+ { 0x5c, 0x23 }, /* '\\' => '#' */
+ { 0x7c, 0x7e }, /* '|' => '~' */
+ { 0x7f, 0x08 }, /* 0x7f => Ctrl-H */
+};