#include "dm_services.h"
#include "core_types.h"
#include "reg_helper.h"
#include "dcn10/dcn10_dpp.h"
#include "basics/conversion.h"
#include "dcn10/dcn10_cm_common.h"
#define NUM_PHASES …
#define HORZ_MAX_TAPS …
#define VERT_MAX_TAPS …
#define BLACK_OFFSET_RGB_Y …
#define BLACK_OFFSET_CBCR …
#define REG(reg) …
#define CTX …
#undef FN
#define FN(reg_name, field_name) …
#define NUM_ELEMENTS(a) …
enum dcn10_coef_filter_type_sel { … };
enum dscl_autocal_mode { … };
enum dscl_mode_sel { … };
static void program_gamut_remap(
struct dcn10_dpp *dpp,
const uint16_t *regval,
enum gamut_remap_select select)
{ … }
void dpp1_cm_set_gamut_remap(
struct dpp *dpp_base,
const struct dpp_grph_csc_adjustment *adjust)
{ … }
static void read_gamut_remap(struct dcn10_dpp *dpp,
uint16_t *regval,
enum gamut_remap_select *select)
{ … }
void dpp1_cm_get_gamut_remap(struct dpp *dpp_base,
struct dpp_grph_csc_adjustment *adjust)
{ … }
static void dpp1_cm_program_color_matrix(
struct dcn10_dpp *dpp,
const uint16_t *regval)
{ … }
void dpp1_cm_set_output_csc_default(
struct dpp *dpp_base,
enum dc_color_space colorspace)
{ … }
static void dpp1_cm_get_reg_field(
struct dcn10_dpp *dpp,
struct xfer_func_reg *reg)
{ … }
static void dpp1_cm_get_degamma_reg_field(
struct dcn10_dpp *dpp,
struct xfer_func_reg *reg)
{ … }
void dpp1_cm_set_output_csc_adjustment(
struct dpp *dpp_base,
const uint16_t *regval)
{ … }
void dpp1_cm_power_on_regamma_lut(struct dpp *dpp_base,
bool power_on)
{ … }
void dpp1_cm_program_regamma_lut(struct dpp *dpp_base,
const struct pwl_result_data *rgb,
uint32_t num)
{ … }
void dpp1_cm_configure_regamma_lut(
struct dpp *dpp_base,
bool is_ram_a)
{ … }
void dpp1_cm_program_regamma_luta_settings(
struct dpp *dpp_base,
const struct pwl_params *params)
{ … }
void dpp1_cm_program_regamma_lutb_settings(
struct dpp *dpp_base,
const struct pwl_params *params)
{ … }
void dpp1_program_input_csc(
struct dpp *dpp_base,
enum dc_color_space color_space,
enum dcn10_input_csc_select input_select,
const struct out_csc_color_matrix *tbl_entry)
{ … }
void dpp1_program_bias_and_scale(
struct dpp *dpp_base,
struct dc_bias_and_scale *params)
{ … }
void dpp1_program_degamma_lutb_settings(
struct dpp *dpp_base,
const struct pwl_params *params)
{ … }
void dpp1_program_degamma_luta_settings(
struct dpp *dpp_base,
const struct pwl_params *params)
{ … }
void dpp1_power_on_degamma_lut(
struct dpp *dpp_base,
bool power_on)
{ … }
static void dpp1_enable_cm_block(
struct dpp *dpp_base)
{ … }
void dpp1_set_degamma(
struct dpp *dpp_base,
enum ipp_degamma_mode mode)
{ … }
void dpp1_degamma_ram_select(
struct dpp *dpp_base,
bool use_ram_a)
{ … }
static bool dpp1_degamma_ram_inuse(
struct dpp *dpp_base,
bool *ram_a_inuse)
{ … }
void dpp1_program_degamma_lut(
struct dpp *dpp_base,
const struct pwl_result_data *rgb,
uint32_t num,
bool is_ram_a)
{ … }
void dpp1_set_degamma_pwl(struct dpp *dpp_base,
const struct pwl_params *params)
{ … }
void dpp1_full_bypass(struct dpp *dpp_base)
{ … }
static bool dpp1_ingamma_ram_inuse(struct dpp *dpp_base,
bool *ram_a_inuse)
{ … }
void dpp1_program_input_lut(
struct dpp *dpp_base,
const struct dc_gamma *gamma)
{ … }
void dpp1_set_hdr_multiplier(
struct dpp *dpp_base,
uint32_t multiplier)
{ … }