arch/sparc/kernel/leon_pci_grpci1.c
Source file repositories/reference/linux-study-clean/arch/sparc/kernel/leon_pci_grpci1.c
File Facts
- System
- Linux kernel
- Corpus path
arch/sparc/kernel/leon_pci_grpci1.c- Extension
.c- Size
- 19534 bytes
- Lines
- 724
- 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.
- 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/export.hlinux/kernel.hlinux/of.hlinux/of_irq.hlinux/platform_device.hlinux/delay.hlinux/pci.hasm/leon_pci.hasm/sections.hasm/vaddrs.hasm/leon.hasm/io.hirq.h
Detected Declarations
struct grpci1_regsstruct grpci1_privfunction grpci1_map_irqfunction grpci1_cfg_r32function grpci1_cfg_r16function grpci1_cfg_r8function grpci1_cfg_w32function grpci1_cfg_w16function grpci1_cfg_w8function grpci1_read_configfunction grpci1_write_configfunction grpci1_mask_irqfunction grpci1_unmask_irqfunction grpci1_startup_irqfunction grpci1_shutdown_irqfunction grpci1_pci_flow_irqfunction grpci1_build_device_irqfunction grpci1_hw_initfunction grpci1_jump_interruptfunction grpci1_err_interruptfunction grpci1_of_probefunction grpci1_initmodule init grpci1_init
Annotated Snippet
subsys_initcall(grpci1_init);
Annotation
- Immediate include surface: `linux/export.h`, `linux/kernel.h`, `linux/of.h`, `linux/of_irq.h`, `linux/platform_device.h`, `linux/delay.h`, `linux/pci.h`, `asm/leon_pci.h`.
- Detected declarations: `struct grpci1_regs`, `struct grpci1_priv`, `function grpci1_map_irq`, `function grpci1_cfg_r32`, `function grpci1_cfg_r16`, `function grpci1_cfg_r8`, `function grpci1_cfg_w32`, `function grpci1_cfg_w16`, `function grpci1_cfg_w8`, `function grpci1_read_config`.
- Atlas domain: Architecture Layer / arch/sparc.
- 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.