From patchwork Mon May 14 14:40:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksandr Andrushchenko X-Patchwork-Id: 10398565 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 27281600D0 for ; Mon, 14 May 2018 14:40:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1699C27FB3 for ; Mon, 14 May 2018 14:40:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 11BCC283C5; Mon, 14 May 2018 14:40:43 +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=-7.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 721352821F for ; Mon, 14 May 2018 14:40:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753808AbeENOkk (ORCPT ); Mon, 14 May 2018 10:40:40 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:35111 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753769AbeENOkj (ORCPT ); Mon, 14 May 2018 10:40:39 -0400 Received: by mail-lf0-f66.google.com with SMTP id y72-v6so18380506lfd.2; Mon, 14 May 2018 07:40:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=bQ2N2pt1PpVqRTTl6ELl7pnIDQxSRoI5l88PGAXCJAo=; b=kN21T9yB1ybMIjJ1j7H+eqs2OinDuwSdKodS/uy9YZH23iVrSHknGsB5TGpp0ERJPG TE0p7dOSXY3HWZLuP9bSK481zav68X96QA2KzZS6YQ2RWvngngsTMiYp+I8kqfH9X4W6 Un7ehVZOs/NgWBn0OGBuA+OUF9gDsebXp7kmxSic2lPw90wYjrQcfE6iFVPr6SHMU4Uv QzbcPmbqJ00+wwzYqLyNHBHFXBGqI8ArNJkgC7W2oZxD6lKiQq4t0wOP1m8oakn4RNTe 04+xzQou5zrY1774JBpx3aH2xXjdvpzhsrDPR+TSl4QeXYj2zRnw+bgxVjI98WNK83xN SJSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=bQ2N2pt1PpVqRTTl6ELl7pnIDQxSRoI5l88PGAXCJAo=; b=WuDD5JyP/nAxcVO8Df64lsiuP53GmJJ/UM0apIcj571bSQcaEB9r/M3ge2mJMQi3qu QqNowl83yP9T2pvd2TTxMAhJMR+0rNp2f2/j42gQPJm1inq87E1u1gSd4sDZ+bIIeb7d obE61saucDIc/4nMVUL3vGh0CojvZzW0YziVNNHSUF3lzv7oL7PuAMbBR/JqY567ogYT nMeyFWXVjUV+fkMZc8cHIOXHF7Vl1/D2SGq1LbgwJar7a7dX2I+ah29+1WOpC8/CjFIy j5ICZ0M5KAMaAlLNMY2S1ccaHoQZN4zdVwkIdIZTtIGPbGu9vdFhNexYku0KLrm/w7Ly 2FRQ== X-Gm-Message-State: ALKqPwcttTHo5aLM/E74jxBY1gMpfgoEzcGAdyjMDt1Aa89eqAjqEn73 4PctcvIHwGMPpcvNHjDjI/M= X-Google-Smtp-Source: AB8JxZqAlyxRwKgqp16GGlC+3FkOhHuFWx0bC/qF+JB/g4UPMGe2vz4h78jY+0LVdTqWomyvWMaHmw== X-Received: by 2002:a19:c212:: with SMTP id l18-v6mr8152699lfc.55.1526308837350; Mon, 14 May 2018 07:40:37 -0700 (PDT) Received: from a2k-HP-ProDesk-600-G2-SFF.kyiv.epam.com (ll-54.209.223.85.sovam.net.ua. [85.223.209.54]) by smtp.gmail.com with ESMTPSA id d73-v6sm2424425lfd.50.2018.05.14.07.40.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 14 May 2018 07:40:36 -0700 (PDT) From: Oleksandr Andrushchenko To: xen-devel@lists.xenproject.org, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, dmitry.torokhov@gmail.com, jgross@suse.com, lyan@suse.com, boris.ostrovsky@oracle.com Cc: konrad.wilk@oracle.com, andr2000@gmail.com, andrii_chepurnyi@epam.com, Oleksandr Andrushchenko Subject: [PATCH v3 1/2] xen/kbdif: Sync up with the canonical definition in Xen Date: Mon, 14 May 2018 17:40:28 +0300 Message-Id: <20180514144029.16019-1-andr2000@gmail.com> X-Mailer: git-send-email 2.17.0 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Oleksandr Andrushchenko This is the sync up with the canonical definition of the keyboard protocol in Xen: 1. Add missing string constants for {feature|request}-raw-pointer to align with the rest of the interface file. 2. Add new XenStore feature fields, so it is possible to individually control set of exposed virtual devices for each guest OS: - set feature-disable-keyboard to 1 if no keyboard device needs to be created - set feature-disable-pointer to 1 if no pointer device needs to be created Signed-off-by: Oleksandr Andrushchenko Cc: Konrad Rzeszutek Wilk --- include/xen/interface/io/kbdif.h | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/include/xen/interface/io/kbdif.h b/include/xen/interface/io/kbdif.h index 2a9510ade701..808ef7d02a65 100644 --- a/include/xen/interface/io/kbdif.h +++ b/include/xen/interface/io/kbdif.h @@ -51,6 +51,18 @@ * corresponding entries in XenStore and puts 1 as the value of the entry. * If a feature is not supported then 0 must be set or feature entry omitted. * + * feature-disable-keyboard + * Values: + * + * If there is no need to expose a virtual keyboard device by the + * frontend then this must be set to 1. + * + * feature-disable-pointer + * Values: + * + * If there is no need to expose a virtual pointer device by the + * frontend then this must be set to 1. + * * feature-abs-pointer * Values: * @@ -63,6 +75,13 @@ * Backends, which support reporting of multi-touch events * should set this to 1. * + * feature-raw-pointer + * Values: + * + * Backends, which support reporting raw (unscaled) absolute coordinates + * for pointer devices should set this to 1. Raw (unscaled) values have + * a range of [0, 0x7fff]. + * *------------------------- Pointer Device Parameters ------------------------ * * width @@ -98,6 +117,13 @@ * * Request backend to report multi-touch events. * + * request-raw-pointer + * Values: + * + * Request backend to report raw unscaled absolute pointer coordinates. + * This option is only valid if request-abs-pointer is also set. + * Raw unscaled coordinates have the range [0, 0x7fff] + * *----------------------- Request Transport Parameters ----------------------- * * event-channel @@ -163,9 +189,13 @@ #define XENKBD_DRIVER_NAME "vkbd" +#define XENKBD_FIELD_FEAT_DSBL_KEYBRD "feature-disable-keyboard" +#define XENKBD_FIELD_FEAT_DSBL_POINTER "feature-disable-pointer" #define XENKBD_FIELD_FEAT_ABS_POINTER "feature-abs-pointer" +#define XENKBD_FIELD_FEAT_RAW_POINTER "feature-raw-pointer" #define XENKBD_FIELD_FEAT_MTOUCH "feature-multi-touch" #define XENKBD_FIELD_REQ_ABS_POINTER "request-abs-pointer" +#define XENKBD_FIELD_REQ_RAW_POINTER "request-raw-pointer" #define XENKBD_FIELD_REQ_MTOUCH "request-multi-touch" #define XENKBD_FIELD_RING_GREF "page-gref" #define XENKBD_FIELD_EVT_CHANNEL "event-channel"