root/drivers/gpu/drm/i915/gt/intel_engine_pool_types.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * SPDX-License-Identifier: MIT
   3  *
   4  * Copyright © 2014-2018 Intel Corporation
   5  */
   6 
   7 #ifndef INTEL_ENGINE_POOL_TYPES_H
   8 #define INTEL_ENGINE_POOL_TYPES_H
   9 
  10 #include <linux/list.h>
  11 #include <linux/spinlock.h>
  12 
  13 #include "i915_active_types.h"
  14 
  15 struct drm_i915_gem_object;
  16 
  17 struct intel_engine_pool {
  18         spinlock_t lock;
  19         struct list_head cache_list[4];
  20 };
  21 
  22 struct intel_engine_pool_node {
  23         struct i915_active active;
  24         struct drm_i915_gem_object *obj;
  25         struct list_head link;
  26         struct intel_engine_pool *pool;
  27 };
  28 
  29 #endif /* INTEL_ENGINE_POOL_TYPES_H */

/* [<][>][^][v][top][bottom][index][help] */