forked from Master-0f-None/OhGodATool
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ohgodatool.h
33 lines (22 loc) · 1013 Bytes
/
ohgodatool.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef __OHGODATOOL_H
#define __OHGODATOOL_H
#include <stdint.h>
#include <stdbool.h>
#define OHGODATOOL_VERSION "v1.2.1"
typedef struct _ArgsObj
{
bool MemStateIdxProvided, CoreStateIdxProvided, SetMemClock, SetCoreClock, SetMemVDDCIdx, SetVTblVDD, SetFanspeed;
bool GPUIdxProvided, VoltageStateIdxProvided, SetCoreVDDCIdx, SetVDDCI, SetMVDD, SetCoreVDDCOff, SetVDDCGFXOff;
bool SetTDP, SetTDC, SetMaxPower, SetMaxCoreClk, SetMaxMemClk, VBIOSFileProvided;
bool sysfsDevicePathProvided;
char *sysfsDevicePath;
bool ShowMemStates, ShowCoreStates, ShowVoltageStates, ShowFanspeed, ShowTemp;
int32_t MemStateIdx, CoreStateIdx, VoltStateIdx;
uint32_t GPUIdx, ReqCoreClk, ReqMemClk, ReqVDDCI;
uint32_t ReqMVDD, ReqCoreVoltTblIdx, ReqMemVoltTblIdx, ReqVoltTblVDDC, ReqFanspeedPercentage;
uint32_t ReqTDP, ReqTDC, ReqMaxPower, ReqMaxCoreClk, ReqMaxMemClk;
char *VBIOSFileName;
int32_t ReqCoreVDDCOff, ReqVDDCGFXOff;
} ArgsObj;
bool ParseCmdLine(ArgsObj *Args, int argc, char **argv);
#endif