drivers/gpu/drm/amd/pm/powerplay/hwmgr/tonga_baco.c

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/pm/powerplay/hwmgr/tonga_baco.c

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/amd/pm/powerplay/hwmgr/tonga_baco.c
Extension
.c
Size
12867 bytes
Lines
222
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 (hwmgr->chip_id == CHIP_TOPAZ) {
			if (baco_program_registers(hwmgr, exit_baco_tbl_iceland,
						   ARRAY_SIZE(exit_baco_tbl_iceland))) {
				if (baco_program_registers(hwmgr, clean_baco_tbl_iceland,
							   ARRAY_SIZE(clean_baco_tbl_iceland)))
					return 0;
			}
		} else {
			if (baco_program_registers(hwmgr, exit_baco_tbl,
						   ARRAY_SIZE(exit_baco_tbl))) {
				if (baco_program_registers(hwmgr, clean_baco_tbl,
							   ARRAY_SIZE(clean_baco_tbl)))
					return 0;
			}
		}
	}

	return -EINVAL;
}

Annotation

Implementation Notes