3 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
4 * Author: Inki Dae <inki.dae@samsung.com>
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
12 #ifndef _EXYNOS_DRM_BUF_H_
13 #define _EXYNOS_DRM_BUF_H_
15 /* create and initialize buffer object. */
16 struct exynos_drm_gem_buf
*exynos_drm_init_buf(struct drm_device
*dev
,
19 /* destroy buffer object. */
20 void exynos_drm_fini_buf(struct drm_device
*dev
,
21 struct exynos_drm_gem_buf
*buffer
);
23 /* allocate physical memory region and setup sgt. */
24 int exynos_drm_alloc_buf(struct drm_device
*dev
,
25 struct exynos_drm_gem_buf
*buf
,
28 /* release physical memory region, and sgt. */
29 void exynos_drm_free_buf(struct drm_device
*dev
,
31 struct exynos_drm_gem_buf
*buffer
);