1
2
3
4
5
6 #ifndef __MDP5_LM_H__
7 #define __MDP5_LM_H__
8
9
10 struct mdp5_hw_mixer {
11 int idx;
12
13 const char *name;
14
15 int lm;
16 uint32_t caps;
17 int pp;
18 int dspp;
19
20 uint32_t flush_mask;
21 };
22
23
24 struct mdp5_hw_mixer_state {
25 struct drm_crtc *hwmixer_to_crtc[8];
26 };
27
28 struct mdp5_hw_mixer *mdp5_mixer_init(const struct mdp5_lm_instance *lm);
29 void mdp5_mixer_destroy(struct mdp5_hw_mixer *lm);
30 int mdp5_mixer_assign(struct drm_atomic_state *s, struct drm_crtc *crtc,
31 uint32_t caps, struct mdp5_hw_mixer **mixer,
32 struct mdp5_hw_mixer **r_mixer);
33 void mdp5_mixer_release(struct drm_atomic_state *s,
34 struct mdp5_hw_mixer *mixer);
35
36 #endif