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.

Dependency Surface

Detected Declarations

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

Implementation Notes