drivers/ata/pata_octeon_cf.c
Source file repositories/reference/linux-study-clean/drivers/ata/pata_octeon_cf.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/ata/pata_octeon_cf.c- Extension
.c- Size
- 27093 bytes
- Lines
- 1030
- Domain
- Driver Families
- Bucket
- drivers/ata
- 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.
- 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/libata.hlinux/hrtimer.hlinux/slab.hlinux/irq.hlinux/of.hlinux/of_address.hlinux/of_platform.hlinux/platform_device.hscsi/scsi_host.htrace/events/libata.hasm/byteorder.hasm/octeon/octeon.h
Detected Declarations
struct octeon_cf_portfunction ns_to_tim_regfunction octeon_cf_set_boot_reg_cfgfunction octeon_cf_set_piomodefunction octeon_cf_set_dmamodefunction octeon_cf_data_xfer8function octeon_cf_data_xfer16function octeon_cf_tf_read16function octeon_cf_check_status16function octeon_cf_softreset16function octeon_cf_tf_load16function octeon_cf_dev_selectfunction octeon_cf_exec_command16function octeon_cf_ata_port_noactionfunction octeon_cf_dma_startfunction spin_lock_irqsavefunction octeon_cf_interruptfunction octeon_cf_delayed_finishfunction octeon_cf_dev_configfunction octeon_cf_check_atapi_dmafunction octeon_cf_qc_issuefunction octeon_cf_probefunction octeon_cf_shutdownfunction octeon_cf_initmodule init octeon_cf_init
Annotated Snippet
module_init(octeon_cf_init);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/libata.h`, `linux/hrtimer.h`, `linux/slab.h`, `linux/irq.h`, `linux/of.h`, `linux/of_address.h`.
- Detected declarations: `struct octeon_cf_port`, `function ns_to_tim_reg`, `function octeon_cf_set_boot_reg_cfg`, `function octeon_cf_set_piomode`, `function octeon_cf_set_dmamode`, `function octeon_cf_data_xfer8`, `function octeon_cf_data_xfer16`, `function octeon_cf_tf_read16`, `function octeon_cf_check_status16`, `function octeon_cf_softreset16`.
- Atlas domain: Driver Families / drivers/ata.
- 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.