drivers/ata/pata_it821x.c
Source file repositories/reference/linux-study-clean/drivers/ata/pata_it821x.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/ata/pata_it821x.c- Extension
.c- Size
- 28035 bytes
- Lines
- 989
- 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.
- 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/kernel.hlinux/module.hlinux/pci.hlinux/blkdev.hlinux/delay.hlinux/slab.hlinux/string.hscsi/scsi_host.hlinux/libata.h
Detected Declarations
struct it821x_devfunction it821x_programfunction it821x_program_udmafunction it821x_clock_strategyfunction it821x_passthru_set_piomodefunction it821x_passthru_set_dmamodefunction it821x_passthru_bmdma_startfunction it821x_passthru_bmdma_stopfunction it821x_passthru_dev_selectfunction it821x_smart_qc_issuefunction it821x_passthru_qc_issuefunction it821x_smart_set_modefunction ata_for_each_devfunction it821x_dev_configfunction maskingfunction it821x_check_atapi_dmafunction it821x_display_diskfunction it821x_probe_firmwarefunction it821x_port_startfunction it821x_rdc_cablefunction it821x_disable_raidfunction it821x_init_onefunction it821x_reinit_one
Annotated Snippet
static struct pci_driver it821x_pci_driver = {
.name = DRV_NAME,
.id_table = it821x,
.probe = it821x_init_one,
.remove = ata_pci_remove_one,
#ifdef CONFIG_PM_SLEEP
.suspend = ata_pci_device_suspend,
.resume = it821x_reinit_one,
#endif
};
module_pci_driver(it821x_pci_driver);
MODULE_AUTHOR("Alan Cox");
MODULE_DESCRIPTION("low-level driver for the IT8211/IT8212 IDE RAID controller");
MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, it821x);
MODULE_VERSION(DRV_VERSION);
module_param_named(noraid, it8212_noraid, int, S_IRUGO);
MODULE_PARM_DESC(noraid, "Force card into bypass mode");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/pci.h`, `linux/blkdev.h`, `linux/delay.h`, `linux/slab.h`, `linux/string.h`, `scsi/scsi_host.h`.
- Detected declarations: `struct it821x_dev`, `function it821x_program`, `function it821x_program_udma`, `function it821x_clock_strategy`, `function it821x_passthru_set_piomode`, `function it821x_passthru_set_dmamode`, `function it821x_passthru_bmdma_start`, `function it821x_passthru_bmdma_stop`, `function it821x_passthru_dev_select`, `function it821x_smart_qc_issue`.
- 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.