drivers/gpu/drm/amd/display/dc/dcn31/dcn31_panel_cntl.c

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_panel_cntl.c

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_panel_cntl.c
Extension
.c
Size
7236 bytes
Lines
201
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

switch (init_data->eng_id) {
		case ENGINE_ID_DIGA:
			pwrseq_inst = 0;
			break;
		case ENGINE_ID_DIGB:
			pwrseq_inst = 1;
			break;
		default:
			DC_LOG_WARNING("Unsupported pwrseq engine id: %d!\n", init_data->eng_id);
			ASSERT(false);
			break;
		}

		dcn31_panel_cntl->base.pwrseq_inst = pwrseq_inst;
	} else {
		/* If not supported, pwrseq will be assigned in order,
		 * so first pwrseq will be assigned to first panel instance (legacy behavior)
		 */
		dcn31_panel_cntl->base.pwrseq_inst = dcn31_panel_cntl->base.inst;
	}
}

Annotation

Implementation Notes