brintos

brintos / linux-shallow public Read only

0
0
Text · 703 B · ac0319b Raw
30 lines · c
1/* SPDX-License-Identifier: MIT */2/*3 * Copyright © 2021 Intel Corporation4 */5 6#ifndef __INTEL_FB_PIN_H__7#define __INTEL_FB_PIN_H__8 9#include <linux/types.h>10 11struct drm_framebuffer;12struct i915_vma;13struct intel_plane_state;14struct i915_gtt_view;15 16struct i915_vma *17intel_fb_pin_to_ggtt(const struct drm_framebuffer *fb,18		     const struct i915_gtt_view *view,19		     unsigned int alignment,20		     unsigned int phys_alignment,21		     bool uses_fence,22		     unsigned long *out_flags);23 24void intel_fb_unpin_vma(struct i915_vma *vma, unsigned long flags);25 26int intel_plane_pin_fb(struct intel_plane_state *plane_state);27void intel_plane_unpin_fb(struct intel_plane_state *old_plane_state);28 29#endif30