drivers/gpu/drm/amd/display/dc/inc/hw/mcif_wb.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/dc/inc/hw/mcif_wb.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/display/dc/inc/hw/mcif_wb.h- Extension
.h- Size
- 3021 bytes
- Lines
- 110
- 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.h
Detected Declarations
struct mcif_arb_paramsstruct mcif_irq_paramsstruct mcif_wb_frame_dump_infostruct mcif_wbstruct mcif_wb_funcsenum mmhubbub_wbif_mode
Annotated Snippet
struct mcif_arb_params {
unsigned int time_per_pixel;
unsigned int cli_watermark[4];
unsigned int pstate_watermark[4];
unsigned int arbitration_slice;
unsigned int slice_lines;
unsigned int max_scaled_time;
unsigned int dram_speed_change_duration;
};
struct mcif_irq_params {
unsigned int sw_int_en;
unsigned int sw_slice_int_en;
unsigned int sw_overrun_int_en;
unsigned int vce_int_en;
unsigned int vce_slice_int_en;
};
/* / - mcif_wb_frame_dump_info is the info of the dumping WB data */
struct mcif_wb_frame_dump_info {
unsigned int size;
unsigned int width;
unsigned int height;
unsigned int luma_pitch;
unsigned int chroma_pitch;
enum dwb_scaler_mode format;
};
struct mcif_wb {
const struct mcif_wb_funcs *funcs;
struct dc_context *ctx;
int inst;
};
struct mcif_wb_funcs {
void (*warmup_mcif)(
struct mcif_wb *mcif_wb,
struct mcif_warmup_params *params);
void (*enable_mcif)(struct mcif_wb *mcif_wb);
void (*disable_mcif)(struct mcif_wb *mcif_wb);
void (*config_mcif_buf)(
struct mcif_wb *mcif_wb,
struct mcif_buf_params *params,
unsigned int dest_height);
void (*config_mcif_arb)(
struct mcif_wb *mcif_wb,
struct mcif_arb_params *params);
void (*config_mcif_irq)(
struct mcif_wb *mcif_wb,
struct mcif_irq_params *params);
void (*dump_frame)(
struct mcif_wb *mcif_wb,
struct mcif_buf_params *mcif_params,
enum dwb_scaler_mode out_format,
unsigned int dest_width,
unsigned int dest_height,
struct mcif_wb_frame_dump_info *dump_info,
unsigned char *luma_buffer,
unsigned char *chroma_buffer,
unsigned char *dest_luma_buffer,
unsigned char *dest_chroma_buffer);
};
#endif
Annotation
- Immediate include surface: `dc_hw_types.h`.
- Detected declarations: `struct mcif_arb_params`, `struct mcif_irq_params`, `struct mcif_wb_frame_dump_info`, `struct mcif_wb`, `struct mcif_wb_funcs`, `enum mmhubbub_wbif_mode`.
- 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.