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