exynos_drm_dmabuf.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /* exynos_drm_dmabuf.h
  2. *
  3. * Copyright (c) 2012 Samsung Electronics Co., Ltd.
  4. * Author: Inki Dae <inki.dae@samsung.com>
  5. *
  6. * Permission is hereby granted, free of charge, to any person obtaining a
  7. * copy of this software and associated documentation files (the "Software"),
  8. * to deal in the Software without restriction, including without limitation
  9. * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  10. * and/or sell copies of the Software, and to permit persons to whom the
  11. * Software is furnished to do so, subject to the following conditions:
  12. *
  13. * The above copyright notice and this permission notice (including the next
  14. * paragraph) shall be included in all copies or substantial portions of the
  15. * Software.
  16. *
  17. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  18. * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  19. * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
  20. * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
  21. * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  22. * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  23. * OTHER DEALINGS IN THE SOFTWARE.
  24. */
  25. #ifndef _EXYNOS_DRM_DMABUF_H_
  26. #define _EXYNOS_DRM_DMABUF_H_
  27. #ifdef CONFIG_DRM_EXYNOS_DMABUF
  28. struct dma_buf *exynos_dmabuf_prime_export(struct drm_device *drm_dev,
  29. struct drm_gem_object *obj, int flags);
  30. struct drm_gem_object *exynos_dmabuf_prime_import(struct drm_device *drm_dev,
  31. struct dma_buf *dma_buf);
  32. #else
  33. #define exynos_dmabuf_prime_export NULL
  34. #define exynos_dmabuf_prime_import NULL
  35. #endif
  36. #endif