blob: f7ecd728f7b3e7948e23efe07f2565ad0aa5ff53 [file] [log] [blame]
Thomas Gleixnercaab2772019-06-03 07:44:50 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Laurent Pinchartb5561412017-10-13 17:59:05 +03002/*
3 * omap_irq.h -- OMAP DRM IRQ Handling
4 *
5 * Copyright (C) 2011 Texas Instruments
6 * Author: Rob Clark <rob@ti.com>
Laurent Pinchartb5561412017-10-13 17:59:05 +03007 */
8
9#ifndef __OMAPDRM_IRQ_H__
10#define __OMAPDRM_IRQ_H__
11
12#include <linux/types.h>
13
14struct drm_crtc;
15struct drm_device;
16struct omap_irq_wait;
17
18int omap_irq_enable_vblank(struct drm_crtc *crtc);
19void omap_irq_disable_vblank(struct drm_crtc *crtc);
20void omap_drm_irq_uninstall(struct drm_device *dev);
21int omap_drm_irq_install(struct drm_device *dev);
22
23struct omap_irq_wait *omap_irq_wait_init(struct drm_device *dev,
Laurent Pinchartdfe9cfc2018-02-11 15:07:33 +020024 u32 irqmask, int count);
Laurent Pinchartb5561412017-10-13 17:59:05 +030025int omap_irq_wait(struct drm_device *dev, struct omap_irq_wait *wait,
26 unsigned long timeout);
27
28#endif /* __OMAPDRM_IRQ_H__ */