drivers/scsi/am53c974.c
Source file repositories/reference/linux-study-clean/drivers/scsi/am53c974.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/am53c974.c- Extension
.c- Size
- 13037 bytes
- Lines
- 543
- 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.
- 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/kernel.hlinux/module.hlinux/init.hlinux/delay.hlinux/pci.hlinux/interrupt.hscsi/scsi_host.hesp_scsi.h
Detected Declarations
struct pci_esp_privfunction pci_esp_write8function pci_esp_read8function pci_esp_write32function pci_esp_irq_pendingfunction pci_esp_reset_dmafunction pci_esp_dma_invalidatefunction pci_esp_dma_errorfunction pci_esp_send_dma_cmdfunction pci_esp_dma_length_limitfunction dc390_eeprom_prepare_readfunction dc390_eeprom_get_datafunction dc390_read_eepromfunction dc390_check_eepromfunction pci_esp_probe_onefunction pci_esp_remove_one
Annotated Snippet
static struct pci_driver am53c974_driver = {
.name = DRV_MODULE_NAME,
.id_table = am53c974_pci_tbl,
.probe = pci_esp_probe_one,
.remove = pci_esp_remove_one,
};
module_pci_driver(am53c974_driver);
MODULE_DESCRIPTION("AM53C974 SCSI driver");
MODULE_AUTHOR("Hannes Reinecke <hare@suse.de>");
MODULE_LICENSE("GPL");
MODULE_VERSION(DRV_MODULE_VERSION);
MODULE_ALIAS("tmscsim");
module_param(am53c974_debug, bool, 0644);
MODULE_PARM_DESC(am53c974_debug, "Enable debugging");
module_param(am53c974_fenab, bool, 0444);
MODULE_PARM_DESC(am53c974_fenab, "Enable 24-bit DMA transfer sizes");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/init.h`, `linux/delay.h`, `linux/pci.h`, `linux/interrupt.h`, `scsi/scsi_host.h`, `esp_scsi.h`.
- Detected declarations: `struct pci_esp_priv`, `function pci_esp_write8`, `function pci_esp_read8`, `function pci_esp_write32`, `function pci_esp_irq_pending`, `function pci_esp_reset_dma`, `function pci_esp_dma_invalidate`, `function pci_esp_dma_error`, `function pci_esp_send_dma_cmd`, `function pci_esp_dma_length_limit`.
- Atlas domain: Driver Families / drivers/scsi.
- Implementation status: pattern implementation candidate.
- 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.