162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (C) 2012 Samsung Electronics Co.Ltd
462306a36Sopenharmony_ci * Authors: Joonyoung Shim <jy0922.shim@samsung.com>
562306a36Sopenharmony_ci */
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#ifdef CONFIG_DRM_EXYNOS_G2D
862306a36Sopenharmony_ciextern int exynos_g2d_get_ver_ioctl(struct drm_device *dev, void *data,
962306a36Sopenharmony_ci				    struct drm_file *file_priv);
1062306a36Sopenharmony_ciextern int exynos_g2d_set_cmdlist_ioctl(struct drm_device *dev, void *data,
1162306a36Sopenharmony_ci					struct drm_file *file_priv);
1262306a36Sopenharmony_ciextern int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
1362306a36Sopenharmony_ci				 struct drm_file *file_priv);
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_ciextern int g2d_open(struct drm_device *drm_dev, struct drm_file *file);
1662306a36Sopenharmony_ciextern void g2d_close(struct drm_device *drm_dev, struct drm_file *file);
1762306a36Sopenharmony_ci#else
1862306a36Sopenharmony_cistatic inline int exynos_g2d_get_ver_ioctl(struct drm_device *dev, void *data,
1962306a36Sopenharmony_ci					   struct drm_file *file_priv)
2062306a36Sopenharmony_ci{
2162306a36Sopenharmony_ci	return -ENODEV;
2262306a36Sopenharmony_ci}
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_cistatic inline int exynos_g2d_set_cmdlist_ioctl(struct drm_device *dev,
2562306a36Sopenharmony_ci					       void *data,
2662306a36Sopenharmony_ci					       struct drm_file *file_priv)
2762306a36Sopenharmony_ci{
2862306a36Sopenharmony_ci	return -ENODEV;
2962306a36Sopenharmony_ci}
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_cistatic inline int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
3262306a36Sopenharmony_ci					struct drm_file *file_priv)
3362306a36Sopenharmony_ci{
3462306a36Sopenharmony_ci	return -ENODEV;
3562306a36Sopenharmony_ci}
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_cistatic inline int g2d_open(struct drm_device *drm_dev, struct drm_file *file)
3862306a36Sopenharmony_ci{
3962306a36Sopenharmony_ci	return 0;
4062306a36Sopenharmony_ci}
4162306a36Sopenharmony_ci
4262306a36Sopenharmony_cistatic inline void g2d_close(struct drm_device *drm_dev, struct drm_file *file)
4362306a36Sopenharmony_ci{ }
4462306a36Sopenharmony_ci#endif
45