drivers/gpu/drm/i915/display/intel_pch.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/display/intel_pch.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/i915/display/intel_pch.c- Extension
.c- Size
- 14530 bytes
- Lines
- 434
- 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
drm/drm_print.hintel_de.hintel_display.hintel_display_regs.hintel_display_core.hintel_display_utils.hintel_pch.h
Detected Declarations
function intel_pch_fake_for_south_displayfunction intel_pch_typefunction intel_pch_ibx_init_clock_gatingfunction intel_pch_cpt_init_clock_gatingfunction intel_pch_lpt_init_clock_gatingfunction intel_pch_cnp_init_clock_gatingfunction intel_pch_init_clock_gatingfunction intel_is_virt_pchfunction intel_virt_detect_pchfunction intel_pch_detectfunction environmentsfunction PCH_NOP
Annotated Snippet
if (pch_type != PCH_NONE) {
display->pch_type = pch_type;
break;
} else if (intel_is_virt_pch(id, pch->subsystem_vendor,
pch->subsystem_device)) {
intel_virt_detect_pch(display, &id, &pch_type);
display->pch_type = pch_type;
break;
}
}
/*
* Use PCH_NOP (PCH but no South Display) for PCH platforms without
* display.
*/
if (pch && !HAS_DISPLAY(display)) {
drm_dbg_kms(display->drm,
"Display disabled, reverting to NOP PCH\n");
display->pch_type = PCH_NOP;
} else if (!pch) {
if (intel_display_run_as_guest(display) && HAS_DISPLAY(display)) {
intel_virt_detect_pch(display, &id, &pch_type);
display->pch_type = pch_type;
} else {
drm_dbg_kms(display->drm, "No PCH found.\n");
}
}
pci_dev_put(pch);
}
Annotation
- Immediate include surface: `drm/drm_print.h`, `intel_de.h`, `intel_display.h`, `intel_display_regs.h`, `intel_display_core.h`, `intel_display_utils.h`, `intel_pch.h`.
- Detected declarations: `function intel_pch_fake_for_south_display`, `function intel_pch_type`, `function intel_pch_ibx_init_clock_gating`, `function intel_pch_cpt_init_clock_gating`, `function intel_pch_lpt_init_clock_gating`, `function intel_pch_cnp_init_clock_gating`, `function intel_pch_init_clock_gating`, `function intel_is_virt_pch`, `function intel_virt_detect_pch`, `function intel_pch_detect`.
- 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.