Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Copyright (C) 2015 Free Electrons
0004  * Copyright (C) 2015 NextThing Co
0005  *
0006  * Maxime Ripard <maxime.ripard@free-electrons.com>
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 /* _SUN4I_CRTC_H_ */