#include "dm_services.h"
#include "core_types.h"
#include "reg_helper.h"
#include "dcn30/dcn30_dpp.h"
#include "basics/conversion.h"
#include "dcn30/dcn30_cm_common.h"
#define REG(reg) …
#define CTX …
#undef FN
#define FN(reg_name, field_name) …
static void dpp3_enable_cm_block(
struct dpp *dpp_base)
{ … }
static enum dc_lut_mode dpp30_get_gamcor_current(struct dpp *dpp_base)
{ … }
static void dpp3_program_gammcor_lut(
struct dpp *dpp_base,
const struct pwl_result_data *rgb,
uint32_t num,
bool is_ram_a)
{ … }
static void dpp3_power_on_gamcor_lut(
struct dpp *dpp_base,
bool power_on)
{ … }
void dpp3_program_cm_dealpha(
struct dpp *dpp_base,
uint32_t enable, uint32_t additive_blending)
{ … }
void dpp3_program_cm_bias(
struct dpp *dpp_base,
struct CM_bias_params *bias_params)
{ … }
static void dpp3_gamcor_reg_field(
struct dcn3_dpp *dpp,
struct dcn3_xfer_func_reg *reg)
{ … }
static void dpp3_configure_gamcor_lut(
struct dpp *dpp_base,
bool is_ram_a)
{ … }
bool dpp3_program_gamcor_lut(
struct dpp *dpp_base, const struct pwl_params *params)
{ … }
void dpp3_set_hdr_multiplier(
struct dpp *dpp_base,
uint32_t multiplier)
{ … }
static void program_gamut_remap(
struct dcn3_dpp *dpp,
const uint16_t *regval,
int select)
{ … }
void dpp3_cm_set_gamut_remap(
struct dpp *dpp_base,
const struct dpp_grph_csc_adjustment *adjust)
{ … }
static void read_gamut_remap(struct dcn3_dpp *dpp,
uint16_t *regval,
int *select)
{ … }
void dpp3_cm_get_gamut_remap(struct dpp *dpp_base,
struct dpp_grph_csc_adjustment *adjust)
{ … }