Linux Audio

Check our new training course

Loading...
v5.14.15
 1/* SPDX-License-Identifier: MIT */
 2/*
 3 * Copyright © 2019 Intel Corporation
 4 */
 5
 6#ifndef __INTEL_FBDEV_H__
 7#define __INTEL_FBDEV_H__
 8
 9#include <linux/types.h>
10
11struct drm_device;
12struct drm_i915_private;
 
 
13
14#ifdef CONFIG_DRM_FBDEV_EMULATION
15int intel_fbdev_init(struct drm_device *dev);
16void intel_fbdev_initial_config_async(struct drm_device *dev);
17void intel_fbdev_unregister(struct drm_i915_private *dev_priv);
18void intel_fbdev_fini(struct drm_i915_private *dev_priv);
19void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronous);
20void intel_fbdev_output_poll_changed(struct drm_device *dev);
21void intel_fbdev_restore_mode(struct drm_device *dev);
22#else
23static inline int intel_fbdev_init(struct drm_device *dev)
24{
25	return 0;
26}
27
28static inline void intel_fbdev_initial_config_async(struct drm_device *dev)
29{
30}
31
32static inline void intel_fbdev_unregister(struct drm_i915_private *dev_priv)
33{
34}
35
36static inline void intel_fbdev_fini(struct drm_i915_private *dev_priv)
37{
38}
39
40static inline void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronous)
41{
42}
43
44static inline void intel_fbdev_output_poll_changed(struct drm_device *dev)
45{
46}
47
48static inline void intel_fbdev_restore_mode(struct drm_device *dev)
49{
 
50}
51#endif
52
53#endif /* __INTEL_FBDEV_H__ */
v6.13.7
 1/* SPDX-License-Identifier: MIT */
 2/*
 3 * Copyright © 2019 Intel Corporation
 4 */
 5
 6#ifndef __INTEL_FBDEV_H__
 7#define __INTEL_FBDEV_H__
 8
 9#include <linux/types.h>
10
11struct drm_device;
12struct drm_i915_private;
13struct intel_fbdev;
14struct intel_framebuffer;
15
16#ifdef CONFIG_DRM_FBDEV_EMULATION
17void intel_fbdev_setup(struct drm_i915_private *dev_priv);
 
 
 
18void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronous);
19struct intel_framebuffer *intel_fbdev_framebuffer(struct intel_fbdev *fbdev);
 
20#else
21static inline void intel_fbdev_setup(struct drm_i915_private *dev_priv)
 
 
 
 
 
 
 
 
 
 
 
 
 
22{
23}
24
25static inline void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronous)
26{
27}
28
29static inline struct intel_framebuffer *intel_fbdev_framebuffer(struct intel_fbdev *fbdev)
 
 
 
 
30{
31	return NULL;
32}
33#endif
34
35#endif /* __INTEL_FBDEV_H__ */