]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - drivers/gpu/drm/exynos/exynos_drm_crtc.h
drm/exynos: Constify exynos_drm_crtc_ops
[mirror_ubuntu-artful-kernel.git] / drivers / gpu / drm / exynos / exynos_drm_crtc.h
CommitLineData
1c248b7d
ID
1/* 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 *
d81aecb5
ID
9 * 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.
1c248b7d
ID
13 */
14
15#ifndef _EXYNOS_DRM_CRTC_H_
16#define _EXYNOS_DRM_CRTC_H_
17
cc2d861c 18#include "exynos_drm_drv.h"
080be03d 19
93bca243 20struct exynos_drm_crtc *exynos_drm_crtc_create(struct drm_device *drm_dev,
f3aaf762
KK
21 struct drm_plane *plane,
22 int pipe,
23 enum exynos_drm_output_type type,
24 const struct exynos_drm_crtc_ops *ops,
25 void *context);
080be03d
SP
26int exynos_drm_crtc_enable_vblank(struct drm_device *dev, int pipe);
27void exynos_drm_crtc_disable_vblank(struct drm_device *dev, int pipe);
28void exynos_drm_crtc_finish_pageflip(struct drm_device *dev, int pipe);
29void exynos_drm_crtc_complete_scanout(struct drm_framebuffer *fb);
30
f37cd5e8
ID
31/* This function gets pipe value to crtc device matched with out_type. */
32int exynos_drm_crtc_get_pipe_from_type(struct drm_device *drm_dev,
33 unsigned int out_type);
34
5595d4d8
YC
35/*
36 * This function calls the crtc device(manager)'s te_handler() callback
37 * to trigger to transfer video image at the tearing effect synchronization
38 * signal.
39 */
40void exynos_drm_crtc_te_handler(struct drm_crtc *crtc);
41
1c248b7d 42#endif