drivers/gpu/drm/nouveau/nvkm/subdev/fuse/gm107.c

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/nouveau/nvkm/subdev/fuse/gm107.c

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/nouveau/nvkm/subdev/fuse/gm107.c
Extension
.c
Size
1668 bytes
Lines
49
Domain
Driver Families
Bucket
drivers/gpu
Inferred role
Driver Families: implementation source
Status
source implementation candidate

Why This File Exists

Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.

Dependency Surface

Detected Declarations

Annotated Snippet

#include "priv.h"

#include <subdev/gsp.h>

static u32
gm107_fuse_read(struct nvkm_fuse *fuse, u32 addr)
{
	struct nvkm_device *device = fuse->subdev.device;
	return nvkm_rd32(device, 0x021100 + addr);
}

static const struct nvkm_fuse_func
gm107_fuse = {
	.read = gm107_fuse_read,
};

int
gm107_fuse_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
	       struct nvkm_fuse **pfuse)
{
	if (nvkm_gsp_rm(device->gsp))
		return -ENODEV;

	return nvkm_fuse_new_(&gm107_fuse, device, type, inst, pfuse);
}

Annotation

Implementation Notes