drivers/gpu/drm/amd/display/dc/irq/irq_service.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/dc/irq/irq_service.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/display/dc/irq/irq_service.h- Extension
.h- Size
- 2615 bytes
- Lines
- 94
- 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
include/irq_service_interface.hirq_types.h
Detected Declarations
struct irq_servicestruct irq_source_infostruct irq_source_info_funcsstruct irq_source_infostruct irq_service_funcsstruct irq_service
Annotated Snippet
struct irq_source_info_funcs {
bool (*set)(
struct irq_service *irq_service,
const struct irq_source_info *info,
bool enable);
bool (*ack)(
struct irq_service *irq_service,
const struct irq_source_info *info);
};
struct irq_source_info {
uint32_t src_id;
uint32_t ext_id;
uint32_t enable_reg;
uint32_t enable_mask;
uint32_t enable_value[2];
uint32_t ack_reg;
uint32_t ack_mask;
uint32_t ack_value;
uint32_t status_reg;
struct irq_source_info_funcs *funcs;
};
struct irq_service_funcs {
enum dc_irq_source (*to_dal_irq_source)(
struct irq_service *irq_service,
uint32_t src_id,
uint32_t ext_id);
};
struct irq_service {
struct dc_context *ctx;
const struct irq_source_info *info;
const struct irq_service_funcs *funcs;
};
void dal_irq_service_construct(
struct irq_service *irq_service,
struct irq_service_init_data *init_data);
void dal_irq_service_ack_generic(
struct irq_service *irq_service,
const struct irq_source_info *info);
void dal_irq_service_set_generic(
struct irq_service *irq_service,
const struct irq_source_info *info,
bool enable);
bool hpd0_ack(
struct irq_service *irq_service,
const struct irq_source_info *info);
bool hpd1_ack(
struct irq_service *irq_service,
const struct irq_source_info *info);
#endif
Annotation
- Immediate include surface: `include/irq_service_interface.h`, `irq_types.h`.
- Detected declarations: `struct irq_service`, `struct irq_source_info`, `struct irq_source_info_funcs`, `struct irq_source_info`, `struct irq_service_funcs`, `struct irq_service`.
- 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.