Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
52 lines
1.6 KiB
C
52 lines
1.6 KiB
C
/*
|
|
* Copyright (C) 2015 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 the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef __MMDVFS_INTERNAL_H__
|
|
#define __MMDVFS_INTERNAL_H__
|
|
|
|
#include "mmdvfs_mgr.h"
|
|
|
|
#define MMDVFS_LOG_TAG "MMDVFS"
|
|
|
|
#define MMDVFSMSG(string, args...) \
|
|
pr_notice("[pid=%d]"string, current->tgid, ##args)
|
|
|
|
#define MMDVFSDEBUG(level, x...) \
|
|
do { \
|
|
if (g_mmdvfs_debug_level \
|
|
&& (*g_mmdvfs_debug_level) >= (level)) \
|
|
MMDVFSMSG(x); \
|
|
} while (0)
|
|
|
|
#define MMDVFSMSG2(string, args...) pr_debug(string, ##args)
|
|
|
|
#define MMDVFSTMP(string, args...) \
|
|
pr_debug("[pid=%d]"string, current->tgid, ##args)
|
|
|
|
#define MMDVFSERR(string, args...) \
|
|
do {\
|
|
pr_notice("error: "string, ##args); \
|
|
aee_kernel_warning(MMDVFS_LOG_TAG, "error: "string, ##args); \
|
|
} while (0)
|
|
|
|
extern void mmdvfs_internal_handle_state_change(
|
|
struct mmdvfs_state_change_event *event);
|
|
extern void mmdvfs_internal_notify_vcore_calibration(
|
|
struct mmdvfs_prepare_action_event *event);
|
|
extern unsigned int *g_mmdvfs_debug_level;
|
|
extern unsigned int *g_mmdvfs_scen_log_mask;
|
|
extern int mmdvfs_internal_set_vpu_step(int current_step, int update_step);
|
|
extern void mmdvfs_internal_get_cam_setting(
|
|
struct mmdvfs_cam_property *cam_setting);
|
|
#endif /* __MMDVFS_INTERNAL_H__ */
|