diff options
Diffstat (limited to 'mali_kbase/platform/pixel/pixel_gpu_control.h')
-rw-r--r-- | mali_kbase/platform/pixel/pixel_gpu_control.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/mali_kbase/platform/pixel/pixel_gpu_control.h b/mali_kbase/platform/pixel/pixel_gpu_control.h index 5b4e184..51b3063 100644 --- a/mali_kbase/platform/pixel/pixel_gpu_control.h +++ b/mali_kbase/platform/pixel/pixel_gpu_control.h @@ -12,19 +12,44 @@ bool gpu_pm_get_power_state(struct kbase_device *kbdev); int gpu_pm_init(struct kbase_device *kbdev); void gpu_pm_term(struct kbase_device *kbdev); +void* gpu_pm_get_rail_state_log(struct kbase_device *kbdev); +unsigned int gpu_pm_get_rail_state_log_size(struct kbase_device *kbdev); /* DVFS */ void gpu_dvfs_event_power_on(struct kbase_device *kbdev); void gpu_dvfs_event_power_off(struct kbase_device *kbdev); + +#ifdef CONFIG_MALI_MIDGARD_DVFS int gpu_dvfs_init(struct kbase_device *kbdev); void gpu_dvfs_term(struct kbase_device *kbdev); +void gpu_dvfs_disable_updates(struct kbase_device *kbdev); +void gpu_dvfs_enable_updates(struct kbase_device *kbdev); +#else +static int __maybe_unused gpu_dvfs_init(struct kbase_device *kbdev) { return 0; } +static void __maybe_unused gpu_dvfs_term(struct kbase_device *kbdev) {} +static void __maybe_unused gpu_dvfs_disable_updates(struct kbase_device *kbdev) {} +static void __maybe_unused gpu_dvfs_enable_updates(struct kbase_device *kbdev) {} +#endif /* sysfs */ +#ifdef CONFIG_MALI_MIDGARD_DVFS int gpu_sysfs_init(struct kbase_device *kbdev); void gpu_sysfs_term(struct kbase_device *kbdev); +#else +static int __maybe_unused gpu_sysfs_init(struct kbase_device *kbdev) { return 0; } +static void __maybe_unused gpu_sysfs_term(struct kbase_device *kbdev) {} +#endif /* Kernel context callbacks */ +#ifdef CONFIG_MALI_MIDGARD_DVFS int gpu_dvfs_kctx_init(struct kbase_context *kctx); void gpu_dvfs_kctx_term(struct kbase_context *kctx); +#endif + +/* ITMON notifier */ +#if IS_ENABLED(CONFIG_EXYNOS_ITMON) +int gpu_itmon_init(struct kbase_device *kbdev); +void gpu_itmon_term(struct kbase_device *kbdev); +#endif #endif /* _PIXEL_GPU_CONTROL_H_ */ |