ged_profile_dvfs.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Copyright (C) 2015 MediaTek Inc.
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef __GED_PROFILE_DVFS_H__
  14. #define __GED_PROFILE_DVFS_H__
  15. #include "ged_type.h"
  16. GED_ERROR ged_profile_dvfs_init(void);
  17. void ged_profile_dvfs_exit(void);
  18. GED_ERROR ged_profile_dvfs_enable(void);
  19. void ged_profile_dvfs_disable(void);
  20. void ged_profile_dvfs_start(void);
  21. void ged_profile_dvfs_stop(void);
  22. void ged_profile_dvfs_ignore_lines(int i32LineCount);
  23. void ged_profile_dvfs_record_freq_volt(unsigned int ui32Frequency, unsigned int ui32Voltage);
  24. void ged_profile_dvfs_record_temp(int i32Temp);
  25. void ged_profile_dvfs_record_thermal_limit(unsigned int ui32FreqLimit);
  26. void ged_profile_dvfs_record_gpu_loading(unsigned int ui32GpuLoading);
  27. void ged_profile_dvfs_record_clock_on(void);
  28. void ged_profile_dvfs_record_clock_off(void);
  29. void ged_profile_dvfs_record_SW_vsync(unsigned long ulTimeStamp, long lPhase, unsigned long ul3DFenceDoneTime);
  30. void ged_profile_dvfs_record_policy(long lFreq, unsigned int ui32GpuLoading, long lPreT1, unsigned long ulPreFreq, long t0, unsigned long ulCurFreq, long t1, long lPhase);
  31. #endif