From nobody Mon Feb 9 23:39:45 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1564662603; cv=none; d=zoho.com; s=zohoarc; b=ZvC6LD4eYi3ezHzFDppWxJl4hmg9SjITOIhzW2TPK8jGDH2+DTJIAZv7r9ezsjFvYkr/WcDa205CqvzIYHS8lqOHU6k63bbm0Zx3B0GtfK9cFoZN3zUkuvxT4AMJv16RjmoLq2Fww62y+ZGgEksOlqUmFmocQ/2L3lZ4JiieMG0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1564662603; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=M9CJSWepAN151HbAlrUikV0mAFxSnNVhB2iI+EzLrHA=; b=IuWF4EHY08bn4bDVpB+MT/deLx/0PlniXyoZx++CLhXN2qYfcA2DETvjl+JwUY3BLNSBV3cax0tdKBv7V9iAHllRc+0AUDqqLOjK+uRkcP2LP2bvPltEBhbGl960k8e/OfagQo14pCb0iqtYzZ3bI4JtU2Bh+36iOG5UvOFZAXw= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1564662603212956.6491240295356; Thu, 1 Aug 2019 05:30:03 -0700 (PDT) Received: from localhost ([::1]:55534 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htADa-00045o-7L for importer@patchew.org; Thu, 01 Aug 2019 08:30:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45316) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1htA7P-0001T7-WB for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1htA7M-0002tV-Pw for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:38 -0400 Received: from mx2.rt-rk.com ([89.216.37.149]:50846 helo=mail.rt-rk.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1htA7J-0002qG-Gh for qemu-devel@nongnu.org; Thu, 01 Aug 2019 08:23:34 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.rt-rk.com (Postfix) with ESMTP id 58D4A1A215B; Thu, 1 Aug 2019 14:23:31 +0200 (CEST) Received: from rtrkw774-lin.domain.local (rtrkw774-lin.domain.local [10.10.13.43]) by mail.rt-rk.com (Postfix) with ESMTPSA id 3F7BE1A20CF; Thu, 1 Aug 2019 14:23:31 +0200 (CEST) X-Virus-Scanned: amavisd-new at rt-rk.com From: Aleksandar Markovic To: qemu-devel@nongnu.org Date: Thu, 1 Aug 2019 14:21:12 +0200 Message-Id: <1564662076-17964-12-git-send-email-aleksandar.markovic@rt-rk.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> References: <1564662076-17964-1-git-send-email-aleksandar.markovic@rt-rk.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 89.216.37.149 Subject: [Qemu-devel] [PATCH for 4.2 v5 11/15] linux-user: Add support for KDGKBMETA and KDSKBMETA ioctls X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: laurent@vivier.eu, amarkovic@wavecomp.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" From: Aleksandar Markovic Add support for KDGKBMETA and KDSKBMETA ioctls. Signed-off-by: Aleksandar Markovic --- linux-user/ioctls.h | 2 ++ linux-user/syscall_defs.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/linux-user/ioctls.h b/linux-user/ioctls.h index 3796ee6..2100cf4 100644 --- a/linux-user/ioctls.h +++ b/linux-user/ioctls.h @@ -63,6 +63,8 @@ IOCTL(KDSKBMODE, 0, TYPE_INT) IOCTL(KDGKBENT, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_kbentry))) IOCTL(KDGKBSENT, IOC_RW, MK_PTR(MK_STRUCT(STRUCT_kbsentry))) + IOCTL(KDGKBMETA, IOC_R, MK_PTR(TYPE_INT)) + IOCTL(KDSKBMETA, IOC_W, TYPE_INT) IOCTL(KDGKBLED, 0, TYPE_INT) IOCTL(KDSKBLED, 0, TYPE_INT) IOCTL(KDGETLED, 0, TYPE_INT) diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h index 766d7b9..50fc44f 100644 --- a/linux-user/syscall_defs.h +++ b/linux-user/syscall_defs.h @@ -750,6 +750,8 @@ struct target_pollfd { #define TARGET_KDSKBMODE 0x4b45 #define TARGET_KDGKBENT 0x4B46 /* gets one entry in translation tab= le */ #define TARGET_KDGKBSENT 0x4B48 /* gets one function key string entr= y */ +#define TARGET_KDGKBMETA 0x4B62 /* gets meta key handling mode */ +#define TARGET_KDSKBMETA 0x4B63 /* sets meta key handling mode */ #define TARGET_KDGKBLED 0x4B64 /* get led flags (not lights) */ #define TARGET_KDSKBLED 0x4B65 /* set led flags (not lights) */ #define TARGET_KDGETLED 0x4B31 /* return current led state */ --=20 2.7.4