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)
59 lines
1.6 KiB
C
59 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 __DISP_ASSERT_LAYER_H__
|
|
#define __DISP_ASSERT_LAYER_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
enum DAL_STATUS {
|
|
DAL_STATUS_OK = 0,
|
|
|
|
DAL_STATUS_NOT_READY = -1,
|
|
DAL_STATUS_INVALID_ARGUMENT = -2,
|
|
DAL_STATUS_LOCK_FAIL = -3,
|
|
DAL_STATUS_LCD_IN_SUSPEND = -4,
|
|
DAL_STATUS_FATAL_ERROR = -10,
|
|
};
|
|
|
|
enum DAL_COLOR {
|
|
DAL_COLOR_BLACK = 0x000000,
|
|
DAL_COLOR_WHITE = 0xFFFFFF,
|
|
DAL_COLOR_RED = 0xFF0000,
|
|
DAL_COLOR_GREEN = 0x00FF00,
|
|
DAL_COLOR_BLUE = 0x0000FF,
|
|
DAL_COLOR_TURQUOISE = (DAL_COLOR_GREEN | DAL_COLOR_BLUE),
|
|
DAL_COLOR_YELLOW = (DAL_COLOR_RED | DAL_COLOR_GREEN),
|
|
DAL_COLOR_PINK = (DAL_COLOR_RED | DAL_COLOR_BLUE),
|
|
};
|
|
|
|
/* Display Assertion Layer API */
|
|
|
|
unsigned int DAL_GetLayerSize(void);
|
|
enum DAL_STATUS DAL_SetScreenColor(enum DAL_COLOR color);
|
|
enum DAL_STATUS DAL_Init(unsigned long layerVA, unsigned long layerPA);
|
|
enum DAL_STATUS DAL_SetColor(unsigned int fgColor, unsigned int bgColor);
|
|
enum DAL_STATUS DAL_Clean(void);
|
|
enum DAL_STATUS DAL_Printf(const char *fmt, ...);
|
|
enum DAL_STATUS DAL_OnDispPowerOn(void);
|
|
enum DAL_STATUS DAL_LowMemoryOn(void);
|
|
enum DAL_STATUS DAL_LowMemoryOff(void);
|
|
int is_DAL_Enabled(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* __DISP_ASSERT_LAYER_H__ */
|