0001
0002
0003
0004
0005
0006 #ifndef __INTEL_FBDEV_H__
0007 #define __INTEL_FBDEV_H__
0008
0009 #include <linux/types.h>
0010
0011 struct drm_device;
0012 struct drm_i915_private;
0013 struct intel_fbdev;
0014 struct intel_framebuffer;
0015
0016 #ifdef CONFIG_DRM_FBDEV_EMULATION
0017 int intel_fbdev_init(struct drm_device *dev);
0018 void intel_fbdev_initial_config_async(struct drm_device *dev);
0019 void intel_fbdev_unregister(struct drm_i915_private *dev_priv);
0020 void intel_fbdev_fini(struct drm_i915_private *dev_priv);
0021 void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronous);
0022 void intel_fbdev_output_poll_changed(struct drm_device *dev);
0023 void intel_fbdev_restore_mode(struct drm_device *dev);
0024 struct intel_framebuffer *intel_fbdev_framebuffer(struct intel_fbdev *fbdev);
0025 #else
0026 static inline int intel_fbdev_init(struct drm_device *dev)
0027 {
0028 return 0;
0029 }
0030
0031 static inline void intel_fbdev_initial_config_async(struct drm_device *dev)
0032 {
0033 }
0034
0035 static inline void intel_fbdev_unregister(struct drm_i915_private *dev_priv)
0036 {
0037 }
0038
0039 static inline void intel_fbdev_fini(struct drm_i915_private *dev_priv)
0040 {
0041 }
0042
0043 static inline void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronous)
0044 {
0045 }
0046
0047 static inline void intel_fbdev_output_poll_changed(struct drm_device *dev)
0048 {
0049 }
0050
0051 static inline void intel_fbdev_restore_mode(struct drm_device *dev)
0052 {
0053 }
0054 static inline struct intel_framebuffer *intel_fbdev_framebuffer(struct intel_fbdev *fbdev)
0055 {
0056 return NULL;
0057 }
0058 #endif
0059
0060 #endif