#include "pp_debug.h"
#include <linux/delay.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <linux/pci.h>
#include <drm/amdgpu_drm.h>
#include "power_state.h"
#include "hwmgr.h"
#include "ppsmc.h"
#include "amd_acpi.h"
#include "pp_psm.h"
#include "vega10_hwmgr.h"
extern const struct pp_smumgr_func ci_smu_funcs;
extern const struct pp_smumgr_func smu8_smu_funcs;
extern const struct pp_smumgr_func iceland_smu_funcs;
extern const struct pp_smumgr_func tonga_smu_funcs;
extern const struct pp_smumgr_func fiji_smu_funcs;
extern const struct pp_smumgr_func polaris10_smu_funcs;
extern const struct pp_smumgr_func vegam_smu_funcs;
extern const struct pp_smumgr_func vega10_smu_funcs;
extern const struct pp_smumgr_func vega12_smu_funcs;
extern const struct pp_smumgr_func smu10_smu_funcs;
extern const struct pp_smumgr_func vega20_smu_funcs;
extern int smu10_init_function_pointers(struct pp_hwmgr *hwmgr);
static int polaris_set_asic_special_caps(struct pp_hwmgr *hwmgr);
static void hwmgr_init_default_caps(struct pp_hwmgr *hwmgr);
static int hwmgr_set_user_specify_caps(struct pp_hwmgr *hwmgr);
static int fiji_set_asic_special_caps(struct pp_hwmgr *hwmgr);
static int tonga_set_asic_special_caps(struct pp_hwmgr *hwmgr);
static int topaz_set_asic_special_caps(struct pp_hwmgr *hwmgr);
static int ci_set_asic_special_caps(struct pp_hwmgr *hwmgr);
static void hwmgr_init_workload_prority(struct pp_hwmgr *hwmgr)
{ … }
int hwmgr_early_init(struct pp_hwmgr *hwmgr)
{ … }
int hwmgr_sw_init(struct pp_hwmgr *hwmgr)
{ … }
int hwmgr_sw_fini(struct pp_hwmgr *hwmgr)
{ … }
int hwmgr_hw_init(struct pp_hwmgr *hwmgr)
{ … }
int hwmgr_hw_fini(struct pp_hwmgr *hwmgr)
{ … }
int hwmgr_suspend(struct pp_hwmgr *hwmgr)
{ … }
int hwmgr_resume(struct pp_hwmgr *hwmgr)
{ … }
static enum PP_StateUILabel power_state_convert(enum amd_pm_state_type state)
{ … }
int hwmgr_handle_task(struct pp_hwmgr *hwmgr, enum amd_pp_task task_id,
enum amd_pm_state_type *user_state)
{ … }
void hwmgr_init_default_caps(struct pp_hwmgr *hwmgr)
{ … }
int hwmgr_set_user_specify_caps(struct pp_hwmgr *hwmgr)
{ … }
int polaris_set_asic_special_caps(struct pp_hwmgr *hwmgr)
{ … }
int fiji_set_asic_special_caps(struct pp_hwmgr *hwmgr)
{ … }
int tonga_set_asic_special_caps(struct pp_hwmgr *hwmgr)
{ … }
int topaz_set_asic_special_caps(struct pp_hwmgr *hwmgr)
{ … }
int ci_set_asic_special_caps(struct pp_hwmgr *hwmgr)
{ … }