xref: /netbsd-src/sys/external/bsd/drm2/dist/drm/i915/i915_user_extensions.h (revision 41ec02673d281bbb3d38e6c78504ce6e30c228c1)
1 /*	$NetBSD: i915_user_extensions.h,v 1.2 2021/12/18 23:45:28 riastradh Exp $	*/
2 
3 /*
4  * SPDX-License-Identifier: MIT
5  *
6  * Copyright © 2018 Intel Corporation
7  */
8 
9 #ifndef I915_USER_EXTENSIONS_H
10 #define I915_USER_EXTENSIONS_H
11 
12 struct i915_user_extension;
13 
14 typedef int (*i915_user_extension_fn)(struct i915_user_extension __user *ext,
15 				      void *data);
16 
17 int i915_user_extensions(struct i915_user_extension __user *ext,
18 			 const i915_user_extension_fn *tbl,
19 			 unsigned int count,
20 			 void *data);
21 
22 #endif /* I915_USER_EXTENSIONS_H */
23