drm/i915: move I915_COLOR_UNEVICTABLE to i915_gem_gtt.h

Declutter i915_drv.h.

Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Acked-by: Nirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230118131538.3558599-6-jani.nikula@intel.com
This commit is contained in:
Jani Nikula 2023-01-18 15:15:37 +02:00 committed by Junxiao Chang
parent 63aa8a941e
commit 49b9e9a64d
2 changed files with 2 additions and 2 deletions

View File

@ -67,8 +67,6 @@
struct drm_i915_clock_gating_funcs; struct drm_i915_clock_gating_funcs;
struct vlv_s0ix_state; struct vlv_s0ix_state;
#define I915_COLOR_UNEVICTABLE (-1) /* a non-vma sharing the address space */
#define GEM_QUIRK_PIN_SWIZZLED_PAGES BIT(0) #define GEM_QUIRK_PIN_SWIZZLED_PAGES BIT(0)
/* Data Stolen Memory (DSM) aka "i915 stolen memory" */ /* Data Stolen Memory (DSM) aka "i915 stolen memory" */

View File

@ -18,6 +18,8 @@ struct drm_i915_gem_object;
struct i915_address_space; struct i915_address_space;
struct i915_gem_ww_ctx; struct i915_gem_ww_ctx;
#define I915_COLOR_UNEVICTABLE (-1) /* a non-vma sharing the address space */
int __must_check i915_gem_gtt_prepare_pages(struct drm_i915_gem_object *obj, int __must_check i915_gem_gtt_prepare_pages(struct drm_i915_gem_object *obj,
struct sg_table *pages); struct sg_table *pages);
void i915_gem_gtt_finish_pages(struct drm_i915_gem_object *obj, void i915_gem_gtt_finish_pages(struct drm_i915_gem_object *obj,