Loading...
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 *
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.
13 */
14
15#ifndef _EXYNOS_DRM_CRTC_H_
16#define _EXYNOS_DRM_CRTC_H_
17
18#include "exynos_drm_drv.h"
19
20struct exynos_drm_crtc *exynos_drm_crtc_create(struct drm_device *drm_dev,
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);
26int exynos_drm_crtc_enable_vblank(struct drm_device *dev, unsigned int pipe);
27void exynos_drm_crtc_disable_vblank(struct drm_device *dev, unsigned int pipe);
28void exynos_drm_crtc_wait_pending_update(struct exynos_drm_crtc *exynos_crtc);
29void exynos_drm_crtc_finish_update(struct exynos_drm_crtc *exynos_crtc,
30 struct exynos_drm_plane *exynos_plane);
31
32/* 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 enum exynos_drm_output_type out_type);
35
36/*
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
43/* This function cancels a page flip request. */
44void exynos_drm_crtc_cancel_page_flip(struct drm_crtc *crtc,
45 struct drm_file *file);
46
47#endif
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 *
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.
13 */
14
15#ifndef _EXYNOS_DRM_CRTC_H_
16#define _EXYNOS_DRM_CRTC_H_
17
18
19#include "exynos_drm_drv.h"
20
21struct exynos_drm_crtc *exynos_drm_crtc_create(struct drm_device *drm_dev,
22 struct drm_plane *plane,
23 enum exynos_drm_output_type out_type,
24 const struct exynos_drm_crtc_ops *ops,
25 void *context);
26void exynos_drm_crtc_wait_pending_update(struct exynos_drm_crtc *exynos_crtc);
27void exynos_drm_crtc_finish_update(struct exynos_drm_crtc *exynos_crtc,
28 struct exynos_drm_plane *exynos_plane);
29
30/* This function gets crtc device matched with out_type. */
31struct exynos_drm_crtc *exynos_drm_crtc_get_by_type(struct drm_device *drm_dev,
32 enum exynos_drm_output_type out_type);
33
34int exynos_drm_set_possible_crtcs(struct drm_encoder *encoder,
35 enum exynos_drm_output_type out_type);
36
37/*
38 * This function calls the crtc device(manager)'s te_handler() callback
39 * to trigger to transfer video image at the tearing effect synchronization
40 * signal.
41 */
42void exynos_drm_crtc_te_handler(struct drm_crtc *crtc);
43
44void exynos_crtc_handle_event(struct exynos_drm_crtc *exynos_crtc);
45
46#endif