axienet_mdio_read(9)
β¨ NAME β¨
okay so bestie, welcome to axienet_mdio_read(9) from the Kernel API Manual β the MDIO interface read function. Itβs giving βtiny function, big hardware energyβ and honestly? Obsessed. π
πΈ SYNOPSIS πΈ
int axienet_mdio_read (struct mii_bus *bus , int phy_id , int reg );
π ARGUMENTS π
busβ pointer to the mii bus structure. Your bus bestie. πphy_idβ address of the PHY device. Where the PHY lives, basically. πregβ PHY register to read. The exact little register youβre here for. π―
π RETURN π
The register contents on success, -ETIMEDOUT on a timeout. Thatβs the whole return tea. β¨
π¦ DESCRIPTION π¦
Reads the contents of the requested register from the requested PHY address. The way it does this is kinda iconic: first it writes the details into the MCR register. After a while, the register MRD is read to obtain the PHY register content. Literally read-a-register pipeline behavior. π«Ά
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/xilinx/xilinx_axienet_mdio.c axienet_mdio_wait_until_ready(9)axienet_mdio_mdc_enable(9)axienet_mdio_mdc_disable(9)axienet_mdio_write(9)axienet_mdio_enable(9)axienet_mdio_setup(9)axienet_mdio_teardown(9)
Go read the whole friend group, bestie. Itβs giving kernel networking lore. ππ
mwah π this pageβs source/version is ./drivers/net/ethernet/xilinx, dated October 2026 β axienet_mdio_read(9), signing off. π«Άβ¨
π¦ 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