exynos_drm_g2d.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright (C) 2012 Samsung Electronics Co.Ltd
  4. * Authors: Joonyoung Shim <jy0922.shim@samsung.com>
  5. */
  6. #ifdef CONFIG_DRM_EXYNOS_G2D
  7. extern int exynos_g2d_get_ver_ioctl(struct drm_device *dev, void *data,
  8. struct drm_file *file_priv);
  9. extern int exynos_g2d_set_cmdlist_ioctl(struct drm_device *dev, void *data,
  10. struct drm_file *file_priv);
  11. extern int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
  12. struct drm_file *file_priv);
  13. extern int g2d_open(struct drm_device *drm_dev, struct drm_file *file);
  14. extern void g2d_close(struct drm_device *drm_dev, struct drm_file *file);
  15. #else
  16. static inline int exynos_g2d_get_ver_ioctl(struct drm_device *dev, void *data,
  17. struct drm_file *file_priv)
  18. {
  19. return -ENODEV;
  20. }
  21. static inline int exynos_g2d_set_cmdlist_ioctl(struct drm_device *dev,
  22. void *data,
  23. struct drm_file *file_priv)
  24. {
  25. return -ENODEV;
  26. }
  27. static inline int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
  28. struct drm_file *file_priv)
  29. {
  30. return -ENODEV;
  31. }
  32. int g2d_open(struct drm_device *drm_dev, struct drm_file *file)
  33. {
  34. return 0;
  35. }
  36. void g2d_close(struct drm_device *drm_dev, struct drm_file *file)
  37. { }
  38. #endif