Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / sun4i / sun4i_crtc.h
blobed7aa7ce4b9c73b8df17f67c53cead5b7a2f0c99
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3 * Copyright (C) 2015 Free Electrons
4 * Copyright (C) 2015 NextThing Co
6 * Maxime Ripard <maxime.ripard@free-electrons.com>
7 */
9 #ifndef _SUN4I_CRTC_H_
10 #define _SUN4I_CRTC_H_
12 struct sun4i_crtc {
13 struct drm_crtc crtc;
14 struct drm_pending_vblank_event *event;
16 struct sunxi_engine *engine;
17 struct sun4i_tcon *tcon;
20 static inline struct sun4i_crtc *drm_crtc_to_sun4i_crtc(struct drm_crtc *crtc)
22 return container_of(crtc, struct sun4i_crtc, crtc);
25 struct sun4i_crtc *sun4i_crtc_init(struct drm_device *drm,
26 struct sunxi_engine *engine,
27 struct sun4i_tcon *tcon);
29 #endif /* _SUN4I_CRTC_H_ */