Home | History | Annotate | Line # | Download | only in gt
      1 /*	$NetBSD: intel_engine_pool_types.h,v 1.2 2021/12/18 23:45:30 riastradh Exp $	*/
      2 
      3 /*
      4  * SPDX-License-Identifier: MIT
      5  *
      6  * Copyright  2014-2018 Intel Corporation
      7  */
      8 
      9 #ifndef INTEL_ENGINE_POOL_TYPES_H
     10 #define INTEL_ENGINE_POOL_TYPES_H
     11 
     12 #include <linux/list.h>
     13 #include <linux/spinlock.h>
     14 
     15 #include "i915_active_types.h"
     16 
     17 struct drm_i915_gem_object;
     18 
     19 struct intel_engine_pool {
     20 	spinlock_t lock;
     21 	struct list_head cache_list[4];
     22 };
     23 
     24 struct intel_engine_pool_node {
     25 	struct i915_active active;
     26 	struct drm_i915_gem_object *obj;
     27 	struct list_head link;
     28 	struct intel_engine_pool *pool;
     29 };
     30 
     31 #endif /* INTEL_ENGINE_POOL_TYPES_H */
     32