drivers/media/usb/au0828/au0828.h
Source file repositories/reference/linux-study-clean/drivers/media/usb/au0828/au0828.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/usb/au0828/au0828.h- Extension
.h- Size
- 10163 bytes
- Lines
- 374
- 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.
- 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/bitops.hlinux/usb.hlinux/i2c.hlinux/i2c-algo-bit.hmedia/tveeprom.hlinux/videodev2.hmedia/videobuf2-v4l2.hmedia/videobuf2-vmalloc.hmedia/v4l2-device.hmedia/v4l2-ctrls.hmedia/v4l2-fh.hmedia/media-device.hmedia/media-dev-allocator.hmedia/demux.hmedia/dmxdev.hmedia/dvb_demux.hmedia/dvb_frontend.hmedia/dvb_net.hmedia/dvbdev.hau0828-reg.hau0828-cards.h
Detected Declarations
struct au0828_inputstruct au0828_boardstruct au0828_dvbstruct au0828_devstruct au0828_usb_isoc_ctlstruct au0828_bufferstruct au0828_dmaqueuestruct au0828_devenum au0828_itypeenum au0828_stream_stateenum au0828_dev_statefunction au0828_v4l2_device_registerfunction au0828_analog_registerfunction au0828_analog_unregisterfunction au0828_usb_v4l2_media_releasefunction au0828_v4l2_suspendfunction au0828_v4l2_resumefunction au0828_rc_registerfunction au0828_rc_unregisterfunction au0828_rc_resume
Annotated Snippet
struct au0828_input {
enum au0828_itype type;
unsigned int vmux;
unsigned int amux;
void (*audio_setup) (void *priv, int enable);
};
struct au0828_board {
char *name;
unsigned int tuner_type;
unsigned char tuner_addr;
unsigned char i2c_clk_divider;
unsigned char has_ir_i2c:1;
unsigned char has_analog:1;
struct au0828_input input[AU0828_MAX_INPUT];
};
struct au0828_dvb {
struct mutex lock;
struct dvb_adapter adapter;
struct dvb_frontend *frontend;
struct dvb_demux demux;
struct dmxdev dmxdev;
struct dmx_frontend fe_hw;
struct dmx_frontend fe_mem;
struct dvb_net net;
int feeding;
int start_count;
int stop_count;
int (*set_frontend)(struct dvb_frontend *fe);
};
enum au0828_stream_state {
STREAM_OFF,
STREAM_INTERRUPT,
STREAM_ON
};
#define AUVI_INPUT(nr) (dev->board.input[nr])
/* device state */
enum au0828_dev_state {
DEV_INITIALIZED = 0,
DEV_DISCONNECTED = 1,
DEV_MISCONFIGURED = 2
};
struct au0828_dev;
struct au0828_usb_isoc_ctl {
/* max packet size of isoc transaction */
int max_pkt_size;
/* number of allocated urbs */
int num_bufs;
/* urb for isoc transfers */
struct urb **urb;
/* transfer buffers for isoc transfer */
char **transfer_buffer;
/* Last buffer command and region */
u8 cmd;
int pos, size, pktsize;
/* Last field: ODD or EVEN? */
int field;
/* Stores incomplete commands */
u32 tmp_buf;
int tmp_buf_len;
/* Stores already requested buffers */
struct au0828_buffer *buf;
struct au0828_buffer *vbi_buf;
/* Stores the number of received fields */
int nfields;
/* isoc urb callback */
int (*isoc_copy) (struct au0828_dev *dev, struct urb *urb);
};
/* buffer for one video frame */
struct au0828_buffer {
/* common v4l buffer stuff -- must be first */
struct vb2_v4l2_buffer vb;
Annotation
- Immediate include surface: `linux/bitops.h`, `linux/usb.h`, `linux/i2c.h`, `linux/i2c-algo-bit.h`, `media/tveeprom.h`, `linux/videodev2.h`, `media/videobuf2-v4l2.h`, `media/videobuf2-vmalloc.h`.
- Detected declarations: `struct au0828_input`, `struct au0828_board`, `struct au0828_dvb`, `struct au0828_dev`, `struct au0828_usb_isoc_ctl`, `struct au0828_buffer`, `struct au0828_dmaqueue`, `struct au0828_dev`, `enum au0828_itype`, `enum au0828_stream_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.