Linux 4.2.1
[linux/fpc-iii.git] / drivers / gpu / drm / exynos / exynos_drm_buf.h
bloba6412f19673cb3277ad17137700b006f024b8c84
1 /* exynos_drm_buf.h
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,
17 unsigned int size);
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,
26 unsigned int flags);
28 /* release physical memory region, and sgt. */
29 void exynos_drm_free_buf(struct drm_device *dev,
30 unsigned int flags,
31 struct exynos_drm_gem_buf *buffer);
33 #endif