diff options
| author | Srikanth Rajagopalan <rasrik@codeaurora.org> | 2017-06-08 15:23:31 -0700 |
|---|---|---|
| committer | Srikanth Rajagopalan <rasrik@codeaurora.org> | 2017-06-26 12:01:55 -0700 |
| commit | 1be46f298592a16f4ff9f9140d0a8897eb52a413 (patch) | |
| tree | a6f148cfda1684f684b821289a4b077f2e14fae9 /include/uapi | |
| parent | 6f56b2a9c8e2ce69e2a98e52d5f1342b25cae44e (diff) | |
drm/msm: add sink capabilities for HDR support
Populate HDR sink capabilities to a DRM blob.
These capabilities shall be used by the userspace
to calculate the sink HDR properties and setting them.
Change-Id: I7c2dbca375c456052ad73889b011553090bcf8f1
Signed-off-by: Srikanth Rajagopalan <rasrik@codeaurora.org>
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/drm/msm_drm.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/uapi/drm/msm_drm.h b/include/uapi/drm/msm_drm.h index d8b8ef16b14a..b98912f4ae47 100644 --- a/include/uapi/drm/msm_drm.h +++ b/include/uapi/drm/msm_drm.h @@ -62,6 +62,20 @@ struct drm_msm_timespec { __s64 tv_nsec; /* nanoseconds */ }; +/** + * HDR sink properties + * These are defined as per EDID spec and shall be used by the userspace + * to determine the HDR properties to be set to the sink. + */ +struct drm_msm_ext_panel_hdr_properties { + __u8 hdr_metadata_type_one; /* static metadata type one */ + __u32 hdr_supported; /* HDR supported */ + __u32 hdr_eotf; /* electro optical transfer function */ + __u32 hdr_max_luminance; /* Max luminance */ + __u32 hdr_avg_luminance; /* Avg luminance */ + __u32 hdr_min_luminance; /* Min Luminance */ +}; + #define MSM_PARAM_GPU_ID 0x01 #define MSM_PARAM_GMEM_SIZE 0x02 #define MSM_PARAM_CHIP_ID 0x03 |
