exynos_drm_buf.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  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. #ifndef _EXYNOS_DRM_BUF_H_
  12. #define _EXYNOS_DRM_BUF_H_
  13. /* create and initialize buffer object. */
  14. struct exynos_drm_gem_buf *exynos_drm_init_buf(struct drm_device *dev,
  15. unsigned int size);
  16. /* destroy buffer object. */
  17. void exynos_drm_fini_buf(struct drm_device *dev,
  18. struct exynos_drm_gem_buf *buffer);
  19. /* allocate physical memory region and setup sgt. */
  20. int exynos_drm_alloc_buf(struct drm_device *dev,
  21. struct exynos_drm_gem_buf *buf,
  22. unsigned int flags);
  23. /* release physical memory region, and sgt. */
  24. void exynos_drm_free_buf(struct drm_device *dev,
  25. unsigned int flags,
  26. struct exynos_drm_gem_buf *buffer);
  27. #endif