drivers/ata/pata_atp867x.c
Source file repositories/reference/linux-study-clean/drivers/ata/pata_atp867x.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/ata/pata_atp867x.c- Extension
.c- Size
- 13711 bytes
- Lines
- 552
- 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.
- 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/pci.hlinux/blkdev.hlinux/delay.hlinux/device.hlinux/gfp.hscsi/scsi_host.hlinux/libata.h
Detected Declarations
struct atp867x_privfunction atp867x_set_dmamodefunction atp867x_get_active_clocks_shiftedfunction atp867x_get_recover_clocks_shiftedfunction atp867x_set_piomodefunction atp867x_cable_overridefunction atp867x_cable_detectfunction atp867x_check_resfunction atp867x_check_portsfunction atp867x_set_privfunction atp867x_fixupfunction atp867x_ata_pci_sff_init_hostfunction atp867x_init_onefunction atp867x_reinit_one
Annotated Snippet
static struct pci_driver atp867x_driver = {
.name = DRV_NAME,
.id_table = atp867x_pci_tbl,
.probe = atp867x_init_one,
.remove = ata_pci_remove_one,
#ifdef CONFIG_PM_SLEEP
.suspend = ata_pci_device_suspend,
.resume = atp867x_reinit_one,
#endif
};
module_pci_driver(atp867x_driver);
MODULE_AUTHOR("John(Jung-Ik) Lee, Google Inc.");
MODULE_DESCRIPTION("low level driver for Artop/Acard 867x ATA controller");
MODULE_LICENSE("GPL");
MODULE_DEVICE_TABLE(pci, atp867x_pci_tbl);
MODULE_VERSION(DRV_VERSION);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/pci.h`, `linux/blkdev.h`, `linux/delay.h`, `linux/device.h`, `linux/gfp.h`, `scsi/scsi_host.h`.
- Detected declarations: `struct atp867x_priv`, `function atp867x_set_dmamode`, `function atp867x_get_active_clocks_shifted`, `function atp867x_get_recover_clocks_shifted`, `function atp867x_set_piomode`, `function atp867x_cable_override`, `function atp867x_cable_detect`, `function atp867x_check_res`, `function atp867x_check_ports`, `function atp867x_set_priv`.
- Atlas domain: Driver Families / drivers/ata.
- Implementation status: pattern implementation candidate.
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.