drm/msm/hdmi: Enable HPD after HDMI IRQ is set up
[linux/fpc-iii.git] / drivers / gpu / drm / sun4i / sun4i_crtc.h
blobbf0ce36eb5181ad5b012c7cee8fad897ca814ef1
1 /*
2 * Copyright (C) 2015 Free Electrons
3 * Copyright (C) 2015 NextThing Co
5 * Maxime Ripard <maxime.ripard@free-electrons.com>
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.
13 #ifndef _SUN4I_CRTC_H_
14 #define _SUN4I_CRTC_H_
16 struct sun4i_crtc {
17 struct drm_crtc crtc;
18 struct drm_pending_vblank_event *event;
20 struct sunxi_engine *engine;
21 struct sun4i_tcon *tcon;
24 static inline struct sun4i_crtc *drm_crtc_to_sun4i_crtc(struct drm_crtc *crtc)
26 return container_of(crtc, struct sun4i_crtc, crtc);
29 struct sun4i_crtc *sun4i_crtc_init(struct drm_device *drm,
30 struct sunxi_engine *engine,
31 struct sun4i_tcon *tcon);
33 #endif /* _SUN4I_CRTC_H_ */