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)
57 lines
1.5 KiB
C
57 lines
1.5 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 __DDP_DEBUG_H__
|
|
#define __DDP_DEBUG_H__
|
|
|
|
#include <linux/kernel.h>
|
|
#include "ddp_mmp.h"
|
|
#include "ddp_dump.h"
|
|
|
|
extern unsigned int g_mobilelog;
|
|
|
|
#define LP_CUST_DISABLE (0)
|
|
#define LOW_POWER_MODE (1)
|
|
#define JUST_MAKE_MODE (2)
|
|
#define PERFORMANC_MODE (3)
|
|
|
|
int get_lp_cust_mode(void);
|
|
void backup_vfp_for_lp_cust(unsigned int vfp);
|
|
unsigned int get_backup_vfp(void);
|
|
void ddp_debug_init(void);
|
|
void ddp_debug_exit(void);
|
|
|
|
unsigned int ddp_debug_analysis_to_buffer(void);
|
|
unsigned int ddp_debug_dbg_log_level(void);
|
|
unsigned int ddp_debug_irq_log_level(void);
|
|
int ddp_debug_force_roi(void);
|
|
int ddp_debug_force_roi_x(void);
|
|
int ddp_debug_force_roi_y(void);
|
|
int ddp_debug_force_roi_w(void);
|
|
int ddp_debug_force_roi_h(void);
|
|
int ddp_debug_partial_statistic(void);
|
|
|
|
int ddp_mem_test(void);
|
|
int ddp_lcd_test(void);
|
|
|
|
enum ONESHOT_DUMP_STAGE {
|
|
ONESHOT_DUMP_INIT,
|
|
ONESHOT_DUMP_UNDERGOING,
|
|
ONESHOT_DUMP_FINISHED,
|
|
};
|
|
|
|
enum ONESHOT_DUMP_STAGE get_oneshot_dump(void);
|
|
void set_oneshot_dump(enum ONESHOT_DUMP_STAGE);
|
|
|
|
#endif /* __DDP_DEBUG_H__ */
|