Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: MIT */
0002 /*
0003  * Copyright © 2021 Intel Corporation
0004  */
0005 
0006 #ifndef __INTEL_FB_PIN_H__
0007 #define __INTEL_FB_PIN_H__
0008 
0009 #include <linux/types.h>
0010 
0011 struct drm_framebuffer;
0012 struct i915_vma;
0013 struct intel_plane_state;
0014 struct i915_ggtt_view;
0015 
0016 struct i915_vma *
0017 intel_pin_and_fence_fb_obj(struct drm_framebuffer *fb,
0018                bool phys_cursor,
0019                const struct i915_ggtt_view *view,
0020                bool uses_fence,
0021                unsigned long *out_flags);
0022 
0023 void intel_unpin_fb_vma(struct i915_vma *vma, unsigned long flags);
0024 
0025 int intel_plane_pin_fb(struct intel_plane_state *plane_state);
0026 void intel_plane_unpin_fb(struct intel_plane_state *old_plane_state);
0027 
0028 #endif