2 * omap_irq.h -- OMAP DRM IRQ Handling
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
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_IRQ_H__
21 #define __OMAPDRM_IRQ_H__
23 #include <linux/types.h>
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
);
34 struct omap_irq_wait
*omap_irq_wait_init(struct drm_device
*dev
,
35 uint32_t irqmask
, int count
);
36 int omap_irq_wait(struct drm_device
*dev
, struct omap_irq_wait
*wait
,
37 unsigned long timeout
);
39 #endif /* __OMAPDRM_IRQ_H__ */