1 /* SPDX-License-Identifier: MIT */
3 * Copyright © 2019 Intel Corporation
6 #ifndef __INTEL_FBDEV_H__
7 #define __INTEL_FBDEV_H__
9 #include <linux/types.h>
12 struct drm_i915_private;
14 struct intel_framebuffer;
16 #ifdef CONFIG_DRM_FBDEV_EMULATION
17 void intel_fbdev_setup(struct drm_i915_private *dev_priv);
18 void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronous);
19 struct intel_framebuffer *intel_fbdev_framebuffer(struct intel_fbdev *fbdev);
21 static inline void intel_fbdev_setup(struct drm_i915_private *dev_priv)
25 static inline void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronous)
29 static inline struct intel_framebuffer *intel_fbdev_framebuffer(struct intel_fbdev *fbdev)
35 #endif /* __INTEL_FBDEV_H__ */