Linux 4.9.243
[linux/fpc-iii.git] / drivers / gpu / drm / exynos / exynos_drm_fbdev.h
blob330eef87f7180b1b726ff41933874a6568b0474d
1 /*
2 * Copyright (c) 2011 Samsung Electronics Co., Ltd.
4 * Authors:
5 * Inki Dae <inki.dae@samsung.com>
6 * Joonyoung Shim <jy0922.shim@samsung.com>
7 * Seung-Woo Kim <sw0312.kim@samsung.com>
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.
15 #ifndef _EXYNOS_DRM_FBDEV_H_
16 #define _EXYNOS_DRM_FBDEV_H_
18 #ifdef CONFIG_DRM_FBDEV_EMULATION
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);
25 #else
27 static inline int exynos_drm_fbdev_init(struct drm_device *dev)
29 return 0;
32 static inline void exynos_drm_fbdev_fini(struct drm_device *dev)
36 static inline void exynos_drm_fbdev_restore_mode(struct drm_device *dev)
40 #define exynos_drm_output_poll_changed (NULL)
42 #endif
44 #endif