drivers/media/platform/renesas/vsp1/vsp1_drm.h
Source file repositories/reference/linux-study-clean/drivers/media/platform/renesas/vsp1/vsp1_drm.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/platform/renesas/vsp1/vsp1_drm.h- Extension
.h- Size
- 2261 bytes
- Lines
- 81
- 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/mutex.hlinux/videodev2.hlinux/wait.hmedia/vsp1.hvsp1_pipe.h
Detected Declarations
struct vsp1_drm_pipelinestruct vsp1_drmstruct vsp1_drm_inputfunction to_vsp1_drm_pipeline
Annotated Snippet
struct vsp1_drm_pipeline {
struct vsp1_pipeline pipe;
struct vsp1_partition partition;
unsigned int width;
unsigned int height;
bool force_brx_release;
wait_queue_head_t wait_queue;
struct vsp1_entity *uif;
struct vsp1_du_crc_config crc;
/* Frame synchronisation */
void (*du_complete)(void *data, unsigned int status, u32 crc);
void *du_private;
};
/**
* struct vsp1_drm - State for the API exposed to the DRM driver
* @pipe: the VSP1 DRM pipeline used for display
* @lock: protects the BRU and BRS allocation
* @inputs: source crop rectangle, destination compose rectangle, z-order
* position and colorspace for every input (indexed by RPF index)
*/
struct vsp1_drm {
struct vsp1_drm_pipeline pipe[VSP1_MAX_LIF];
struct mutex lock;
struct vsp1_drm_input {
struct v4l2_rect crop;
struct v4l2_rect compose;
unsigned int zpos;
enum v4l2_ycbcr_encoding ycbcr_enc;
enum v4l2_quantization quantization;
} inputs[VSP1_MAX_RPF];
};
static inline struct vsp1_drm_pipeline *
to_vsp1_drm_pipeline(struct vsp1_pipeline *pipe)
{
return container_of(pipe, struct vsp1_drm_pipeline, pipe);
}
int vsp1_drm_init(struct vsp1_device *vsp1);
void vsp1_drm_cleanup(struct vsp1_device *vsp1);
#endif /* __VSP1_DRM_H__ */
Annotation
- Immediate include surface: `linux/mutex.h`, `linux/videodev2.h`, `linux/wait.h`, `media/vsp1.h`, `vsp1_pipe.h`.
- Detected declarations: `struct vsp1_drm_pipeline`, `struct vsp1_drm`, `struct vsp1_drm_input`, `function to_vsp1_drm_pipeline`.
- 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.