GNU Linux-libre 4.19.295-gnu1
[releases.git] / drivers / gpu / drm / omapdrm / omap_irq.h
1 /*
2  * omap_irq.h -- OMAP DRM IRQ Handling
3  *
4  * Copyright (C) 2011 Texas Instruments
5  * Author: Rob Clark <rob@ti.com>
6  *
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.
10  *
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.
15  *
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/>.
18  */
19
20 #ifndef __OMAPDRM_IRQ_H__
21 #define __OMAPDRM_IRQ_H__
22
23 #include <linux/types.h>
24
25 struct drm_crtc;
26 struct drm_device;
27 struct omap_irq_wait;
28
29 int omap_irq_enable_vblank(struct drm_crtc *crtc);
30 void omap_irq_disable_vblank(struct drm_crtc *crtc);
31 void omap_drm_irq_uninstall(struct drm_device *dev);
32 int omap_drm_irq_install(struct drm_device *dev);
33
34 struct omap_irq_wait *omap_irq_wait_init(struct drm_device *dev,
35                 u32 irqmask, int count);
36 int omap_irq_wait(struct drm_device *dev, struct omap_irq_wait *wait,
37                 unsigned long timeout);
38
39 #endif /* __OMAPDRM_IRQ_H__ */