blob: 7dfd843f73f19fae0f65540de9ee0550eed8db30 [file] [log] [blame]
Laurent Pinchartb5561412017-10-13 17:59:05 +03001/*
2 * omap_fbdev.h -- OMAP DRM FBDEV Compatibility
3 *
4 * Copyright (C) 2011 Texas Instruments
5 * Author: Rob Clark <rob@ti.com>
6 *
7 * This program is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License version 2 as published by
9 * the Free Software Foundation.
10 *
11 * This program is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * more details.
15 *
16 * You should have received a copy of the GNU General Public License along with
17 * this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef __OMAPDRM_FBDEV_H__
21#define __OMAPDRM_FBDEV_H__
22
23struct drm_device;
24struct drm_fb_helper;
25
26#ifdef CONFIG_DRM_FBDEV_EMULATION
Tomi Valkeinenefd1f062018-02-09 09:36:23 +020027void omap_fbdev_init(struct drm_device *dev);
28void omap_fbdev_fini(struct drm_device *dev);
Laurent Pinchartb5561412017-10-13 17:59:05 +030029#else
Tomi Valkeinenefd1f062018-02-09 09:36:23 +020030static inline void omap_fbdev_init(struct drm_device *dev)
Laurent Pinchartb5561412017-10-13 17:59:05 +030031{
Laurent Pinchartb5561412017-10-13 17:59:05 +030032}
Tomi Valkeinenefd1f062018-02-09 09:36:23 +020033static inline void omap_fbdev_fini(struct drm_device *dev)
Laurent Pinchartb5561412017-10-13 17:59:05 +030034{
35}
36#endif
37
38#endif /* __OMAPDRM_FBDEV_H__ */