ice_phy_res_address_eth56g(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… hey bestie, this is ice_phy_res_address_eth56g(9)

okay so you found the ice_phy_res_address_eth56g(9) page in the Kernel API Manual β€” welcome, grab a snack πŸ“, because this one is genuinely a little math girlie: it's the function that calculates a PHY port register address for you ✨ no cap.


πŸŽ€ NAME πŸŽ€

ice_phy_res_address_eth56g β€” calculate a PHY port register address. that's the whole job. she computes, you use. periodt πŸ’…


✨ SYNOPSIS ✨

int ice_phy_res_address_eth56g (struct ice_hw *hw , u8 lane , enum
       eth56g_res_type res_type , u32 offset , u32 *addr );

look at her πŸ‘‘ returns an int, takes a struct ice_hw *hw, a u8 lane, an enum eth56g_res_type res_type, a u32 offset, and a u32 *addr to drop the answer into. iconic signature tbh.


πŸ¦‹ ARGUMENTS πŸ¦‹

  • hw β€” pointer to the HW struct. the hardware main-character herself 🫢
  • lane β€” lane number to be written. yes bestie, the lane. pick one 🌈
  • res_type β€” the resource type (register/memory). iykyk which one you need πŸ’€
  • offset β€” offset from the PHY port register base. your little starting point on the map πŸ—ΊοΈ
  • addr β€” the result address. this is where the answer gets handed to you 🎁

πŸ’– RETURN πŸ’–

  • 0 β€” success πŸŽ‰ slay, the address happened
  • EINVAL β€” invalid port number or resource type 😭 something you passed in was not it, and she is telling you so, respectfully

🌸 SEE ALSO 🌸

the source lives in the kernel file ./drivers/net/ethernet/intel/ice/ice_ptp_hw.c β€” go say hi 🧚

and okay. the friend group here is HUGE. like, biggest group chat in the kernel. everybody showed up, so let's give them all their moment πŸ’œ:


ngl bestie, that SEE ALSO list gave me a cardio workout πŸ’€ but every single one of them is here, we don't skip anyone in this house 🫢

okay that's the whole page!! before you go β€” tiny cute sign-off: this gem ships out of ./drivers/net/ethernet/intel/ice, dated October 2026, and yes the page answers to ice_phy_res_address_eth56g(9). mwah, go calculate some addresses πŸ’œβœ¨

πŸ“¦ where this page comes from