Linux Audio

Check our new training course

Loading...
v5.4
 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
37int g2d_open(struct drm_device *drm_dev, struct drm_file *file)
38{
39	return 0;
40}
41
42void g2d_close(struct drm_device *drm_dev, struct drm_file *file)
43{ }
44#endif
v3.5.6
 
 1/*
 2 * Copyright (C) 2012 Samsung Electronics Co.Ltd
 3 * Authors: Joonyoung Shim <jy0922.shim@samsung.com>
 4 *
 5 * This program is free software; you can redistribute it and/or modify
 6 * it under the terms of the GNU General Public License version 2 as
 7 * published by the Free Software Foundationr
 8 */
 9
10#ifdef CONFIG_DRM_EXYNOS_G2D
11extern int exynos_g2d_get_ver_ioctl(struct drm_device *dev, void *data,
12				    struct drm_file *file_priv);
13extern int exynos_g2d_set_cmdlist_ioctl(struct drm_device *dev, void *data,
14					struct drm_file *file_priv);
15extern int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
16				 struct drm_file *file_priv);
 
 
 
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#endif