#ifndef __MTK_GPU_UTILITY_H__ #define __MTK_GPU_UTILITY_H__ #include #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