vt: vt_ioctl: fix VT_DISALLOCATE freeing in-use virtual console
[linux/fpc-iii.git] / drivers / gpu / drm / i915 / i915_gem_batch_pool.h
blob56947daaaf65b68c62e9635be51207fddf531f69
1 /*
2 * SPDX-License-Identifier: MIT
4 * Copyright © 2014-2018 Intel Corporation
5 */
7 #ifndef I915_GEM_BATCH_POOL_H
8 #define I915_GEM_BATCH_POOL_H
10 #include <linux/types.h>
12 struct intel_engine_cs;
14 struct i915_gem_batch_pool {
15 struct intel_engine_cs *engine;
16 struct list_head cache_list[4];
19 void i915_gem_batch_pool_init(struct i915_gem_batch_pool *pool,
20 struct intel_engine_cs *engine);
21 void i915_gem_batch_pool_fini(struct i915_gem_batch_pool *pool);
22 struct drm_i915_gem_object*
23 i915_gem_batch_pool_get(struct i915_gem_batch_pool *pool, size_t size);
25 #endif /* I915_GEM_BATCH_POOL_H */