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 "gem/i915_gem_object_types.h"
15 #include "i915_active_types.h"
17 struct intel_gt_buffer_pool {
19 struct list_head cache_list[4];
20 struct delayed_work work;
23 struct intel_gt_buffer_pool_node {
24 struct i915_active active;
25 struct drm_i915_gem_object *obj;
26 struct list_head link;
28 struct intel_gt_buffer_pool *pool;
29 struct intel_gt_buffer_pool_node *free;
33 enum i915_map_type type;
36 #endif /* INTEL_GT_BUFFER_POOL_TYPES_H */