This source file includes following definitions.
- drm_crtc_to_sun4i_crtc
1
2
3
4
5
6
7
8
9 #ifndef _SUN4I_CRTC_H_
10 #define _SUN4I_CRTC_H_
11
12 struct sun4i_crtc {
13 struct drm_crtc crtc;
14 struct drm_pending_vblank_event *event;
15
16 struct sunxi_engine *engine;
17 struct sun4i_tcon *tcon;
18 };
19
20 static inline struct sun4i_crtc *drm_crtc_to_sun4i_crtc(struct drm_crtc *crtc)
21 {
22 return container_of(crtc, struct sun4i_crtc, crtc);
23 }
24
25 struct sun4i_crtc *sun4i_crtc_init(struct drm_device *drm,
26 struct sunxi_engine *engine,
27 struct sun4i_tcon *tcon);
28
29 #endif