Merge branches 'clk-of-refcount', 'clk-mmio-fixed-clock', 'clk-remove-clps', 'clk...
[linux-2.6-block.git] / drivers / gpu / drm / omapdrm / omap_irq.h
CommitLineData
b5561412
LP
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
25struct drm_crtc;
26struct drm_device;
27struct omap_irq_wait;
28
29int omap_irq_enable_vblank(struct drm_crtc *crtc);
30void omap_irq_disable_vblank(struct drm_crtc *crtc);
31void omap_drm_irq_uninstall(struct drm_device *dev);
32int omap_drm_irq_install(struct drm_device *dev);
33
34struct omap_irq_wait *omap_irq_wait_init(struct drm_device *dev,
dfe9cfcc 35 u32 irqmask, int count);
b5561412
LP
36int omap_irq_wait(struct drm_device *dev, struct omap_irq_wait *wait,
37 unsigned long timeout);
38
39#endif /* __OMAPDRM_IRQ_H__ */