diff options
Diffstat (limited to 'include/uapi/linux/msm_mdp.h')
-rw-r--r-- | include/uapi/linux/msm_mdp.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/include/uapi/linux/msm_mdp.h b/include/uapi/linux/msm_mdp.h index 481814cb8498..e0aee17411d3 100644 --- a/include/uapi/linux/msm_mdp.h +++ b/include/uapi/linux/msm_mdp.h @@ -1315,6 +1315,49 @@ struct msmfb_metadata { int fbmem_ionfd; } data; }; +#ifdef CONFIG_MACH_ZUK_Z2_ROW +#define EFFECT_COUNT 16 +#define MODE_COUNT 8 +#define NAME_SIZE 16 + +typedef enum { + GET_EFFECT_NUM = 1, + GET_EFFECT_LEVEL, + GET_EFFECT, + GET_MODE_NUM, + GET_MODE, + SET_EFFECT, + SET_MODE, + SET_BL_LEVEL, + GET_BL_LEVEL, +} ctrl_id; + +struct hal_lcd_effect { + char name[NAME_SIZE]; + int max_level; + int level; +}; + +struct hal_lcd_mode { + char name[NAME_SIZE]; +}; + +struct hal_panel_data { + struct hal_lcd_effect effect[EFFECT_COUNT]; + struct hal_lcd_mode mode[MODE_COUNT]; + int effect_cnt; + int mode_cnt; + int current_mode; +}; + +struct hal_panel_ctrl_data { + struct hal_panel_data panel_data; + int level; + int mode; + int index; + ctrl_id id; +}; +#endif #define MDP_MAX_FENCE_FD 32 #define MDP_BUF_SYNC_FLAG_WAIT 1 |