arch/sh/boards/mach-ecovec24/setup.c
Source file repositories/reference/linux-study-clean/arch/sh/boards/mach-ecovec24/setup.c
File Facts
- System
- Linux kernel
- Corpus path
arch/sh/boards/mach-ecovec24/setup.c- Extension
.c- Size
- 37301 bytes
- Lines
- 1521
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
asm/clock.hasm/heartbeat.hasm/suspend.hcpu/sh7724.hlinux/delay.hlinux/device.hlinux/i2c.hlinux/io.hlinux/init.hlinux/input.hlinux/input/sh_keysc.hlinux/interrupt.hlinux/memblock.hlinux/mmc/host.hlinux/platform_data/sh_mmcif.hlinux/mtd/physmap.hlinux/gpio.hlinux/gpio/machine.hlinux/platform_data/gpio_backlight.hlinux/platform_data/tmio.hlinux/platform_data/tsc2007.hlinux/platform_device.hlinux/regulator/fixed.hlinux/regulator/machine.hlinux/sh_eth.hlinux/sh_intc.hlinux/spi/mmc_spi.hlinux/spi/sh_msiof.hlinux/spi/spi.hlinux/usb/r8a66597.hlinux/usb/renesas_usbhs.hlinux/videodev2.h
Detected Declarations
function usb0_port_powerfunction usb1_port_powerfunction usbhs_get_idfunction usbhs_phy_resetfunction ts_get_pendown_statefunction ts_initfunction mmc_spi_setpowerfunction mac_readfunction sh_eth_initfunction sh_eth_initfunction arch_setupfunction devices_setupfunction ecovec_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 ecovec_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_ecovec __initmv = {
.mv_name = "R0P7724 (EcoVec)",
.mv_mem_reserve = ecovec_mv_mem_reserve,
};
Annotation
- Immediate include surface: `asm/clock.h`, `asm/heartbeat.h`, `asm/suspend.h`, `cpu/sh7724.h`, `linux/delay.h`, `linux/device.h`, `linux/i2c.h`, `linux/io.h`.
- Detected declarations: `function usb0_port_power`, `function usb1_port_power`, `function usbhs_get_id`, `function usbhs_phy_reset`, `function ts_get_pendown_state`, `function ts_init`, `function mmc_spi_setpower`, `function mac_read`, `function sh_eth_init`, `function sh_eth_init`.
- Atlas domain: Architecture Layer / arch/sh.
- Implementation status: integration implementation candidate.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.