2 * SPDX-License-Identifier: MIT
4 * Copyright © 2019 Intel Corporation
7 #ifndef _I915_ACTIVE_TYPES_H_
8 #define _I915_ACTIVE_TYPES_H_
10 #include <linux/rbtree.h>
11 #include <linux/rcupdate.h>
13 struct drm_i915_private
;
14 struct i915_active_request
;
17 typedef void (*i915_active_retire_fn
)(struct i915_active_request
*,
18 struct i915_request
*);
20 struct i915_active_request
{
21 struct i915_request __rcu
*request
;
22 struct list_head link
;
23 i915_active_retire_fn retire
;
27 struct drm_i915_private
*i915
;
30 struct i915_active_request last
;
33 void (*retire
)(struct i915_active
*ref
);
36 #endif /* _I915_ACTIVE_TYPES_H_ */