1 /* SPDX-License-Identifier: MIT */
3 * Copyright © 2021 Intel Corporation
6 #ifndef __I915_GEM_EVICT_H__
7 #define __I915_GEM_EVICT_H__
9 #include <linux/types.h>
12 struct i915_address_space;
13 struct i915_gem_ww_ctx;
14 struct drm_i915_gem_object;
16 int __must_check i915_gem_evict_something(struct i915_address_space *vm,
17 struct i915_gem_ww_ctx *ww,
18 u64 min_size, u64 alignment,
22 int __must_check i915_gem_evict_for_node(struct i915_address_space *vm,
23 struct i915_gem_ww_ctx *ww,
24 struct drm_mm_node *node,
26 int i915_gem_evict_vm(struct i915_address_space *vm,
27 struct i915_gem_ww_ctx *ww,
28 struct drm_i915_gem_object **busy_bo);
30 #endif /* __I915_GEM_EVICT_H__ */