vt: vt_ioctl: fix VT_DISALLOCATE freeing in-use virtual console
[linux/fpc-iii.git] / drivers / gpu / drm / exynos / exynos_drm_g2d.h
blob287b2ed8f1782104e8acf3b71ca3e93c691f71ab
1 /*
2 * Copyright (C) 2012 Samsung Electronics Co.Ltd
3 * Authors: Joonyoung Shim <jy0922.shim@samsung.com>
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 */
10 #ifdef CONFIG_DRM_EXYNOS_G2D
11 extern int exynos_g2d_get_ver_ioctl(struct drm_device *dev, void *data,
12 struct drm_file *file_priv);
13 extern int exynos_g2d_set_cmdlist_ioctl(struct drm_device *dev, void *data,
14 struct drm_file *file_priv);
15 extern int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
16 struct drm_file *file_priv);
18 extern int g2d_open(struct drm_device *drm_dev, struct drm_file *file);
19 extern void g2d_close(struct drm_device *drm_dev, struct drm_file *file);
20 #else
21 static inline int exynos_g2d_get_ver_ioctl(struct drm_device *dev, void *data,
22 struct drm_file *file_priv)
24 return -ENODEV;
27 static inline int exynos_g2d_set_cmdlist_ioctl(struct drm_device *dev,
28 void *data,
29 struct drm_file *file_priv)
31 return -ENODEV;
34 static inline int exynos_g2d_exec_ioctl(struct drm_device *dev, void *data,
35 struct drm_file *file_priv)
37 return -ENODEV;
40 int g2d_open(struct drm_device *drm_dev, struct drm_file *file)
42 return 0;
45 void g2d_close(struct drm_device *drm_dev, struct drm_file *file)
46 { }
47 #endif