mirror of
https://gitlab.com/ryzen-controller-team/ryzen-controller.git
synced 2024-12-22 18:13:28 +07:00
Updated ryzenadj to 0.5.2.
This commit is contained in:
parent
ab3eba8fee
commit
23ea941bb5
Binary file not shown.
BIN
bin/ryzenadj.exe
BIN
bin/ryzenadj.exe
Binary file not shown.
120
bin/ryzenadj.h
120
bin/ryzenadj.h
@ -1,60 +1,60 @@
|
|||||||
/* SPDX-License-Identifier: LGPL */
|
/* SPDX-License-Identifier: LGPL */
|
||||||
/* Copyright (C) 2019 Jiaxun Yang <jiaxun.yang@flygoat.com> */
|
/* Copyright (C) 2019 Jiaxun Yang <jiaxun.yang@flygoat.com> */
|
||||||
/* RyzenAdj API */
|
/* RyzenAdj API */
|
||||||
|
|
||||||
#ifndef RYZENADJ_H
|
#ifndef RYZENADJ_H
|
||||||
#define RYZENADJ_H
|
#define RYZENADJ_H
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
#include "nb_smu_ops.h"
|
#include "nb_smu_ops.h"
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define EXP __declspec(dllexport)
|
#define EXP __declspec(dllexport)
|
||||||
#define CALL __stdcall
|
#define CALL __stdcall
|
||||||
#else
|
#else
|
||||||
#define EXP
|
#define EXP
|
||||||
#define CALL
|
#define CALL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define RYZENADJ_VER 5
|
#define RYZENADJ_VER 5
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
nb_t nb;
|
nb_t nb;
|
||||||
pci_obj_t pci_obj;
|
pci_obj_t pci_obj;
|
||||||
smu_t mp1_smu;
|
smu_t mp1_smu;
|
||||||
smu_t psmu;
|
smu_t psmu;
|
||||||
} *ryzen_access;
|
} *ryzen_access;
|
||||||
|
|
||||||
EXP ryzen_access CALL init_ryzenadj();
|
EXP ryzen_access CALL init_ryzenadj();
|
||||||
|
|
||||||
EXP void CALL cleanup_ryzenadj(ryzen_access ry);
|
EXP void CALL cleanup_ryzenadj(ryzen_access ry);
|
||||||
|
|
||||||
EXP int CALL set_stapm_limit(ryzen_access, uint32_t value);
|
EXP int CALL set_stapm_limit(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_fast_limit(ryzen_access, uint32_t value);
|
EXP int CALL set_fast_limit(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_slow_limit(ryzen_access, uint32_t value);
|
EXP int CALL set_slow_limit(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_slow_time(ryzen_access, uint32_t value);
|
EXP int CALL set_slow_time(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_stapm_time(ryzen_access, uint32_t value);
|
EXP int CALL set_stapm_time(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_tctl_temp(ryzen_access, uint32_t value);
|
EXP int CALL set_tctl_temp(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_vrm_current(ryzen_access, uint32_t value);
|
EXP int CALL set_vrm_current(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_vrmsoc_current(ryzen_access, uint32_t value);
|
EXP int CALL set_vrmsoc_current(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_vrmmax_current(ryzen_access, uint32_t value);
|
EXP int CALL set_vrmmax_current(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_vrmsocmax_current(ryzen_access, uint32_t value);
|
EXP int CALL set_vrmsocmax_current(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_psi0_current(ryzen_access, uint32_t value);
|
EXP int CALL set_psi0_current(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_psi0soc_current(ryzen_access, uint32_t value);
|
EXP int CALL set_psi0soc_current(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_max_gfxclk_freq(ryzen_access, uint32_t value);
|
EXP int CALL set_max_gfxclk_freq(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_min_gfxclk_freq(ryzen_access, uint32_t value);
|
EXP int CALL set_min_gfxclk_freq(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_max_socclk_freq(ryzen_access, uint32_t value);
|
EXP int CALL set_max_socclk_freq(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_min_socclk_freq(ryzen_access, uint32_t value);
|
EXP int CALL set_min_socclk_freq(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_max_fclk_freq(ryzen_access, uint32_t value);
|
EXP int CALL set_max_fclk_freq(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_min_fclk_freq(ryzen_access, uint32_t value);
|
EXP int CALL set_min_fclk_freq(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_max_vcn(ryzen_access, uint32_t value);
|
EXP int CALL set_max_vcn(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_min_vcn(ryzen_access, uint32_t value);
|
EXP int CALL set_min_vcn(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_max_lclk(ryzen_access, uint32_t value);
|
EXP int CALL set_max_lclk(ryzen_access, uint32_t value);
|
||||||
EXP int CALL set_min_lclk(ryzen_access, uint32_t value);
|
EXP int CALL set_min_lclk(ryzen_access, uint32_t value);
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user