1
2
3
4
5
6#ifndef __MDP5_CTL_H__
7#define __MDP5_CTL_H__
8
9#include "msm_drv.h"
10
11
12
13
14
15
16struct mdp5_ctl_manager;
17struct mdp5_ctl_manager *mdp5_ctlm_init(struct drm_device *dev,
18 void __iomem *mmio_base, struct mdp5_cfg_handler *cfg_hnd);
19void mdp5_ctlm_hw_reset(struct mdp5_ctl_manager *ctlm);
20void mdp5_ctlm_destroy(struct mdp5_ctl_manager *ctlm);
21
22
23
24
25
26
27struct mdp5_ctl *mdp5_ctlm_request(struct mdp5_ctl_manager *ctlm, int intf_num);
28
29int mdp5_ctl_get_ctl_id(struct mdp5_ctl *ctl);
30
31struct mdp5_interface;
32struct mdp5_pipeline;
33int mdp5_ctl_set_pipeline(struct mdp5_ctl *ctl, struct mdp5_pipeline *p);
34int mdp5_ctl_set_encoder_state(struct mdp5_ctl *ctl, struct mdp5_pipeline *p,
35 bool enabled);
36
37int mdp5_ctl_set_cursor(struct mdp5_ctl *ctl, struct mdp5_pipeline *pipeline,
38 int cursor_id, bool enable);
39int mdp5_ctl_pair(struct mdp5_ctl *ctlx, struct mdp5_ctl *ctly, bool enable);
40
41#define MAX_PIPE_STAGE 2
42
43
44
45
46
47
48
49
50
51
52
53
54#define MDP5_CTL_BLEND_OP_FLAG_BORDER_OUT BIT(0)
55int mdp5_ctl_blend(struct mdp5_ctl *ctl, struct mdp5_pipeline *pipeline,
56 enum mdp5_pipe stage[][MAX_PIPE_STAGE],
57 enum mdp5_pipe r_stage[][MAX_PIPE_STAGE],
58 u32 stage_cnt, u32 ctl_blend_op_flags);
59
60
61
62
63
64
65
66u32 mdp_ctl_flush_mask_lm(int lm);
67u32 mdp_ctl_flush_mask_pipe(enum mdp5_pipe pipe);
68u32 mdp_ctl_flush_mask_cursor(int cursor_id);
69u32 mdp_ctl_flush_mask_encoder(struct mdp5_interface *intf);
70
71
72u32 mdp5_ctl_commit(struct mdp5_ctl *ctl, struct mdp5_pipeline *pipeline,
73 u32 flush_mask, bool start);
74u32 mdp5_ctl_get_commit_status(struct mdp5_ctl *ctl);
75
76
77
78#endif
79