drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/client.c

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/client.c

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/client.c
Extension
.c
Size
614 bytes
Lines
29
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 <rm/rm.h>

#include "nvrm/client.h"

static int
r570_gsp_client_ctor(struct nvkm_gsp_client *client, u32 handle)
{
	NV0000_ALLOC_PARAMETERS *args;

	args = nvkm_gsp_rm_alloc_get(&client->object, handle, NV01_ROOT, sizeof(*args),
				     &client->object);
	if (IS_ERR(args))
		return PTR_ERR(args);

	args->hClient = client->object.handle;
	args->processID = ~0;

	return nvkm_gsp_rm_alloc_wr(&client->object, args);
}

const struct nvkm_rm_api_client
r570_client = {
	.ctor = r570_gsp_client_ctor,
};

Annotation

Implementation Notes