arch/powerpc/sysdev/fsl_soc.c
Source file repositories/reference/linux-study-clean/arch/powerpc/sysdev/fsl_soc.c
File Facts
- System
- Linux kernel
- Corpus path
arch/powerpc/sysdev/fsl_soc.c- Extension
.c- Size
- 4524 bytes
- Lines
- 218
- Domain
- Architecture Layer
- Bucket
- arch/powerpc
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/stddef.hlinux/kernel.hlinux/init.hlinux/errno.hlinux/major.hlinux/delay.hlinux/irq.hlinux/export.hlinux/device.hlinux/platform_device.hlinux/of.hlinux/phy.hlinux/spi/spi.hlinux/fsl_devices.hlinux/reboot.hlinux/atomic.hasm/io.hasm/irq.hasm/time.hasm/machdep.hsysdev/fsl_soc.hmm/mmu_decl.hasm/cpm2.hasm/fsl_hcalls.h
Detected Declarations
function get_immrbasefunction fsl_get_sys_freqfunction get_brgfreqfunction get_baudratefunction fsl_rstcr_restartfunction setup_rstcrfunction for_each_node_by_namefunction fsl_hv_restartfunction fsl_hv_haltexport get_immrbaseexport fsl_get_sys_freqexport get_brgfreqexport get_baudrateexport diu_ops
Annotated Snippet
if (of_property_read_bool(np, "fsl,has-rstcr")) {
rstcr = of_iomap(np, 0) + 0xb0;
if (!rstcr) {
printk (KERN_ERR "Error: reset control "
"register not mapped!\n");
} else {
register_restart_handler(&restart_handler);
}
break;
}
}
of_node_put(np);
return 0;
}
arch_initcall(setup_rstcr);
#endif
#if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE)
struct platform_diu_data_ops diu_ops;
EXPORT_SYMBOL(diu_ops);
#endif
#ifdef CONFIG_EPAPR_PARAVIRT
/*
* Restart the current partition
*
* This function should be assigned to the ppc_md.restart function pointer,
* to initiate a partition restart when we're running under the Freescale
* hypervisor.
*/
void __noreturn fsl_hv_restart(char *cmd)
{
pr_info("hv restart\n");
fh_partition_restart(-1);
while (1) ;
}
/*
* Halt the current partition
*
* This function should be assigned to the pm_power_off and ppc_md.halt
* function pointers, to shut down the partition when we're running under
* the Freescale hypervisor.
*/
void __noreturn fsl_hv_halt(void)
{
pr_info("hv exit\n");
fh_partition_stop(-1);
while (1) ;
}
#endif
Annotation
- Immediate include surface: `linux/stddef.h`, `linux/kernel.h`, `linux/init.h`, `linux/errno.h`, `linux/major.h`, `linux/delay.h`, `linux/irq.h`, `linux/export.h`.
- Detected declarations: `function get_immrbase`, `function fsl_get_sys_freq`, `function get_brgfreq`, `function get_baudrate`, `function fsl_rstcr_restart`, `function setup_rstcr`, `function for_each_node_by_name`, `function fsl_hv_restart`, `function fsl_hv_halt`, `export get_immrbase`.
- Atlas domain: Architecture Layer / arch/powerpc.
- 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.