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.
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
dml2_dc_types.h
Detected Declarations
struct dml2_contextstruct dml2_dml_to_dc_pipe_mappingstruct dml_display_cfg_st
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
- Immediate include surface: `dml2_dc_types.h`.
- Detected declarations: `struct dml2_context`, `struct dml2_dml_to_dc_pipe_mapping`, `struct dml_display_cfg_st`.
- Atlas domain: Driver Families / drivers/gpu.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.