drivers/gpu/drm/i915/display/intel_dpio_phy.c
Source file repositories/reference/linux-study-clean/drivers/gpu/drm/i915/display/intel_dpio_phy.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/gpu/drm/i915/display/intel_dpio_phy.c- Extension
.c- Size
- 35441 bytes
- Lines
- 1203
- 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
drm/drm_print.hbxt_dpio_phy_regs.hintel_ddi.hintel_ddi_buf_trans.hintel_de.hintel_display_power_well.hintel_display_regs.hintel_display_types.hintel_display_utils.hintel_dp.hintel_dpio_phy.hvlv_dpio_phy_regs.hvlv_sideband.h
Detected Declarations
struct bxt_dpio_phy_infofunction bxt_get_phy_listfunction bxt_get_phy_infofunction bxt_port_to_phy_channelfunction intel_de_rmwfunction bxt_dpio_phy_set_signal_levelsfunction bxt_dpio_phy_is_enabledfunction bxt_get_grcfunction bxt_phy_wait_grc_donefunction _bxt_dpio_phy_initfunction bxt_dpio_phy_uninitfunction bxt_dpio_phy_initfunction __printffunction bxt_dpio_phy_verify_statefunction bxt_dpio_phy_calc_lane_lat_optim_maskfunction bxt_dpio_phy_set_lane_optim_maskfunction bxt_dpio_phy_get_lane_lat_optim_maskfunction vlv_dig_port_to_channelfunction vlv_dig_port_to_phyfunction vlv_pipe_to_phyfunction vlv_pipe_to_channelfunction chv_set_phy_signal_levelfunction __chv_data_lane_soft_resetfunction chv_data_lane_soft_resetfunction chv_phy_pre_pll_enablefunction chv_phy_pre_encoder_enablefunction chv_phy_release_cl2_overridefunction chv_phy_post_pll_disablefunction vlv_set_phy_signal_levelfunction vlv_phy_pre_pll_enablefunction vlv_phy_pre_encoder_enablefunction vlv_phy_reset_lanesfunction vlv_wait_port_ready
Annotated Snippet
struct bxt_dpio_phy_info {
/**
* @dual_channel: true if this phy has a second channel.
*/
bool dual_channel;
/**
* @rcomp_phy: If -1, indicates this phy has its own rcomp resistor.
* Otherwise the GRC value will be copied from the phy indicated by
* this field.
*/
enum dpio_phy rcomp_phy;
/**
* @reset_delay: delay in us to wait before setting the common reset
* bit in BXT_PHY_CTL_FAMILY, which effectively enables the phy.
*/
int reset_delay;
/**
* @pwron_mask: Mask with the appropriate bit set that would cause the
* punit to power this phy if written to BXT_P_CR_GT_DISP_PWRON.
*/
u32 pwron_mask;
/**
* @channel: struct containing per channel information.
*/
struct {
/**
* @channel.port: which port maps to this channel.
*/
enum port port;
} channel[2];
};
static const struct bxt_dpio_phy_info bxt_dpio_phy_info[] = {
[DPIO_PHY0] = {
.dual_channel = true,
.rcomp_phy = DPIO_PHY1,
.pwron_mask = BIT(0),
.channel = {
[DPIO_CH0] = { .port = PORT_B },
[DPIO_CH1] = { .port = PORT_C },
}
},
[DPIO_PHY1] = {
.dual_channel = false,
.rcomp_phy = -1,
.pwron_mask = BIT(1),
.channel = {
[DPIO_CH0] = { .port = PORT_A },
}
},
};
static const struct bxt_dpio_phy_info glk_dpio_phy_info[] = {
[DPIO_PHY0] = {
.dual_channel = false,
.rcomp_phy = DPIO_PHY1,
.pwron_mask = BIT(0),
.reset_delay = 20,
.channel = {
[DPIO_CH0] = { .port = PORT_B },
}
},
[DPIO_PHY1] = {
.dual_channel = false,
.rcomp_phy = -1,
.pwron_mask = BIT(3),
.reset_delay = 20,
.channel = {
[DPIO_CH0] = { .port = PORT_A },
}
},
[DPIO_PHY2] = {
.dual_channel = false,
.rcomp_phy = DPIO_PHY1,
.pwron_mask = BIT(1),
.reset_delay = 20,
.channel = {
[DPIO_CH0] = { .port = PORT_C },
}
},
};
Annotation
- Immediate include surface: `drm/drm_print.h`, `bxt_dpio_phy_regs.h`, `intel_ddi.h`, `intel_ddi_buf_trans.h`, `intel_de.h`, `intel_display_power_well.h`, `intel_display_regs.h`, `intel_display_types.h`.
- Detected declarations: `struct bxt_dpio_phy_info`, `function bxt_get_phy_list`, `function bxt_get_phy_info`, `function bxt_port_to_phy_channel`, `function intel_de_rmw`, `function bxt_dpio_phy_set_signal_levels`, `function bxt_dpio_phy_is_enabled`, `function bxt_get_grc`, `function bxt_phy_wait_grc_done`, `function _bxt_dpio_phy_init`.
- 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.