xref: /linux/drivers/gpu/drm/i915/display/intel_fb_bo.h (revision cdd30ebb1b9f36159d66f088b61aee264e649d7a)
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_gem_object;
11 struct drm_i915_private;
12 struct drm_mode_fb_cmd2;
13 struct intel_framebuffer;
14 
15 void intel_fb_bo_framebuffer_fini(struct drm_gem_object *obj);
16 
17 int intel_fb_bo_framebuffer_init(struct intel_framebuffer *intel_fb,
18 				 struct drm_gem_object *obj,
19 				 struct drm_mode_fb_cmd2 *mode_cmd);
20 
21 struct drm_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