Commit | Line | Data |
---|---|---|
1c248b7d ID |
1 | /* exynos_drm_buf.h |
2 | * | |
3 | * Copyright (c) 2011 Samsung Electronics Co., Ltd. | |
4 | * Author: Inki Dae <inki.dae@samsung.com> | |
5 | * | |
d81aecb5 ID |
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. | |
1c248b7d ID |
10 | */ |
11 | ||
12 | #ifndef _EXYNOS_DRM_BUF_H_ | |
13 | #define _EXYNOS_DRM_BUF_H_ | |
14 | ||
2b35892e ID |
15 | /* create and initialize buffer object. */ |
16 | struct exynos_drm_gem_buf *exynos_drm_init_buf(struct drm_device *dev, | |
17 | unsigned int size); | |
1c248b7d | 18 | |
2b35892e ID |
19 | /* destroy buffer object. */ |
20 | void exynos_drm_fini_buf(struct drm_device *dev, | |
21 | struct exynos_drm_gem_buf *buffer); | |
22 | ||
465ed660 | 23 | /* allocate physical memory region and setup sgt. */ |
2b35892e ID |
24 | int exynos_drm_alloc_buf(struct drm_device *dev, |
25 | struct exynos_drm_gem_buf *buf, | |
26 | unsigned int flags); | |
27 | ||
465ed660 | 28 | /* release physical memory region, and sgt. */ |
2b35892e ID |
29 | void exynos_drm_free_buf(struct drm_device *dev, |
30 | unsigned int flags, | |
31 | struct exynos_drm_gem_buf *buffer); | |
1c248b7d ID |
32 | |
33 | #endif |