#include "dccg.h"
#include "clk_mgr_internal.h"
#include "dce100/dce_clk_mgr.h"
#include "dcn20_clk_mgr.h"
#include "reg_helper.h"
#include "core_types.h"
#include "dm_helpers.h"
#include "navi10_ip_offset.h"
#include "dcn/dcn_2_0_0_offset.h"
#include "dcn/dcn_2_0_0_sh_mask.h"
#include "clk/clk_11_0_0_offset.h"
#include "clk/clk_11_0_0_sh_mask.h"
#undef FN
#define FN(reg_name, field_name) …
#define REG(reg) …
#define BASE_INNER(seg) …
#define BASE(seg) …
#define SR(reg_name) …
#define CLK_BASE_INNER(seg) …
static const struct clk_mgr_registers clk_mgr_regs = …;
static const struct clk_mgr_shift clk_mgr_shift = …;
static const struct clk_mgr_mask clk_mgr_mask = …;
uint32_t dentist_get_did_from_divider(int divider)
{ … }
void dcn20_update_clocks_update_dpp_dto(struct clk_mgr_internal *clk_mgr,
struct dc_state *context, bool safe_to_lower)
{ … }
void dcn20_update_clocks_update_dentist(struct clk_mgr_internal *clk_mgr, struct dc_state *context)
{ … }
void dcn2_update_clocks(struct clk_mgr *clk_mgr_base,
struct dc_state *context,
bool safe_to_lower)
{ … }
void dcn2_update_clocks_fpga(struct clk_mgr *clk_mgr,
struct dc_state *context,
bool safe_to_lower)
{ … }
void dcn2_init_clocks(struct clk_mgr *clk_mgr)
{ … }
static void dcn2_enable_pme_wa(struct clk_mgr *clk_mgr_base)
{ … }
void dcn2_read_clocks_from_hw_dentist(struct clk_mgr *clk_mgr_base)
{ … }
void dcn2_get_clock(struct clk_mgr *clk_mgr,
struct dc_state *context,
enum dc_clock_type clock_type,
struct dc_clock_config *clock_cfg)
{ … }
static bool dcn2_are_clock_states_equal(struct dc_clocks *a,
struct dc_clocks *b)
{ … }
static void dcn2_notify_link_rate_change(struct clk_mgr *clk_mgr_base, struct dc_link *link)
{ … }
static struct clk_mgr_funcs dcn2_funcs = …;
void dcn20_clk_mgr_construct(
struct dc_context *ctx,
struct clk_mgr_internal *clk_mgr,
struct pp_smu_funcs *pp_smu,
struct dccg *dccg)
{ … }