xref: /linux/drivers/gpu/drm/nouveau/nvkm/subdev/fuse/priv.h (revision 03b0f2ce735e97e9f49790d4563c82515b8fa702)
1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NVKM_FUSE_PRIV_H__
3 #define __NVKM_FUSE_PRIV_H__
4 #define nvkm_fuse(p) container_of((p), struct nvkm_fuse, subdev)
5 #include <subdev/fuse.h>
6 
7 struct nvkm_fuse_func {
8 	u32 (*read)(struct nvkm_fuse *, u32 addr);
9 };
10 
11 int nvkm_fuse_new_(const struct nvkm_fuse_func *, struct nvkm_device *,
12 		   int index, struct nvkm_fuse **);
13 #endif
14