Linux Audio

Check our new training course

Linux debugging, profiling, tracing and performance analysis training

Mar 24-27, 2025, special US time zones
Register
Loading...
v6.13.7
 1/* SPDX-License-Identifier: GPL-2.0-or-later */
 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
10#ifndef _EXYNOS_DRM_FB_H_
11#define _EXYNOS_DRM_FB_H_
12
13#include "exynos_drm_gem.h"
14
15struct drm_framebuffer *
16exynos_drm_framebuffer_init(struct drm_device *dev,
17			    const struct drm_mode_fb_cmd2 *mode_cmd,
18			    struct exynos_drm_gem **exynos_gem,
19			    int count);
20
21dma_addr_t exynos_drm_fb_dma_addr(struct drm_framebuffer *fb, int index);
 
 
22
23void exynos_drm_mode_config_init(struct drm_device *dev);
 
 
 
 
 
 
 
24
25#endif
v3.15
 
 1/*
 2 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
 3 * Authors:
 4 *	Inki Dae <inki.dae@samsung.com>
 5 *	Joonyoung Shim <jy0922.shim@samsung.com>
 6 *	Seung-Woo Kim <sw0312.kim@samsung.com>
 7 *
 8 * This program is free software; you can redistribute  it and/or modify it
 9 * under  the terms of  the GNU General  Public License as published by the
10 * Free Software Foundation;  either version 2 of the  License, or (at your
11 * option) any later version.
12 */
13
14#ifndef _EXYNOS_DRM_FB_H_
15#define _EXYNOS_DRM_FB_H
 
 
16
17struct drm_framebuffer *
18exynos_drm_framebuffer_init(struct drm_device *dev,
19			    struct drm_mode_fb_cmd2 *mode_cmd,
20			    struct drm_gem_object *obj);
 
21
22/* get memory information of a drm framebuffer */
23struct exynos_drm_gem_buf *exynos_drm_fb_buffer(struct drm_framebuffer *fb,
24						 int index);
25
26void exynos_drm_mode_config_init(struct drm_device *dev);
27
28/* set a buffer count to drm framebuffer. */
29void exynos_drm_fb_set_buf_cnt(struct drm_framebuffer *fb,
30						unsigned int cnt);
31
32/* get a buffer count to drm framebuffer. */
33unsigned int exynos_drm_fb_get_buf_cnt(struct drm_framebuffer *fb);
34
35#endif