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.2 KiB
C
52 lines
1.2 KiB
C
/*
|
|
* Copyright (C) 2019 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 _TEST_H_
|
|
#define _TEST_H_
|
|
|
|
#ifdef BUILD_POLICY_TEST
|
|
|
|
#include <inttypes.h>
|
|
#include <stdbool.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
#define u32 unsigned int
|
|
|
|
|
|
extern int g_pwr_log_level;
|
|
extern int g_pm_procedure;
|
|
|
|
enum {
|
|
APUSYS_PWR_LOG_WARN,
|
|
APUSYS_PWR_LOG_INFO,
|
|
APUSYS_PWR_LOG_DEBUG,
|
|
};
|
|
|
|
|
|
#define DVFS_TAG "[DVFS]"
|
|
#define PWR_LOG_INF(format, args...) printf(format, ##args)
|
|
#define PWR_LOG_PM(format, args...) printf(format, ##args)
|
|
#define PWR_LOG_ERR(format, args...) printf(format, ##args)
|
|
|
|
#define VPU_TAG "[apu_power_2.0]"
|
|
#define LOG_DBG(format, args...) printf(format, ##args)
|
|
#define LOG_INF(format, args...) printf(format, ##args)
|
|
#define LOG_WRN(format, args...) printf(format, ##args)
|
|
|
|
|
|
extern u32 get_devinfo_with_index(unsigned int index);
|
|
|
|
#endif
|
|
#endif
|