drm/amd/powerplay: declare functions instand of include header file.
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Huang Rui <ray.huang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
519df8a6f2
commit
1db422de72
|
@ -121,6 +121,12 @@ extern int smu_allocate_memory(void *device, uint32_t size,
|
||||||
|
|
||||||
extern int smu_free_memory(void *device, void *handle);
|
extern int smu_free_memory(void *device, void *handle);
|
||||||
|
|
||||||
|
extern int cz_smum_init(struct pp_smumgr *smumgr);
|
||||||
|
extern int iceland_smum_init(struct pp_smumgr *smumgr);
|
||||||
|
extern int tonga_smum_init(struct pp_smumgr *smumgr);
|
||||||
|
extern int fiji_smum_init(struct pp_smumgr *smumgr);
|
||||||
|
extern int polaris10_smum_init(struct pp_smumgr *smumgr);
|
||||||
|
|
||||||
#define SMUM_FIELD_SHIFT(reg, field) reg##__##field##__SHIFT
|
#define SMUM_FIELD_SHIFT(reg, field) reg##__##field##__SHIFT
|
||||||
|
|
||||||
#define SMUM_FIELD_MASK(reg, field) reg##__##field##_MASK
|
#define SMUM_FIELD_MASK(reg, field) reg##__##field##_MASK
|
||||||
|
|
|
@ -28,11 +28,6 @@
|
||||||
#include "smumgr.h"
|
#include "smumgr.h"
|
||||||
#include "cgs_common.h"
|
#include "cgs_common.h"
|
||||||
#include "linux/delay.h"
|
#include "linux/delay.h"
|
||||||
#include "cz_smumgr.h"
|
|
||||||
#include "tonga_smumgr.h"
|
|
||||||
#include "iceland_smumgr.h"
|
|
||||||
#include "fiji_smumgr.h"
|
|
||||||
#include "polaris10_smumgr.h"
|
|
||||||
|
|
||||||
int smum_init(struct amd_pp_init *pp_init, struct pp_instance *handle)
|
int smum_init(struct amd_pp_init *pp_init, struct pp_instance *handle)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue