diff options
| author | Meizu OpenSource <patchwork@meizu.com> | 2016-08-15 10:19:42 +0800 |
|---|---|---|
| committer | Meizu OpenSource <patchwork@meizu.com> | 2016-08-15 10:19:42 +0800 |
| commit | d2e1446d81725c351dc73a03b397ce043fb18452 (patch) | |
| tree | 4dbc616b7f92aea39cd697a9084205ddb805e344 /include/linux/disp_assert_layer.h | |
first commit
Diffstat (limited to 'include/linux/disp_assert_layer.h')
| -rw-r--r-- | include/linux/disp_assert_layer.h | 45 |
1 files changed, 45 insertions, 0 deletions
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__ */ |
