blob: 74a68a5a6eab92e5b94fc267d70d505e7d078a2e [file] [log] [blame]
Thomas Gleixnercaab2772019-06-03 07:44:50 +02001/* SPDX-License-Identifier: GPL-2.0-only */
Laurent Pinchartb5561412017-10-13 17:59:05 +03002/*
3 * omap_fbdev.h -- OMAP DRM FBDEV Compatibility
4 *
5 * Copyright (C) 2011 Texas Instruments
6 * Author: Rob Clark <rob@ti.com>
Laurent Pinchartb5561412017-10-13 17:59:05 +03007 */
8
9#ifndef __OMAPDRM_FBDEV_H__
10#define __OMAPDRM_FBDEV_H__
11
12struct drm_device;
13struct drm_fb_helper;
14
15#ifdef CONFIG_DRM_FBDEV_EMULATION
Tomi Valkeinenefd1f062018-02-09 09:36:23 +020016void omap_fbdev_init(struct drm_device *dev);
17void omap_fbdev_fini(struct drm_device *dev);
Laurent Pinchartb5561412017-10-13 17:59:05 +030018#else
Tomi Valkeinenefd1f062018-02-09 09:36:23 +020019static inline void omap_fbdev_init(struct drm_device *dev)
Laurent Pinchartb5561412017-10-13 17:59:05 +030020{
Laurent Pinchartb5561412017-10-13 17:59:05 +030021}
Tomi Valkeinenefd1f062018-02-09 09:36:23 +020022static inline void omap_fbdev_fini(struct drm_device *dev)
Laurent Pinchartb5561412017-10-13 17:59:05 +030023{
24}
25#endif
26
27#endif /* __OMAPDRM_FBDEV_H__ */