drivers/media/platform/ti/davinci/vpif.h
Source file repositories/reference/linux-study-clean/drivers/media/platform/ti/davinci/vpif.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/platform/ti/davinci/vpif.h- Extension
.h- Size
- 21173 bytes
- Lines
- 680
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/io.hlinux/videodev2.hmedia/davinci/vpif_types.h
Detected Declarations
struct vpif_channel_config_paramsstruct vpif_video_paramsstruct vpif_paramsstruct vpif_vbi_paramsstruct vpif_vbi_paramsstruct vpif_video_paramsstruct vpif_paramsenum data_sizefunction vpif_set_bitfunction vpif_clr_bitfunction enable_channel0function enable_channel1function channel0_intr_enablefunction channel1_intr_enablefunction ch0_set_video_buf_addr_yc_nmuxfunction ch0_set_video_buf_addrfunction ch1_set_video_buf_addrfunction ch0_set_vbi_addrfunction ch0_set_hbi_addrfunction ch1_set_vbi_addrfunction ch1_set_hbi_addrfunction disable_raw_featurefunction enable_raw_featurefunction enable_channel2function enable_channel3function channel2_intr_enablefunction channel3_intr_enablefunction channel2_raw_enablefunction channel3_raw_enablefunction channel2_clipping_enablefunction channel3_clipping_enablefunction ch2_set_video_buf_addr_yc_nmuxfunction ch2_set_video_buf_addrfunction ch3_set_video_buf_addrfunction ch2_set_vbi_addrfunction ch3_set_vbi_addrfunction vpif_intr_status
Annotated Snippet
struct vpif_channel_config_params {
char name[VPIF_MAX_NAME]; /* Name of the mode */
u16 width; /* Indicates width of the image */
u16 height; /* Indicates height of the image */
u8 frm_fmt; /* Interlaced (0) or progressive (1) */
u8 ycmux_mode; /* This mode requires one (0) or two (1)
channels */
u16 eav2sav; /* length of eav 2 sav */
u16 sav2eav; /* length of sav 2 eav */
u16 l1, l3, l5, l7, l9, l11; /* Other parameter configurations */
u16 vsize; /* Vertical size of the image */
u8 capture_format; /* Indicates whether capture format
* is in BT or in CCD/CMOS */
u8 vbi_supported; /* Indicates whether this mode
* supports capturing vbi or not */
u8 hd_sd; /* HDTV (1) or SDTV (0) format */
v4l2_std_id stdid; /* SDTV format */
struct v4l2_dv_timings dv_timings; /* HDTV format */
};
extern const unsigned int vpif_ch_params_count;
extern const struct vpif_channel_config_params vpif_ch_params[];
struct vpif_video_params;
struct vpif_params;
struct vpif_vbi_params;
int vpif_set_video_params(struct vpif_params *vpifparams, u8 channel_id);
void vpif_set_vbi_display_params(struct vpif_vbi_params *vbiparams,
u8 channel_id);
int vpif_channel_getfid(u8 channel_id);
enum data_size {
_8BITS = 0,
_10BITS,
_12BITS,
};
/* Structure for vpif parameters for raw vbi data */
struct vpif_vbi_params {
__u32 hstart0; /* Horizontal start of raw vbi data for first field */
__u32 vstart0; /* Vertical start of raw vbi data for first field */
__u32 hsize0; /* Horizontal size of raw vbi data for first field */
__u32 vsize0; /* Vertical size of raw vbi data for first field */
__u32 hstart1; /* Horizontal start of raw vbi data for second field */
__u32 vstart1; /* Vertical start of raw vbi data for second field */
__u32 hsize1; /* Horizontal size of raw vbi data for second field */
__u32 vsize1; /* Vertical size of raw vbi data for second field */
};
/* structure for vpif parameters */
struct vpif_video_params {
__u8 storage_mode; /* Indicates field or frame mode */
unsigned long hpitch;
v4l2_std_id stdid;
};
struct vpif_params {
struct vpif_interface iface;
struct vpif_video_params video_params;
struct vpif_channel_config_params std_info;
union param {
struct vpif_vbi_params vbi_params;
enum data_size data_sz;
} params;
};
#endif /* End of #ifndef VPIF_H */
Annotation
- Immediate include surface: `linux/io.h`, `linux/videodev2.h`, `media/davinci/vpif_types.h`.
- Detected declarations: `struct vpif_channel_config_params`, `struct vpif_video_params`, `struct vpif_params`, `struct vpif_vbi_params`, `struct vpif_vbi_params`, `struct vpif_video_params`, `struct vpif_params`, `enum data_size`, `function vpif_set_bit`, `function vpif_clr_bit`.
- Atlas domain: Driver Families / drivers/media.
- 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.