drivers/scsi/aha1542.c
Source file repositories/reference/linux-study-clean/drivers/scsi/aha1542.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/aha1542.c- Extension
.c- Size
- 31033 bytes
- Lines
- 1172
- Domain
- Driver Families
- Bucket
- drivers/scsi
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- 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/module.hlinux/interrupt.hlinux/kernel.hlinux/types.hlinux/string.hlinux/delay.hlinux/init.hlinux/spinlock.hlinux/isa.hlinux/pnp.hlinux/slab.hlinux/io.hasm/dma.hscsi/scsi_cmnd.hscsi/scsi_device.hscsi/scsi_host.haha1542.h
Detected Declarations
struct aha1542_hostdatastruct aha1542_cmdfunction aha1542_intr_resetfunction wait_maskfunction aha1542_outbfunction aha1542_outfunction aha1542_infunction makecodefunction aha1542_test_portfunction aha1542_free_cmdfunction rq_for_each_segmentfunction aha1542_interruptfunction aha1542_queuecommandfunction rq_for_each_segmentfunction setup_mailboxesfunction aha1542_getconfigfunction aha1542_mbenablefunction aha1542_queryfunction dma_speed_hwfunction aha1542_set_bus_timesfunction aha1542_releasefunction aha1542_dev_resetfunction aha1542_resetfunction aha1542_bus_resetfunction aha1542_host_resetfunction aha1542_biosparamfunction aha1542_init_cmd_privfunction aha1542_exit_cmd_privfunction aha1542_isa_matchfunction aha1542_isa_removefunction aha1542_pnp_probefunction aha1542_pnp_removefunction aha1542_initfunction aha1542_exitmodule init aha1542_init
Annotated Snippet
module_init(aha1542_init);
module_exit(aha1542_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/interrupt.h`, `linux/kernel.h`, `linux/types.h`, `linux/string.h`, `linux/delay.h`, `linux/init.h`, `linux/spinlock.h`.
- Detected declarations: `struct aha1542_hostdata`, `struct aha1542_cmd`, `function aha1542_intr_reset`, `function wait_mask`, `function aha1542_outb`, `function aha1542_out`, `function aha1542_in`, `function makecode`, `function aha1542_test_port`, `function aha1542_free_cmd`.
- Atlas domain: Driver Families / drivers/scsi.
- Implementation status: integration 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.