1
2
3
4
5
6
7 #ifndef __MDP5_PIPE_H__
8 #define __MDP5_PIPE_H__
9
10
11 #define SSPP_MAX (SSPP_CURSOR1 + 1)
12
13
14 struct mdp5_hw_pipe {
15 int idx;
16
17 const char *name;
18 enum mdp5_pipe pipe;
19
20 uint32_t reg_offset;
21 uint32_t caps;
22
23 uint32_t flush_mask;
24
25
26
27
28 uint32_t blkcfg;
29 };
30
31
32 struct mdp5_hw_pipe_state {
33 struct drm_plane *hwpipe_to_plane[SSPP_MAX];
34 };
35
36 int mdp5_pipe_assign(struct drm_atomic_state *s, struct drm_plane *plane,
37 uint32_t caps, uint32_t blkcfg,
38 struct mdp5_hw_pipe **hwpipe,
39 struct mdp5_hw_pipe **r_hwpipe);
40 void mdp5_pipe_release(struct drm_atomic_state *s, struct mdp5_hw_pipe *hwpipe);
41
42 struct mdp5_hw_pipe *mdp5_pipe_init(enum mdp5_pipe pipe,
43 uint32_t reg_offset, uint32_t caps);
44 void mdp5_pipe_destroy(struct mdp5_hw_pipe *hwpipe);
45
46 #endif