Home | History | Annotate | Line # | Download | only in display
      1 /*	$NetBSD: intel_fbdev.h,v 1.2 2021/12/18 23:45:30 riastradh Exp $	*/
      2 
      3 /* SPDX-License-Identifier: MIT */
      4 /*
      5  * Copyright  2019 Intel Corporation
      6  */
      7 
      8 #ifndef __INTEL_FBDEV_H__
      9 #define __INTEL_FBDEV_H__
     10 
     11 #include <linux/types.h>
     12 
     13 struct drm_device;
     14 struct drm_i915_private;
     15 
     16 #ifdef CONFIG_DRM_FBDEV_EMULATION
     17 int intel_fbdev_init(struct drm_device *dev);
     18 void intel_fbdev_initial_config_async(struct drm_device *dev);
     19 void intel_fbdev_unregister(struct drm_i915_private *dev_priv);
     20 void intel_fbdev_fini(struct drm_i915_private *dev_priv);
     21 void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronous);
     22 void intel_fbdev_output_poll_changed(struct drm_device *dev);
     23 void intel_fbdev_restore_mode(struct drm_device *dev);
     24 #else
     25 static inline int intel_fbdev_init(struct drm_device *dev)
     26 {
     27 	return 0;
     28 }
     29 
     30 static inline void intel_fbdev_initial_config_async(struct drm_device *dev)
     31 {
     32 }
     33 
     34 static inline void intel_fbdev_unregister(struct drm_i915_private *dev_priv)
     35 {
     36 }
     37 
     38 static inline void intel_fbdev_fini(struct drm_i915_private *dev_priv)
     39 {
     40 }
     41 
     42 static inline void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronous)
     43 {
     44 }
     45 
     46 static inline void intel_fbdev_output_poll_changed(struct drm_device *dev)
     47 {
     48 }
     49 
     50 static inline void intel_fbdev_restore_mode(struct drm_device *dev)
     51 {
     52 }
     53 #endif
     54 
     55 #endif /* __INTEL_FBDEV_H__ */
     56