Thomas Gleixner | caab277 | 2019-06-03 07:44:50 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Laurent Pinchart | b556141 | 2017-10-13 17:59:05 +0300 | [diff] [blame] | 2 | /* |
| 3 | * omap_crtc.h -- OMAP DRM CRTC |
| 4 | * |
| 5 | * Copyright (C) 2011 Texas Instruments |
| 6 | * Author: Rob Clark <rob@ti.com> |
Laurent Pinchart | b556141 | 2017-10-13 17:59:05 +0300 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef __OMAPDRM_CRTC_H__ |
| 10 | #define __OMAPDRM_CRTC_H__ |
| 11 | |
| 12 | #include <linux/types.h> |
| 13 | |
| 14 | enum omap_channel; |
| 15 | |
| 16 | struct drm_crtc; |
| 17 | struct drm_device; |
| 18 | struct drm_plane; |
Laurent Pinchart | 00b30e7 | 2018-03-06 23:37:25 +0200 | [diff] [blame] | 19 | struct omap_drm_pipeline; |
Laurent Pinchart | b556141 | 2017-10-13 17:59:05 +0300 | [diff] [blame] | 20 | struct omap_dss_device; |
| 21 | struct videomode; |
| 22 | |
| 23 | struct videomode *omap_crtc_timings(struct drm_crtc *crtc); |
| 24 | enum omap_channel omap_crtc_channel(struct drm_crtc *crtc); |
Laurent Pinchart | 64cb817 | 2018-02-13 14:00:39 +0200 | [diff] [blame] | 25 | void omap_crtc_pre_init(struct omap_drm_private *priv); |
Laurent Pinchart | 845417b | 2018-03-02 03:05:10 +0200 | [diff] [blame] | 26 | void omap_crtc_pre_uninit(struct omap_drm_private *priv); |
Laurent Pinchart | b556141 | 2017-10-13 17:59:05 +0300 | [diff] [blame] | 27 | struct drm_crtc *omap_crtc_init(struct drm_device *dev, |
Laurent Pinchart | 00b30e7 | 2018-03-06 23:37:25 +0200 | [diff] [blame] | 28 | struct omap_drm_pipeline *pipe, |
| 29 | struct drm_plane *plane); |
Laurent Pinchart | b556141 | 2017-10-13 17:59:05 +0300 | [diff] [blame] | 30 | int omap_crtc_wait_pending(struct drm_crtc *crtc); |
Laurent Pinchart | dfe9cfc | 2018-02-11 15:07:33 +0200 | [diff] [blame] | 31 | void omap_crtc_error_irq(struct drm_crtc *crtc, u32 irqstatus); |
Laurent Pinchart | b556141 | 2017-10-13 17:59:05 +0300 | [diff] [blame] | 32 | void omap_crtc_vblank_irq(struct drm_crtc *crtc); |
| 33 | |
| 34 | #endif /* __OMAPDRM_CRTC_H__ */ |