Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / drivers / gpu / drm / omapdrm / omap_crtc.h
blobad7b007c6174a718c0fbb86766924fb3fb5c2e6c
1 /*
2 * omap_crtc.h -- OMAP DRM CRTC
4 * Copyright (C) 2011 Texas Instruments
5 * Author: Rob Clark <rob@ti.com>
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as published by
9 * the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
16 * You should have received a copy of the GNU General Public License along with
17 * this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef __OMAPDRM_CRTC_H__
21 #define __OMAPDRM_CRTC_H__
23 #include <linux/types.h>
25 enum omap_channel;
27 struct drm_crtc;
28 struct drm_device;
29 struct drm_plane;
30 struct omap_dss_device;
31 struct videomode;
33 struct videomode *omap_crtc_timings(struct drm_crtc *crtc);
34 enum omap_channel omap_crtc_channel(struct drm_crtc *crtc);
35 void omap_crtc_pre_init(void);
36 void omap_crtc_pre_uninit(void);
37 struct drm_crtc *omap_crtc_init(struct drm_device *dev,
38 struct drm_plane *plane, struct omap_dss_device *dssdev);
39 int omap_crtc_wait_pending(struct drm_crtc *crtc);
40 void omap_crtc_error_irq(struct drm_crtc *crtc, uint32_t irqstatus);
41 void omap_crtc_vblank_irq(struct drm_crtc *crtc);
43 #endif /* __OMAPDRM_CRTC_H__ */