2 * SPDX-License-Identifier: MIT
4 * Copyright © 2014-2018 Intel Corporation
7 #ifndef INTEL_GT_BUFFER_POOL_TYPES_H
8 #define INTEL_GT_BUFFER_POOL_TYPES_H
10 #include <linux/list.h>
11 #include <linux/spinlock.h>
12 #include <linux/workqueue.h>
14 #include "i915_active_types.h"
16 struct drm_i915_gem_object;
18 struct intel_gt_buffer_pool {
20 struct list_head cache_list[4];
21 struct delayed_work work;
24 struct intel_gt_buffer_pool_node {
25 struct i915_active active;
26 struct drm_i915_gem_object *obj;
27 struct list_head link;
29 struct intel_gt_buffer_pool *pool;
30 struct intel_gt_buffer_pool_node *free;
36 #endif /* INTEL_GT_BUFFER_POOL_TYPES_H */