0001
0002
0003
0004
0005
0006
0007
0008
0009 #ifndef _SUN4I_CRTC_H_
0010 #define _SUN4I_CRTC_H_
0011
0012 struct sun4i_crtc {
0013 struct drm_crtc crtc;
0014 struct drm_pending_vblank_event *event;
0015
0016 struct sunxi_engine *engine;
0017 struct sun4i_tcon *tcon;
0018 };
0019
0020 static inline struct sun4i_crtc *drm_crtc_to_sun4i_crtc(struct drm_crtc *crtc)
0021 {
0022 return container_of(crtc, struct sun4i_crtc, crtc);
0023 }
0024
0025 struct sun4i_crtc *sun4i_crtc_init(struct drm_device *drm,
0026 struct sunxi_engine *engine,
0027 struct sun4i_tcon *tcon);
0028
0029 #endif