32 lines
684 B
C
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__ */
|
|
|