stmmac_mdio_read_c45(9)
π 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 themii_busstructure π 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 π
stmmac_mdio_format_addr(9)stmmac_mdio_read_c22(9)stmmac_mdio_write_c22(9)stmmac_mdio_write_c45(9)stmmac_mdio_reset(9)stmmac_clk_csr_set(9)stmmac_mdio_register(9)stmmac_mdio_unregister(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms