drivers/gpu/drm/nouveau/nvkm/subdev/devinit/tu102.c

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

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/nouveau/nvkm/subdev/devinit/tu102.c
Extension
.c
Size
3074 bytes
Lines
109
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

if (nvkm_rd32(device, 0x118128) & 0x00000001) {
			if ((nvkm_rd32(device, 0x118234) & 0x000000ff) == 0xff)
				return 0;
		}

		usleep_range(1000, 2000);
	} while (timeout--);

	return -ETIMEDOUT;
}

int
tu102_devinit_post(struct nvkm_devinit *init, bool post)
{
	return tu102_devinit_wait(init->subdev.device);
}

static const struct nvkm_devinit_func
tu102_devinit = {
	.init = nv50_devinit_init,
	.post = tu102_devinit_post,
	.pll_set = tu102_devinit_pll_set,
	.disable = gm107_devinit_disable,
};

int
tu102_devinit_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
		  struct nvkm_devinit **pinit)
{
	if (nvkm_gsp_rm(device->gsp))
		return r535_devinit_new(&tu102_devinit, device, type, inst, pinit);

	return nv50_devinit_new_(&tu102_devinit, device, type, inst, pinit);
}

Annotation

Implementation Notes