summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@quicinc.com>2017-06-27 17:07:46 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-06-27 17:07:45 -0700
commitbe58516a4ea44bb79784103cfe337a1e3e6f7445 (patch)
treef2b4001055a37a5b70c87a4fd8b04c18b4ec231b /include/uapi
parent35589846a02122d17cd8703ed6a642cdc4918621 (diff)
parent79d9dc2c13a06427e9c38a741a1d7859986367ee (diff)
Merge "drm/msm: pass the HDR metadata sent from userspace to sink"
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/drm/msm_drm.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/uapi/drm/msm_drm.h b/include/uapi/drm/msm_drm.h
index b98912f4ae47..a60e84ab905b 100644
--- a/include/uapi/drm/msm_drm.h
+++ b/include/uapi/drm/msm_drm.h
@@ -62,6 +62,27 @@ struct drm_msm_timespec {
__s64 tv_nsec; /* nanoseconds */
};
+/*
+ * HDR Metadata
+ * These are defined as per EDID spec and shall be used by the sink
+ * to set the HDR metadata for playback from userspace.
+ */
+
+#define HDR_PRIMARIES_COUNT 3
+
+struct drm_msm_ext_panel_hdr_metadata {
+ __u32 eotf; /* electro optical transfer function */
+ __u32 hdr_supported; /* HDR supported */
+ __u32 display_primaries_x[HDR_PRIMARIES_COUNT]; /* Primaries x */
+ __u32 display_primaries_y[HDR_PRIMARIES_COUNT]; /* Primaries y */
+ __u32 white_point_x; /* white_point_x */
+ __u32 white_point_y; /* white_point_y */
+ __u32 max_luminance; /* Max luminance */
+ __u32 min_luminance; /* Min Luminance */
+ __u32 max_content_light_level; /* max content light level */
+ __u32 max_average_light_level; /* max average light level */
+};
+
/**
* HDR sink properties
* These are defined as per EDID spec and shall be used by the userspace