drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_standalone_libraries/lib_frl_cap_check.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_standalone_libraries/lib_frl_cap_check.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/amd/display/dc/dml2_0/dml21/src/dml2_standalone_libraries/lib_frl_cap_check.h
Extension
.h
Size
2199 bytes
Lines
91
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 lib_frl_cap_check_intermediates {
	int c_frl_sb;
	double overhead_sb;
	double overhead_rs;
	double overhead_map;
	double overhead_min;
	double overhead_max;
	double f_pixel_clock_max;
	double t_line;
	double r_bit_min;
	double r_frl_char_min;
	double c_frl_line;
	double ap;
	double r_ap;
	double avg_audio_packets_line;
	int audio_packets_line;
	int blank_audio_min;
};

struct lib_frl_cap_check_params {
	int lanes;
	double f_pixel_clock_nominal; /* Pixel Clock rate (Hz) */
	double r_bit_nominal; /* FRL bitrate (bps) */
	int audio_packet_type;
	double f_audio; /* Audio rate (Hz) */
	int h_active; /* Active pixels per line */
	int h_blank; /* Blanking pixels per line */
	int bpc; /* Bits per component */

	enum lib_frl_cap_check_pixel_encoding pixel_encoding;

	bool compressed;
	bool bypass_hc_target_calc;

	/* DSC parameters */
	int slices;
	int slice_width;
	double bpp_target;

	int layout; /* not supported */
	int acat; /* not supported */

	/* outputs */
	int audio_packets_line;

	/* inputs or outputs */
	int hc_active_target;
	int hc_blank_target;

	enum lib_frl_cap_check_borrow_mode borrow_mode;
};

enum lib_frl_cap_check_status frl_cap_check(struct lib_frl_cap_check_params *params);
enum lib_frl_cap_check_status frl_cap_check_intermediates(struct lib_frl_cap_check_params *params, struct lib_frl_cap_check_intermediates *inter);

#endif

Annotation

Implementation Notes