xref: /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/include/nvif/user.h (revision 41ec02673d281bbb3d38e6c78504ce6e30c228c1)
1 /*	$NetBSD: user.h,v 1.2 2021/12/18 23:45:33 riastradh Exp $	*/
2 
3 #ifndef __NVIF_USER_H__
4 #define __NVIF_USER_H__
5 #include <nvif/object.h>
6 struct nvif_device;
7 
8 struct nvif_user {
9 	const struct nvif_user_func *func;
10 	struct nvif_object object;
11 };
12 
13 struct nvif_user_func {
14 	void (*doorbell)(struct nvif_user *, u32 token);
15 };
16 
17 int nvif_user_init(struct nvif_device *);
18 void nvif_user_fini(struct nvif_device *);
19 
20 extern const struct nvif_user_func nvif_userc361;
21 #endif
22