xref: /netbsd-src/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/fuse/priv.h (revision 41ec02673d281bbb3d38e6c78504ce6e30c228c1)
1 /*	$NetBSD: priv.h,v 1.3 2021/12/18 23:45:39 riastradh Exp $	*/
2 
3 /* SPDX-License-Identifier: MIT */
4 #ifndef __NVKM_FUSE_PRIV_H__
5 #define __NVKM_FUSE_PRIV_H__
6 #define nvkm_fuse(p) container_of((p), struct nvkm_fuse, subdev)
7 #include <subdev/fuse.h>
8 
9 struct nvkm_fuse_func {
10 	u32 (*read)(struct nvkm_fuse *, u32 addr);
11 };
12 
13 int nvkm_fuse_new_(const struct nvkm_fuse_func *, struct nvkm_device *,
14 		   int index, struct nvkm_fuse **);
15 #endif
16