Linux Audio

Check our new training course

Linux debugging, profiling, tracing and performance analysis training

Apr 14-17, 2025
Register
Loading...
v5.4
 1/* SPDX-License-Identifier: GPL-2.0-or-later */
 2/* exynos_drm_crtc.h
 3 *
 4 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
 5 * Authors:
 6 *	Inki Dae <inki.dae@samsung.com>
 7 *	Joonyoung Shim <jy0922.shim@samsung.com>
 8 *	Seung-Woo Kim <sw0312.kim@samsung.com>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 9 */
10
11#ifndef _EXYNOS_DRM_CRTC_H_
12#define _EXYNOS_DRM_CRTC_H_
13
14
15#include "exynos_drm_drv.h"
16
17struct exynos_drm_crtc *exynos_drm_crtc_create(struct drm_device *drm_dev,
18					struct drm_plane *plane,
19					enum exynos_drm_output_type out_type,
20					const struct exynos_drm_crtc_ops *ops,
21					void *context);
22void exynos_drm_crtc_wait_pending_update(struct exynos_drm_crtc *exynos_crtc);
23void exynos_drm_crtc_finish_update(struct exynos_drm_crtc *exynos_crtc,
24				   struct exynos_drm_plane *exynos_plane);
25
26/* This function gets crtc device matched with out_type. */
27struct exynos_drm_crtc *exynos_drm_crtc_get_by_type(struct drm_device *drm_dev,
28				       enum exynos_drm_output_type out_type);
29
30int exynos_drm_set_possible_crtcs(struct drm_encoder *encoder,
31		enum exynos_drm_output_type out_type);
32
33/*
34 * This function calls the crtc device(manager)'s te_handler() callback
35 * to trigger to transfer video image at the tearing effect synchronization
36 * signal.
 
 
 
 
 
 
 
 
 
37 */
38void exynos_drm_crtc_te_handler(struct drm_crtc *crtc);
39
40void exynos_crtc_handle_event(struct exynos_drm_crtc *exynos_crtc);
41
 
 
 
 
 
 
 
 
 
 
 
42#endif
v3.5.6
 
 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 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice (including the next
17 * paragraph) shall be included in all copies or substantial portions of the
18 * Software.
19 *
20 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
23 * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
24 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
25 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
26 * OTHER DEALINGS IN THE SOFTWARE.
27 */
28
29#ifndef _EXYNOS_DRM_CRTC_H_
30#define _EXYNOS_DRM_CRTC_H_
31
32struct exynos_drm_overlay *get_exynos_drm_overlay(struct drm_device *dev,
33		struct drm_crtc *crtc);
34int exynos_drm_crtc_create(struct drm_device *dev, unsigned int nr);
35int exynos_drm_crtc_enable_vblank(struct drm_device *dev, int crtc);
36void exynos_drm_crtc_disable_vblank(struct drm_device *dev, int crtc);
 
 
 
 
 
 
 
 
 
 
 
 
 
37
38/*
39 * Exynos specific crtc postion structure.
40 *
41 * @fb_x: offset x on a framebuffer to be displyed
42 *	- the unit is screen coordinates.
43 * @fb_y: offset y on a framebuffer to be displayed
44 *	- the unit is screen coordinates.
45 * @src_w: width of source area to be displayed from a framebuffer.
46 * @src_h: height of source area to be displayed from a framebuffer.
47 * @crtc_x: offset x on hardware screen.
48 * @crtc_y: offset y on hardware screen.
49 * @crtc_w: width of hardware screen.
50 * @crtc_h: height of hardware screen.
51 */
52struct exynos_drm_crtc_pos {
53	unsigned int fb_x;
54	unsigned int fb_y;
55	unsigned int src_w;
56	unsigned int src_h;
57	unsigned int crtc_x;
58	unsigned int crtc_y;
59	unsigned int crtc_w;
60	unsigned int crtc_h;
61};
62
63int exynos_drm_overlay_update(struct exynos_drm_overlay *overlay,
64			      struct drm_framebuffer *fb,
65			      struct drm_display_mode *mode,
66			      struct exynos_drm_crtc_pos *pos);
67#endif