arch/sh/boards/board-sh2007.c
Source file repositories/reference/linux-study-clean/arch/sh/boards/board-sh2007.c
File Facts
- System
- Linux kernel
- Corpus path
arch/sh/boards/board-sh2007.c- Extension
.c- Size
- 3268 bytes
- Lines
- 147
- Domain
- Architecture Layer
- Bucket
- arch/sh
- 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/init.hlinux/irq.hlinux/regulator/fixed.hlinux/regulator/machine.hlinux/smsc911x.hlinux/platform_device.hlinux/ata_platform.hlinux/io.hasm/machvec.hmach/sh2007.h
Detected Declarations
function sh2007_io_initfunction sh2007_init_irqfunction sh2007_setupmodule init sh2007_io_init
Annotated Snippet
subsys_initcall(sh2007_io_init);
static void __init sh2007_init_irq(void)
{
plat_irq_setup_pins(IRQ_MODE_IRQ);
}
/*
* Initialize the board
*/
static void __init sh2007_setup(char **cmdline_p)
{
pr_info("SH-2007 Setup...");
/* setup wait control registers for area 5 */
__raw_writel(CS5BCR_D, CS5BCR);
__raw_writel(CS5WCR_D, CS5WCR);
__raw_writel(CS5PCR_D, CS5PCR);
pr_cont(" done.\n");
}
/*
* The Machine Vector
*/
struct sh_machine_vector mv_sh2007 __initmv = {
.mv_setup = sh2007_setup,
.mv_name = "sh2007",
.mv_init_irq = sh2007_init_irq,
};
Annotation
- Immediate include surface: `linux/init.h`, `linux/irq.h`, `linux/regulator/fixed.h`, `linux/regulator/machine.h`, `linux/smsc911x.h`, `linux/platform_device.h`, `linux/ata_platform.h`, `linux/io.h`.
- Detected declarations: `function sh2007_io_init`, `function sh2007_init_irq`, `function sh2007_setup`, `module init sh2007_io_init`.
- Atlas domain: Architecture Layer / arch/sh.
- 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.