Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 1 | /* exynos_drm_buf.h |
| 2 | * |
| 3 | * Copyright (c) 2011 Samsung Electronics Co., Ltd. |
| 4 | * Author: Inki Dae <inki.dae@samsung.com> |
| 5 | * |
Inki Dae | d81aecb | 2012-12-18 02:30:17 +0900 | [diff] [blame] | 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. |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #ifndef _EXYNOS_DRM_BUF_H_ |
| 13 | #define _EXYNOS_DRM_BUF_H_ |
| 14 | |
Inki Dae | 2b35892 | 2012-03-16 18:47:05 +0900 | [diff] [blame] | 15 | /* create and initialize buffer object. */ |
| 16 | struct exynos_drm_gem_buf *exynos_drm_init_buf(struct drm_device *dev, |
| 17 | unsigned int size); |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 18 | |
Inki Dae | 2b35892 | 2012-03-16 18:47:05 +0900 | [diff] [blame] | 19 | /* destroy buffer object. */ |
| 20 | void exynos_drm_fini_buf(struct drm_device *dev, |
| 21 | struct exynos_drm_gem_buf *buffer); |
| 22 | |
Prathyush K | 465ed66 | 2012-11-20 19:32:56 +0900 | [diff] [blame] | 23 | /* allocate physical memory region and setup sgt. */ |
Inki Dae | 2b35892 | 2012-03-16 18:47:05 +0900 | [diff] [blame] | 24 | int exynos_drm_alloc_buf(struct drm_device *dev, |
| 25 | struct exynos_drm_gem_buf *buf, |
| 26 | unsigned int flags); |
| 27 | |
Prathyush K | 465ed66 | 2012-11-20 19:32:56 +0900 | [diff] [blame] | 28 | /* release physical memory region, and sgt. */ |
Inki Dae | 2b35892 | 2012-03-16 18:47:05 +0900 | [diff] [blame] | 29 | void exynos_drm_free_buf(struct drm_device *dev, |
| 30 | unsigned int flags, |
| 31 | struct exynos_drm_gem_buf *buffer); |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 32 | |
| 33 | #endif |