1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2021 Intel Corporation 4 */ 5 6 #ifndef __INTEL_FB_BO_H__ 7 #define __INTEL_FB_BO_H__ 8 9 struct drm_file; 10 struct drm_mode_fb_cmd2; 11 struct drm_i915_private; 12 struct intel_framebuffer; 13 struct xe_bo; 14 15 void intel_fb_bo_framebuffer_fini(struct xe_bo *bo); 16 int intel_fb_bo_framebuffer_init(struct intel_framebuffer *intel_fb, 17 struct xe_bo *bo, 18 struct drm_mode_fb_cmd2 *mode_cmd); 19 20 struct xe_bo *intel_fb_bo_lookup_valid_bo(struct drm_i915_private *i915, 21 struct drm_file *filp, 22 const struct drm_mode_fb_cmd2 *mode_cmd); 23 24 #endif 25