xref: /linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/fuse.h (revision 0883c2c06fb5bcf5b9e008270827e63c09a88c1e)
1 #ifndef __NVKM_FUSE_H__
2 #define __NVKM_FUSE_H__
3 #include <core/subdev.h>
4 
5 struct nvkm_fuse {
6 	const struct nvkm_fuse_func *func;
7 	struct nvkm_subdev subdev;
8 	spinlock_t lock;
9 };
10 
11 u32 nvkm_fuse_read(struct nvkm_fuse *, u32 addr);
12 
13 int nv50_fuse_new(struct nvkm_device *, int, struct nvkm_fuse **);
14 int gf100_fuse_new(struct nvkm_device *, int, struct nvkm_fuse **);
15 int gm107_fuse_new(struct nvkm_device *, int, struct nvkm_fuse **);
16 #endif
17