arch/mips/dec/setup.c
Source file repositories/reference/linux-study-clean/arch/mips/dec/setup.c
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/dec/setup.c- Extension
.c- Size
- 24281 bytes
- Lines
- 775
- Domain
- Architecture Layer
- Bucket
- arch/mips
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/console.hlinux/export.hlinux/init.hlinux/interrupt.hlinux/ioport.hlinux/irq.hlinux/irqnr.hlinux/memblock.hlinux/param.hlinux/percpu-defs.hlinux/sched.hlinux/spinlock.hlinux/types.hlinux/pm.hasm/addrspace.hasm/bootinfo.hasm/cpu.hasm/cpu-features.hasm/cpu-type.hasm/irq.hasm/irq_cpu.hasm/mipsregs.hasm/page.hasm/reboot.hasm/sections.hasm/time.hasm/traps.hasm/wbflush.hasm/dec/interrupts.hasm/dec/ioasic.hasm/dec/ioasic_addrs.hasm/dec/ioasic_ints.h
Detected Declarations
function errorfunction plat_mem_setupfunction dec_init_kn01function dec_init_kn230function dec_init_kn02function dec_init_kn02bafunction dec_init_kn02cafunction dec_init_kn03function arch_init_irqexport dec_kn_slot_baseexport dec_kn_slot_sizeexport ioasic_ssr_lockexport ioasic_baseexport dec_interrupt
Annotated Snippet
#include <linux/console.h>
#include <linux/export.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/irq.h>
#include <linux/irqnr.h>
#include <linux/memblock.h>
#include <linux/param.h>
#include <linux/percpu-defs.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/types.h>
#include <linux/pm.h>
#include <asm/addrspace.h>
#include <asm/bootinfo.h>
#include <asm/cpu.h>
#include <asm/cpu-features.h>
#include <asm/cpu-type.h>
#include <asm/irq.h>
#include <asm/irq_cpu.h>
#include <asm/mipsregs.h>
#include <asm/page.h>
#include <asm/reboot.h>
#include <asm/sections.h>
#include <asm/time.h>
#include <asm/traps.h>
#include <asm/wbflush.h>
#include <asm/dec/interrupts.h>
#include <asm/dec/ioasic.h>
#include <asm/dec/ioasic_addrs.h>
#include <asm/dec/ioasic_ints.h>
#include <asm/dec/kn01.h>
#include <asm/dec/kn02.h>
#include <asm/dec/kn02ba.h>
#include <asm/dec/kn02ca.h>
#include <asm/dec/kn03.h>
#include <asm/dec/kn230.h>
#include <asm/dec/reset.h>
#include <asm/dec/system.h>
unsigned long dec_kn_slot_base, dec_kn_slot_size;
EXPORT_SYMBOL(dec_kn_slot_base);
EXPORT_SYMBOL(dec_kn_slot_size);
int dec_tc_bus;
DEFINE_SPINLOCK(ioasic_ssr_lock);
EXPORT_SYMBOL(ioasic_ssr_lock);
volatile u32 *ioasic_base;
EXPORT_SYMBOL(ioasic_base);
/*
* IRQ routing and priority tables. Priorities are set as follows:
*
* KN01 KN230 KN02 KN02-BA KN02-CA KN03
*
* MEMORY CPU CPU CPU ASIC CPU CPU
* RTC CPU CPU CPU ASIC CPU CPU
* DMA - - - ASIC ASIC ASIC
* SERIAL0 CPU CPU CSR ASIC ASIC ASIC
* SERIAL1 - - - ASIC - ASIC
* SCSI CPU CPU CSR ASIC ASIC ASIC
* ETHERNET CPU * CSR ASIC ASIC ASIC
* other - - - ASIC - -
* TC2 - - CSR CPU ASIC ASIC
* TC1 - - CSR CPU ASIC ASIC
* TC0 - - CSR CPU ASIC ASIC
* other - CPU - CPU ASIC ASIC
* other - - - - CPU CPU
*
* * -- shared with SCSI
*/
int dec_interrupt[DEC_NR_INTS] = {
[0 ... DEC_NR_INTS - 1] = -1
};
EXPORT_SYMBOL(dec_interrupt);
int_ptr cpu_mask_nr_tbl[DEC_MAX_CPU_INTS][2] = {
{ { .i = ~0 }, { .p = dec_intr_unimplemented } },
};
int_ptr asic_mask_nr_tbl[DEC_MAX_ASIC_INTS][2] = {
Annotation
- Immediate include surface: `linux/console.h`, `linux/export.h`, `linux/init.h`, `linux/interrupt.h`, `linux/ioport.h`, `linux/irq.h`, `linux/irqnr.h`, `linux/memblock.h`.
- Detected declarations: `function error`, `function plat_mem_setup`, `function dec_init_kn01`, `function dec_init_kn230`, `function dec_init_kn02`, `function dec_init_kn02ba`, `function dec_init_kn02ca`, `function dec_init_kn03`, `function arch_init_irq`, `export dec_kn_slot_base`.
- Atlas domain: Architecture Layer / arch/mips.
- Implementation status: integration 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.