axienet_mdio_setup(9)
π« axienet_mdio_setup(9) β straight outta the Kernel API Manual β¨
okay so bestie, gather round, because this is the MDIO setup function and honestly? she's the one who gets the whole thing ready to go π
πΈ NAME πΈ
axienet_mdio_setup β the MDIO setup function, aka the glow-up starter pack for your MDIO interface π
π¦ SYNOPSIS π¦
int axienet_mdio_setup (struct axienet_local *lp );
π ARGUMENTS π
lpβ a pointer to theaxienet_localdata structure, like, the local data bestie herself π«Ά
β RETURN β
so here's the vibe check on what she hands back to you:
0on success β slay, we ate π-ETIMEDOUTon a timeout β she waited, she was patient, and it was giving nothing π-EOVERFLOWon a clock divisor overflow β the divisor literally could not π-ENOMEMwhenmdiobus_allocfails (that's the one that allocates memory for the mii bus structure, iykyk) β no memory, no party π
π₯ DESCRIPTION π₯
She sets up the MDIO interface by initializing the MDIO clock, then registers the MDIO interface. that's it, that's the whole main character energy arc π
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/xilinx/xilinx_axienet_mdio.cβ the source, go read her π axienet_mdio_wait_until_ready(9)axienet_mdio_mdc_enable(9)axienet_mdio_mdc_disable(9)axienet_mdio_read(9)axienet_mdio_write(9)axienet_mdio_enable(9)axienet_mdio_teardown(9)
the whole friend group, fr fr π§π
mwah π this page lives in ./drivers/net/ethernet/xilinx, dated October 2026 β go off, icon, and remember: register the interface, hydrate, repeat β¨
π¦ 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