ice_write_64...y_reg_eth56g(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ice_write_64b_phy_reg_eth56g

okay so bestie, this is a page from the Kernel API Manual (section 9, the kernel dev pages, iykyk) and it's literally called ice_write_64...y_reg_eth56g. yes the header is truncated, no that's not a typo on my end, the real function name is down in NAME and it ate. πŸ“


✨ NAME ✨

ice_write_64b_phy_reg_eth56g β€” Write a 64bit value to PHY registers πŸ”₯


πŸ¦‹ SYNOPSIS πŸ¦‹

int ice_write_64b_phy_reg_eth56g (struct ice_hw *hw , u8 port , u16
low_addr , u64 val , enum eth56g_res_type res_type );

that's the whole vibe. five args. no cap. ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • hw β€” pointer to the struct ice_hw, the main character of this whole operation πŸ‘‘
  • port β€” the PHY port to read from, like which port we're pulling up to πŸš—
  • low_addr β€” offset of the lower register to read from πŸ“
  • val β€” the contents of the 64bit value you're writing into the PHY, that's the payload, that's the moment πŸ’–
  • res_type β€” resource type, the enum eth56g_res_type situation 🏷️

🌸 DESCRIPTION 🌸

so here's what's actually happening: it checks if the caller has specified a known 64 bit register offset, and then it writes the 64bit value into the two associated 32bit PHY registers. like the value gets split across both, because that's just how it is. the way that a 64bit value needs two 32bit registers to live in?? iconic honestly πŸ’…

πŸ’€ lowkey important: if the offset isn't a known 64 bit register offset, this whole thing does not proceed. that's the vibe check. see RETURN.

⭐ RETURN ⭐

  • 0 β€” success, we ate, periodt βœ…
  • EINVAL β€” not a 64 bit register πŸ™ˆ
  • other β€” failed to write to PHY 😭

🌈 SEE ALSO 🌈

bestie there are SO many cross references here, it's giving the ice PTP/PHY cinematic universe. buckle up 🧚

Kernel file: ./drivers/net/ethernet/intel/ice/ice_ptp_hw.c

here's the rolodex, in order, exactly as it came:

like I said. whole universe. πŸ’€


okay that's the page bestie, ily, go write your 64bit PHY values responsibly 🫢

this little gem lives in ./drivers/net/ethernet/intel/ice, and the page is dated October 2026 β€” signed, sealed, slayed πŸ’…βœ¨

πŸ“¦ where this page comes from