arch/powerpc/platforms/83xx/km83xx.c
Source file repositories/reference/linux-study-clean/arch/powerpc/platforms/83xx/km83xx.c
File Facts
- System
- Linux kernel
- Corpus path
arch/powerpc/platforms/83xx/km83xx.c- Extension
.c- Size
- 4306 bytes
- Lines
- 189
- Domain
- Architecture Layer
- Bucket
- arch/powerpc
- 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/stddef.hlinux/kernel.hlinux/init.hlinux/errno.hlinux/reboot.hlinux/pci.hlinux/kdev_t.hlinux/major.hlinux/console.hlinux/delay.hlinux/seq_file.hlinux/root_dev.hlinux/initrd.hlinux/of.hlinux/of_address.hlinux/atomic.hlinux/time.hlinux/io.hasm/machdep.hasm/ipic.hasm/irq.hasm/udbg.hsysdev/fsl_soc.hsysdev/fsl_pci.hsoc/fsl/qe/qe.hmpc83xx.h
Detected Declarations
function quirk_mpc8360e_qe_enet10function mpc83xx_km_setup_archfunction mpc83xx_km_probe
Annotated Snippet
if (np != NULL) {
quirk_mpc8360e_qe_enet10();
of_node_put(np);
}
}
#endif /* CONFIG_QUICC_ENGINE */
}
machine_device_initcall(mpc83xx_km, mpc83xx_declare_of_platform_devices);
/* list of the supported boards */
static char *board[] __initdata = {
"keymile,KMETER1",
"keymile,kmpbec8321",
NULL
};
/*
* Called very early, MMU is off, device-tree isn't unflattened
*/
static int __init mpc83xx_km_probe(void)
{
int i = 0;
while (board[i]) {
if (of_machine_is_compatible(board[i]))
break;
i++;
}
return (board[i] != NULL);
}
define_machine(mpc83xx_km) {
.name = "mpc83xx-km-platform",
.probe = mpc83xx_km_probe,
.setup_arch = mpc83xx_km_setup_arch,
.discover_phbs = mpc83xx_setup_pci,
.init_IRQ = mpc83xx_ipic_init_IRQ,
.get_irq = ipic_get_irq,
.restart = mpc83xx_restart,
.time_init = mpc83xx_time_init,
.progress = udbg_progress,
};
Annotation
- Immediate include surface: `linux/stddef.h`, `linux/kernel.h`, `linux/init.h`, `linux/errno.h`, `linux/reboot.h`, `linux/pci.h`, `linux/kdev_t.h`, `linux/major.h`.
- Detected declarations: `function quirk_mpc8360e_qe_enet10`, `function mpc83xx_km_setup_arch`, `function mpc83xx_km_probe`.
- Atlas domain: Architecture Layer / arch/powerpc.
- 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.