arch/mips/ralink/rt3883.c

Source file repositories/reference/linux-study-clean/arch/mips/ralink/rt3883.c

File Facts

System
Linux kernel
Corpus path
arch/mips/ralink/rt3883.c
Extension
.c
Size
2581 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.

Dependency Surface

Detected Declarations

Annotated Snippet

device_initcall(rt3883_soc_dev_init);

void __init prom_soc_init(struct ralink_soc_info *soc_info)
{
	if (rt3883_soc_valid())
		soc_info->compatible = "ralink,rt3883-soc";
	else
		panic("rt3883: unknown SoC, n0:%08x n1:%08x",
		      rt3883_get_soc_name0(), rt3883_get_soc_name1());

	snprintf(soc_info->sys_type, RAMIPS_SYS_TYPE_LEN,
		"Ralink %s ver:%u eco:%u",
		rt3883_get_soc_name(),
		rt3883_get_soc_ver(),
		rt3883_get_soc_rev());

	soc_info->mem_base = RT3883_SDRAM_BASE;
	soc_info->mem_size_min = RT3883_MEM_SIZE_MIN;
	soc_info->mem_size_max = RT3883_MEM_SIZE_MAX;

	ralink_soc = RT3883_SOC;
	soc_info_ptr = soc_info;
}

Annotation

Implementation Notes