arch/sh/boards/mach-sdk7780/setup.c
Source file repositories/reference/linux-study-clean/arch/sh/boards/mach-sdk7780/setup.c
File Facts
- System
- Linux kernel
- Corpus path
arch/sh/boards/mach-sdk7780/setup.c- Extension
.c- Size
- 2348 bytes
- Lines
- 97
- 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/types.hlinux/platform_device.hlinux/ata_platform.hasm/machvec.hmach/sdk7780.hasm/heartbeat.hasm/io.hasm/addrspace.h
Detected Declarations
function sdk7780_devices_setupfunction sdk7780_setupmodule init sdk7780_devices_setup
Annotated Snippet
device_initcall(sdk7780_devices_setup);
static void __init sdk7780_setup(char **cmdline_p)
{
u16 ver = __raw_readw(FPGA_FPVERR);
u16 dateStamp = __raw_readw(FPGA_FPDATER);
printk(KERN_INFO "Renesas Technology Europe SDK7780 support.\n");
printk(KERN_INFO "Board version: %d (revision %d), "
"FPGA version: %d (revision %d), datestamp : %d\n",
(ver >> 12) & 0xf, (ver >> 8) & 0xf,
(ver >> 4) & 0xf, ver & 0xf,
dateStamp);
/* Setup pin mux'ing for PCIC */
__raw_writew(0x0000, GPIO_PECR);
}
/*
* The Machine Vector
*/
static struct sh_machine_vector mv_se7780 __initmv = {
.mv_name = "Renesas SDK7780-R3" ,
.mv_setup = sdk7780_setup,
.mv_init_irq = init_sdk7780_IRQ,
};
Annotation
- Immediate include surface: `linux/init.h`, `linux/types.h`, `linux/platform_device.h`, `linux/ata_platform.h`, `asm/machvec.h`, `mach/sdk7780.h`, `asm/heartbeat.h`, `asm/io.h`.
- Detected declarations: `function sdk7780_devices_setup`, `function sdk7780_setup`, `module init sdk7780_devices_setup`.
- 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.