aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/gpu/drm/i915/gt/intel_engine_pool_types.h
blob: e31ee361b76f7a97dc2639ec48506ea4e3b3ed34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * SPDX-License-Identifier: MIT
 *
 * Copyright © 2014-2018 Intel Corporation
 */

#ifndef INTEL_ENGINE_POOL_TYPES_H
#define INTEL_ENGINE_POOL_TYPES_H

#include <linux/list.h>
#include <linux/spinlock.h>

#include "i915_active_types.h"

struct drm_i915_gem_object;

struct intel_engine_pool {
	spinlock_t lock;
	struct list_head cache_list[4];
};

struct intel_engine_pool_node {
	struct i915_active active;
	struct drm_i915_gem_object *obj;
	struct list_head link;
	struct intel_engine_pool *pool;
};

#endif /* INTEL_ENGINE_POOL_TYPES_H */