#include "dc_bios_types.h"
#include "dcn30/dcn30_dio_stream_encoder.h"
#include "dcn314_dio_stream_encoder.h"
#include "reg_helper.h"
#include "hw_shared.h"
#include "link.h"
#include "dpcd_defs.h"
#define DC_LOGGER …
#define REG(reg) …
#undef FN
#define FN(reg_name, field_name) …
#define VBI_LINE_0 …
#define HDMI_CLOCK_CHANNEL_RATE_MORE_340M …
#define CTX …
void enc314_reset_fifo(struct stream_encoder *enc, bool reset)
{ … }
void enc314_enable_fifo(struct stream_encoder *enc)
{ … }
void enc314_disable_fifo(struct stream_encoder *enc)
{ … }
void enc314_dp_set_odm_combine(
struct stream_encoder *enc,
bool odm_combine)
{ … }
void enc314_stream_encoder_dvi_set_stream_attribute(
struct stream_encoder *enc,
struct dc_crtc_timing *crtc_timing,
bool is_dual_link)
{ … }
void enc314_stream_encoder_hdmi_set_stream_attribute(
struct stream_encoder *enc,
struct dc_crtc_timing *crtc_timing,
int actual_pix_clk_khz,
bool enable_audio)
{ … }
static bool is_two_pixels_per_containter(const struct dc_crtc_timing *timing)
{ … }
void enc314_stream_encoder_dp_blank(
struct dc_link *link,
struct stream_encoder *enc)
{ … }
void enc314_stream_encoder_dp_unblank(
struct dc_link *link,
struct stream_encoder *enc,
const struct encoder_unblank_param *param)
{ … }
void enc314_dp_set_dsc_config(struct stream_encoder *enc,
enum optc_dsc_mode dsc_mode,
uint32_t dsc_bytes_per_pixel,
uint32_t dsc_slice_width)
{ … }
void enc314_read_state(struct stream_encoder *enc, struct enc_state *s)
{ … }
void enc314_set_dig_input_mode(struct stream_encoder *enc, unsigned int pix_per_container)
{ … }
static const struct stream_encoder_funcs dcn314_str_enc_funcs = …;
void dcn314_dio_stream_encoder_construct(
struct dcn10_stream_encoder *enc1,
struct dc_context *ctx,
struct dc_bios *bp,
enum engine_id eng_id,
struct vpg *vpg,
struct afmt *afmt,
const struct dcn10_stream_enc_registers *regs,
const struct dcn10_stream_encoder_shift *se_shift,
const struct dcn10_stream_encoder_mask *se_mask)
{ … }