#include "dm_services.h"
#include "dce/dce_12_0_offset.h"
#include "dce/dce_12_0_sh_mask.h"
#include "soc15_hw_ip.h"
#include "vega10_ip_offset.h"
#include "dc_types.h"
#include "dc_bios_types.h"
#include "include/grph_object_id.h"
#include "include/logger_interface.h"
#include "dce120_timing_generator.h"
#include "timing_generator.h"
#define CRTC_REG_UPDATE_N(reg_name, n, ...) …
#define CRTC_REG_SET_N(reg_name, n, ...) …
#define CRTC_REG_UPDATE(reg, field, val) …
#define CRTC_REG_UPDATE_2(reg, field1, val1, field2, val2) …
#define CRTC_REG_UPDATE_3(reg, field1, val1, field2, val2, field3, val3) …
#define CRTC_REG_UPDATE_4(reg, field1, val1, field2, val2, field3, val3, field4, val4) …
#define CRTC_REG_UPDATE_5(reg, field1, val1, field2, val2, field3, val3, field4, val4, field5, val5) …
#define CRTC_REG_SET(reg, field, val) …
#define CRTC_REG_SET_2(reg, field1, val1, field2, val2) …
#define CRTC_REG_SET_3(reg, field1, val1, field2, val2, field3, val3) …
static bool dce120_timing_generator_is_in_vertical_blank(
struct timing_generator *tg)
{ … }
static bool dce120_timing_generator_validate_timing(
struct timing_generator *tg,
const struct dc_crtc_timing *timing,
enum signal_type signal)
{ … }
static bool dce120_tg_validate_timing(struct timing_generator *tg,
const struct dc_crtc_timing *timing)
{ … }
static bool dce120_timing_generator_enable_crtc(struct timing_generator *tg)
{ … }
static void dce120_timing_generator_set_early_control(
struct timing_generator *tg,
uint32_t early_cntl)
{ … }
static uint32_t dce120_timing_generator_get_vblank_counter(
struct timing_generator *tg)
{ … }
static void dce120_timing_generator_get_crtc_position(
struct timing_generator *tg,
struct crtc_position *position)
{ … }
static void dce120_timing_generator_wait_for_vblank(struct timing_generator *tg)
{ … }
static void dce120_timing_generator_wait_for_vactive(struct timing_generator *tg)
{ … }
static void dce120_timing_generator_setup_global_swap_lock(
struct timing_generator *tg,
const struct dcp_gsl_params *gsl_params)
{ … }
static void dce120_timing_generator_tear_down_global_swap_lock(
struct timing_generator *tg)
{ … }
static void dce120_timing_generator_enable_reset_trigger(
struct timing_generator *tg,
int source)
{ … }
static void dce120_timing_generator_disable_reset_trigger(
struct timing_generator *tg)
{ … }
static bool dce120_timing_generator_did_triggered_reset_occur(
struct timing_generator *tg)
{ … }
static void dce120_timing_generator_disable_vga(struct timing_generator *tg)
{ … }
static void dce120_timing_generator_program_blanking(
struct timing_generator *tg,
const struct dc_crtc_timing *timing)
{ … }
static void dce120_timing_generator_program_blank_color(
struct timing_generator *tg,
const struct tg_color *black_color)
{ … }
static void dce120_timing_generator_set_overscan_color_black(
struct timing_generator *tg,
const struct tg_color *color)
{ … }
static void dce120_timing_generator_set_drr(
struct timing_generator *tg,
const struct drr_params *params)
{ … }
static void dce120_timing_generator_get_crtc_scanoutpos(
struct timing_generator *tg,
uint32_t *v_blank_start,
uint32_t *v_blank_end,
uint32_t *h_position,
uint32_t *v_position)
{ … }
static void dce120_timing_generator_enable_advanced_request(
struct timing_generator *tg,
bool enable,
const struct dc_crtc_timing *timing)
{ … }
static void dce120_tg_program_blank_color(struct timing_generator *tg,
const struct tg_color *black_color)
{ … }
static void dce120_tg_set_overscan_color(struct timing_generator *tg,
const struct tg_color *overscan_color)
{ … }
static void dce120_tg_program_timing(struct timing_generator *tg,
const struct dc_crtc_timing *timing,
int vready_offset,
int vstartup_start,
int vupdate_offset,
int vupdate_width,
int pstate_keepout,
const enum signal_type signal,
bool use_vbios)
{ … }
static bool dce120_tg_is_blanked(struct timing_generator *tg)
{ … }
static void dce120_tg_set_blank(struct timing_generator *tg,
bool enable_blanking)
{ … }
bool dce120_tg_validate_timing(struct timing_generator *tg,
const struct dc_crtc_timing *timing);
static void dce120_tg_wait_for_state(struct timing_generator *tg,
enum crtc_state state)
{ … }
static void dce120_tg_set_colors(struct timing_generator *tg,
const struct tg_color *blank_color,
const struct tg_color *overscan_color)
{ … }
static void dce120_timing_generator_set_static_screen_control(
struct timing_generator *tg,
uint32_t event_triggers,
uint32_t num_frames)
{ … }
static void dce120_timing_generator_set_test_pattern(
struct timing_generator *tg,
enum controller_dp_test_pattern test_pattern,
enum dc_color_depth color_depth)
{ … }
static bool dce120_arm_vert_intr(
struct timing_generator *tg,
uint8_t width)
{ … }
static bool dce120_is_tg_enabled(struct timing_generator *tg)
{ … }
static bool dce120_configure_crc(struct timing_generator *tg,
const struct crc_params *params)
{ … }
static bool dce120_get_crc(struct timing_generator *tg, uint32_t *r_cr,
uint32_t *g_y, uint32_t *b_cb)
{ … }
static const struct timing_generator_funcs dce120_tg_funcs = …;
void dce120_timing_generator_construct(
struct dce110_timing_generator *tg110,
struct dc_context *ctx,
uint32_t instance,
const struct dce110_timing_generator_offsets *offsets)
{ … }