1 /* SPDX-License-Identifier: MIT */
3 * Copyright © 2021 Intel Corporation
6 #ifndef __INTEL_FB_PIN_H__
7 #define __INTEL_FB_PIN_H__
9 #include <linux/types.h>
11 struct drm_framebuffer;
13 struct intel_plane_state;
17 intel_pin_and_fence_fb_obj(struct drm_framebuffer *fb,
19 const struct i915_gtt_view *view,
21 unsigned long *out_flags);
23 void intel_unpin_fb_vma(struct i915_vma *vma, unsigned long flags);
25 int intel_plane_pin_fb(struct intel_plane_state *plane_state);
26 void intel_plane_unpin_fb(struct intel_plane_state *old_plane_state);