WIP FPC-III support
[linux/fpc-iii.git] / drivers / gpu / drm / i915 / display / intel_fbdev.h
blobde7c84250eb51259a94a3dc1735bf3bdcbdda092
1 /* SPDX-License-Identifier: MIT */
2 /*
3 * Copyright © 2019 Intel Corporation
4 */
6 #ifndef __INTEL_FBDEV_H__
7 #define __INTEL_FBDEV_H__
9 #include <linux/types.h>
11 struct drm_device;
12 struct drm_i915_private;
14 #ifdef CONFIG_DRM_FBDEV_EMULATION
15 int intel_fbdev_init(struct drm_device *dev);
16 void intel_fbdev_initial_config_async(struct drm_device *dev);
17 void intel_fbdev_unregister(struct drm_i915_private *dev_priv);
18 void intel_fbdev_fini(struct drm_i915_private *dev_priv);
19 void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronous);
20 void intel_fbdev_output_poll_changed(struct drm_device *dev);
21 void intel_fbdev_restore_mode(struct drm_device *dev);
22 #else
23 static inline int intel_fbdev_init(struct drm_device *dev)
25 return 0;
28 static inline void intel_fbdev_initial_config_async(struct drm_device *dev)
32 static inline void intel_fbdev_unregister(struct drm_i915_private *dev_priv)
36 static inline void intel_fbdev_fini(struct drm_i915_private *dev_priv)
40 static inline void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronous)
44 static inline void intel_fbdev_output_poll_changed(struct drm_device *dev)
48 static inline void intel_fbdev_restore_mode(struct drm_device *dev)
51 #endif
53 #endif /* __INTEL_FBDEV_H__ */