drivers/media/platform/ti/omap/omap_voutdef.h
Source file repositories/reference/linux-study-clean/drivers/media/platform/ti/omap/omap_voutdef.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/platform/ti/omap/omap_voutdef.h- Extension
.h- Size
- 5265 bytes
- Lines
- 220
- 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
media/videobuf2-dma-contig.hmedia/v4l2-ctrls.hvideo/omapfb_dss.hvideo/omapvrfb.hlinux/dmaengine.h
Detected Declarations
struct vid_vrfb_dmastruct omapvideo_infostruct omap2video_devicestruct omap_vout_bufferstruct omap_vout_deviceenum dma_channel_stateenum dss_rotationenum vout_rotaion_typefunction is_rotation_90_or_270function is_rotation_enabledfunction calc_rotation
Annotated Snippet
struct vid_vrfb_dma {
struct dma_chan *chan;
struct dma_interleaved_template *xt;
int req_status;
int tx_status;
wait_queue_head_t wait;
};
struct omapvideo_info {
int id;
int num_overlays;
struct omap_overlay *overlays[MAX_OVLS];
enum vout_rotaion_type rotation_type;
};
struct omap2video_device {
struct mutex mtx;
int state;
struct v4l2_device v4l2_dev;
struct omap_vout_device *vouts[MAX_VOUT_DEV];
int num_displays;
struct omap_dss_device *displays[MAX_DISPLAYS];
int num_overlays;
struct omap_overlay *overlays[MAX_OVLS];
int num_managers;
struct omap_overlay_manager *managers[MAX_MANAGERS];
};
/* buffer for one video frame */
struct omap_vout_buffer {
/* common v4l buffer stuff -- must be first */
struct vb2_v4l2_buffer vbuf;
struct list_head queue;
};
static inline struct omap_vout_buffer *vb2_to_omap_vout_buffer(struct vb2_buffer *vb)
{
struct vb2_v4l2_buffer *vbuf = to_vb2_v4l2_buffer(vb);
return container_of(vbuf, struct omap_vout_buffer, vbuf);
}
/* per-device data structure */
struct omap_vout_device {
struct omapvideo_info vid_info;
struct video_device *vfd;
struct omap2video_device *vid_dev;
struct v4l2_ctrl_handler ctrl_handler;
int vid;
/* allow to reuse previously allocated buffer which is big enough */
int buffer_size;
enum omap_color_mode dss_mode;
u32 sequence;
struct v4l2_pix_format pix;
struct v4l2_rect crop;
struct v4l2_window win;
struct v4l2_framebuffer fbuf;
/* Lock to protect the shared data structures in ioctl */
struct mutex lock;
enum dss_rotation rotation;
bool mirror;
int flicker_filter;
int bpp; /* bytes per pixel */
int vrfb_bpp; /* bytes per pixel with respect to VRFB */
struct vid_vrfb_dma vrfb_dma_tx;
unsigned int smsshado_phy_addr[MAC_VRFB_CTXS];
unsigned int smsshado_virt_addr[MAC_VRFB_CTXS];
struct vrfb vrfb_context[MAC_VRFB_CTXS];
bool vrfb_static_allocation;
unsigned int smsshado_size;
unsigned char pos;
int ps, vr_ps, line_length, first_int, field_id;
struct omap_vout_buffer *cur_frm, *next_frm;
spinlock_t vbq_lock; /* spinlock for dma_queue */
struct list_head dma_queue;
dma_addr_t queued_buf_addr[VIDEO_MAX_FRAME];
u32 cropped_offset;
Annotation
- Immediate include surface: `media/videobuf2-dma-contig.h`, `media/v4l2-ctrls.h`, `video/omapfb_dss.h`, `video/omapvrfb.h`, `linux/dmaengine.h`.
- Detected declarations: `struct vid_vrfb_dma`, `struct omapvideo_info`, `struct omap2video_device`, `struct omap_vout_buffer`, `struct omap_vout_device`, `enum dma_channel_state`, `enum dss_rotation`, `enum vout_rotaion_type`, `function is_rotation_90_or_270`, `function is_rotation_enabled`.
- 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.