summaryrefslogtreecommitdiff
path: root/include/drm
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2018-03-01 15:38:11 +0200
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:30:46 +0800
commit0ac4c432b81eb69b87ea48909f60e17bace4f118 (patch)
treee97e879fcfb139c5fec401454cf09a46ee8f7951 /include/drm
parentdb1b1589801037b51e975f6051a65f76cea09d62 (diff)
drm: add connector info/property for non-desktop displays [v2]
This adds the infrastructure needed to quirk displays using edid and to mark them a non-desktop. A non-desktop display is one which shouldn't normally be included as a part of a desktop environment. This is meant to cover head mounted devices like HTC Vive. v2: Change description from non-standard to non-desktop, add docs Reviewed-by: Keith Packard <keithp@keithp.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Marius Vlad <marius-cristian.vlad@nxp.com> (Ported 66660d4cf21b7dfcb25 from git://people.freedesktop.org/~airlied/linux)
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/drm_connector.h5
-rw-r--r--include/drm/drm_mode_config.h8
2 files changed, 13 insertions, 0 deletions
diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h
index 95b2d4f67b84..fb563a1b0448 100644
--- a/include/drm/drm_connector.h
+++ b/include/drm/drm_connector.h
@@ -286,6 +286,11 @@ struct drm_display_info {
u8 cea_rev;
/**
+ * @non_desktop: Non desktop display (HMD)
+ */
+ bool non_desktop;
+
+ /**
* @hdmi: advance features of a HDMI sink.
*/
struct drm_hdmi_info hdmi;
diff --git a/include/drm/drm_mode_config.h b/include/drm/drm_mode_config.h
index 0a2dfcf3a3c9..67040a61b867 100644
--- a/include/drm/drm_mode_config.h
+++ b/include/drm/drm_mode_config.h
@@ -735,6 +735,14 @@ struct drm_mode_config {
* the position of the output on the host's screen.
*/
struct drm_property *suggested_x_property;
+
+ /**
+ * @non_desktop_property: Optional connector property with a hint
+ * that device isn't a standard display, and the console/desktop
+ * should not be displayed on it.
+ */
+ struct drm_property *non_desktop_property;
+
/**
* @suggested_y_property: Optional connector property with a hint for
* the position of the output on the host's screen.