xref: /linux/drivers/gpu/drm/i915/display/intel_fb_bo.h (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
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_gem_object;
12 struct drm_i915_private;
13 struct intel_framebuffer;
14 
15 void intel_fb_bo_framebuffer_fini(struct drm_i915_gem_object *obj);
16 
17 int intel_fb_bo_framebuffer_init(struct intel_framebuffer *intel_fb,
18 				 struct drm_i915_gem_object *obj,
19 				 struct drm_mode_fb_cmd2 *mode_cmd);
20 
21 struct drm_i915_gem_object *
22 intel_fb_bo_lookup_valid_bo(struct drm_i915_private *i915,
23 			    struct drm_file *filp,
24 			    const struct drm_mode_fb_cmd2 *user_mode_cmd);
25 
26 #endif
27