blob: dbd42270dbc4db582492c2cfd17a96a88af21b5d [file] [log] [blame]
Inki Dae1c248b72011-10-04 19:19:01 +09001/* exynos_drm_crtc.h
2 *
3 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
4 * Authors:
5 * Inki Dae <inki.dae@samsung.com>
6 * Joonyoung Shim <jy0922.shim@samsung.com>
7 * Seung-Woo Kim <sw0312.kim@samsung.com>
8 *
Inki Daed81aecb2012-12-18 02:30:17 +09009 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License as published by the
11 * Free Software Foundation; either version 2 of the License, or (at your
12 * option) any later version.
Inki Dae1c248b72011-10-04 19:19:01 +090013 */
14
15#ifndef _EXYNOS_DRM_CRTC_H_
16#define _EXYNOS_DRM_CRTC_H_
17
Gustavo Padovancc2d8612014-11-13 17:24:06 +090018#include "exynos_drm_drv.h"
Sean Paul080be03d2014-02-19 21:02:55 +090019
20int exynos_drm_crtc_create(struct exynos_drm_manager *manager);
21int exynos_drm_crtc_enable_vblank(struct drm_device *dev, int pipe);
22void exynos_drm_crtc_disable_vblank(struct drm_device *dev, int pipe);
23void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int pipe);
24void exynos_drm_crtc_complete_scanout(struct drm_framebuffer *fb);
25
26void exynos_drm_crtc_plane_mode_set(struct drm_crtc *crtc,
Gustavo Padovan8837dee2014-11-03 18:13:27 -020027 struct exynos_drm_plane *plane);
Sean Paul080be03d2014-02-19 21:02:55 +090028void exynos_drm_crtc_plane_commit(struct drm_crtc *crtc, int zpos);
29void exynos_drm_crtc_plane_enable(struct drm_crtc *crtc, int zpos);
30void exynos_drm_crtc_plane_disable(struct drm_crtc *crtc, int zpos);
Inki Dae1c248b72011-10-04 19:19:01 +090031
Inki Daef37cd5e2014-05-09 14:25:20 +090032/* This function gets pipe value to crtc device matched with out_type. */
33int exynos_drm_crtc_get_pipe_from_type(struct drm_device *drm_dev,
34 unsigned int out_type);
35
YoungJun Cho5595d4d2014-07-17 18:01:19 +090036/*
37 * This function calls the crtc device(manager)'s te_handler() callback
38 * to trigger to transfer video image at the tearing effect synchronization
39 * signal.
40 */
41void exynos_drm_crtc_te_handler(struct drm_crtc *crtc);
42
Inki Dae1c248b72011-10-04 19:19:01 +090043#endif