#ifndef __DC_TIMING_GENERATOR_DCE110_H__
#define __DC_TIMING_GENERATOR_DCE110_H__
#include "timing_generator.h"
#include "../include/grph_object_id.h"
#define VFLIP_READY_DELAY …
#define HFLIP_READY_DELAY …
#define HFLIP_CHECK_DELAY …
#define FLIP_READY_BACK_LOOKUP …
enum trigger_source_select { … };
enum trigger_polarity_select { … };
struct dce110_timing_generator_offsets { … };
struct dce110_timing_generator { … };
#define DCE110TG_FROM_TG(tg) …
void dce110_timing_generator_construct(
struct dce110_timing_generator *tg,
struct dc_context *ctx,
uint32_t instance,
const struct dce110_timing_generator_offsets *offsets);
bool dce110_timing_generator_validate_timing(
struct timing_generator *tg,
const struct dc_crtc_timing *timing,
enum signal_type signal);
bool dce110_timing_generator_program_timing_generator(
struct timing_generator *tg,
const struct dc_crtc_timing *dc_crtc_timing);
bool dce110_timing_generator_enable_crtc(struct timing_generator *tg);
bool dce110_timing_generator_disable_crtc(struct timing_generator *tg);
void dce110_timing_generator_set_early_control(
struct timing_generator *tg,
uint32_t early_cntl);
uint32_t dce110_timing_generator_get_vblank_counter(
struct timing_generator *tg);
void dce110_timing_generator_get_position(
struct timing_generator *tg,
struct crtc_position *position);
bool dce110_timing_generator_is_counter_moving(struct timing_generator *tg);
void dce110_timing_generator_wait_for_vblank(struct timing_generator *tg);
void dce110_timing_generator_wait_for_vactive(struct timing_generator *tg);
void dce110_timing_generator_setup_global_swap_lock(
struct timing_generator *tg,
const struct dcp_gsl_params *gsl_params);
void dce110_timing_generator_tear_down_global_swap_lock(
struct timing_generator *tg);
void dce110_timing_generator_enable_crtc_reset(
struct timing_generator *tg,
int source,
struct crtc_trigger_info *crtc_tp);
void dce110_timing_generator_enable_reset_trigger(
struct timing_generator *tg,
int source);
void dce110_timing_generator_disable_reset_trigger(
struct timing_generator *tg);
bool dce110_timing_generator_did_triggered_reset_occur(
struct timing_generator *tg);
void dce110_timing_generator_disable_vga(struct timing_generator *tg);
void dce110_timing_generator_program_blanking(
struct timing_generator *tg,
const struct dc_crtc_timing *timing);
void dce110_timing_generator_program_blank_color(
struct timing_generator *tg,
const struct tg_color *black_color);
void dce110_timing_generator_set_overscan_color_black(
struct timing_generator *tg,
const struct tg_color *color);
void dce110_timing_generator_color_space_to_black_color(
enum dc_color_space colorspace,
struct tg_color *black_color);
void dce110_timing_generator_set_test_pattern(
struct timing_generator *tg,
enum controller_dp_test_pattern test_pattern,
enum dc_color_depth color_depth);
void dce110_timing_generator_set_drr(
struct timing_generator *tg,
const struct drr_params *params);
void dce110_timing_generator_set_static_screen_control(
struct timing_generator *tg,
uint32_t event_triggers,
uint32_t num_frames);
void dce110_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);
void dce110_timing_generator_enable_advanced_request(
struct timing_generator *tg,
bool enable,
const struct dc_crtc_timing *timing);
void dce110_timing_generator_set_lock_master(struct timing_generator *tg,
bool lock);
void dce110_tg_program_blank_color(struct timing_generator *tg,
const struct tg_color *black_color);
void dce110_tg_set_overscan_color(struct timing_generator *tg,
const struct tg_color *overscan_color);
void dce110_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,
const enum signal_type signal,
bool use_vbios);
bool dce110_tg_is_blanked(struct timing_generator *tg);
void dce110_tg_set_blank(struct timing_generator *tg,
bool enable_blanking);
bool dce110_tg_validate_timing(struct timing_generator *tg,
const struct dc_crtc_timing *timing);
void dce110_tg_wait_for_state(struct timing_generator *tg,
enum crtc_state state);
void dce110_tg_set_colors(struct timing_generator *tg,
const struct tg_color *blank_color,
const struct tg_color *overscan_color);
bool dce110_arm_vert_intr(
struct timing_generator *tg, uint8_t width);
bool dce110_configure_crc(struct timing_generator *tg,
const struct crc_params *params);
bool dce110_get_crc(struct timing_generator *tg,
uint32_t *r_cr, uint32_t *g_y, uint32_t *b_cb);
bool dce110_is_two_pixels_per_container(const struct dc_crtc_timing *timing);
#endif