drivers/ata/sata_inic162x.c
Source file repositories/reference/linux-study-clean/drivers/ata/sata_inic162x.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/ata/sata_inic162x.c- Extension
.c- Size
- 24178 bytes
- Lines
- 904
- 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.
- 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/gfp.hlinux/kernel.hlinux/module.hlinux/pci.hscsi/scsi_host.hlinux/libata.hlinux/blkdev.hscsi/scsi_device.h
Detected Declarations
struct inic_cpbstruct inic_prdstruct inic_pktstruct inic_host_privstruct inic_port_privfunction inic_reset_portfunction inic_scr_readfunction inic_scr_writefunction inic_stop_idmafunction inic_host_err_intrfunction inic_host_intrfunction inic_interruptfunction inic_check_atapi_dmafunction inic_fill_sgfunction for_each_sgfunction inic_qc_prepfunction inic_qc_issuefunction inic_tf_readfunction inic_qc_fill_rtffunction inic_freezefunction inic_thawfunction inic_check_readyfunction inic_hardresetfunction inic_error_handlerfunction inic_post_internal_cmdfunction init_portfunction inic_port_resumefunction inic_port_startfunction init_controllerfunction inic_pci_device_resumefunction inic_init_one
Annotated Snippet
static struct pci_driver inic_pci_driver = {
.name = DRV_NAME,
.id_table = inic_pci_tbl,
#ifdef CONFIG_PM_SLEEP
.suspend = ata_pci_device_suspend,
.resume = inic_pci_device_resume,
#endif
.probe = inic_init_one,
.remove = ata_pci_remove_one,
};
module_pci_driver(inic_pci_driver);
MODULE_AUTHOR("Tejun Heo");
MODULE_DESCRIPTION("low-level driver for Initio 162x SATA");
MODULE_LICENSE("GPL v2");
MODULE_DEVICE_TABLE(pci, inic_pci_tbl);
MODULE_VERSION(DRV_VERSION);
Annotation
- Immediate include surface: `linux/gfp.h`, `linux/kernel.h`, `linux/module.h`, `linux/pci.h`, `scsi/scsi_host.h`, `linux/libata.h`, `linux/blkdev.h`, `scsi/scsi_device.h`.
- Detected declarations: `struct inic_cpb`, `struct inic_prd`, `struct inic_pkt`, `struct inic_host_priv`, `struct inic_port_priv`, `function inic_reset_port`, `function inic_scr_read`, `function inic_scr_write`, `function inic_stop_idma`, `function inic_host_err_intr`.
- 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.
- 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.