stmmac_mdio_format_addr(9)
π stmmac_mdio_format_addr(9)
okay so bestie, this is a page straight out of the Kernel API Manual β like, kernel-doc but make it cute β¨ it's stmmac_mdio_format_addr, and it does exactly one lil job, but it does it flawlessly. no cap.
πΈ NAME πΈ
stmmac_mdio_format_addr β format the address register. that's it. that's the whole vibe. she formats, she slays, she goes home π
π¦ SYNOPSIS π¦
u32 stmmac_mdio_format_addr (struct stmmac_priv *priv , unsigned int pa
, unsigned int gr );
so you hand her three things and she hands you back a u32. main character energy fr fr π
π ARGUMENTS π
privβ astruct stmmac_privpointer. the whole private context situation, she needs it, don't ask questions π«Άpaβ the 5-bit MDIO package address. yes, 5-bit. she's precise like that β¨grβ the 5-bit MDIO register address when you're in C22 mode, or the MDIO device address when you're in C45 mode. lowkey context-dependent, iykyk π
side note bestie: those 5-bit limits are literally in the original, so don't be out here passing her a 9-bit situation and expecting a happy ending π
β RETURN β
the formatted address register. that's what comes back. a u32 of pure formatted-address goodness π
π SEE ALSO π
- Kernel file:
./drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.cβ the homeland, go visit her π stmmac_mdio_read_c22(9)stmmac_mdio_read_c45(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 a whole friend group of MDIO functions and she's the one who formats the address for all of them. obsessed π§
okay bye bestie, this page came from ./drivers/net/ethernet/stmicro/... (the stmmac_mdio.c file up there, you already know), October 2026 edition, served fresh in the Kernel API Manual ππβ¨ periodt.
π¦ 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