drivers/comedi/drivers/cb_pcidas64.c
Source file repositories/reference/linux-study-clean/drivers/comedi/drivers/cb_pcidas64.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/comedi/drivers/cb_pcidas64.c- Extension
.c- Size
- 114289 bytes
- Lines
- 4113
- 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.hplx9080.h
Detected Declarations
struct hw_fifo_infostruct pcidas64_boardstruct ext_clock_infostruct pcidas64_privateenum write_only_registersenum read_only_registersenum read_write_registersenum dio_counter_registersenum intr_enable_contentsenum hw_config_contentsenum daq_atrig_low_4020_contentsenum adc_control0_contentsenum adc_control1_contentsenum calibration_contentsenum adc_queue_load_contentsenum dac_control0_contentsenum dac_control1_contentsenum hw_status_contentsenum i2c_addressesenum range_cal_i2c_contentsenum register_layoutenum pcidas64_boardidenum pointer_bitsenum data_bitsfunction dac_convert_regfunction dac_lsb_4020_regfunction dac_msb_4020_regfunction adc_lo_chan_4020_bitsfunction adc_hi_chan_4020_bitsfunction adc_mode_bitsfunction adc_src_bitsfunction adc_convert_chan_4020_bitsfunction adc_chan_bitsfunction pipe_full_bitsfunction adc_upper_read_ptr_codefunction adc_upper_write_ptr_codefunction adc_src_4020_bitsfunction attenuate_bitfunction ai_dma_ring_countfunction se_diff_bit_6xxxfunction ai_range_bits_6xxxfunction hw_revisionfunction set_dac_range_bitsfunction ao_cmd_is_supportedfunction abort_dmafunction disable_plx_interruptsfunction disable_ai_interruptsfunction enable_ai_interrupts
Annotated Snippet
static struct pci_driver cb_pcidas64_pci_driver = {
.name = "cb_pcidas64",
.id_table = cb_pcidas64_pci_table,
.probe = cb_pcidas64_pci_probe,
.remove = comedi_pci_auto_unconfig,
};
module_comedi_pci_driver(cb_pcidas64_driver, cb_pcidas64_pci_driver);
MODULE_AUTHOR("Comedi https://www.comedi.org");
MODULE_DESCRIPTION("Comedi low-level driver");
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`, `plx9080.h`.
- Detected declarations: `struct hw_fifo_info`, `struct pcidas64_board`, `struct ext_clock_info`, `struct pcidas64_private`, `enum write_only_registers`, `enum read_only_registers`, `enum read_write_registers`, `enum dio_counter_registers`, `enum intr_enable_contents`, `enum hw_config_contents`.
- 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.