rrc_def.h 997 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #ifndef __RRC_DEF_H__
  2. #define __RRC_DEF_H__
  3. #include <linux/kernel.h>
  4. #include <primary_display.h>
  5. typedef enum {
  6. RRC_STATE_NORMAL = 0,
  7. RRC_STATE_VIDEO ,
  8. RRC_STATE_VIDEO_120Hz,
  9. RRC_STATE_HIGH_120Hz ,
  10. RRC_STATE_HIGH_60Hz
  11. } RRC_DRV_STATE;
  12. extern int primary_display_set_lcm_refresh_rate(int fps);
  13. extern int primary_display_get_lcm_refresh_rate(void);
  14. extern int primary_display_get_hwc_refresh_rate(void);
  15. #define RRC_LOG_ERROR /* error */
  16. #ifdef RRC_LOG_ERROR
  17. #define RRC_ERR(...) pr_err(__VA_ARGS__)
  18. #else
  19. #define RRC_ERR(...)
  20. #endif
  21. #define RRC_LOG_WARNING /* warning */
  22. #ifdef RRC_LOG_WARNING
  23. #define RRC_WRN(...) pr_warn(__VA_ARGS__)
  24. #else
  25. #define RRC_WRN(...)
  26. #endif
  27. #define RRC_LOG_DEBUG /* debug information */
  28. #ifdef RRC_LOG_DEBUG
  29. #define RRC_DBG(...) pr_debug(__VA_ARGS__)
  30. #else
  31. #define RRC_DBG(...)
  32. #endif
  33. #define RRC_LOG_INFO /* info information */
  34. #ifdef RRC_LOG_INFO
  35. #define RRC_INFO(...) pr_debug(__VA_ARGS__)
  36. #else
  37. #define RRC_INFO(...)
  38. #endif
  39. #endif