arch/sh/boards/mach-se/7724/setup.c
Source file repositories/reference/linux-study-clean/arch/sh/boards/mach-se/7724/setup.c
File Facts
- System
- Linux kernel
- Corpus path
arch/sh/boards/mach-se/7724/setup.c- Extension
.c- Size
- 24344 bytes
- Lines
- 985
- 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
asm/clock.hasm/heartbeat.hasm/io.hasm/suspend.hcpu/sh7724.hlinux/delay.hlinux/device.hlinux/gpio.hlinux/init.hlinux/input.hlinux/input/sh_keysc.hlinux/interrupt.hlinux/memblock.hlinux/mmc/host.hlinux/mtd/physmap.hlinux/platform_data/tmio.hlinux/platform_device.hlinux/regulator/fixed.hlinux/regulator/machine.hlinux/sh_eth.hlinux/sh_intc.hlinux/smc91x.hlinux/usb/r8a66597.hlinux/videodev2.hlinux/dma-map-ops.hmach-se/mach/se7724.hmedia/drv-intf/renesas-ceu.hsound/sh_fsi.hsound/simple_card.hvideo/sh_mobile_lcdc.hmedia/i2c/ak881x.hmedia/drv-intf/sh_vou.h
Detected Declarations
function sh_eth_is_eeprom_readyfunction sh_eth_initfunction arch_setupfunction devices_setupfunction ms7724se_mv_mem_reservemodule init devices_setup
Annotated Snippet
device_initcall(devices_setup);
/* Reserve a portion of memory for CEU 0 and CEU 1 buffers */
static void __init ms7724se_mv_mem_reserve(void)
{
phys_addr_t phys;
phys_addr_t size = CEU_BUFFER_MEMORY_SIZE;
phys = memblock_phys_alloc(size, PAGE_SIZE);
if (!phys)
panic("Failed to allocate CEU0 memory\n");
memblock_phys_free(phys, size);
memblock_remove(phys, size);
ceu0_dma_membase = phys;
phys = memblock_phys_alloc(size, PAGE_SIZE);
if (!phys)
panic("Failed to allocate CEU1 memory\n");
memblock_phys_free(phys, size);
memblock_remove(phys, size);
ceu1_dma_membase = phys;
}
static struct sh_machine_vector mv_ms7724se __initmv = {
.mv_name = "ms7724se",
.mv_init_irq = init_se7724_IRQ,
.mv_mem_reserve = ms7724se_mv_mem_reserve,
};
Annotation
- Immediate include surface: `asm/clock.h`, `asm/heartbeat.h`, `asm/io.h`, `asm/suspend.h`, `cpu/sh7724.h`, `linux/delay.h`, `linux/device.h`, `linux/gpio.h`.
- Detected declarations: `function sh_eth_is_eeprom_ready`, `function sh_eth_init`, `function arch_setup`, `function devices_setup`, `function ms7724se_mv_mem_reserve`, `module init 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.