drivers/usb/atm/ueagle-atm.c
Source file repositories/reference/linux-study-clean/drivers/usb/atm/ueagle-atm.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/atm/ueagle-atm.c- Extension
.c- Size
- 67530 bytes
- Lines
- 2754
- Domain
- Driver Families
- Bucket
- drivers/usb
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/module.hlinux/moduleparam.hlinux/crc32.hlinux/hex.hlinux/usb.hlinux/firmware.hlinux/ctype.hlinux/sched.hlinux/kthread.hlinux/mutex.hlinux/freezer.hlinux/slab.hlinux/kernel.hlinux/unaligned.husbatm.h
Detected Declarations
struct intr_pktstruct uea_cmvs_v1struct uea_cmvs_v2struct cmv_dsc_e1struct cmv_dsc_e4struct uea_softcstruct uea_statsstruct block_indexstruct l1_codestruct block_info_e1struct block_info_e4struct cmv_e1struct cmv_e4struct swap_info_e1struct swap_info_e4struct intr_pktfunction uea_send_modem_cmdfunction uea_upload_pre_firmwarefunction uea_load_firmwarefunction check_dsp_e1function check_dsp_e4function uea_idma_writefunction request_dspfunction uea_load_pagefunction __uea_load_page_e4function uea_load_page_e4function wake_up_cmv_ackfunction wait_cmv_ackfunction uea_requestfunction uea_cmv_e1function uea_cmv_e4function uea_read_cmv_e1function uea_read_cmv_e4function uea_write_cmv_e1function uea_write_cmv_e4function uea_set_bulk_timeoutfunction uea_stat_e1function uea_stat_e4function cmvs_file_namefunction request_cmvs_oldfunction request_cmvsfunction uea_send_cmvs_e1function uea_send_cmvs_e4function uea_start_resetfunction uea_kthreadfunction load_XILINX_firmwarefunction uea_dispatch_cmv_e1function uea_dispatch_cmv_e4
Annotated Snippet
struct uea_cmvs_v1 {
u32 address;
u16 offset;
u32 data;
} __packed;
struct uea_cmvs_v2 {
u32 group;
u32 address;
u32 offset;
u32 data;
} __packed;
/* information about currently processed cmv */
struct cmv_dsc_e1 {
u8 function;
u16 idx;
u32 address;
u16 offset;
};
struct cmv_dsc_e4 {
u16 function;
u16 offset;
u16 address;
u16 group;
};
union cmv_dsc {
struct cmv_dsc_e1 e1;
struct cmv_dsc_e4 e4;
};
struct uea_softc {
struct usb_device *usb_dev;
struct usbatm_data *usbatm;
int modem_index;
unsigned int driver_info;
int annex;
#define ANNEXA 0
#define ANNEXB 1
int booting;
int reset;
wait_queue_head_t sync_q;
struct task_struct *kthread;
u32 data;
u32 data1;
int cmv_ack;
union cmv_dsc cmv_dsc;
struct work_struct task;
u16 pageno;
u16 ovl;
const struct firmware *dsp_firm;
struct urb *urb_int;
void (*dispatch_cmv)(struct uea_softc *, struct intr_pkt *);
void (*schedule_load_page)(struct uea_softc *, struct intr_pkt *);
int (*stat)(struct uea_softc *);
int (*send_cmvs)(struct uea_softc *);
/* keep in sync with eaglectl */
struct uea_stats {
struct {
u32 state;
u32 flags;
u32 mflags;
u32 vidcpe;
u32 vidco;
u32 dsrate;
u32 usrate;
u32 dsunc;
u32 usunc;
u32 dscorr;
u32 uscorr;
u32 txflow;
u32 rxflow;
u32 usattenuation;
u32 dsattenuation;
u32 dsmargin;
u32 usmargin;
u32 firmid;
} phy;
} stats;
Annotation
- Immediate include surface: `linux/module.h`, `linux/moduleparam.h`, `linux/crc32.h`, `linux/hex.h`, `linux/usb.h`, `linux/firmware.h`, `linux/ctype.h`, `linux/sched.h`.
- Detected declarations: `struct intr_pkt`, `struct uea_cmvs_v1`, `struct uea_cmvs_v2`, `struct cmv_dsc_e1`, `struct cmv_dsc_e4`, `struct uea_softc`, `struct uea_stats`, `struct block_index`, `struct l1_code`, `struct block_info_e1`.
- Atlas domain: Driver Families / drivers/usb.
- Implementation status: source implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.