Commit | Line | Data |
---|---|---|
6fa3eb70 S |
1 | #ifndef __MTK_GPU_UTILITY_H__ |
2 | #define __MTK_GPU_UTILITY_H__ | |
3 | ||
4 | #include <linux/types.h> | |
5 | ||
6 | #ifdef __cplusplus | |
7 | extern "C" | |
8 | { | |
9 | #endif | |
10 | ||
11 | // returning false indicated no implement | |
12 | ||
13 | // unit: x bytes | |
14 | bool mtk_get_gpu_memory_usage(unsigned int* pMemUsage); | |
15 | bool mtk_get_gpu_page_cache(unsigned int* pPageCache); | |
16 | ||
17 | // unit: 0~100 % | |
18 | bool mtk_get_gpu_loading(unsigned int* pLoading); | |
19 | bool mtk_get_gpu_block(unsigned int* pBlock); | |
20 | bool mtk_get_gpu_idle(unsigned int* pIlde); | |
21 | ||
22 | ||
23 | bool mtk_get_gpu_GP_loading(unsigned int* pLoading); | |
24 | bool mtk_get_gpu_PP_loading(unsigned int* pLoading); | |
25 | bool mtk_get_gpu_power_loading(unsigned int* pLoading); | |
26 | ||
27 | bool mtk_enable_gpu_dvfs_timer(bool bEnable); | |
28 | bool mtk_boost_gpu_freq(void); | |
29 | bool mtk_set_bottom_gpu_freq(unsigned int ui32FreqLevel); | |
30 | ||
31 | // ui32FreqLevel: 0=>lowest freq, count-1=>highest freq | |
32 | bool mtk_custom_get_gpu_freq_level_count(unsigned int* pui32FreqLevelCount); | |
33 | bool mtk_custom_boost_gpu_freq(unsigned int ui32FreqLevel); | |
34 | bool mtk_custom_upbound_gpu_freq(unsigned int ui32FreqLevel); | |
35 | ||
36 | #ifdef __cplusplus | |
37 | } | |
38 | #endif | |
39 | ||
40 | #endif |