drivers/ata/pata_ns87415.c
Source file repositories/reference/linux-study-clean/drivers/ata/pata_ns87415.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/ata/pata_ns87415.c- Extension
.c- Size
- 11191 bytes
- Lines
- 423
- 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.
- 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.hlinux/device.hscsi/scsi_host.hlinux/libata.hlinux/ata.hasm/superio.h
Detected Declarations
function Nonefunction Nonefunction ns87415_bmdma_setupfunction ns87415_bmdma_startfunction ns87415_bmdma_stopfunction ns87415_irq_clearfunction DMAfunction ns87560_read_buggyfunction ns87560_check_statusfunction ns87560_tf_readfunction ns87560_bmdma_statusfunction ns87415_fixupfunction layerfunction ns87415_reinit_one
Annotated Snippet
static struct pci_driver ns87415_pci_driver = {
.name = DRV_NAME,
.id_table = ns87415_pci_tbl,
.probe = ns87415_init_one,
.remove = ata_pci_remove_one,
#ifdef CONFIG_PM_SLEEP
.suspend = ata_pci_device_suspend,
.resume = ns87415_reinit_one,
#endif
};
module_pci_driver(ns87415_pci_driver);
MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("ATA low-level driver for NS87415 controllers");
MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, ns87415_pci_tbl);
MODULE_VERSION(DRV_VERSION);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/pci.h`, `linux/blkdev.h`, `linux/delay.h`, `linux/device.h`, `scsi/scsi_host.h`, `linux/libata.h`.
- Detected declarations: `function None`, `function None`, `function ns87415_bmdma_setup`, `function ns87415_bmdma_start`, `function ns87415_bmdma_stop`, `function ns87415_irq_clear`, `function DMA`, `function ns87560_read_buggy`, `function ns87560_check_status`, `function ns87560_tf_read`.
- Atlas domain: Driver Families / drivers/ata.
- 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.