drivers/ata/pata_sil680.c
Source file repositories/reference/linux-study-clean/drivers/ata/pata_sil680.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/ata/pata_sil680.c- Extension
.c- Size
- 11506 bytes
- Lines
- 439
- Domain
- Driver Families
- Bucket
- drivers/ata
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kernel.hlinux/module.hlinux/pci.hlinux/blkdev.hlinux/delay.hscsi/scsi_host.hlinux/libata.h
Detected Declarations
function Copyrightfunction sil680_seldevfunction sil680_cable_detectfunction sil680_set_piomodefunction sil680_set_dmamodefunction spin_lock_irqsavefunction sil680_sff_irq_checkfunction sil680_init_chipfunction sil680_init_onefunction sil680_reinit_one
Annotated Snippet
static struct pci_driver sil680_pci_driver = {
.name = DRV_NAME,
.id_table = sil680,
.probe = sil680_init_one,
.remove = ata_pci_remove_one,
#ifdef CONFIG_PM_SLEEP
.suspend = ata_pci_device_suspend,
.resume = sil680_reinit_one,
#endif
};
module_pci_driver(sil680_pci_driver);
MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for SI680 PATA");
MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, sil680);
MODULE_VERSION(DRV_VERSION);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/pci.h`, `linux/blkdev.h`, `linux/delay.h`, `scsi/scsi_host.h`, `linux/libata.h`.
- Detected declarations: `function Copyright`, `function sil680_seldev`, `function sil680_cable_detect`, `function sil680_set_piomode`, `function sil680_set_dmamode`, `function spin_lock_irqsave`, `function sil680_sff_irq_check`, `function sil680_init_chip`, `function sil680_init_one`, `function sil680_reinit_one`.
- Atlas domain: Driver Families / drivers/ata.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.