| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef __DISP_ASSERT_LAYER_H__
- #define __DISP_ASSERT_LAYER_H__
- #include <linux/types.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);
- unsigned long get_Assert_Layer_PA(void);
- int is_DAL_Enabled(void);
- extern unsigned int isAEEEnabled;
- extern int DAL_Clean(void);
- extern int DAL_Printf(const char *fmt, ...);
- extern struct semaphore dal_sem;
- extern bool dal_shown;
- #ifdef __cplusplus
- }
- #endif
- #endif /* __DISP_ASSERT_LAYER_H__ */
|