arch/powerpc/platforms/embedded6xx/hlwd-pic.c
Source file repositories/reference/linux-study-clean/arch/powerpc/platforms/embedded6xx/hlwd-pic.c
File Facts
- System
- Linux kernel
- Corpus path
arch/powerpc/platforms/embedded6xx/hlwd-pic.c- Extension
.c- Size
- 5344 bytes
- Lines
- 235
- Domain
- Architecture Layer
- Bucket
- arch/powerpc
- Inferred role
- Architecture Layer: implementation source
- Status
- source implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/irq.hlinux/of.hlinux/of_address.hlinux/of_irq.hasm/io.hhlwd-pic.h
Detected Declarations
function Copyrightfunction hlwd_pic_ackfunction hlwd_pic_maskfunction hlwd_pic_unmaskfunction hlwd_pic_mapfunction __hlwd_pic_get_irqfunction hlwd_pic_irq_cascadefunction __hlwd_quiescefunction hlwd_pic_initfunction hlwd_pic_get_irqfunction hlwd_pic_probefunction for_each_compatible_node_scopedfunction hlwd_quiesce
Annotated Snippet
if (interrupts) {
host = hlwd_pic_init(np);
BUG_ON(!host);
cascade_virq = irq_of_parse_and_map(np, 0);
irq_set_handler_data(cascade_virq, host);
irq_set_chained_handler(cascade_virq,
hlwd_pic_irq_cascade);
hlwd_irq_host = host;
break;
}
}
}
/**
* hlwd_quiesce() - quiesce hollywood irq controller
*
* Mask and ack all interrupt sources.
*
*/
void hlwd_quiesce(void)
{
void __iomem *io_base = hlwd_irq_host->host_data;
__hlwd_quiesce(io_base);
}
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/irq.h`, `linux/of.h`, `linux/of_address.h`, `linux/of_irq.h`, `asm/io.h`, `hlwd-pic.h`.
- Detected declarations: `function Copyright`, `function hlwd_pic_ack`, `function hlwd_pic_mask`, `function hlwd_pic_unmask`, `function hlwd_pic_map`, `function __hlwd_pic_get_irq`, `function hlwd_pic_irq_cascade`, `function __hlwd_quiesce`, `function hlwd_pic_init`, `function hlwd_pic_get_irq`.
- Atlas domain: Architecture Layer / arch/powerpc.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.