drivers/scsi/wd719x.c
Source file repositories/reference/linux-study-clean/drivers/scsi/wd719x.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/wd719x.c- Extension
.c- Size
- 27802 bytes
- Lines
- 997
- Domain
- Driver Families
- Bucket
- drivers/scsi
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/interrupt.hlinux/module.hlinux/delay.hlinux/pci.hlinux/firmware.hlinux/eeprom_93cx6.hscsi/scsi_cmnd.hscsi/scsi_device.hscsi/scsi_host.hwd719x.h
Detected Declarations
function Productsfunction wd719x_readlfunction wd719x_writebfunction wd719x_writewfunction wd719x_writelfunction wd719x_wait_readyfunction wd719x_wait_donefunction wd719x_direct_cmdfunction wd719x_destroyfunction wd719x_finish_cmdfunction wd719x_queuecommandfunction scsi_for_each_sgfunction wd719x_chip_initfunction wd719x_abortfunction wd719x_resetfunction wd719x_dev_resetfunction wd719x_bus_resetfunction wd719x_host_resetfunction wd719x_biosparamfunction wd719x_interrupt_SCBfunction wd719x_interruptfunction wd719x_eeprom_reg_readfunction wd719x_eeprom_reg_writefunction wd719x_read_eepromfunction wd719x_detect_typefunction wd719x_board_foundfunction wd719x_pci_probefunction wd719x_pci_remove
Annotated Snippet
static struct pci_driver wd719x_pci_driver = {
.name = "wd719x",
.id_table = wd719x_pci_table,
.probe = wd719x_pci_probe,
.remove = wd719x_pci_remove,
};
module_pci_driver(wd719x_pci_driver);
MODULE_DESCRIPTION("Western Digital WD7193/7197/7296 SCSI driver");
MODULE_AUTHOR("Ondrej Zary, Aaron Dewell, Juergen Gaertner");
MODULE_LICENSE("GPL");
MODULE_FIRMWARE("wd719x-wcs.bin");
MODULE_FIRMWARE("wd719x-risc.bin");
Annotation
- Immediate include surface: `linux/interrupt.h`, `linux/module.h`, `linux/delay.h`, `linux/pci.h`, `linux/firmware.h`, `linux/eeprom_93cx6.h`, `scsi/scsi_cmnd.h`, `scsi/scsi_device.h`.
- Detected declarations: `function Products`, `function wd719x_readl`, `function wd719x_writeb`, `function wd719x_writew`, `function wd719x_writel`, `function wd719x_wait_ready`, `function wd719x_wait_done`, `function wd719x_direct_cmd`, `function wd719x_destroy`, `function wd719x_finish_cmd`.
- Atlas domain: Driver Families / drivers/scsi.
- 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.