#ifndef __DC_STREAM_ENCODER_DCN10_H__
#define __DC_STREAM_ENCODER_DCN10_H__
#include "stream_encoder.h"
#define DCN10STRENC_FROM_STRENC(stream_encoder) …
#define SE_COMMON_DCN_REG_LIST(id) …
#define SE_DCN_REG_LIST(id) …
struct dcn10_stream_enc_registers { … };
#define SE_SF(reg_name, field_name, post_fix) …
#define SE_COMMON_MASK_SH_LIST_SOC(mask_sh) …
#define SE_COMMON_MASK_SH_LIST_DCN10(mask_sh) …
#define SE_REG_FIELD_LIST_DCN1_0(type) …
#define SE_REG_FIELD_LIST_DCN2_0(type) …
#define SE_REG_FIELD_LIST_DCN3_0(type) …
#define SE_REG_FIELD_LIST_DCN3_1_COMMON(type) …
#define SE_REG_FIELD_LIST_DCN3_5_COMMON(type) …
#define SE_REG_FIELD_LIST_DCN4_01_COMMON(type) …
struct dcn10_stream_encoder_shift { … };
struct dcn10_stream_encoder_mask { … };
struct dcn10_stream_encoder { … };
void dcn10_stream_encoder_construct(
struct dcn10_stream_encoder *enc1,
struct dc_context *ctx,
struct dc_bios *bp,
enum engine_id eng_id,
const struct dcn10_stream_enc_registers *regs,
const struct dcn10_stream_encoder_shift *se_shift,
const struct dcn10_stream_encoder_mask *se_mask);
void enc1_update_generic_info_packet(
struct dcn10_stream_encoder *enc1,
uint32_t packet_index,
const struct dc_info_packet *info_packet);
void enc1_stream_encoder_dp_set_stream_attribute(
struct stream_encoder *enc,
struct dc_crtc_timing *crtc_timing,
enum dc_color_space output_color_space,
bool use_vsc_sdp_for_colorimetry,
uint32_t enable_sdp_splitting);
void enc1_stream_encoder_hdmi_set_stream_attribute(
struct stream_encoder *enc,
struct dc_crtc_timing *crtc_timing,
int actual_pix_clk_khz,
bool enable_audio);
void enc1_stream_encoder_dvi_set_stream_attribute(
struct stream_encoder *enc,
struct dc_crtc_timing *crtc_timing,
bool is_dual_link);
void enc1_stream_encoder_set_throttled_vcp_size(
struct stream_encoder *enc,
struct fixed31_32 avg_time_slots_per_mtp);
void enc1_stream_encoder_update_dp_info_packets(
struct stream_encoder *enc,
const struct encoder_info_frame *info_frame);
void enc1_stream_encoder_send_immediate_sdp_message(
struct stream_encoder *enc,
const uint8_t *custom_sdp_message,
unsigned int sdp_message_size);
void enc1_stream_encoder_stop_dp_info_packets(
struct stream_encoder *enc);
void enc1_stream_encoder_dp_blank(
struct dc_link *link,
struct stream_encoder *enc);
void enc1_stream_encoder_dp_unblank(
struct dc_link *link,
struct stream_encoder *enc,
const struct encoder_unblank_param *param);
void enc1_setup_stereo_sync(
struct stream_encoder *enc,
int tg_inst, bool enable);
void enc1_stream_encoder_set_avmute(
struct stream_encoder *enc,
bool enable);
void enc1_se_audio_mute_control(
struct stream_encoder *enc,
bool mute);
void enc1_se_dp_audio_setup(
struct stream_encoder *enc,
unsigned int az_inst,
struct audio_info *info);
void enc1_se_dp_audio_enable(
struct stream_encoder *enc);
void enc1_se_dp_audio_disable(
struct stream_encoder *enc);
void enc1_se_hdmi_audio_setup(
struct stream_encoder *enc,
unsigned int az_inst,
struct audio_info *info,
struct audio_crtc_info *audio_crtc_info);
void enc1_se_hdmi_audio_disable(
struct stream_encoder *enc);
void enc1_dig_connect_to_otg(
struct stream_encoder *enc,
int tg_inst);
unsigned int enc1_dig_source_otg(
struct stream_encoder *enc);
void enc1_stream_encoder_set_stream_attribute_helper(
struct dcn10_stream_encoder *enc1,
struct dc_crtc_timing *crtc_timing);
void enc1_se_enable_audio_clock(
struct stream_encoder *enc,
bool enable);
void enc1_se_enable_dp_audio(
struct stream_encoder *enc);
void get_audio_clock_info(
enum dc_color_depth color_depth,
uint32_t crtc_pixel_clock_100Hz,
uint32_t actual_pixel_clock_100Hz,
struct audio_clock_info *audio_clock_info);
void enc1_reset_hdmi_stream_attribute(
struct stream_encoder *enc);
bool enc1_stream_encoder_dp_get_pixel_format(
struct stream_encoder *enc,
enum dc_pixel_encoding *encoding,
enum dc_color_depth *depth);
#endif