Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 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 | * |
Inki Dae | d81aecb | 2012-12-18 02:30:17 +0900 | [diff] [blame] | 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. |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 13 | */ |
| 14 | |
| 15 | #ifndef _EXYNOS_DRM_FBDEV_H_ |
| 16 | #define _EXYNOS_DRM_FBDEV_H_ |
| 17 | |
Andrzej Hajda | 9b988a0 | 2016-03-15 12:43:21 +0100 | [diff] [blame] | 18 | #ifdef CONFIG_DRM_FBDEV_EMULATION |
| 19 | |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 20 | int exynos_drm_fbdev_init(struct drm_device *dev); |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 21 | void exynos_drm_fbdev_fini(struct drm_device *dev); |
| 22 | void exynos_drm_fbdev_restore_mode(struct drm_device *dev); |
Andrzej Hajda | 9b988a0 | 2016-03-15 12:43:21 +0100 | [diff] [blame] | 23 | void exynos_drm_output_poll_changed(struct drm_device *dev); |
| 24 | |
| 25 | #else |
| 26 | |
| 27 | static inline int exynos_drm_fbdev_init(struct drm_device *dev) |
| 28 | { |
| 29 | return 0; |
| 30 | } |
| 31 | |
| 32 | static inline void exynos_drm_fbdev_fini(struct drm_device *dev) |
| 33 | { |
| 34 | } |
| 35 | |
| 36 | static inline void exynos_drm_fbdev_restore_mode(struct drm_device *dev) |
| 37 | { |
| 38 | } |
| 39 | |
| 40 | #define exynos_drm_output_poll_changed (NULL) |
| 41 | |
| 42 | #endif |
Inki Dae | 1c248b7 | 2011-10-04 19:19:01 +0900 | [diff] [blame] | 43 | |
| 44 | #endif |