arch/mips/sni/irq.c
Source file repositories/reference/linux-study-clean/arch/mips/sni/irq.c
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/sni/irq.c- Extension
.c- Size
- 1577 bytes
- Lines
- 77
- Domain
- Architecture Layer
- Bucket
- arch/mips
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
Dependency Surface
linux/delay.hlinux/init.hlinux/interrupt.hlinux/irq.hlinux/kernel.hasm/i8259.hasm/io.hasm/sni.hasm/irq.hasm/irq_cpu.h
Detected Declarations
function plat_irq_dispatchfunction sni_isa_irq_handlerfunction arch_init_irq
Annotated Snippet
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/irq.h>
#include <linux/kernel.h>
#include <asm/i8259.h>
#include <asm/io.h>
#include <asm/sni.h>
#include <asm/irq.h>
#include <asm/irq_cpu.h>
void (*sni_hwint)(void);
asmlinkage void plat_irq_dispatch(void)
{
sni_hwint();
}
/* ISA irq handler */
irqreturn_t sni_isa_irq_handler(int dummy, void *p)
{
int irq;
irq = i8259_irq();
if (unlikely(irq < 0))
return IRQ_NONE;
generic_handle_irq(irq);
return IRQ_HANDLED;
}
/*
* On systems with i8259-style interrupt controllers we assume for
* driver compatibility reasons interrupts 0 - 15 to be the i8295
* interrupts even if the hardware uses a different interrupt numbering.
*/
void __init arch_init_irq(void)
{
init_i8259_irqs(); /* Integrated i8259 */
switch (sni_brd_type) {
case SNI_BRD_10:
case SNI_BRD_10NEW:
case SNI_BRD_TOWER_OASIC:
case SNI_BRD_MINITOWER:
sni_a20r_irq_init();
break;
case SNI_BRD_PCI_TOWER:
sni_pcit_irq_init();
break;
case SNI_BRD_PCI_TOWER_CPLUS:
sni_pcit_cplus_irq_init();
break;
case SNI_BRD_RM200:
sni_rm200_irq_init();
break;
case SNI_BRD_PCI_MTOWER:
case SNI_BRD_PCI_DESKTOP:
case SNI_BRD_PCI_MTOWER_CPLUS:
sni_pcimt_irq_init();
break;
}
}
Annotation
- Immediate include surface: `linux/delay.h`, `linux/init.h`, `linux/interrupt.h`, `linux/irq.h`, `linux/kernel.h`, `asm/i8259.h`, `asm/io.h`, `asm/sni.h`.
- Detected declarations: `function plat_irq_dispatch`, `function sni_isa_irq_handler`, `function arch_init_irq`.
- Atlas domain: Architecture Layer / arch/mips.
- Implementation status: source implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.