2021-10-12 14:34:59 +10:00
|
|
|
/* SPDX-License-Identifier: MIT */
|
|
|
|
/*
|
|
|
|
* Copyright © 2021 Intel Corporation
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __INTEL_FB_PIN_H__
|
|
|
|
#define __INTEL_FB_PIN_H__
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
|
|
struct drm_framebuffer;
|
|
|
|
struct i915_vma;
|
|
|
|
struct intel_plane_state;
|
2022-09-01 11:38:54 -07:00
|
|
|
struct i915_gtt_view;
|
2025-06-24 11:01:11 +02:00
|
|
|
struct iosys_map;
|
2021-10-12 14:34:59 +10:00
|
|
|
|
|
|
|
struct i915_vma *
|
2024-05-06 15:57:18 +03:00
|
|
|
intel_fb_pin_to_ggtt(const struct drm_framebuffer *fb,
|
|
|
|
const struct i915_gtt_view *view,
|
2024-06-12 23:47:06 +03:00
|
|
|
unsigned int alignment,
|
|
|
|
unsigned int phys_alignment,
|
2025-01-22 17:17:53 +02:00
|
|
|
unsigned int vtd_guard,
|
2024-05-06 15:57:18 +03:00
|
|
|
bool uses_fence,
|
|
|
|
unsigned long *out_flags);
|
2021-10-12 14:34:59 +10:00
|
|
|
|
2024-05-06 15:57:18 +03:00
|
|
|
void intel_fb_unpin_vma(struct i915_vma *vma, unsigned long flags);
|
2021-10-12 14:34:59 +10:00
|
|
|
|
2024-12-06 19:20:32 +01:00
|
|
|
int intel_plane_pin_fb(struct intel_plane_state *new_plane_state,
|
|
|
|
const struct intel_plane_state *old_plane_state);
|
2021-10-12 14:34:59 +10:00
|
|
|
void intel_plane_unpin_fb(struct intel_plane_state *old_plane_state);
|
2025-06-24 11:01:11 +02:00
|
|
|
void intel_fb_get_map(struct i915_vma *vma, struct iosys_map *map);
|
2021-10-12 14:34:59 +10:00
|
|
|
|
|
|
|
#endif
|