disp_assert_layer.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef __DISP_ASSERT_LAYER_H__
  2. #define __DISP_ASSERT_LAYER_H__
  3. #include <linux/types.h>
  4. #ifdef __cplusplus
  5. extern "C" {
  6. #endif
  7. typedef enum {
  8. DAL_STATUS_OK = 0,
  9. DAL_STATUS_NOT_READY = -1,
  10. DAL_STATUS_INVALID_ARGUMENT = -2,
  11. DAL_STATUS_LOCK_FAIL = -3,
  12. DAL_STATUS_LCD_IN_SUSPEND = -4,
  13. DAL_STATUS_FATAL_ERROR = -10,
  14. } DAL_STATUS;
  15. typedef enum {
  16. DAL_COLOR_BLACK = 0x000000,
  17. DAL_COLOR_WHITE = 0xFFFFFF,
  18. DAL_COLOR_RED = 0xFF0000,
  19. DAL_COLOR_GREEN = 0x00FF00,
  20. DAL_COLOR_BLUE = 0x0000FF,
  21. DAL_COLOR_TURQUOISE = (DAL_COLOR_GREEN | DAL_COLOR_BLUE),
  22. DAL_COLOR_YELLOW = (DAL_COLOR_RED | DAL_COLOR_GREEN),
  23. DAL_COLOR_PINK = (DAL_COLOR_RED | DAL_COLOR_BLUE),
  24. } DAL_COLOR;
  25. /* Display Assertion Layer API */
  26. unsigned int DAL_GetLayerSize(void);
  27. DAL_STATUS DAL_SetScreenColor(DAL_COLOR color);
  28. DAL_STATUS DAL_Init(unsigned long layerVA, unsigned long layerPA);
  29. DAL_STATUS DAL_SetColor(unsigned int fgColor, unsigned int bgColor);
  30. DAL_STATUS DAL_Clean(void);
  31. DAL_STATUS DAL_Printf(const char *fmt, ...);
  32. DAL_STATUS DAL_OnDispPowerOn(void);
  33. DAL_STATUS DAL_LowMemoryOn(void);
  34. DAL_STATUS DAL_LowMemoryOff(void);
  35. unsigned long get_Assert_Layer_PA(void);
  36. int is_DAL_Enabled(void);
  37. extern unsigned int isAEEEnabled;
  38. extern int DAL_Clean(void);
  39. extern int DAL_Printf(const char *fmt, ...);
  40. extern struct semaphore dal_sem;
  41. extern bool dal_shown;
  42. #ifdef __cplusplus
  43. }
  44. #endif
  45. #endif /* __DISP_ASSERT_LAYER_H__ */