1 /* SPDX-License-Identifier: MIT */ 2 /* 3 * Copyright © 2021 Intel Corporation 4 */ 5 6 #ifndef __INTEL_DPT_H__ 7 #define __INTEL_DPT_H__ 8 9 #include <linux/types.h> 10 11 struct drm_i915_private; 12 13 struct i915_address_space; 14 struct i915_vma; 15 struct intel_framebuffer; 16 17 void intel_dpt_destroy(struct i915_address_space *vm); 18 struct i915_vma *intel_dpt_pin_to_ggtt(struct i915_address_space *vm, 19 unsigned int alignment); 20 void intel_dpt_unpin_from_ggtt(struct i915_address_space *vm); 21 void intel_dpt_suspend(struct drm_i915_private *i915); 22 void intel_dpt_resume(struct drm_i915_private *i915); 23 struct i915_address_space * 24 intel_dpt_create(struct intel_framebuffer *fb); 25 u64 intel_dpt_offset(struct i915_vma *dpt_vma); 26 27 #endif /* __INTEL_DPT_H__ */ 28