drivers/dma/dw-edma/dw-edma-pcie.c
Source file repositories/reference/linux-study-clean/drivers/dma/dw-edma/dw-edma-pcie.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/dma/dw-edma/dw-edma-pcie.c- Extension
.c- Size
- 16171 bytes
- Lines
- 566
- Domain
- Driver Families
- Bucket
- drivers/dma
- 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.
- 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/module.hlinux/pci.hlinux/device.hlinux/dma/edma.hlinux/pci-epf.hlinux/msi.hlinux/bitfield.hlinux/sizes.hdw-edma-core.h
Detected Declarations
struct dw_edma_blockstruct dw_edma_pcie_datafunction dw_edma_set_chan_region_offsetfunction dw_edma_pcie_irq_vectorfunction dw_edma_pcie_addressfunction dw_edma_pcie_get_synopsys_dma_datafunction dw_edma_pcie_get_xilinx_dma_datafunction dw_edma_get_phys_addrfunction dw_edma_pcie_probefunction dw_edma_pcie_remove
Annotated Snippet
static struct pci_driver dw_edma_pcie_driver = {
.name = "dw-edma-pcie",
.id_table = dw_edma_pcie_id_table,
.probe = dw_edma_pcie_probe,
.remove = dw_edma_pcie_remove,
};
module_pci_driver(dw_edma_pcie_driver);
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("Synopsys DesignWare eDMA PCIe driver");
MODULE_AUTHOR("Gustavo Pimentel <gustavo.pimentel@synopsys.com>");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/pci.h`, `linux/device.h`, `linux/dma/edma.h`, `linux/pci-epf.h`, `linux/msi.h`, `linux/bitfield.h`.
- Detected declarations: `struct dw_edma_block`, `struct dw_edma_pcie_data`, `function dw_edma_set_chan_region_offset`, `function dw_edma_pcie_irq_vector`, `function dw_edma_pcie_address`, `function dw_edma_pcie_get_synopsys_dma_data`, `function dw_edma_pcie_get_xilinx_dma_data`, `function dw_edma_get_phys_addr`, `function dw_edma_pcie_probe`, `function dw_edma_pcie_remove`.
- Atlas domain: Driver Families / drivers/dma.
- Implementation status: pattern 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.