STRUCT PHY_CONFIGURE_OPTS_DP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct phy_configure_opts_dp(9) πŸ’…

okay so bestie, this is a page from the Kernel API Manual and honestly? it's giving "I'm the blueprint for your whole DisplayPort era." sit down, grab a strawberry drink πŸ“, and let's get into it.


✨ NAME ✨

struct phy_configure_opts_dp β€” the DisplayPort PHY configuration set. like, the whole vibe of how your DP phy is set up lives in here πŸ’–


🌸 SYNOPSIS 🌸

struct phy_configure_opts_dp {
    unsigned int link_rate;
    unsigned int lanes;
    unsigned int voltage[4];
    unsigned int pre[4];
    u8 ssc : 1;
    u8 set_rate : 1;
    u8 set_lanes : 1;
    u8 set_voltages : 1;
 };

no cap, that's the whole struct. now let's meet the members one by one 🫢


πŸ‘‘ Members πŸ‘‘

  • link_rate β€” the Link Rate, in Mb/s, of the main link. this is literally the main character of the struct.

Allowed values: 1620, 2160, 2430, 2700, 3240, 4320, 5400, 8100 Mb/s ⚑

  • lanes β€” the number of active, consecutive, data lanes, starting from lane 0, used for the transmissions on main link. consecutive is the key word here bestie, no skipping lanes, that's not the vibe.

Allowed values: 1, 2, 4

  • voltage β€” Voltage swing levels, as specified by DisplayPort specification, to be used by particular lanes. one value per lane, so voltage[0] is for lane 0, voltage[1] is for lane 1, etc. it's giving assigned seating but for lanes πŸ’…

Maximum value: 3

  • pre β€” Pre-emphasis levels, as specified by DisplayPort specification, to be used by particular lanes. one value per lane, same deal as above.

Maximum value: 3

  • ssc β€” flag indicating whether or not to enable spread-spectrum clocking. yes/no energy only ✨
  • set_rate β€” flag indicating whether or not to reconfigure link rate and SSC to requested values. it's a "should I actually touch this" flag, iykyk.
  • set_lanes β€” flag indicating whether or not to reconfigure lane count to requested value.
  • set_voltages β€” flag indicating whether or not to reconfigure voltage swing and pre-emphasis to requested values.
heads up bestie β€” only lanes specified by the "lanes" parameter will be affected. the others are just sitting there minding their business πŸ™ˆ

🌈 Description 🌈

This structure is used to represent the configuration state of a DisplayPort phy. that's it, that's the whole job, and it does it iconically ✨


πŸŽ€ SEE ALSO πŸŽ€

  • Kernel file ./include/linux/phy/phy-dp.h

and that's the whole page, bestie! πŸ¦‹

signed off with love from somewhere in ./include/linux/phy, dated October 2026 β€” same struct phy_c...gure_opts_dp(9) energy, just cuter πŸ’œ periodt.

πŸ“¦ where this page comes from