arch/powerpc/platforms/ps3/device-init.c
Source file repositories/reference/linux-study-clean/arch/powerpc/platforms/ps3/device-init.c
File Facts
- System
- Linux kernel
- Corpus path
arch/powerpc/platforms/ps3/device-init.c- Extension
.c- Size
- 22891 bytes
- Lines
- 979
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/delay.hlinux/freezer.hlinux/kernel.hlinux/kthread.hlinux/init.hlinux/slab.hlinux/reboot.hlinux/rcuwait.hlinux/string_choices.hasm/firmware.hasm/lv1call.hasm/ps3stor.hplatform.h
Detected Declarations
struct layoutstruct layoutstruct layoutstruct layoutstruct layoutstruct layoutstruct ps3_notification_devicestruct ps3_notify_cmdstruct ps3_notify_eventenum ps3_notify_typefunction Copyrightfunction ps3_setup_gelic_devicefunction ps3_setup_uhc_devicefunction ps3_setup_ehci_devicefunction ps3_setup_ohci_devicefunction ps3_setup_vuart_devicefunction ps3_setup_storage_devfunction ps3_register_vuart_devicesfunction ps3_register_sound_devicesfunction ps3_register_graphics_devicesfunction ps3_register_ramdisk_devicefunction ps3_setup_dynamic_devicefunction ps3_setup_static_devicefunction ps3_find_and_add_devicefunction ps3_notification_interruptfunction ps3_notification_read_writefunction ps3_probe_threadfunction ps3_stop_probe_threadfunction ps3_start_probe_threadfunction device_initcallmodule init ps3_register_devices
Annotated Snippet
* A device_initcall() routine.
*/
static int __init ps3_register_devices(void)
{
if (!firmware_has_feature(FW_FEATURE_PS3_LV1))
return -ENODEV;
pr_debug(" -> %s:%d\n", __func__, __LINE__);
/* ps3_repository_dump_bus_info(); */
ps3_start_probe_thread(PS3_BUS_TYPE_STORAGE);
ps3_register_vuart_devices();
ps3_register_graphics_devices();
ps3_repository_find_devices(PS3_BUS_TYPE_SB, ps3_setup_static_device);
ps3_register_sound_devices();
ps3_register_lpm_devices();
ps3_register_ramdisk_device();
pr_debug(" <- %s:%d\n", __func__, __LINE__);
return 0;
}
device_initcall(ps3_register_devices);
Annotation
- Immediate include surface: `linux/delay.h`, `linux/freezer.h`, `linux/kernel.h`, `linux/kthread.h`, `linux/init.h`, `linux/slab.h`, `linux/reboot.h`, `linux/rcuwait.h`.
- Detected declarations: `struct layout`, `struct layout`, `struct layout`, `struct layout`, `struct layout`, `struct layout`, `struct ps3_notification_device`, `struct ps3_notify_cmd`, `struct ps3_notify_event`, `enum ps3_notify_type`.
- Atlas domain: Architecture Layer / arch/powerpc.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- 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.