diff options
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dc.h')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dc.h | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h index e15e8fb1eefe..77bd54659a8b 100644 --- a/drivers/gpu/drm/amd/display/dc/dc.h +++ b/drivers/gpu/drm/amd/display/dc/dc.h | |||
@@ -629,7 +629,7 @@ bool dc_enable_stereo( | |||
629 | /** | 629 | /** |
630 | * Create a new default stream for the requested sink | 630 | * Create a new default stream for the requested sink |
631 | */ | 631 | */ |
632 | struct dc_stream *dc_create_stream_for_sink(const struct dc_sink *dc_sink); | 632 | struct dc_stream *dc_create_stream_for_sink(struct dc_sink *dc_sink); |
633 | 633 | ||
634 | void dc_stream_retain(const struct dc_stream *dc_stream); | 634 | void dc_stream_retain(const struct dc_stream *dc_stream); |
635 | void dc_stream_release(const struct dc_stream *dc_stream); | 635 | void dc_stream_release(const struct dc_stream *dc_stream); |
@@ -712,9 +712,9 @@ struct link_mst_stream_allocation_table { | |||
712 | * The currently active signal type (HDMI, DP-SST, DP-MST) is also reported. | 712 | * The currently active signal type (HDMI, DP-SST, DP-MST) is also reported. |
713 | */ | 713 | */ |
714 | struct dc_link { | 714 | struct dc_link { |
715 | const struct dc_sink *remote_sinks[MAX_SINKS_PER_LINK]; | 715 | struct dc_sink *remote_sinks[MAX_SINKS_PER_LINK]; |
716 | unsigned int sink_count; | 716 | unsigned int sink_count; |
717 | const struct dc_sink *local_sink; | 717 | struct dc_sink *local_sink; |
718 | unsigned int link_index; | 718 | unsigned int link_index; |
719 | enum dc_connection_type type; | 719 | enum dc_connection_type type; |
720 | enum signal_type connector_signal; | 720 | enum signal_type connector_signal; |
@@ -825,7 +825,7 @@ struct dc_sink *dc_link_add_remote_sink( | |||
825 | 825 | ||
826 | void dc_link_remove_remote_sink( | 826 | void dc_link_remove_remote_sink( |
827 | struct dc_link *link, | 827 | struct dc_link *link, |
828 | const struct dc_sink *sink); | 828 | struct dc_sink *sink); |
829 | 829 | ||
830 | /* Used by diagnostics for virtual link at the moment */ | 830 | /* Used by diagnostics for virtual link at the moment */ |
831 | void dc_link_set_sink(struct dc_link *link, struct dc_sink *sink); | 831 | void dc_link_set_sink(struct dc_link *link, struct dc_sink *sink); |
@@ -879,10 +879,17 @@ struct dc_sink { | |||
879 | void *priv; | 879 | void *priv; |
880 | struct stereo_3d_features features_3d[TIMING_3D_FORMAT_MAX]; | 880 | struct stereo_3d_features features_3d[TIMING_3D_FORMAT_MAX]; |
881 | bool converter_disable_audio; | 881 | bool converter_disable_audio; |
882 | |||
883 | /* private to DC core */ | ||
884 | struct dc_link *link; | ||
885 | struct dc_context *ctx; | ||
886 | |||
887 | /* private to dc_sink.c */ | ||
888 | int ref_count; | ||
882 | }; | 889 | }; |
883 | 890 | ||
884 | void dc_sink_retain(const struct dc_sink *sink); | 891 | void dc_sink_retain(struct dc_sink *sink); |
885 | void dc_sink_release(const struct dc_sink *sink); | 892 | void dc_sink_release(struct dc_sink *sink); |
886 | 893 | ||
887 | const struct audio **dc_get_audios(struct dc *dc); | 894 | const struct audio **dc_get_audios(struct dc *dc); |
888 | 895 | ||