Linux Audio

Check our new training course

Loading...
v5.4
 1/* SPDX-License-Identifier: GPL-2.0-or-later */
 2/*
 3 * Copyright (C) 2015 Free Electrons
 4 * Copyright (C) 2015 NextThing Co
 5 *
 6 * Maxime Ripard <maxime.ripard@free-electrons.com>
 
 
 
 
 
 7 */
 8
 9#ifndef _SUN4I_CRTC_H_
10#define _SUN4I_CRTC_H_
11
12struct 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
20static 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
25struct sun4i_crtc *sun4i_crtc_init(struct drm_device *drm,
26				   struct sunxi_engine *engine,
27				   struct sun4i_tcon *tcon);
28
29#endif /* _SUN4I_CRTC_H_ */
v4.17
 
 1/*
 2 * Copyright (C) 2015 Free Electrons
 3 * Copyright (C) 2015 NextThing Co
 4 *
 5 * Maxime Ripard <maxime.ripard@free-electrons.com>
 6 *
 7 * This program is free software; you can redistribute it and/or
 8 * modify it under the terms of the GNU General Public License as
 9 * published by the Free Software Foundation; either version 2 of
10 * the License, or (at your option) any later version.
11 */
12
13#ifndef _SUN4I_CRTC_H_
14#define _SUN4I_CRTC_H_
15
16struct sun4i_crtc {
17	struct drm_crtc			crtc;
18	struct drm_pending_vblank_event	*event;
19
20	struct sunxi_engine		*engine;
21	struct sun4i_tcon		*tcon;
22};
23
24static inline struct sun4i_crtc *drm_crtc_to_sun4i_crtc(struct drm_crtc *crtc)
25{
26	return container_of(crtc, struct sun4i_crtc, crtc);
27}
28
29struct sun4i_crtc *sun4i_crtc_init(struct drm_device *drm,
30				   struct sunxi_engine *engine,
31				   struct sun4i_tcon *tcon);
32
33#endif /* _SUN4I_CRTC_H_ */