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