drivers/fpga/dfl-pci.c
Source file repositories/reference/linux-study-clean/drivers/fpga/dfl-pci.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/fpga/dfl-pci.c- Extension
.c- Size
- 11808 bytes
- Lines
- 447
- Domain
- Driver Families
- Bucket
- drivers/fpga
- 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/pci.hlinux/dma-mapping.hlinux/types.hlinux/kernel.hlinux/module.hlinux/stddef.hlinux/errno.hdfl.h
Detected Declarations
struct cci_drvdatafunction cci_pci_alloc_irqfunction cci_pci_free_irqfunction cci_init_drvdatafunction cci_remove_feature_devsfunction find_dfls_by_vsecfunction find_dfls_by_defaultfunction cci_enumerate_feature_devsfunction cci_pci_probefunction cci_pci_sriov_configurefunction cci_pci_remove
Annotated Snippet
static struct pci_driver cci_pci_driver = {
.name = DRV_NAME,
.id_table = cci_pcie_id_tbl,
.probe = cci_pci_probe,
.remove = cci_pci_remove,
.sriov_configure = cci_pci_sriov_configure,
};
module_pci_driver(cci_pci_driver);
MODULE_DESCRIPTION("FPGA DFL PCIe Device Driver");
MODULE_AUTHOR("Intel Corporation");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/pci.h`, `linux/dma-mapping.h`, `linux/types.h`, `linux/kernel.h`, `linux/module.h`, `linux/stddef.h`, `linux/errno.h`, `dfl.h`.
- Detected declarations: `struct cci_drvdata`, `function cci_pci_alloc_irq`, `function cci_pci_free_irq`, `function cci_init_drvdata`, `function cci_remove_feature_devs`, `function find_dfls_by_vsec`, `function find_dfls_by_default`, `function cci_enumerate_feature_devs`, `function cci_pci_probe`, `function cci_pci_sriov_configure`.
- Atlas domain: Driver Families / drivers/fpga.
- 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.