drivers/media/usb/as102/as102_drv.h
Source file repositories/reference/linux-study-clean/drivers/media/usb/as102/as102_drv.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/usb/as102/as102_drv.h- Extension
.h- Size
- 1687 bytes
- Lines
- 75
- 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/usb.hmedia/dvb_demux.hmedia/dvb_frontend.hmedia/dmxdev.has10x_handle.has10x_cmd.has102_usb_drv.h
Detected Declarations
struct as10x_bus_adapter_tstruct as102_dev_t
Annotated Snippet
struct as10x_bus_adapter_t {
struct usb_device *usb_dev;
/* bus token lock */
struct mutex lock;
/* low level interface for bus adapter */
union as10x_bus_token_t {
/* usb token */
struct as10x_usb_token_cmd_t usb;
} token;
/* token cmd xfer id */
uint16_t cmd_xid;
/* as10x command and response for dvb interface*/
struct as10x_cmd_t *cmd, *rsp;
/* bus adapter private ops callback */
const struct as102_priv_ops_t *ops;
};
struct as102_dev_t {
const char *name;
struct as10x_bus_adapter_t bus_adap;
struct list_head device_entry;
struct kref kref;
uint8_t elna_cfg;
struct dvb_adapter dvb_adap;
struct dvb_frontend *dvb_fe;
struct dvb_demux dvb_dmx;
struct dmxdev dvb_dmxdev;
/* timer handle to trig ts stream download */
struct timer_list timer_handle;
struct mutex sem;
dma_addr_t dma_addr;
void *stream;
int streaming;
struct urb *stream_urb[MAX_STREAM_URB];
};
int as102_dvb_register(struct as102_dev_t *dev);
void as102_dvb_unregister(struct as102_dev_t *dev);
#endif
Annotation
- Immediate include surface: `linux/usb.h`, `media/dvb_demux.h`, `media/dvb_frontend.h`, `media/dmxdev.h`, `as10x_handle.h`, `as10x_cmd.h`, `as102_usb_drv.h`.
- Detected declarations: `struct as10x_bus_adapter_t`, `struct as102_dev_t`.
- 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.