1 /* exynos_drm_buf.h 2 * 3 * Copyright (c) 2011 Samsung Electronics Co., Ltd. 4 * Author: Inki Dae <inki.dae@samsung.com> 5 * 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. 10 */ 11 12 #ifndef _EXYNOS_DRM_BUF_H_ 13 #define _EXYNOS_DRM_BUF_H_ 14 15 /* create and initialize buffer object. */ 16 struct exynos_drm_gem_buf *exynos_drm_init_buf(struct drm_device *dev, 17 unsigned int size); 18 19 /* destroy buffer object. */ 20 void exynos_drm_fini_buf(struct drm_device *dev, 21 struct exynos_drm_gem_buf *buffer); 22 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); 27 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); 32 33 #endif 34