0001
0002
0003
0004
0005
0006 #ifndef __I915_GEM_EVICT_H__
0007 #define __I915_GEM_EVICT_H__
0008
0009 #include <linux/types.h>
0010
0011 struct drm_mm_node;
0012 struct i915_address_space;
0013 struct i915_gem_ww_ctx;
0014
0015 int __must_check i915_gem_evict_something(struct i915_address_space *vm,
0016 struct i915_gem_ww_ctx *ww,
0017 u64 min_size, u64 alignment,
0018 unsigned long color,
0019 u64 start, u64 end,
0020 unsigned flags);
0021 int __must_check i915_gem_evict_for_node(struct i915_address_space *vm,
0022 struct i915_gem_ww_ctx *ww,
0023 struct drm_mm_node *node,
0024 unsigned int flags);
0025 int i915_gem_evict_vm(struct i915_address_space *vm,
0026 struct i915_gem_ww_ctx *ww);
0027
0028 #endif