#include "dmub_abm.h"
#include "dmub_abm_lcd.h"
#include "dc.h"
#include "core_types.h"
#include "dmub_cmd.h"
#define TO_DMUB_ABM(abm) …
#define ABM_FEATURE_NO_SUPPORT …
#define ABM_LCD_SUPPORT …
static unsigned int abm_feature_support(struct abm *abm, unsigned int panel_inst)
{ … }
static void dmub_abm_init_ex(struct abm *abm, uint32_t backlight, uint32_t user_level)
{ … }
static unsigned int dmub_abm_get_current_backlight_ex(struct abm *abm)
{ … }
static unsigned int dmub_abm_get_target_backlight_ex(struct abm *abm)
{ … }
static bool dmub_abm_set_level_ex(struct abm *abm, uint32_t level)
{ … }
static bool dmub_abm_init_config_ex(struct abm *abm,
const char *src,
unsigned int bytes,
unsigned int inst)
{ … }
static bool dmub_abm_set_pause_ex(struct abm *abm, bool pause, unsigned int panel_inst, unsigned int stream_inst)
{ … }
static bool dmub_abm_save_restore_ex(
struct abm *abm,
unsigned int panel_inst,
struct abm_save_restore *pData)
{ … }
static bool dmub_abm_set_pipe_ex(struct abm *abm,
uint32_t otg_inst,
uint32_t option,
uint32_t panel_inst,
uint32_t pwrseq_inst)
{ … }
static bool dmub_abm_set_backlight_level_pwm_ex(struct abm *abm,
unsigned int backlight_pwm_u16_16,
unsigned int frame_ramp,
unsigned int controller_id,
unsigned int panel_inst)
{ … }
static const struct abm_funcs abm_funcs = …;
static void dmub_abm_construct(
struct dce_abm *abm_dce,
struct dc_context *ctx,
const struct dce_abm_registers *regs,
const struct dce_abm_shift *abm_shift,
const struct dce_abm_mask *abm_mask)
{ … }
struct abm *dmub_abm_create(
struct dc_context *ctx,
const struct dce_abm_registers *regs,
const struct dce_abm_shift *abm_shift,
const struct dce_abm_mask *abm_mask)
{ … }
void dmub_abm_destroy(struct abm **abm)
{ … }