]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
xen/displif: Add unique display connector identifier
authorOleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Fri, 8 Jun 2018 06:08:30 +0000 (09:08 +0300)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 8 Jun 2018 14:56:53 +0000 (10:56 -0400)
If frontend is configured to expose multiple connectors then backend may
require a way to uniquely identify concrete virtual connector within the
frontend. This is useful for use-cases where connector needs to be
matched to physical display connector.
Add XenBus "unique-id" node parameter, so this sort of use-cases can
be implemented.

Signed-off-by: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
xen/include/public/io/displif.h

index 8a94f1f9b9d007ca94131a272bd98b8b63c53a09..cc5de9cb1f35dedc99c866d73d086b19e496852a 100644 (file)
  *
  *----------------------------- Connector settings ----------------------------
  *
+ * unique-id
+ *      Values:         <string>
+ *
+ *      After device instance initialization each connector is assigned a
+ *      unique ID, so it can be identified by the backend by this ID.
+ *      This can be UUID or such.
+ *
  * resolution
  *      Values:         <width, uint32_t>x<height, uint32_t>
  *
 #define XENDISPL_FIELD_EVT_CHANNEL    "evt-event-channel"
 #define XENDISPL_FIELD_RESOLUTION     "resolution"
 #define XENDISPL_FIELD_BE_ALLOC       "be-alloc"
+#define XENDISPL_FIELD_UNIQUE_ID      "unique-id"
 
 /*
  ******************************************************************************