#include "reg_helper.h"
#include "core_types.h"
#include "dc_dmub_srv.h"
#include "panel_cntl.h"
#include "dce_panel_cntl.h"
#include "atom.h"
#define TO_DCE_PANEL_CNTL(panel_cntl) …
#define CTX …
#define DC_LOGGER …
#define REG(reg) …
#undef FN
#define FN(reg_name, field_name) …
static unsigned int dce_get_16_bit_backlight_from_pwm(struct panel_cntl *panel_cntl)
{ … }
static uint32_t dce_panel_cntl_hw_init(struct panel_cntl *panel_cntl)
{ … }
static bool dce_is_panel_backlight_on(struct panel_cntl *panel_cntl)
{ … }
static bool dce_is_panel_powered_on(struct panel_cntl *panel_cntl)
{ … }
static void dce_store_backlight_level(struct panel_cntl *panel_cntl)
{ … }
static void dce_driver_set_backlight(struct panel_cntl *panel_cntl,
uint32_t backlight_pwm_u16_16)
{ … }
static void dce_panel_cntl_destroy(struct panel_cntl **panel_cntl)
{ … }
static const struct panel_cntl_funcs dce_link_panel_cntl_funcs = …;
void dce_panel_cntl_construct(
struct dce_panel_cntl *dce_panel_cntl,
const struct panel_cntl_init_data *init_data,
const struct dce_panel_cntl_registers *regs,
const struct dce_panel_cntl_shift *shift,
const struct dce_panel_cntl_mask *mask)
{ … }