drivers/gpu/drm/amd/display/dc/irq/dce60/irq_service_dce60.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/dc/irq/dce60/irq_service_dce60.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/display/dc/irq/dce60/irq_service_dce60.c- Extension
.c- Size
- 11044 bytes
- Lines
- 366
- 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.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/slab.hdm_services.hinclude/logger_interface.hirq_service_dce60.h../dce110/irq_service_dce110.hdce/dce_6_0_d.hdce/dce_6_0_sh_mask.hivsrcid/ivsrcid_vislands30.hdc_types.h
Detected Declarations
function to_dal_irq_source_dce60function dce60_irq_construct
Annotated Snippet
switch (ext_id) {
case VISLANDS30_IV_EXTID_HOTPLUG_DETECT_A:
return DC_IRQ_SOURCE_HPD1;
case VISLANDS30_IV_EXTID_HOTPLUG_DETECT_B:
return DC_IRQ_SOURCE_HPD2;
case VISLANDS30_IV_EXTID_HOTPLUG_DETECT_C:
return DC_IRQ_SOURCE_HPD3;
case VISLANDS30_IV_EXTID_HOTPLUG_DETECT_D:
return DC_IRQ_SOURCE_HPD4;
case VISLANDS30_IV_EXTID_HOTPLUG_DETECT_E:
return DC_IRQ_SOURCE_HPD5;
case VISLANDS30_IV_EXTID_HOTPLUG_DETECT_F:
return DC_IRQ_SOURCE_HPD6;
case VISLANDS30_IV_EXTID_HPD_RX_A:
return DC_IRQ_SOURCE_HPD1RX;
case VISLANDS30_IV_EXTID_HPD_RX_B:
return DC_IRQ_SOURCE_HPD2RX;
case VISLANDS30_IV_EXTID_HPD_RX_C:
return DC_IRQ_SOURCE_HPD3RX;
case VISLANDS30_IV_EXTID_HPD_RX_D:
return DC_IRQ_SOURCE_HPD4RX;
case VISLANDS30_IV_EXTID_HPD_RX_E:
return DC_IRQ_SOURCE_HPD5RX;
case VISLANDS30_IV_EXTID_HPD_RX_F:
return DC_IRQ_SOURCE_HPD6RX;
default:
return DC_IRQ_SOURCE_INVALID;
}
break;
default:
return DC_IRQ_SOURCE_INVALID;
}
}
static const struct irq_service_funcs irq_service_funcs_dce60 = {
.to_dal_irq_source = to_dal_irq_source_dce60
};
static void dce60_irq_construct(
struct irq_service *irq_service,
struct irq_service_init_data *init_data)
{
dal_irq_service_construct(irq_service, init_data);
irq_service->info = irq_source_info_dce60;
irq_service->funcs = &irq_service_funcs_dce60;
}
struct irq_service *dal_irq_service_dce60_create(
struct irq_service_init_data *init_data)
{
struct irq_service *irq_service = kzalloc_obj(*irq_service);
if (!irq_service)
return NULL;
dce60_irq_construct(irq_service, init_data);
return irq_service;
}
Annotation
- Immediate include surface: `linux/slab.h`, `dm_services.h`, `include/logger_interface.h`, `irq_service_dce60.h`, `../dce110/irq_service_dce110.h`, `dce/dce_6_0_d.h`, `dce/dce_6_0_sh_mask.h`, `ivsrcid/ivsrcid_vislands30.h`.
- Detected declarations: `function to_dal_irq_source_dce60`, `function dce60_irq_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.