stmmac_mdio_read_c45(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… stmmac_mdio_read_c45(9) ✨

okay so bestie, welcome to the Kernel API Manual β€” yes, that's the manual name, and yes, it's lowkey iconic that you're here reading about Ethernet PHY stuff rn 🫢


🌸 NAME 🌸

stmmac_mdio_read_c45 β€” (the manpage literally gives you no description here, so. it's giving mysterious main character energy. the name is the whole personality πŸ’€)


✨ SYNOPSIS ✨

int stmmac_mdio_read_c45 (struct mii_bus *bus , int phyaddr , int devad
, int phyreg );

that's the whole signature, no cap. it returns an int. periodt πŸŽ€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • bus β€” points to the mii_bus structure πŸ’– like, that's the bus, that's the whole thing it's pointing at.
  • phyaddr β€” the MII addr πŸ‘‘
  • devad β€” the device address to read πŸ”₯ this is the one you're reading from, bestie.
  • phyreg β€” the MII reg 🌸 your register. your destination. your moment.

πŸ’œ DESCRIPTION πŸ’œ

so what does it do?? it reads data from the MII register from within the phy device. that's it, that's the job, and it ate πŸ’…

but here's the tea: for the 7111 GMAC, we must set the bit 0 in the MII address register while accessing the PHY registers. literally have to, no way around it πŸ™ˆ

and fortunately β€” and this is the good part β€” it seems this has no drawback for the 7109 MAC. so the 7109 is just chilling, unbothered, thriving ✨


🌈 SEE ALSO 🌈

Kernel file ./drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c β€” go read the source, bestie, iykyk πŸ“–

like, the whole stmmac mdio friend group fr fr πŸ’–πŸ¦‹βœ¨


mwah πŸ’‹ that's the page! source/version: ./drivers/net/ethernet/stmicro... and the date on this one is October 2026 β€” so like, future vibes, we love to see it. and remember: stmmac_mdio_read_c45(9) is the title, it's the name, it's the moment. slay πŸŽ€

πŸ“¦ where this page comes from