drivers/comedi/drivers/amplc_pci230.c
Source file repositories/reference/linux-study-clean/drivers/comedi/drivers/amplc_pci230.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/comedi/drivers/amplc_pci230.c- Extension
.c- Size
- 78112 bytes
- Lines
- 2574
- Domain
- Driver Families
- Bucket
- drivers/comedi
- 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/module.hlinux/delay.hlinux/interrupt.hlinux/comedi/comedi_pci.hlinux/comedi/comedi_8255.hlinux/comedi/comedi_8254.h
Detected Declarations
struct pci230_boardstruct pci230_privatefunction PCI230function pci230_gat_configfunction pci230_ai_readfunction pci230_ao_mangle_datumfunction pci230_ao_write_nofifofunction pci230_ao_write_fifofunction pci230_claim_sharedfunction pci230_release_sharedfunction pci230_release_all_resourcesfunction pci230_divide_nsfunction pci230_choose_clk_countfunction pci230_ns_to_single_timerfunction pci230_ct_setup_ns_modefunction pci230_cancel_ctfunction pci230_ai_eocfunction pci230_ai_insn_readfunction pci230_ao_insn_writefunction pci230_ao_check_chanlistfunction pci230_ao_cmdtestfunction pci230_ao_stopfunction pci230_handle_ao_nofifofunction FIFOfunction pci230_ao_inttrig_scan_beginfunction pci230_ao_startfunction pci230_ao_inttrig_startfunction pci230_ao_cmdfunction pci230_ao_cancelfunction pci230_ai_check_scan_periodfunction pci230_ai_check_chanlistfunction pci230_ai_cmdtestfunction pci230_ai_update_fifo_trigger_levelfunction pci230_ai_inttrig_convertfunction enabledfunction pci230_ai_inttrig_scan_beginfunction pci230_ai_stopfunction pci230_ai_startfunction pci230_ai_inttrig_startfunction pci230_handle_aifunction pci230_ai_cmdfunction pci230_ai_cancelfunction pci230_interruptfunction pci230_match_pci_boardfunction pci230_auto_attachfunction amplc_pci230_pci_probe
Annotated Snippet
static struct pci_driver amplc_pci230_pci_driver = {
.name = "amplc_pci230",
.id_table = amplc_pci230_pci_table,
.probe = amplc_pci230_pci_probe,
.remove = comedi_pci_auto_unconfig,
};
module_comedi_pci_driver(amplc_pci230_driver, amplc_pci230_pci_driver);
MODULE_AUTHOR("Comedi https://www.comedi.org");
MODULE_DESCRIPTION("Comedi driver for Amplicon PCI230(+) and PCI260(+)");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/delay.h`, `linux/interrupt.h`, `linux/comedi/comedi_pci.h`, `linux/comedi/comedi_8255.h`, `linux/comedi/comedi_8254.h`.
- Detected declarations: `struct pci230_board`, `struct pci230_private`, `function PCI230`, `function pci230_gat_config`, `function pci230_ai_read`, `function pci230_ao_mangle_datum`, `function pci230_ao_write_nofifo`, `function pci230_ao_write_fifo`, `function pci230_claim_shared`, `function pci230_release_shared`.
- Atlas domain: Driver Families / drivers/comedi.
- 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.