2 * SPDX-License-Identifier: MIT
4 * Copyright © 2014-2018 Intel Corporation
7 #ifndef INTEL_ENGINE_POOL_H
8 #define INTEL_ENGINE_POOL_H
10 #include "intel_engine_pool_types.h"
11 #include "i915_active.h"
12 #include "i915_request.h"
14 struct intel_engine_pool_node
*
15 intel_engine_get_pool(struct intel_engine_cs
*engine
, size_t size
);
18 intel_engine_pool_mark_active(struct intel_engine_pool_node
*node
,
19 struct i915_request
*rq
)
21 return i915_active_add_request(&node
->active
, rq
);
25 intel_engine_pool_put(struct intel_engine_pool_node
*node
)
27 i915_active_release(&node
->active
);
30 void intel_engine_pool_init(struct intel_engine_pool
*pool
);
31 void intel_engine_pool_park(struct intel_engine_pool
*pool
);
32 void intel_engine_pool_fini(struct intel_engine_pool
*pool
);
34 #endif /* INTEL_ENGINE_POOL_H */