drivers/comedi/drivers/ni_labpc.h
Source file repositories/reference/linux-study-clean/drivers/comedi/drivers/ni_labpc.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/comedi/drivers/ni_labpc.h- Extension
.h- Size
- 1516 bytes
- Lines
- 56
- Domain
- Driver Families
- Bucket
- drivers/comedi
- Inferred role
- Driver Families: implementation source
- Status
- source 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 or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
struct labpc_boardinfostruct labpc_privateenum transfer_type
Annotated Snippet
struct labpc_boardinfo {
const char *name;
int ai_speed; /* maximum input speed in ns */
unsigned ai_scan_up:1; /* can auto scan up in ai channels */
unsigned has_ao:1; /* has analog outputs */
unsigned is_labpc1200:1; /* has extra regs compared to pc+ */
};
struct labpc_private {
struct comedi_isadma *dma;
struct comedi_8254 *counter;
/* number of data points left to be taken */
unsigned long long count;
/* software copys of bits written to command registers */
unsigned int cmd1;
unsigned int cmd2;
unsigned int cmd3;
unsigned int cmd4;
unsigned int cmd5;
unsigned int cmd6;
/* store last read of board status registers */
unsigned int stat1;
unsigned int stat2;
/* we are using dma/fifo-half-full/etc. */
enum transfer_type current_transfer;
/*
* function pointers so we can use inb/outb or readb/writeb as
* appropriate
*/
unsigned int (*read_byte)(struct comedi_device *dev, unsigned long reg);
void (*write_byte)(struct comedi_device *dev,
unsigned int byte, unsigned long reg);
};
int labpc_common_attach(struct comedi_device *dev,
unsigned int irq, unsigned long isr_flags);
void labpc_common_detach(struct comedi_device *dev);
#endif /* _NI_LABPC_H */
Annotation
- Detected declarations: `struct labpc_boardinfo`, `struct labpc_private`, `enum transfer_type`.
- Atlas domain: Driver Families / drivers/comedi.
- Implementation status: source 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.