drivers/ata/pata_hpt37x.c
Source file repositories/reference/linux-study-clean/drivers/ata/pata_hpt37x.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/ata/pata_hpt37x.c- Extension
.c- Size
- 25405 bytes
- Lines
- 1033
- 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.hscsi/scsi_host.hlinux/libata.h
Detected Declarations
struct hpt_clockstruct hpt_chipfunction hpt37x_find_modefunction hpt_dma_brokenfunction hpt370_filterfunction hpt370a_filterfunction hpt372_filterfunction hpt37x_cable_detectfunction hpt374_fn1_cable_detectfunction hpt37x_pre_resetfunction hpt37x_set_modefunction hpt37x_set_piomodefunction hpt37x_set_dmamodefunction hpt370_bmdma_stopfunction hpt37x_bmdma_stopfunction slotfunction hpt37x_calibrate_dpllfunction hpt37x_pci_clockfunction hpt37x_init_one
Annotated Snippet
static struct pci_driver hpt37x_pci_driver = {
.name = DRV_NAME,
.id_table = hpt37x,
.probe = hpt37x_init_one,
.remove = ata_pci_remove_one
};
module_pci_driver(hpt37x_pci_driver);
MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for the Highpoint HPT37x/30x");
MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, hpt37x);
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: `struct hpt_clock`, `struct hpt_chip`, `function hpt37x_find_mode`, `function hpt_dma_broken`, `function hpt370_filter`, `function hpt370a_filter`, `function hpt372_filter`, `function hpt37x_cable_detect`, `function hpt374_fn1_cable_detect`, `function hpt37x_pre_reset`.
- 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.