drivers/gpu/drm/imagination/pvr_stream.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/imagination/pvr_stream.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/imagination/pvr_stream.h
Extension
.h
Size
1500 bytes
Lines
76
Domain
Driver Families
Bucket
drivers/gpu
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 pvr_stream_def {
	u32 offset;
	enum pvr_stream_size size;
	u32 array_size;
	u32 feature;
};

struct pvr_stream_ext_def {
	const struct pvr_stream_def *stream;
	u32 stream_len;
	u32 header_mask;
	u32 quirk;
};

struct pvr_stream_ext_header {
	const struct pvr_stream_ext_def *ext_streams;
	u32 ext_streams_num;
	u32 valid_mask;
};

struct pvr_stream_cmd_defs {
	enum pvr_stream_type type;

	const struct pvr_stream_def *main_stream;
	u32 main_stream_len;

	u32 ext_nr_headers;
	const struct pvr_stream_ext_header *ext_headers;

	size_t dest_size;
};

int
pvr_stream_process(struct pvr_device *pvr_dev, const struct pvr_stream_cmd_defs *cmd_defs,
		   void *stream, u32 stream_size, void *dest_out);
void
pvr_stream_create_musthave_masks(struct pvr_device *pvr_dev);

#endif /* PVR_STREAM_H */

Annotation

Implementation Notes