blob: deffca171696b77eaf4884ada775bae53ba34940 (
plain) (
blame)
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
33
34
35
36
37
38
39
40
41
42
|
#ifndef __MTK_GPU_UTILITY_H__
#define __MTK_GPU_UTILITY_H__
#include <linux/types.h>
#ifdef __cplusplus
extern "C"
{
#endif
// returning false indicated no implement
// unit: x bytes
bool mtk_get_gpu_memory_usage(unsigned int* pMemUsage);
bool mtk_get_gpu_page_cache(unsigned int* pPageCache);
// unit: 0~100 %
bool mtk_get_gpu_loading(unsigned int* pLoading);
bool mtk_get_gpu_block(unsigned int* pBlock);
bool mtk_get_gpu_idle(unsigned int* pIlde);
bool mtk_get_gpu_GP_loading(unsigned int* pLoading);
bool mtk_get_gpu_PP_loading(unsigned int* pLoading);
bool mtk_get_gpu_power_loading(unsigned int* pLoading);
bool mtk_enable_gpu_dvfs_timer(bool bEnable);
bool mtk_boost_gpu_freq(void);
bool mtk_set_bottom_gpu_freq(unsigned int ui32FreqLevel);
// ui32FreqLevel: 0=>lowest freq, count-1=>highest freq
bool mtk_custom_get_gpu_freq_level_count(unsigned int* pui32FreqLevelCount);
bool mtk_custom_boost_gpu_freq(unsigned int ui32FreqLevel);
bool mtk_custom_upbound_gpu_freq(unsigned int ui32FreqLevel);
bool mtk_get_custom_boost_gpu_freq(unsigned int *pui32FreqLevel);
bool mtk_get_custom_upbound_gpu_freq(unsigned int *pui32FreqLevel);
#ifdef __cplusplus
}
#endif
#endif
|