drivers/gpu/drm/amd/display/dc/bios/command_table_helper.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/dc/bios/command_table_helper.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/display/dc/bios/command_table_helper.c- Extension
.c- Size
- 10662 bytes
- Lines
- 400
- 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
dm_services.hatom.hinclude/bios_parser_types.hcommand_table_helper.h
Detected Declarations
function filesfunction dal_cmd_table_helper_controller_id_to_atomfunction dal_cmd_table_helper_transmitter_bp_to_atomfunction dal_cmd_table_helper_encoder_mode_bp_to_atomfunction dal_cmd_table_helper_assign_control_parameterfunction dal_cmd_table_helper_clock_source_id_to_ref_clk_srcfunction dal_cmd_table_helper_encoder_id_to_atomfunction phy_id_to_atomfunction clock_source_id_to_atom_phy_clk_src_idfunction engine_bp_to_atom
Annotated Snippet
switch (id) {
case ENGINE_ID_DIGA:
*atom_engine_id = ASIC_INT_DIG1_ENCODER_ID;
result = true;
break;
case ENGINE_ID_DIGB:
*atom_engine_id = ASIC_INT_DIG2_ENCODER_ID;
result = true;
break;
case ENGINE_ID_DIGC:
*atom_engine_id = ASIC_INT_DIG3_ENCODER_ID;
result = true;
break;
case ENGINE_ID_DIGD:
*atom_engine_id = ASIC_INT_DIG4_ENCODER_ID;
result = true;
break;
case ENGINE_ID_DIGE:
*atom_engine_id = ASIC_INT_DIG5_ENCODER_ID;
result = true;
break;
case ENGINE_ID_DIGF:
*atom_engine_id = ASIC_INT_DIG6_ENCODER_ID;
result = true;
break;
case ENGINE_ID_DIGG:
*atom_engine_id = ASIC_INT_DIG7_ENCODER_ID;
result = true;
break;
case ENGINE_ID_DACA:
*atom_engine_id = ASIC_INT_DAC1_ENCODER_ID;
result = true;
break;
default:
break;
}
return result;
}
Annotation
- Immediate include surface: `dm_services.h`, `atom.h`, `include/bios_parser_types.h`, `command_table_helper.h`.
- Detected declarations: `function files`, `function dal_cmd_table_helper_controller_id_to_atom`, `function dal_cmd_table_helper_transmitter_bp_to_atom`, `function dal_cmd_table_helper_encoder_mode_bp_to_atom`, `function dal_cmd_table_helper_assign_control_parameter`, `function dal_cmd_table_helper_clock_source_id_to_ref_clk_src`, `function dal_cmd_table_helper_encoder_id_to_atom`, `function phy_id_to_atom`, `function clock_source_id_to_atom_phy_clk_src_id`, `function engine_bp_to_atom`.
- 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.