drivers/gpu/drm/amd/display/dmub/src/dmub_dcn32.c

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/dmub/src/dmub_dcn32.c

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/amd/display/dmub/src/dmub_dcn32.c
Extension
.c
Size
17597 bytes
Lines
568
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 (index) {
			REG_WRITE(DMCUB_SCRATCH9, addr->grph.addr.low_part);
			REG_WRITE(DMCUB_SCRATCH11, addr->grph.meta_addr.low_part);
		} else {
			REG_WRITE(DMCUB_SCRATCH12,  addr->grph.addr.low_part);
			REG_WRITE(DMCUB_SCRATCH13, addr->grph.meta_addr.low_part);
		}
		REG_WRITE(DMCUB_SCRATCH15, !index);
	} else if (subvp_index == 1) {
		index = REG_READ(DMCUB_SCRATCH23);
		if (index) {
			REG_WRITE(DMCUB_SCRATCH18, addr->grph.addr.low_part);
			REG_WRITE(DMCUB_SCRATCH19, addr->grph.meta_addr.low_part);
		} else {
			REG_WRITE(DMCUB_SCRATCH20,  addr->grph.addr.low_part);
			REG_WRITE(DMCUB_SCRATCH22, addr->grph.meta_addr.low_part);
		}
		REG_WRITE(DMCUB_SCRATCH23, !index);
	} else {
		return;
	}
}

Annotation

Implementation Notes