/* * Copyright (C) 2016 MediaTek Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See http://www.gnu.org/licenses/gpl-2.0.html for more details. */ #include #include #include #include #ifndef __DFRC_H__ #define __DFRC_H__ #define DFRC_ALLOW_VIDEO 0x01 #define DFRC_ALLOW_TOUCH 0x02 #define DFRC_DRV_ALL_PID -1 #define DFRC_DRV_ALL_CID 0 #define DFRC_DRV_FPS_NON_ASSIGN 0 #define DFRC_DRV_API_NON_ASSIGN -1 int dfrc_allow_rrc_adjust_fps(void); long dfrc_set_kernel_policy(int api, int fps, int mode, int target_pid, unsigned long long gl_context_id); long dfrc_get_frr_setting(int pid, unsigned long long gl_context_id, int *fps, int *mode); long dfrc_get_frr_config(int pid, unsigned long long gl_context_id, int *fps, int *mode, int *api); #endif