i915_globals.h 476 字节
Newer Older
1 2 3 4 5 6 7 8 9
/*
 * SPDX-License-Identifier: MIT
 *
 * Copyright © 2019 Intel Corporation
 */

#ifndef _I915_GLOBALS_H_
#define _I915_GLOBALS_H_

10 11
#include <linux/types.h>

12 13 14 15 16 17 18 19 20 21
typedef void (*i915_global_func_t)(void);

struct i915_global {
	struct list_head link;

	i915_global_func_t exit;
};

void i915_global_register(struct i915_global *global);

22 23 24
int i915_globals_init(void);
void i915_globals_exit(void);

25 26 27
/* constructors */
int i915_global_vma_init(void);

28
#endif /* _I915_GLOBALS_H_ */