Merge tag 'io_uring-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git] / drivers / gpu / drm / i915 / i915_globals.h
blobb2f5cd9b9b1a3270af1cbc2b48c58206ab239e28
1 /*
2 * SPDX-License-Identifier: MIT
4 * Copyright © 2019 Intel Corporation
5 */
7 #ifndef _I915_GLOBALS_H_
8 #define _I915_GLOBALS_H_
10 #include <linux/types.h>
12 typedef void (*i915_global_func_t)(void);
14 struct i915_global {
15 struct list_head link;
17 i915_global_func_t shrink;
18 i915_global_func_t exit;
21 void i915_global_register(struct i915_global *global);
23 int i915_globals_init(void);
24 void i915_globals_park(void);
25 void i915_globals_unpark(void);
26 void i915_globals_exit(void);
28 /* constructors */
29 int i915_global_active_init(void);
30 int i915_global_buddy_init(void);
31 int i915_global_context_init(void);
32 int i915_global_gem_context_init(void);
33 int i915_global_objects_init(void);
34 int i915_global_request_init(void);
35 int i915_global_scheduler_init(void);
36 int i915_global_vma_init(void);
38 #endif /* _I915_GLOBALS_H_ */