0001
0002
0003
0004
0005
0006
0007 #ifdef CONFIG_DRM_EXYNOS_G2D
0008 extern int exynos_g2d_get_ver_ioctl(struct drm_device *dev, void *data,
0009 struct drm_file *file_priv);
0010 extern int exynos_g2d_set_cmdlist_ioctl(struct drm_device *dev, void *data,
0011 struct drm_file *file_priv);
0012 extern int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
0013 struct drm_file *file_priv);
0014
0015 extern int g2d_open(struct drm_device *drm_dev, struct drm_file *file);
0016 extern void g2d_close(struct drm_device *drm_dev, struct drm_file *file);
0017 #else
0018 static inline int exynos_g2d_get_ver_ioctl(struct drm_device *dev, void *data,
0019 struct drm_file *file_priv)
0020 {
0021 return -ENODEV;
0022 }
0023
0024 static inline int exynos_g2d_set_cmdlist_ioctl(struct drm_device *dev,
0025 void *data,
0026 struct drm_file *file_priv)
0027 {
0028 return -ENODEV;
0029 }
0030
0031 static inline int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
0032 struct drm_file *file_priv)
0033 {
0034 return -ENODEV;
0035 }
0036
0037 int g2d_open(struct drm_device *drm_dev, struct drm_file *file)
0038 {
0039 return 0;
0040 }
0041
0042 void g2d_close(struct drm_device *drm_dev, struct drm_file *file)
0043 { }
0044 #endif