exynos_drm_g2d.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright (C) 2012 Samsung Electronics Co.Ltd
  3. * Authors: Joonyoung Shim <jy0922.shim@samsung.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundationr
  8. */
  9. #ifdef CONFIG_DRM_EXYNOS_G2D
  10. extern int exynos_g2d_get_ver_ioctl(struct drm_device *dev, void *data,
  11. struct drm_file *file_priv);
  12. extern int exynos_g2d_set_cmdlist_ioctl(struct drm_device *dev, void *data,
  13. struct drm_file *file_priv);
  14. extern int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
  15. struct drm_file *file_priv);
  16. extern int g2d_open(struct drm_device *drm_dev, struct drm_file *file);
  17. extern void g2d_close(struct drm_device *drm_dev, struct drm_file *file);
  18. #else
  19. static inline int exynos_g2d_get_ver_ioctl(struct drm_device *dev, void *data,
  20. struct drm_file *file_priv)
  21. {
  22. return -ENODEV;
  23. }
  24. static inline int exynos_g2d_set_cmdlist_ioctl(struct drm_device *dev,
  25. void *data,
  26. struct drm_file *file_priv)
  27. {
  28. return -ENODEV;
  29. }
  30. static inline int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
  31. struct drm_file *file_priv)
  32. {
  33. return -ENODEV;
  34. }
  35. int g2d_open(struct drm_device *drm_dev, struct drm_file *file)
  36. {
  37. return 0;
  38. }
  39. void g2d_close(struct drm_device *drm_dev, struct drm_file *file)
  40. { }
  41. #endif