blob: 726a2d44371ff09ccd39060e482913cdd059f4ae [file] [log] [blame]
Inki Dae1c248b72011-10-04 19:19:01 +09001/*
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 *
Inki Daed81aecb2012-12-18 02:30:17 +09008 * 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.
Inki Dae1c248b72011-10-04 19:19:01 +090012 */
13
14#ifndef _EXYNOS_DRM_FB_H_
15#define _EXYNOS_DRM_FB_H
16
Joonyoung Shimd56125a2015-09-01 16:22:52 +090017#include "exynos_drm_gem.h"
18
Joonyoung Shime1533c02011-12-13 14:46:57 +090019struct drm_framebuffer *
20exynos_drm_framebuffer_init(struct drm_device *dev,
21 struct drm_mode_fb_cmd2 *mode_cmd,
Joonyoung Shim813fd672015-10-02 09:33:47 +090022 struct exynos_drm_gem **exynos_gem,
Joonyoung Shimd56125a2015-09-01 16:22:52 +090023 int count);
Inki Dae1c248b72011-10-04 19:19:01 +090024
Joonyoung Shim2a8cb482015-08-16 14:38:49 +090025/* get gem object of a drm framebuffer */
Joonyoung Shim813fd672015-10-02 09:33:47 +090026struct exynos_drm_gem *exynos_drm_fb_gem(struct drm_framebuffer *fb, int index);
Seung-Woo Kim229d3532011-12-15 14:36:22 +090027
Inki Dae1c248b72011-10-04 19:19:01 +090028void exynos_drm_mode_config_init(struct drm_device *dev);
29
Inki Dae1c248b72011-10-04 19:19:01 +090030#endif