blob: a6412f19673cb3277ad17137700b006f024b8c84 [file] [log] [blame]
Inki Dae1c248b72011-10-04 19:19:01 +09001/* exynos_drm_buf.h
2 *
3 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
4 * Author: Inki Dae <inki.dae@samsung.com>
5 *
Inki Daed81aecb2012-12-18 02:30:17 +09006 * 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.
Inki Dae1c248b72011-10-04 19:19:01 +090010 */
11
12#ifndef _EXYNOS_DRM_BUF_H_
13#define _EXYNOS_DRM_BUF_H_
14
Inki Dae2b358922012-03-16 18:47:05 +090015/* create and initialize buffer object. */
16struct exynos_drm_gem_buf *exynos_drm_init_buf(struct drm_device *dev,
17 unsigned int size);
Inki Dae1c248b72011-10-04 19:19:01 +090018
Inki Dae2b358922012-03-16 18:47:05 +090019/* destroy buffer object. */
20void exynos_drm_fini_buf(struct drm_device *dev,
21 struct exynos_drm_gem_buf *buffer);
22
Prathyush K465ed662012-11-20 19:32:56 +090023/* allocate physical memory region and setup sgt. */
Inki Dae2b358922012-03-16 18:47:05 +090024int exynos_drm_alloc_buf(struct drm_device *dev,
25 struct exynos_drm_gem_buf *buf,
26 unsigned int flags);
27
Prathyush K465ed662012-11-20 19:32:56 +090028/* release physical memory region, and sgt. */
Inki Dae2b358922012-03-16 18:47:05 +090029void exynos_drm_free_buf(struct drm_device *dev,
30 unsigned int flags,
31 struct exynos_drm_gem_buf *buffer);
Inki Dae1c248b72011-10-04 19:19:01 +090032
33#endif