drivers/media/pci/cx25821/cx25821.h
Source file repositories/reference/linux-study-clean/drivers/media/pci/cx25821/cx25821.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/pci/cx25821/cx25821.h- Extension
.h- Size
- 10741 bytes
- Lines
- 427
- 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/pci.hlinux/i2c.hlinux/interrupt.hlinux/delay.hlinux/sched.hlinux/kdev_t.hmedia/v4l2-common.hmedia/v4l2-device.hmedia/v4l2-ctrls.hmedia/videobuf2-v4l2.hmedia/videobuf2-dma-sg.hcx25821-reg.hcx25821-medusa-reg.hcx25821-sram.hcx25821-audio.hlinux/mutex.h
Detected Declarations
struct cx25821_fmtstruct cx25821_tvnormstruct cx25821_riscmemstruct cx25821_bufferstruct cx25821_boardstruct cx25821_i2cstruct cx25821_dmaqueuestruct cx25821_devstruct cx25821_channelstruct cx25821_video_out_datastruct cx25821_channelstruct snd_cardstruct cx25821_devstruct sram_channelenum cx25821_src_sel_typeenum port
Annotated Snippet
struct cx25821_fmt {
u32 fourcc; /* v4l2 format id */
int depth;
int flags;
u32 cxformat;
};
struct cx25821_tvnorm {
char *name;
v4l2_std_id id;
u32 cxiformat;
u32 cxoformat;
};
enum cx25821_src_sel_type {
CX25821_SRC_SEL_EXT_656_VIDEO = 0,
CX25821_SRC_SEL_PARALLEL_MPEG_VIDEO
};
struct cx25821_riscmem {
unsigned int size;
__le32 *cpu;
__le32 *jmp;
dma_addr_t dma;
};
/* buffer for one video frame */
struct cx25821_buffer {
/* common v4l buffer stuff -- must be first */
struct vb2_v4l2_buffer vb;
struct list_head queue;
/* cx25821 specific */
unsigned int bpl;
struct cx25821_riscmem risc;
const struct cx25821_fmt *fmt;
};
enum port {
CX25821_UNDEFINED = 0,
CX25821_RAW,
CX25821_264
};
struct cx25821_board {
const char *name;
enum port porta;
enum port portb;
enum port portc;
u32 clk_freq;
};
struct cx25821_i2c {
struct cx25821_dev *dev;
int nr;
/* i2c i/o */
struct i2c_adapter i2c_adap;
struct i2c_client i2c_client;
u32 i2c_rc;
/* cx25821 registers used for raw address */
u32 i2c_period;
u32 reg_ctrl;
u32 reg_stat;
u32 reg_addr;
u32 reg_rdata;
u32 reg_wdata;
};
struct cx25821_dmaqueue {
struct list_head active;
u32 count;
};
struct cx25821_dev;
struct cx25821_channel;
struct cx25821_video_out_data {
struct cx25821_channel *chan;
int _line_size;
int _prog_cnt;
int _pixel_format;
int _is_first_frame;
int _is_running;
int _file_status;
int _lines_count;
Annotation
- Immediate include surface: `linux/pci.h`, `linux/i2c.h`, `linux/interrupt.h`, `linux/delay.h`, `linux/sched.h`, `linux/kdev_t.h`, `media/v4l2-common.h`, `media/v4l2-device.h`.
- Detected declarations: `struct cx25821_fmt`, `struct cx25821_tvnorm`, `struct cx25821_riscmem`, `struct cx25821_buffer`, `struct cx25821_board`, `struct cx25821_i2c`, `struct cx25821_dmaqueue`, `struct cx25821_dev`, `struct cx25821_channel`, `struct cx25821_video_out_data`.
- 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.