kernel-brax3-ubuntu-touch/drivers/gpu/mediatek/gpufreq_v1/include/mtk_gpufreq_common.h
erascape f319b992b1 kernel-5.15: Initial import brax3 UT kernel
* halium configs enabled

Signed-off-by: erascape <erascape@proton.me>
2025-09-23 15:17:10 +00:00

32 lines
684 B
C

// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#ifndef __MTK_GPUFREQ_COMMON_H__
#define __MTK_GPUFREQ_COMMON_H__
// GPU_OPP_PTPOD_SLOPE's owner is ptpod driver
enum g_exception_enum {
GPU_FREQ_EXCEPTION,
GPU_DFD_PROBE_TRIGGERED,
GPU_OPP_PTPOD_SLOPE,
};
static const char * const g_exception_string[] = {
"GPU_FREQ_EXCEPTION",
"GPU_DFD_PROBE_TRIGGERED",
"GPU_OPP_PTPOD_SLOPE",
};
struct gpu_assert_info {
enum g_exception_enum exception_type;
char exception_string[1024];
};
void gpu_assert(bool cond, enum g_exception_enum except_type,
const char *except_str, ...);
void check_pending_info(void);
#endif /* __MTK_GPUFREQ_COMMON_H__ */