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
7 #ifdef CONFIG_DRM_EXYNOS_G2D
8 extern int exynos_g2d_get_ver_ioctl(struct drm_device *dev, void *data,
9 struct drm_file *file_priv);
10 extern int exynos_g2d_set_cmdlist_ioctl(struct drm_device *dev, void *data,
11 struct drm_file *file_priv);
12 extern int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
13 struct drm_file *file_priv);
14
15 extern int g2d_open(struct drm_device *drm_dev, struct drm_file *file);
16 extern void g2d_close(struct drm_device *drm_dev, struct drm_file *file);
17 #else
exynos_g2d_get_ver_ioctl(struct drm_device * dev,void * data,struct drm_file * file_priv)18 static inline int exynos_g2d_get_ver_ioctl(struct drm_device *dev, void *data,
19 struct drm_file *file_priv)
20 {
21 return -ENODEV;
22 }
23
exynos_g2d_set_cmdlist_ioctl(struct drm_device * dev,void * data,struct drm_file * file_priv)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
exynos_g2d_exec_ioctl(struct drm_device * dev,void * data,struct drm_file * file_priv)31 static inline int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
32 struct drm_file *file_priv)
33 {
34 return -ENODEV;
35 }
36
g2d_open(struct drm_device * drm_dev,struct drm_file * file)37 int g2d_open(struct drm_device *drm_dev, struct drm_file *file)
38 {
39 return 0;
40 }
41
g2d_close(struct drm_device * drm_dev,struct drm_file * file)42 void g2d_close(struct drm_device *drm_dev, struct drm_file *file)
43 { }
44 #endif
45