From d2e1446d81725c351dc73a03b397ce043fb18452 Mon Sep 17 00:00:00 2001 From: Meizu OpenSource Date: Mon, 15 Aug 2016 10:19:42 +0800 Subject: first commit --- include/linux/disp_assert_layer.h | 45 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 include/linux/disp_assert_layer.h (limited to 'include/linux/disp_assert_layer.h') diff --git a/include/linux/disp_assert_layer.h b/include/linux/disp_assert_layer.h new file mode 100644 index 000000000..e595f1474 --- /dev/null +++ b/include/linux/disp_assert_layer.h @@ -0,0 +1,45 @@ +#ifndef __DISP_ASSERT_LAYER_H__ +#define __DISP_ASSERT_LAYER_H__ + +#ifdef __cplusplus +extern "C" { +#endif + + typedef enum { + 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, + } DAL_STATUS; + + + typedef enum { + 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), + } DAL_COLOR; + + +/* Display Assertion Layer API */ + + unsigned int DAL_GetLayerSize(void); + DAL_STATUS DAL_SetScreenColor(DAL_COLOR color); + DAL_STATUS DAL_Init(unsigned long layerVA, unsigned long layerPA); + DAL_STATUS DAL_SetColor(unsigned int fgColor, unsigned int bgColor); + DAL_STATUS DAL_Clean(void); + DAL_STATUS DAL_Printf(const char *fmt, ...); + DAL_STATUS DAL_OnDispPowerOn(void); + DAL_STATUS DAL_LowMemoryOn(void); + DAL_STATUS DAL_LowMemoryOff(void); +#ifdef __cplusplus +} +#endif +#endif /* __DISP_ASSERT_LAYER_H__ */ -- cgit v1.2.3