arch/arm/mach-orion5x/board-mss2.c
Source file repositories/reference/linux-study-clean/arch/arm/mach-orion5x/board-mss2.c
File Facts
- System
- Linux kernel
- Corpus path
arch/arm/mach-orion5x/board-mss2.c- Extension
.c- Size
- 2168 bytes
- Lines
- 87
- Domain
- Architecture Layer
- Bucket
- arch/arm
- 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/kernel.hlinux/init.hlinux/platform_device.hlinux/pci.hlinux/irq.hlinux/of.hasm/mach/arch.hasm/mach/pci.horion5x.hbridge-regs.hcommon.h
Detected Declarations
function mss2_pci_map_irqfunction mss2_pci_initfunction mss2_power_offfunction mss2_initmodule init mss2_pci_init
Annotated Snippet
subsys_initcall(mss2_pci_init);
/*****************************************************************************
* MSS2 power off method
****************************************************************************/
/*
* On the Maxtor Shared Storage II, the shutdown process is the following :
* - Userland modifies U-boot env to tell U-boot to go idle at next boot
* - The board reboots
* - U-boot starts and go into an idle mode until the user press "power"
*/
static void mss2_power_off(void)
{
u32 reg;
/*
* Enable and issue soft reset
*/
reg = readl(RSTOUTn_MASK);
reg |= 1 << 2;
writel(reg, RSTOUTn_MASK);
reg = readl(CPU_SOFT_RESET);
reg |= 1;
writel(reg, CPU_SOFT_RESET);
}
void __init mss2_init(void)
{
/* register mss2 specific power-off method */
register_platform_power_off(mss2_power_off);
}
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/init.h`, `linux/platform_device.h`, `linux/pci.h`, `linux/irq.h`, `linux/of.h`, `asm/mach/arch.h`, `asm/mach/pci.h`.
- Detected declarations: `function mss2_pci_map_irq`, `function mss2_pci_init`, `function mss2_power_off`, `function mss2_init`, `module init mss2_pci_init`.
- Atlas domain: Architecture Layer / arch/arm.
- 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.