![Marek Szyprowski](/assets/img/avatar_default.png)
Exynos G2D driver is the last client of the custom Exynos 'sub-driver' framework. In the current state it doesn't really resolve any of the issues it has been designed for, as Exynos DRM is already built only as a single kernel module. Remove the custom 'sub-driver' framework and simply use generic component framework also in G2D driver. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Inki Dae <inki.dae@samsung.com>
48 lines
1.4 KiB
C
48 lines
1.4 KiB
C
/*
|
|
* Copyright (C) 2012 Samsung Electronics Co.Ltd
|
|
* Authors: Joonyoung Shim <jy0922.shim@samsung.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundationr
|
|
*/
|
|
|
|
#ifdef CONFIG_DRM_EXYNOS_G2D
|
|
extern int exynos_g2d_get_ver_ioctl(struct drm_device *dev, void *data,
|
|
struct drm_file *file_priv);
|
|
extern int exynos_g2d_set_cmdlist_ioctl(struct drm_device *dev, void *data,
|
|
struct drm_file *file_priv);
|
|
extern int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
|
|
struct drm_file *file_priv);
|
|
|
|
extern int g2d_open(struct drm_device *drm_dev, struct drm_file *file);
|
|
extern void g2d_close(struct drm_device *drm_dev, struct drm_file *file);
|
|
#else
|
|
static inline int exynos_g2d_get_ver_ioctl(struct drm_device *dev, void *data,
|
|
struct drm_file *file_priv)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
|
|
static inline int exynos_g2d_set_cmdlist_ioctl(struct drm_device *dev,
|
|
void *data,
|
|
struct drm_file *file_priv)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
|
|
static inline int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
|
|
struct drm_file *file_priv)
|
|
{
|
|
return -ENODEV;
|
|
}
|
|
|
|
int g2d_open(struct drm_device *drm_dev, struct drm_file *file)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
void g2d_close(struct drm_device *drm_dev, struct drm_file *file)
|
|
{ }
|
|
#endif
|