[xen master] xen/kbdif: Add unique input device identifier

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen master] xen/kbdif: Add unique input device identifier

patchbot
commit 9fa730c3576e7f009417c3e25f50b362ec222725
Author:     Oleksandr Andrushchenko <[hidden email]>
AuthorDate: Fri Jun 8 09:08:29 2018 +0300
Commit:     Konrad Rzeszutek Wilk <[hidden email]>
CommitDate: Fri Jun 8 10:56:53 2018 -0400

    xen/kbdif: Add unique input device identifier
   
    If frontend is configured to expose multiple input device instances
    then backend may require a way to uniquely identify concrete input
    device within the frontend. This is useful for use-cases where
    virtual input device needs to be matched to physical input device.
    Add XenBus "unique-id" node parameter, so this sort of use-cases can
    be implemented.
   
    Signed-off-by: Oleksandr Andrushchenko <[hidden email]>
    Reviewed-by: Konrad Rzeszutek Wilk <[hidden email]>
    Signed-off-by: Konrad Rzeszutek Wilk <[hidden email]>
    Release-acked-by: Juergen Gross <[hidden email]>
---
 xen/include/public/io/kbdif.h | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/xen/include/public/io/kbdif.h b/xen/include/public/io/kbdif.h
index a68da0f1a3..a6b01c52c7 100644
--- a/xen/include/public/io/kbdif.h
+++ b/xen/include/public/io/kbdif.h
@@ -82,6 +82,15 @@
  *      for pointer devices should set this to 1. Raw (unscaled) values have
  *      a range of [0, 0x7fff].
  *
+ *-----------------------  Device Instance Parameters ------------------------
+ *
+ * unique-id
+ *      Values:         <string>
+ *
+ *      After device instance initialization it is assigned a unique ID,
+ *      so every instance of the frontend can be identified by the backend
+ *      by this ID. This can be UUID or such.
+ *
  *------------------------- Pointer Device Parameters ------------------------
  *
  * width
@@ -204,6 +213,7 @@
 #define XENKBD_FIELD_MT_WIDTH          "multi-touch-width"
 #define XENKBD_FIELD_MT_HEIGHT         "multi-touch-height"
 #define XENKBD_FIELD_MT_NUM_CONTACTS   "multi-touch-num-contacts"
+#define XENKBD_FIELD_UNIQUE_ID         "unique-id"
 
 /* OBSOLETE, not recommended for use */
 #define XENKBD_FIELD_RING_REF          "page-ref"
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog