drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/display/dc/inc/hw/mpc.h- Extension
.h- Size
- 26407 bytes
- Lines
- 1159
- 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
dc_hw_types.hhw_shared.htransform.h
Detected Declarations
struct mpc_fl_3dlut_configstruct mpcc_blnd_cfgstruct mpc_grph_gamut_adjustmentstruct mpc_rmcm_regsstruct mpcc_sm_cfgstruct mpc_denorm_clampstruct mpc_dwb_flow_controlstruct mpccstruct mpc_treestruct mpcstruct mpcc_statestruct dcn_mpc_reg_statestruct mpc_funcsenum mpc_output_csc_modeenum mpcc_blend_modeenum mpcc_alpha_blend_modeenum mpcc_movable_cm_locationenum MCM_LUT_XABLEenum MCM_LUT_ID
Annotated Snippet
struct mpc_fl_3dlut_config {
bool enabled;
uint16_t width;
bool select_lut_bank_a;
uint16_t bit_depth;
int hubp_index;
uint16_t bias;
uint16_t scale;
};
union mcm_lut_params {
const struct pwl_params *pwl;
const struct tetrahedral_params *lut3d;
};
/**
* struct mpcc_blnd_cfg - MPCC blending configuration
*/
struct mpcc_blnd_cfg {
/**
* @black_color: background color.
*/
struct tg_color black_color;
/**
* @alpha_mode: alpha blend mode (MPCC_ALPHA_BLND_MODE).
*/
enum mpcc_alpha_blend_mode alpha_mode;
/**
* @pre_multiplied_alpha:
* Whether pixel color values were pre-multiplied by the alpha channel
* (MPCC_ALPHA_MULTIPLIED_MODE).
*/
bool pre_multiplied_alpha;
/**
* @global_gain: Used when blend mode considers both pixel alpha and plane.
*/
int global_gain;
/**
* @global_alpha: Plane alpha value.
*/
int global_alpha;
/**
* @overlap_only: Whether overlapping of different planes is allowed.
*/
bool overlap_only;
/* MPCC top/bottom gain settings */
/**
* @bottom_gain_mode: Blend mode for bottom gain setting.
*/
int bottom_gain_mode;
/**
* @background_color_bpc: Background color for bpc.
*/
int background_color_bpc;
/**
* @top_gain: Top gain setting.
*/
int top_gain;
/**
* @bottom_inside_gain: Blend mode for bottom inside.
*/
int bottom_inside_gain;
/**
* @bottom_outside_gain: Blend mode for bottom outside.
*/
int bottom_outside_gain;
};
struct mpc_grph_gamut_adjustment {
struct fixed31_32 temperature_matrix[CSC_TEMPERATURE_MATRIX_SIZE];
enum graphics_gamut_adjust_type gamut_adjust_type;
enum mpcc_gamut_remap_id mpcc_gamut_remap_block_id;
};
struct mpc_rmcm_regs {
uint32_t rmcm_3dlut_mem_pwr_state;
uint32_t rmcm_3dlut_mem_pwr_force;
uint32_t rmcm_3dlut_mem_pwr_dis;
uint32_t rmcm_3dlut_mem_pwr_mode;
Annotation
- Immediate include surface: `dc_hw_types.h`, `hw_shared.h`, `transform.h`.
- Detected declarations: `struct mpc_fl_3dlut_config`, `struct mpcc_blnd_cfg`, `struct mpc_grph_gamut_adjustment`, `struct mpc_rmcm_regs`, `struct mpcc_sm_cfg`, `struct mpc_denorm_clamp`, `struct mpc_dwb_flow_control`, `struct mpcc`, `struct mpc_tree`, `struct mpc`.
- 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.