drivers/gpu/drm/i915/display/skl_prefill.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/display/skl_prefill.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/i915/display/skl_prefill.h
Extension
.h
Size
1177 bytes
Lines
47
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 skl_prefill_ctx {
	/* .16 scanlines */
	struct {
		unsigned int fixed;
		unsigned int wm0;
		unsigned int scaler_1st;
		unsigned int scaler_2nd;
		unsigned int dsc;
		unsigned int full;
	} prefill;

	/* .16 adjustment factors */
	struct {
		unsigned int cdclk;
		unsigned int scaler_1st;
		unsigned int scaler_2nd;
	} adj;
};

void skl_prefill_init_worst(struct skl_prefill_ctx *ctx,
			    const struct intel_crtc_state *crtc_state);
void skl_prefill_init(struct skl_prefill_ctx *ctx,
		      const struct intel_crtc_state *crtc_state);

bool skl_prefill_vblank_too_short(const struct skl_prefill_ctx *ctx,
				  const struct intel_crtc_state *crtc_state,
				  unsigned int latency_us);
int skl_prefill_min_guardband(const struct skl_prefill_ctx *ctx,
			      const struct intel_crtc_state *crtc_state,
			      unsigned int latency_us);
int skl_prefill_min_cdclk(const struct skl_prefill_ctx *ctx,
			  const struct intel_crtc_state *crtc_state);

#endif /* __SKL_PREFILL_H__ */

Annotation

Implementation Notes