summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/dc/dc_types.h
diff options
context:
space:
mode:
authorZeyu Fan <Zeyu.Fan@amd.com>2017-07-20 19:04:56 -0400
committerAlex Deucher <alexander.deucher@amd.com>2017-09-26 18:15:27 -0400
commit50e27654d778114382093eecc1d6e5b7e9343d23 (patch)
tree6411ed5684b5c78b79010d8f3ccd72daf5126abc /drivers/gpu/drm/amd/display/dc/dc_types.h
parent98e4a22f02da4a66f7652a3301dcb689b739e521 (diff)
drm/amd/display: Implement logic for hdmi info packet bits.
Signed-off-by: Zeyu Fan <Zeyu.Fan@amd.com> Reviewed-by: Charlene Liu <Charlene.Liu@amd.com> Acked-by: Harry Wentland <Harry.Wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc_types.h')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dc_types.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc_types.h b/drivers/gpu/drm/amd/display/dc/dc_types.h
index 9662f2c68f83..c7539fe36b66 100644
--- a/drivers/gpu/drm/amd/display/dc/dc_types.h
+++ b/drivers/gpu/drm/amd/display/dc/dc_types.h
@@ -177,6 +177,18 @@ struct dc_edid {
#define AUDIO_INFO_DISPLAY_NAME_SIZE_IN_CHARS 20
+union display_content_support {
+ unsigned int raw;
+ struct {
+ unsigned int valid_content_type :1;
+ unsigned int game_content :1;
+ unsigned int cinema_content :1;
+ unsigned int photo_content :1;
+ unsigned int graphics_content :1;
+ unsigned int reserved :27;
+ } bits;
+};
+
struct dc_edid_caps {
/* sink identification */
uint16_t manufacturer_id;
@@ -193,6 +205,11 @@ struct dc_edid_caps {
uint32_t audio_latency;
uint32_t video_latency;
+ union display_content_support content_support;
+
+ uint8_t qs_bit;
+ uint8_t qy_bit;
+
/*HDMI 2.0 caps*/
bool lte_340mcsc_scramble;
@@ -384,6 +401,14 @@ enum scaling_transformation {
SCALING_TRANSFORMATION_PRESERVE_ASPECT_RATIO_SCALE
};
+enum display_content_type {
+ DISPLAY_CONTENT_TYPE_NO_DATA = 0,
+ DISPLAY_CONTENT_TYPE_GRAPHICS = 1,
+ DISPLAY_CONTENT_TYPE_PHOTO = 2,
+ DISPLAY_CONTENT_TYPE_CINEMA = 4,
+ DISPLAY_CONTENT_TYPE_GAME = 8
+};
+
/* audio*/
union audio_sample_rates {