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 struct drm_i915_private; 13 struct intel_fbdev; 14 struct intel_framebuffer; 15 16 #ifdef CONFIG_DRM_FBDEV_EMULATION 17 void intel_fbdev_setup(struct drm_i915_private *dev_priv); 18 void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronous); 19 struct intel_framebuffer *intel_fbdev_framebuffer(struct intel_fbdev *fbdev); 20 struct i915_vma *intel_fbdev_vma_pointer(struct intel_fbdev *fbdev); 21 22 #else 23 static inline void intel_fbdev_setup(struct drm_i915_private *dev_priv) 24 { 25 } 26 27 static inline void intel_fbdev_set_suspend(struct drm_device *dev, int state, bool synchronous) 28 { 29 } 30 31 static inline struct intel_framebuffer *intel_fbdev_framebuffer(struct intel_fbdev *fbdev) 32 { 33 return NULL; 34 } 35 36 static inline struct i915_vma *intel_fbdev_vma_pointer(struct intel_fbdev *fbdev) 37 { 38 return NULL; 39 } 40 41 #endif 42 43 #endif /* __INTEL_FBDEV_H__ */ 44