ui: generate qcode to linux mappings
authorOwen Smith <owen.smith@citrix.com>
Fri, 3 Nov 2017 11:56:28 +0000 (11:56 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 14 Dec 2017 23:24:30 +0000 (15:24 -0800)
Use keycodedb to generate a qcode to linux mapping

Signed-off-by: Owen Smith <owen.smith@citrix.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Makefile
include/ui/input.h
ui/input-keymap.c

index ab0354c153bbf568e3239f75df11c9fe4645a9fb..0331c182ed1080266b40e09618f16a8bab915e0d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -229,6 +229,7 @@ KEYCODEMAP_FILES = \
                 ui/input-keymap-linux-to-qcode.c \
                 ui/input-keymap-qcode-to-qnum.c \
                 ui/input-keymap-qnum-to-qcode.c \
+                ui/input-keymap-qcode-to-linux.c \
                 $(NULL)
 
 GENERATED_FILES += $(KEYCODEMAP_FILES)
index f8cee43f65188ef4d6149158b9c6975191cec9a1..5cc76d6e419a83ef309a2c12b1bc2e6de8e492c3 100644 (file)
@@ -77,4 +77,7 @@ extern const guint16 qemu_input_map_qcode_to_qnum[];
 extern const guint qemu_input_map_qnum_to_qcode_len;
 extern const guint16 qemu_input_map_qnum_to_qcode[];
 
+extern const guint qemu_input_map_qcode_to_linux_len;
+extern const guint16 qemu_input_map_qcode_to_linux[];
+
 #endif /* INPUT_H */
index 3a19a169f59e1e3b41d6a1cb66697ba248058c57..663986a17baeb1c683d676096d51bb03ffc82183 100644 (file)
@@ -8,6 +8,7 @@
 #include "ui/input-keymap-linux-to-qcode.c"
 #include "ui/input-keymap-qcode-to-qnum.c"
 #include "ui/input-keymap-qnum-to-qcode.c"
+#include "ui/input-keymap-qcode-to-linux.c"
 
 int qemu_input_linux_to_qcode(unsigned int lnx)
 {