#include "core_types.h"
#include "clk_mgr_internal.h"
#include "reg_helper.h"
#include "rv1_clk_mgr_vbios_smu.h"
#define MAX_INSTANCE …
#define MAX_SEGMENT …
struct IP_BASE_INSTANCE { … };
struct IP_BASE { … };
static const struct IP_BASE MP1_BASE = …;
#define mmMP1_SMN_C2PMSG_91 …
#define mmMP1_SMN_C2PMSG_83 …
#define mmMP1_SMN_C2PMSG_67 …
#define mmMP1_SMN_C2PMSG_91_BASE_IDX …
#define mmMP1_SMN_C2PMSG_83_BASE_IDX …
#define mmMP1_SMN_C2PMSG_67_BASE_IDX …
#define MP1_SMN_C2PMSG_91__CONTENT_MASK …
#define MP1_SMN_C2PMSG_83__CONTENT_MASK …
#define MP1_SMN_C2PMSG_67__CONTENT_MASK …
#define MP1_SMN_C2PMSG_91__CONTENT__SHIFT …
#define MP1_SMN_C2PMSG_83__CONTENT__SHIFT …
#define MP1_SMN_C2PMSG_67__CONTENT__SHIFT …
#define REG(reg_name) …
#define FN(reg_name, field) …
#define VBIOSSMC_MSG_SetDispclkFreq …
#define VBIOSSMC_MSG_SetDprefclkFreq …
#define VBIOSSMC_Status_BUSY …
#define VBIOSSMC_Result_OK …
#define VBIOSSMC_Result_Failed …
#define VBIOSSMC_Result_UnknownCmd …
#define VBIOSSMC_Result_CmdRejectedPrereq …
#define VBIOSSMC_Result_CmdRejectedBusy …
static uint32_t rv1_smu_wait_for_response(struct clk_mgr_internal *clk_mgr, unsigned int delay_us, unsigned int max_retries)
{ … }
static int rv1_vbios_smu_send_msg_with_param(struct clk_mgr_internal *clk_mgr,
unsigned int msg_id, unsigned int param)
{ … }
int rv1_vbios_smu_set_dispclk(struct clk_mgr_internal *clk_mgr, int requested_dispclk_khz)
{ … }
int rv1_vbios_smu_set_dprefclk(struct clk_mgr_internal *clk_mgr)
{ … }