summaryrefslogtreecommitdiffstats
path: root/src/hci/keymap/keymap_sr.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_sr.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_sr.c')
-rw-r--r--src/hci/keymap/keymap_sr.c34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/hci/keymap/keymap_sr.c b/src/hci/keymap/keymap_sr.c
new file mode 100644
index 000000000..84e752921
--- /dev/null
+++ b/src/hci/keymap/keymap_sr.c
@@ -0,0 +1,34 @@
+/** @file
+ *
+ * "sr" keyboard mapping
+ *
+ * This file is automatically generated; do not edit
+ *
+ */
+
+FILE_LICENCE ( PUBLIC_DOMAIN );
+
+#include <ipxe/keymap.h>
+
+/** "sr" keyboard mapping */
+struct key_mapping sr_mapping[] __keymap = {
+ { 0x19, 0x1a }, /* Ctrl-Y => Ctrl-Z */
+ { 0x1a, 0x19 }, /* Ctrl-Z => Ctrl-Y */
+ { 0x26, 0x2f }, /* '&' => '/' */
+ { 0x28, 0x29 }, /* '(' => ')' */
+ { 0x29, 0x3d }, /* ')' => '=' */
+ { 0x2a, 0x28 }, /* '*' => '(' */
+ { 0x2b, 0x2a }, /* '+' => '*' */
+ { 0x2d, 0x27 }, /* '-' => '\'' */
+ { 0x2f, 0x2d }, /* '/' => '-' */
+ { 0x3d, 0x2b }, /* '=' => '+' */
+ { 0x3e, 0x3a }, /* '>' => ':' */
+ { 0x3f, 0x5f }, /* '?' => '_' */
+ { 0x40, 0x22 }, /* '@' => '"' */
+ { 0x59, 0x5a }, /* 'Y' => 'Z' */
+ { 0x5a, 0x59 }, /* 'Z' => 'Y' */
+ { 0x5e, 0x26 }, /* '^' => '&' */
+ { 0x5f, 0x3f }, /* '_' => '?' */
+ { 0x79, 0x7a }, /* 'y' => 'z' */
+ { 0x7a, 0x79 }, /* 'z' => 'y' */
+};