drivers/spi/spi-pxa2xx-pci.c
Source file repositories/reference/linux-study-clean/drivers/spi/spi-pxa2xx-pci.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/spi/spi-pxa2xx-pci.c- Extension
.c- Size
- 9201 bytes
- Lines
- 351
- Domain
- Driver Families
- Bucket
- drivers/spi
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- 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/clk-provider.hlinux/device.hlinux/err.hlinux/module.hlinux/pci.hlinux/pm.hlinux/pm_runtime.hlinux/sprintf.hlinux/string.hlinux/types.hlinux/dmaengine.hlinux/platform_data/dma-dw.hspi-pxa2xx.h
Detected Declarations
struct pxa_spi_infofunction pxa2xx_spi_pci_clk_unregisterfunction pxa2xx_spi_pci_clk_registerfunction lpss_dma_filterfunction lpss_dma_put_devicefunction lpss_spi_setupfunction ce4100_spi_setupfunction mrfld_spi_setupfunction qrk_spi_setupfunction pxa2xx_spi_pci_probefunction pxa2xx_spi_pci_remove
Annotated Snippet
static struct pci_driver pxa2xx_spi_pci_driver = {
.name = "pxa2xx_spi_pci",
.id_table = pxa2xx_spi_pci_devices,
.driver = {
.pm = pm_ptr(&pxa2xx_spi_pm_ops),
},
.probe = pxa2xx_spi_pci_probe,
.remove = pxa2xx_spi_pci_remove,
};
module_pci_driver(pxa2xx_spi_pci_driver);
MODULE_DESCRIPTION("CE4100/LPSS PCI-SPI glue code for PXA's driver");
MODULE_LICENSE("GPL v2");
MODULE_IMPORT_NS("SPI_PXA2xx");
MODULE_AUTHOR("Sebastian Andrzej Siewior <bigeasy@linutronix.de>");
Annotation
- Immediate include surface: `linux/clk-provider.h`, `linux/device.h`, `linux/err.h`, `linux/module.h`, `linux/pci.h`, `linux/pm.h`, `linux/pm_runtime.h`, `linux/sprintf.h`.
- Detected declarations: `struct pxa_spi_info`, `function pxa2xx_spi_pci_clk_unregister`, `function pxa2xx_spi_pci_clk_register`, `function lpss_dma_filter`, `function lpss_dma_put_device`, `function lpss_spi_setup`, `function ce4100_spi_setup`, `function mrfld_spi_setup`, `function qrk_spi_setup`, `function pxa2xx_spi_pci_probe`.
- Atlas domain: Driver Families / drivers/spi.
- Implementation status: pattern 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.