drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.h

Source file repositories/reference/linux-study-clean/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.h

File Facts

System
Linux kernel
Corpus path
drivers/staging/media/sunxi/sun6i-isp/sun6i_isp_params.h
Extension
.h
Size
1129 bytes
Lines
53
Domain
Driver Families
Bucket
drivers/staging
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 sun6i_isp_params_state {
	struct list_head		queue; /* Queue and buffers lock. */
	spinlock_t			lock;

	struct sun6i_isp_buffer		*pending;

	bool				configured;
	bool				streaming;
};

struct sun6i_isp_params {
	struct sun6i_isp_params_state	state;

	struct video_device		video_dev;
	struct vb2_queue		queue;
	struct mutex			lock; /* Queue lock. */
	struct media_pad		pad;

	struct v4l2_format		format;
};

/* Params */

void sun6i_isp_params_configure(struct sun6i_isp_device *isp_dev);

/* State */

void sun6i_isp_params_state_update(struct sun6i_isp_device *isp_dev,
				   bool *update);
void sun6i_isp_params_state_complete(struct sun6i_isp_device *isp_dev);

/* Params */

int sun6i_isp_params_setup(struct sun6i_isp_device *isp_dev);
void sun6i_isp_params_cleanup(struct sun6i_isp_device *isp_dev);

#endif

Annotation

Implementation Notes