drivers/media/pci/mantis/mantis_link.h
Source file repositories/reference/linux-study-clean/drivers/media/pci/mantis/mantis_link.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/mantis/mantis_link.h- Extension
.h- Size
- 1743 bytes
- Lines
- 72
- Domain
- Driver Families
- Bucket
- drivers/media
- 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
linux/mutex.hlinux/workqueue.hmedia/dvb_ca_en50221.h
Detected Declarations
struct mantis_slotstruct mantis_caenum mantis_sbuf_statusenum mantis_slot_state
Annotated Snippet
struct mantis_slot {
u32 timeout;
u32 slave_cfg;
u32 bar;
};
/* Physical layer */
enum mantis_slot_state {
MODULE_INSERTED = 3,
MODULE_XTRACTED = 4
};
struct mantis_ca {
struct mantis_slot slot[4];
struct work_struct hif_evm_work;
u32 hif_event;
wait_queue_head_t hif_opdone_wq;
wait_queue_head_t hif_brrdyw_wq;
wait_queue_head_t hif_data_wq;
wait_queue_head_t hif_write_wq; /* HIF Write op */
enum mantis_sbuf_status sbuf_status;
enum mantis_slot_state slot_state;
void *ca_priv;
struct dvb_ca_en50221 en50221;
struct mutex ca_lock;
};
/* CA */
extern void mantis_event_cam_plugin(struct mantis_ca *ca);
extern void mantis_event_cam_unplug(struct mantis_ca *ca);
extern int mantis_pcmcia_init(struct mantis_ca *ca);
extern void mantis_pcmcia_exit(struct mantis_ca *ca);
extern int mantis_evmgr_init(struct mantis_ca *ca);
extern void mantis_evmgr_exit(struct mantis_ca *ca);
/* HIF */
extern int mantis_hif_init(struct mantis_ca *ca);
extern void mantis_hif_exit(struct mantis_ca *ca);
extern int mantis_hif_read_mem(struct mantis_ca *ca, u32 addr);
extern int mantis_hif_write_mem(struct mantis_ca *ca, u32 addr, u8 data);
extern int mantis_hif_read_iom(struct mantis_ca *ca, u32 addr);
extern int mantis_hif_write_iom(struct mantis_ca *ca, u32 addr, u8 data);
#endif /* __MANTIS_LINK_H */
Annotation
- Immediate include surface: `linux/mutex.h`, `linux/workqueue.h`, `media/dvb_ca_en50221.h`.
- Detected declarations: `struct mantis_slot`, `struct mantis_ca`, `enum mantis_sbuf_status`, `enum mantis_slot_state`.
- Atlas domain: Driver Families / drivers/media.
- 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.