Thomas Gleixner | caab277 | 2019-06-03 07:44:50 +0200 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Laurent Pinchart | b556141 | 2017-10-13 17:59:05 +0300 | [diff] [blame] | 2 | /* |
| 3 | * omap_fbdev.h -- OMAP DRM FBDEV Compatibility |
| 4 | * |
| 5 | * Copyright (C) 2011 Texas Instruments |
| 6 | * Author: Rob Clark <rob@ti.com> |
Laurent Pinchart | b556141 | 2017-10-13 17:59:05 +0300 | [diff] [blame] | 7 | */ |
| 8 | |
| 9 | #ifndef __OMAPDRM_FBDEV_H__ |
| 10 | #define __OMAPDRM_FBDEV_H__ |
| 11 | |
| 12 | struct drm_device; |
| 13 | struct drm_fb_helper; |
| 14 | |
| 15 | #ifdef CONFIG_DRM_FBDEV_EMULATION |
Tomi Valkeinen | efd1f06 | 2018-02-09 09:36:23 +0200 | [diff] [blame] | 16 | void omap_fbdev_init(struct drm_device *dev); |
| 17 | void omap_fbdev_fini(struct drm_device *dev); |
Laurent Pinchart | b556141 | 2017-10-13 17:59:05 +0300 | [diff] [blame] | 18 | #else |
Tomi Valkeinen | efd1f06 | 2018-02-09 09:36:23 +0200 | [diff] [blame] | 19 | static inline void omap_fbdev_init(struct drm_device *dev) |
Laurent Pinchart | b556141 | 2017-10-13 17:59:05 +0300 | [diff] [blame] | 20 | { |
Laurent Pinchart | b556141 | 2017-10-13 17:59:05 +0300 | [diff] [blame] | 21 | } |
Tomi Valkeinen | efd1f06 | 2018-02-09 09:36:23 +0200 | [diff] [blame] | 22 | static inline void omap_fbdev_fini(struct drm_device *dev) |
Laurent Pinchart | b556141 | 2017-10-13 17:59:05 +0300 | [diff] [blame] | 23 | { |
| 24 | } |
| 25 | #endif |
| 26 | |
| 27 | #endif /* __OMAPDRM_FBDEV_H__ */ |