From patchwork Fri Nov 3 11:56:28 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Owen Smith X-Patchwork-Id: 10039905 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 79A18602DA for ; Fri, 3 Nov 2017 11:58:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5EEE529591 for ; Fri, 3 Nov 2017 11:58:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 52BC2295B8; Fri, 3 Nov 2017 11:58:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id C4F7629591 for ; Fri, 3 Nov 2017 11:58:54 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAaaV-0008Cc-Pj; Fri, 03 Nov 2017 11:56:39 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eAaaU-0008CJ-W5 for xen-devel@lists.xenproject.org; Fri, 03 Nov 2017 11:56:39 +0000 Received: from [193.109.254.147] by server-11.bemta-6.messagelabs.com id BB/14-20813-6795CF95; Fri, 03 Nov 2017 11:56:38 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprGIsWRWlGSWpSXmKPExsXitHSDvW5p5J9 Ig75eC4vvWyYzOTB6HP5whSWAMYo1My8pvyKBNWPR5s9sBV3cFYdaXRsYL3F2MXJySAj4S1z9 dokFxGYT0JCY0bkYzBYR8JM43HyLHcRmFgiXWHqjkRnEFhawkbiw5z8riM0ioCLxbNd5MJtXw Epi8rSpzBAz5SV2tV0Ei3MKWEvsunyMDcQWAqq59f85lK0k8W3xC2aIXkGJkzOfsEDskpA4+O IF8wRG3llIUrOQpBYwMq1i1ChOLSpLLdI1NNdLKspMzyjJTczM0TU0MNPLTS0uTkxPzUlMKtZ Lzs/dxAgMHQYg2MF4e2PAIUZJDiYlUV7PkD+RQnxJ+SmVGYnFGfFFpTmpxYcYZTg4lCR4+yKA coJFqempFWmZOcAghklLcPAoifAWg6R5iwsSc4sz0yFSpxiNOTpu3v3DxPFs5usGZiGWvPy8V Clx3jUgpQIgpRmleXCDYNF1iVFWSpiXEeg0IZ6C1KLczBJU+VeM4hyMSsK8HCBTeDLzSuD2vQ I6hQnolNkcYKeUJCKkpBoYzZW+S139kHq784/Wig33I5ovb2Li9vjYm3H0gpzskt/GsgVPFva dZAybzfPDfuexJUa9sWvC/Ddy5FmwNz7e29T59d5G/XkeXE/LG7RM5X/Ov7bC7lfP9U3PK7NX 2ja7T1+/QV/GPfPgx083xGbXCYheOvOH97yir/b6hwKOV+basty9+u3vKyWW4oxEQy3mouJEA KEftYSpAgAA X-Env-Sender: prvs=473f30fe0=owen.smith@citrix.com X-Msg-Ref: server-6.tower-27.messagelabs.com!1509710195!114968414!2 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n, received_headers: No Received headers X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 17389 invoked from network); 3 Nov 2017 11:56:37 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-6.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 3 Nov 2017 11:56:37 -0000 X-IronPort-AV: E=Sophos;i="5.44,338,1505779200"; d="scan'208";a="457676736" From: Owen Smith To: , , Date: Fri, 3 Nov 2017 11:56:28 +0000 Message-ID: <20171103115631.15175-2-owen.smith@citrix.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20171103115631.15175-1-owen.smith@citrix.com> References: <20171103115631.15175-1-owen.smith@citrix.com> MIME-Version: 1.0 Cc: xen-devel@lists.xenproject.org, qemu-devel@nongnu.org, owen.smith@citrix.com Subject: [Xen-devel] [PATCH v5 1/4] ui: generate qcode to linux mappings X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Use keycodedb to generate a qcode to linux mapping Signed-off-by: Owen Smith --- Makefile | 1 + include/ui/input.h | 3 +++ ui/input-keymap.c | 1 + 3 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index ec73acfa9a..42a9030734 100644 --- a/Makefile +++ b/Makefile @@ -220,6 +220,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) diff --git a/include/ui/input.h b/include/ui/input.h index f8cee43f65..5cc76d6e41 100644 --- a/include/ui/input.h +++ b/include/ui/input.h @@ -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 */ diff --git a/ui/input-keymap.c b/ui/input-keymap.c index 3a19a169f5..663986a17b 100644 --- a/ui/input-keymap.c +++ b/ui/input-keymap.c @@ -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) {