Linux Audio

Check our new training course

Loading...
v5.14.15
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * omap_fbdev.h -- OMAP DRM FBDEV Compatibility
 4 *
 5 * Copyright (C) 2011 Texas Instruments
 6 * Author: Rob Clark <rob@ti.com>
 7 */
 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
16void omap_fbdev_init(struct drm_device *dev);
17void omap_fbdev_fini(struct drm_device *dev);
 
 
 
18#else
19static inline void omap_fbdev_init(struct drm_device *dev)
20{
21}
22static inline void omap_fbdev_fini(struct drm_device *dev)
23{
24}
25#endif
26
27#endif /* __OMAPDRM_FBDEV_H__ */
v6.13.7
 1/* SPDX-License-Identifier: GPL-2.0-only */
 2/*
 3 * omap_fbdev.h -- OMAP DRM FBDEV Compatibility
 4 *
 5 * Copyright (C) 2011 Texas Instruments
 6 * Author: Rob Clark <rob@ti.com>
 7 */
 8
 9#ifndef __OMAPDRM_FBDEV_H__
10#define __OMAPDRM_FBDEV_H__
11
12struct drm_device;
13struct drm_fb_helper;
14struct drm_fb_helper_surface_size;
15
16#ifdef CONFIG_DRM_FBDEV_EMULATION
17int omap_fbdev_driver_fbdev_probe(struct drm_fb_helper *helper,
18				  struct drm_fb_helper_surface_size *sizes);
19#define OMAP_FBDEV_DRIVER_OPS \
20	.fbdev_probe = omap_fbdev_driver_fbdev_probe
21void omap_fbdev_setup(struct drm_device *dev);
22#else
23#define OMAP_FBDEV_DRIVER_OPS \
24	.fbdev_probe = NULL
25static inline void omap_fbdev_setup(struct drm_device *dev)
 
26{
27}
28#endif
29
30#endif /* __OMAPDRM_FBDEV_H__ */