drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.h

Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.h

File Facts

System
Linux kernel
Corpus path
drivers/gpu/drm/amd/display/dc/dml2_0/dml2_dc_resource_mgmt.h
Extension
.h
Size
2187 bytes
Lines
53
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

#ifndef __DML2_DC_RESOURCE_MGMT_H__
#define __DML2_DC_RESOURCE_MGMT_H__

#include "dml2_dc_types.h"

struct dml2_context;
struct dml2_dml_to_dc_pipe_mapping;
struct dml_display_cfg_st;

/*
 * dml2_map_dc_pipes - Creates a pipe linkage in dc_state based on current display config.
 * @ctx: Input dml2 context
 * @state: Current dc_state to be updated.
 * @disp_cfg: Current display config.
 * @mapping: Pipe mapping logic structure to keep a track of pipes to be used.
 *
 * Based on ODM and DPPPersurface outputs calculated by the DML for the current display
 * config, create a pipe linkage in dc_state which is then used by DC core.
 * Make this function generic to be used by multiple DML versions.
 *
 * Return: True if pipe mapping and linking is successful, false otherwise.
 */

bool dml2_map_dc_pipes(struct dml2_context *ctx, struct dc_state *state, const struct dml_display_cfg_st *disp_cfg, struct dml2_dml_to_dc_pipe_mapping *mapping, const struct dc_state *existing_state);

#endif

Annotation

Implementation Notes