1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2019 Intel Corporation 4 */ 5 6 #ifndef __INTEL_FBDEV_H__ 7 #define __INTEL_FBDEV_H__ 8 9 #include <linux/types.h> 10 11 struct drm_device; 12 #define drm_i915_private inteldrm_softc 13 struct drm_i915_private; 14 struct intel_fbdev; 15 struct intel_framebuffer; 16 17 #ifdef CONFIG_DRM_FBDEV_EMULATION 18 void intel_fbdev_setup(struct drm_i915_private *dev_priv); 19 void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronous); 20 struct intel_framebuffer *intel_fbdev_framebuffer(struct intel_fbdev *fbdev); 21 #else intel_fbdev_setup(struct drm_i915_private * dev_priv)22static inline void intel_fbdev_setup(struct drm_i915_private *dev_priv) 23 { 24 } 25 intel_fbdev_set_suspend(struct drm_device * dev,int state,bool synchronous)26static inline void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronous) 27 { 28 } 29 intel_fbdev_framebuffer(struct intel_fbdev * fbdev)30static inline struct intel_framebuffer *intel_fbdev_framebuffer(struct intel_fbdev *fbdev) 31 { 32 return NULL; 33 } 34 #endif 35 36 #endif /* __INTEL_FBDEV_H__ */ 37