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