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.
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
reg_helper.hcore_types.hdc_dmub_srv.hdcn31_panel_cntl.hatom.h
Detected Declarations
function filesfunction dcn31_get_16_bit_backlight_from_pwmfunction dcn31_panel_cntl_hw_initfunction dcn31_panel_cntl_destroyfunction dcn31_is_panel_backlight_onfunction dcn31_is_panel_powered_onfunction dcn31_store_backlight_levelfunction dcn31_panel_cntl_construct
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
- Immediate include surface: `reg_helper.h`, `core_types.h`, `dc_dmub_srv.h`, `dcn31_panel_cntl.h`, `atom.h`.
- Detected declarations: `function files`, `function dcn31_get_16_bit_backlight_from_pwm`, `function dcn31_panel_cntl_hw_init`, `function dcn31_panel_cntl_destroy`, `function dcn31_is_panel_backlight_on`, `function dcn31_is_panel_powered_on`, `function dcn31_store_backlight_level`, `function dcn31_panel_cntl_construct`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.