drivers/crypto/ccp/sp-pci.c
Source file repositories/reference/linux-study-clean/drivers/crypto/ccp/sp-pci.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/crypto/ccp/sp-pci.c- Extension
.c- Size
- 14920 bytes
- Lines
- 601
- Domain
- Driver Families
- Bucket
- drivers/crypto
- 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/bitfield.hlinux/module.hlinux/kernel.hlinux/device.hlinux/pci.hlinux/pci_ids.hlinux/dma-mapping.hlinux/kthread.hlinux/sched.hlinux/interrupt.hlinux/spinlock.hlinux/delay.hlinux/ccp.hccp-dev.hpsp-dev.hhsti.h
Detected Declarations
struct sp_pcifunction psp_firmware_is_visiblefunction sp_get_msix_irqsfunction sp_get_msi_irqfunction sp_get_irqsfunction sp_free_irqsfunction sp_pci_is_masterfunction psp_set_masterfunction psp_clear_masterfunction sp_pci_probefunction sp_pci_shutdownfunction sp_pci_removefunction sp_pci_suspendfunction sp_pci_resumefunction sp_pci_restorefunction sp_pci_initfunction sp_pci_exit
Annotated Snippet
static struct pci_driver sp_pci_driver = {
.name = "ccp",
.id_table = sp_pci_table,
.probe = sp_pci_probe,
.remove = sp_pci_remove,
.shutdown = sp_pci_shutdown,
.driver.pm = &sp_pci_pm_ops,
.dev_groups = psp_groups,
};
int sp_pci_init(void)
{
return pci_register_driver(&sp_pci_driver);
}
void sp_pci_exit(void)
{
pci_unregister_driver(&sp_pci_driver);
}
Annotation
- Immediate include surface: `linux/bitfield.h`, `linux/module.h`, `linux/kernel.h`, `linux/device.h`, `linux/pci.h`, `linux/pci_ids.h`, `linux/dma-mapping.h`, `linux/kthread.h`.
- Detected declarations: `struct sp_pci`, `function psp_firmware_is_visible`, `function sp_get_msix_irqs`, `function sp_get_msi_irq`, `function sp_get_irqs`, `function sp_free_irqs`, `function sp_pci_is_master`, `function psp_set_master`, `function psp_clear_master`, `function sp_pci_probe`.
- Atlas domain: Driver Families / drivers/crypto.
- 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.