1 #ifndef __NOUVEAU_FUSE_H__
2 #define __NOUVEAU_FUSE_H__
3 
4 #include <core/subdev.h>
5 #include <core/device.h>
6 
7 struct nouveau_fuse {
8 	struct nouveau_subdev base;
9 };
10 
11 static inline struct nouveau_fuse *
12 nouveau_fuse(void *obj)
13 {
14 	return (void *)nouveau_subdev(obj, NVDEV_SUBDEV_FUSE);
15 }
16 
17 #define nouveau_fuse_create(p, e, o, d)                                        \
18 	nouveau_fuse_create_((p), (e), (o), sizeof(**d), (void **)d)
19 
20 int  nouveau_fuse_create_(struct nouveau_object *, struct nouveau_object *,
21 			  struct nouveau_oclass *, int, void **);
22 void _nouveau_fuse_dtor(struct nouveau_object *);
23 int  _nouveau_fuse_init(struct nouveau_object *);
24 #define _nouveau_fuse_fini _nouveau_subdev_fini
25 
26 extern struct nouveau_oclass g80_fuse_oclass;
27 extern struct nouveau_oclass gf100_fuse_oclass;
28 extern struct nouveau_oclass gm107_fuse_oclass;
29 
30 #endif
31