arch/powerpc/platforms/52xx/mpc52xx_pic.c
Source file repositories/reference/linux-study-clean/arch/powerpc/platforms/52xx/mpc52xx_pic.c
File Facts
- System
- Linux kernel
- Corpus path
arch/powerpc/platforms/52xx/mpc52xx_pic.c- Extension
.c- Size
- 17068 bytes
- Lines
- 520
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/interrupt.hlinux/irq.hlinux/of.hlinux/of_address.hlinux/of_irq.hasm/io.hasm/mpc52xx.h
Detected Declarations
function io_be_setbitfunction io_be_clrbitfunction mpc52xx_extirq_maskfunction mpc52xx_extirq_unmaskfunction mpc52xx_extirq_ackfunction mpc52xx_extirq_set_typefunction mpc52xx_null_set_typefunction mpc52xx_main_maskfunction mpc52xx_main_unmaskfunction mpc52xx_periph_maskfunction mpc52xx_periph_unmaskfunction mpc52xx_sdma_maskfunction mpc52xx_sdma_unmaskfunction mpc52xx_sdma_ackfunction mpc52xx_is_extirqfunction mpc52xx_irqhost_xlatefunction mpc52xx_irqhost_mapfunction mpc52xx_init_irqfunction mpc52xx_get_irq
Annotated Snippet
if (irq == 0) { /* bestcomm */
status = in_be32(&sdma->IntPend);
irq = ffs(status) - 1;
irq |= (MPC52xx_IRQ_L1_SDMA << MPC52xx_IRQ_L1_OFFSET);
} else {
irq |= (MPC52xx_IRQ_L1_PERP << MPC52xx_IRQ_L1_OFFSET);
}
} else {
return 0;
}
return irq_find_mapping(mpc52xx_irqhost, irq);
}
Annotation
- Immediate include surface: `linux/interrupt.h`, `linux/irq.h`, `linux/of.h`, `linux/of_address.h`, `linux/of_irq.h`, `asm/io.h`, `asm/mpc52xx.h`.
- Detected declarations: `function io_be_setbit`, `function io_be_clrbit`, `function mpc52xx_extirq_mask`, `function mpc52xx_extirq_unmask`, `function mpc52xx_extirq_ack`, `function mpc52xx_extirq_set_type`, `function mpc52xx_null_set_type`, `function mpc52xx_main_mask`, `function mpc52xx_main_unmask`, `function mpc52xx_periph_mask`.
- Atlas domain: Architecture Layer / arch/powerpc.
- 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.