blob: 3963f2db92a973b752886a9e336c3b4ebfed64c2 [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_crtc.h -- OMAP DRM CRTC
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_CRTC_H__
10#define __OMAPDRM_CRTC_H__
11
12#include <linux/types.h>
13
14enum omap_channel;
15
16struct drm_crtc;
17struct drm_device;
18struct drm_plane;
Laurent Pinchart00b30e72018-03-06 23:37:25 +020019struct omap_drm_pipeline;
Laurent Pinchartb5561412017-10-13 17:59:05 +030020struct omap_dss_device;
21struct videomode;
22
23struct videomode *omap_crtc_timings(struct drm_crtc *crtc);
24enum omap_channel omap_crtc_channel(struct drm_crtc *crtc);
Laurent Pinchart64cb8172018-02-13 14:00:39 +020025void omap_crtc_pre_init(struct omap_drm_private *priv);
Laurent Pinchart845417b2018-03-02 03:05:10 +020026void omap_crtc_pre_uninit(struct omap_drm_private *priv);
Laurent Pinchartb5561412017-10-13 17:59:05 +030027struct drm_crtc *omap_crtc_init(struct drm_device *dev,
Laurent Pinchart00b30e72018-03-06 23:37:25 +020028 struct omap_drm_pipeline *pipe,
29 struct drm_plane *plane);
Laurent Pinchartb5561412017-10-13 17:59:05 +030030int omap_crtc_wait_pending(struct drm_crtc *crtc);
Laurent Pinchartdfe9cfc2018-02-11 15:07:33 +020031void omap_crtc_error_irq(struct drm_crtc *crtc, u32 irqstatus);
Laurent Pinchartb5561412017-10-13 17:59:05 +030032void omap_crtc_vblank_irq(struct drm_crtc *crtc);
33
34#endif /* __OMAPDRM_CRTC_H__ */