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