arch/mips/ralink/rt288x.c
Source file repositories/reference/linux-study-clean/arch/mips/ralink/rt288x.c
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/ralink/rt288x.c- Extension
.c- Size
- 2536 bytes
- Lines
- 111
- 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.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/init.hlinux/slab.hlinux/sys_soc.hasm/mipsregs.hasm/mach-ralink/ralink_regs.hasm/mach-ralink/rt288x.hcommon.h
Detected Declarations
function rt2880_get_soc_name0function rt2880_get_soc_name1function rt2880_soc_validfunction rt2880_get_soc_idfunction rt2880_get_soc_verfunction rt2880_get_soc_revfunction rt2880_soc_dev_initfunction prom_soc_initmodule init rt2880_soc_dev_init
Annotated Snippet
device_initcall(rt2880_soc_dev_init);
void __init prom_soc_init(struct ralink_soc_info *soc_info)
{
if (rt2880_soc_valid())
soc_info->compatible = "ralink,r2880-soc";
else
panic("rt288x: unknown SoC, n0:%08x n1:%08x",
rt2880_get_soc_name0(), rt2880_get_soc_name1());
snprintf(soc_info->sys_type, RAMIPS_SYS_TYPE_LEN,
"Ralink %s id:%u rev:%u",
rt2880_get_soc_name(),
rt2880_get_soc_ver(),
rt2880_get_soc_rev());
soc_info->mem_base = RT2880_SDRAM_BASE;
soc_info->mem_size_min = RT2880_MEM_SIZE_MIN;
soc_info->mem_size_max = RT2880_MEM_SIZE_MAX;
ralink_soc = RT2880_SOC;
soc_info_ptr = soc_info;
}
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/init.h`, `linux/slab.h`, `linux/sys_soc.h`, `asm/mipsregs.h`, `asm/mach-ralink/ralink_regs.h`, `asm/mach-ralink/rt288x.h`, `common.h`.
- Detected declarations: `function rt2880_get_soc_name0`, `function rt2880_get_soc_name1`, `function rt2880_soc_valid`, `function rt2880_get_soc_id`, `function rt2880_get_soc_ver`, `function rt2880_get_soc_rev`, `function rt2880_soc_dev_init`, `function prom_soc_init`, `module init rt2880_soc_dev_init`.
- Atlas domain: Architecture Layer / arch/mips.
- Implementation status: integration 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.