exynos_drm_dmabuf.h 808 B

12345678910111213141516171819202122232425
  1. /* exynos_drm_dmabuf.h
  2. *
  3. * Copyright (c) 2012 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_DMABUF_H_
  12. #define _EXYNOS_DRM_DMABUF_H_
  13. #ifdef CONFIG_DRM_EXYNOS_DMABUF
  14. struct dma_buf *exynos_dmabuf_prime_export(struct drm_device *drm_dev,
  15. struct drm_gem_object *obj, int flags);
  16. struct drm_gem_object *exynos_dmabuf_prime_import(struct drm_device *drm_dev,
  17. struct dma_buf *dma_buf);
  18. #else
  19. #define exynos_dmabuf_prime_export NULL
  20. #define exynos_dmabuf_prime_import NULL
  21. #endif
  22. #endif