drivers/gpu/drm/amd/display/dc/dm_services_types.h
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/amd/display/dc/dm_services_types.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/amd/display/dc/dm_services_types.h- Extension
.h- Size
- 7507 bytes
- Lines
- 276
- 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
os_types.hdc_types.h
Detected Declarations
struct pp_smu_funcsstruct dm_pp_clock_rangestruct dm_pp_gpu_clock_rangestruct dm_pp_clock_levelsstruct dm_pp_clock_with_latencystruct dm_pp_clock_levels_with_latencystruct dm_pp_clock_with_voltagestruct dm_pp_clock_levels_with_voltagestruct dm_pp_single_disp_configstruct dm_pp_clock_range_for_wm_setstruct dm_pp_wm_sets_with_clock_rangesstruct dm_pp_clock_range_for_dmif_wm_set_soc15struct dm_pp_clock_range_for_mcif_wm_set_soc15struct dm_pp_wm_sets_with_clock_ranges_soc15struct dm_pp_display_configurationstruct dm_bl_data_pointstruct dm_acpi_atif_backlight_capsstruct dm_pp_clock_for_voltage_reqstruct dm_pp_static_clock_infostruct dtn_min_clk_infostruct dm_process_phy_transition_init_paramsstruct dm_process_phy_transition_input_paramsenum dm_pp_clock_typeenum dm_pp_wm_set_idenum dm_acpi_display_typeenum dm_dmub_wait_typeenum dm_acpi_transition_link_type
Annotated Snippet
struct dm_pp_clock_range {
int min_khz;
int max_khz;
};
struct dm_pp_gpu_clock_range {
struct dm_pp_clock_range sclk;
struct dm_pp_clock_range mclk;
struct dm_pp_clock_range eclk;
struct dm_pp_clock_range dclk;
};
enum dm_pp_clock_type {
DM_PP_CLOCK_TYPE_DISPLAY_CLK = 1,
DM_PP_CLOCK_TYPE_ENGINE_CLK, /* System clock */
DM_PP_CLOCK_TYPE_MEMORY_CLK,
DM_PP_CLOCK_TYPE_DCFCLK,
DM_PP_CLOCK_TYPE_DCEFCLK,
DM_PP_CLOCK_TYPE_SOCCLK,
DM_PP_CLOCK_TYPE_PIXELCLK,
DM_PP_CLOCK_TYPE_DISPLAYPHYCLK,
DM_PP_CLOCK_TYPE_DPPCLK,
DM_PP_CLOCK_TYPE_FCLK,
};
#define DC_DECODE_PP_CLOCK_TYPE(clk_type) \
(clk_type) == DM_PP_CLOCK_TYPE_DISPLAY_CLK ? "Display" : \
(clk_type) == DM_PP_CLOCK_TYPE_ENGINE_CLK ? "Engine" : \
(clk_type) == DM_PP_CLOCK_TYPE_MEMORY_CLK ? "Memory" : \
(clk_type) == DM_PP_CLOCK_TYPE_DCFCLK ? "DCF" : \
(clk_type) == DM_PP_CLOCK_TYPE_DCEFCLK ? "DCEF" : \
(clk_type) == DM_PP_CLOCK_TYPE_SOCCLK ? "SoC" : \
(clk_type) == DM_PP_CLOCK_TYPE_PIXELCLK ? "Pixel" : \
(clk_type) == DM_PP_CLOCK_TYPE_DISPLAYPHYCLK ? "Display PHY" : \
(clk_type) == DM_PP_CLOCK_TYPE_DPPCLK ? "DPP" : \
(clk_type) == DM_PP_CLOCK_TYPE_FCLK ? "F" : \
"Invalid"
#define DM_PP_MAX_CLOCK_LEVELS 16
struct dm_pp_clock_levels {
uint32_t num_levels;
uint32_t clocks_in_khz[DM_PP_MAX_CLOCK_LEVELS];
};
struct dm_pp_clock_with_latency {
uint32_t clocks_in_khz;
uint32_t latency_in_us;
};
struct dm_pp_clock_levels_with_latency {
uint32_t num_levels;
struct dm_pp_clock_with_latency data[DM_PP_MAX_CLOCK_LEVELS];
};
struct dm_pp_clock_with_voltage {
uint32_t clocks_in_khz;
uint32_t voltage_in_mv;
};
struct dm_pp_clock_levels_with_voltage {
uint32_t num_levels;
struct dm_pp_clock_with_voltage data[DM_PP_MAX_CLOCK_LEVELS];
};
struct dm_pp_single_disp_config {
enum signal_type signal;
uint8_t transmitter;
uint8_t ddi_channel_mapping;
uint8_t pipe_idx;
uint32_t src_height;
uint32_t src_width;
uint32_t v_refresh;
uint32_t pixel_clock; /* Pixel clock in KHz (for HDMI only: normalized) */
struct dc_link_settings link_settings; /* DP only */
};
#define MAX_WM_SETS 4
enum dm_pp_wm_set_id {
WM_SET_A = 0,
WM_SET_B,
WM_SET_C,
WM_SET_D,
WM_SET_INVALID = 0xffff,
};
struct dm_pp_clock_range_for_wm_set {
enum dm_pp_wm_set_id wm_set_id;
uint32_t wm_min_eng_clk_in_khz;
Annotation
- Immediate include surface: `os_types.h`, `dc_types.h`.
- Detected declarations: `struct pp_smu_funcs`, `struct dm_pp_clock_range`, `struct dm_pp_gpu_clock_range`, `struct dm_pp_clock_levels`, `struct dm_pp_clock_with_latency`, `struct dm_pp_clock_levels_with_latency`, `struct dm_pp_clock_with_voltage`, `struct dm_pp_clock_levels_with_voltage`, `struct dm_pp_single_disp_config`, `struct dm_pp_clock_range_for_wm_set`.
- 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.