WIP FPC-III support
[linux/fpc-iii.git] / drivers / gpu / drm / exynos / exynos_drm_g2d.h
blob74ea3c26deadcebabc7cae82b4e0d261269a2761
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 */
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);
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
18 static inline int exynos_g2d_get_ver_ioctl(struct drm_device *dev, void *data,
19 struct drm_file *file_priv)
21 return -ENODEV;
24 static inline int exynos_g2d_set_cmdlist_ioctl(struct drm_device *dev,
25 void *data,
26 struct drm_file *file_priv)
28 return -ENODEV;
31 static inline int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
32 struct drm_file *file_priv)
34 return -ENODEV;
37 int g2d_open(struct drm_device *drm_dev, struct drm_file *file)
39 return 0;
42 void g2d_close(struct drm_device *drm_dev, struct drm_file *file)
43 { }
44 #endif