arch/sparc/kernel/leon_pci_grpci2.c
Source file repositories/reference/linux-study-clean/arch/sparc/kernel/leon_pci_grpci2.c
File Facts
- System
- Linux kernel
- Corpus path
arch/sparc/kernel/leon_pci_grpci2.c- Extension
.c- Size
- 24779 bytes
- Lines
- 916
- Domain
- Architecture Layer
- Bucket
- arch/sparc
- 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/kernel.hlinux/pci.hlinux/slab.hlinux/delay.hlinux/export.hlinux/of.hlinux/platform_device.hasm/io.hasm/leon.hasm/vaddrs.hasm/sections.hasm/leon_pci.hirq.h
Detected Declarations
struct grpci2_barcfgstruct grpci2_regsstruct grpci2_bd_chanstruct grpci2_bd_datastruct grpci2_cap_firststruct grpci2_privfunction grpci2_map_irqfunction grpci2_cfg_r32function grpci2_cfg_r16function grpci2_cfg_r8function grpci2_cfg_w32function grpci2_cfg_w16function grpci2_cfg_w8function grpci2_read_configfunction grpci2_write_configfunction grpci2_mask_irqfunction grpci2_unmask_irqfunction grpci2_startup_irqfunction grpci2_shutdown_irqfunction grpci2_pci_flow_irqfunction grpci2_build_device_irqfunction grpci2_hw_initfunction grpci2_jump_interruptfunction grpci2_err_interruptfunction grpci2_of_probefunction grpci2_initmodule init grpci2_init
Annotated Snippet
subsys_initcall(grpci2_init);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/pci.h`, `linux/slab.h`, `linux/delay.h`, `linux/export.h`, `linux/of.h`, `linux/platform_device.h`, `asm/io.h`.
- Detected declarations: `struct grpci2_barcfg`, `struct grpci2_regs`, `struct grpci2_bd_chan`, `struct grpci2_bd_data`, `struct grpci2_cap_first`, `struct grpci2_priv`, `function grpci2_map_irq`, `function grpci2_cfg_r32`, `function grpci2_cfg_r16`, `function grpci2_cfg_r8`.
- Atlas domain: Architecture Layer / arch/sparc.
- 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.