Merge tag 'for-linus-4.14c-rc7-tag' of git://git.kernel.org/pub/scm/linux/kernel...
[sfrench/cifs-2.6.git] / drivers / gpu / drm / exynos / exynos_drm_fbdev.h
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd.
3  *
4  * Authors:
5  *      Inki Dae <inki.dae@samsung.com>
6  *      Joonyoung Shim <jy0922.shim@samsung.com>
7  *      Seung-Woo Kim <sw0312.kim@samsung.com>
8  *
9  * This program is free software; you can redistribute  it and/or modify it
10  * under  the terms of  the GNU General  Public License as published by the
11  * Free Software Foundation;  either version 2 of the  License, or (at your
12  * option) any later version.
13  */
14
15 #ifndef _EXYNOS_DRM_FBDEV_H_
16 #define _EXYNOS_DRM_FBDEV_H_
17
18 #ifdef CONFIG_DRM_FBDEV_EMULATION
19
20 int exynos_drm_fbdev_init(struct drm_device *dev);
21 void exynos_drm_fbdev_fini(struct drm_device *dev);
22 void exynos_drm_fbdev_restore_mode(struct drm_device *dev);
23 void exynos_drm_output_poll_changed(struct drm_device *dev);
24 void exynos_drm_fbdev_suspend(struct drm_device *drm);
25 void exynos_drm_fbdev_resume(struct drm_device *drm);
26
27 #else
28
29 static inline int exynos_drm_fbdev_init(struct drm_device *dev)
30 {
31         return 0;
32 }
33
34 static inline void exynos_drm_fbdev_fini(struct drm_device *dev)
35 {
36 }
37
38 static inline void exynos_drm_fbdev_restore_mode(struct drm_device *dev)
39 {
40 }
41
42 #define exynos_drm_output_poll_changed (NULL)
43
44 static inline void exynos_drm_fbdev_suspend(struct drm_device *drm)
45 {
46 }
47
48 static inline void exynos_drm_fbdev_resume(struct drm_device *drm)
49 {
50 }
51
52 #endif
53
54 #endif