stmmac_of_get_mac_mode(9)
β¨ NAME β¨
stmmac_of_get_mac_mode β bestie, this one retrieves the interface of the MAC π
(welcome to the Kernel API Manual, you're gonna slay here fr fr)
πΈ SYNOPSIS πΈ
int stmmac_of_get_mac_mode (struct device_node *np );
π ARGUMENTS π
npβ the device-tree node, aka the actual source of truth we're reading from π«Ά- device-tree node
π¦ DESCRIPTION π¦
Okay so picture this: it's basically the spiritual sibling of of_get_phy_mode, except this one's pulling the interface mode on the MAC side straight out of the device-tree π
And lowkey the important assumption here β the way it's written, it assumes there's a mode converter in-between the MAC & PHY (think GMII-to-RGMII kinda situation, iykyk) π₯ So yes, that's the whole vibe check: converter in the middle, mode read off the MAC side, iconic behavior, no notes π
π SEE ALSO π
- Kernel file
./drivers/net/ethernet/stmicro/stmmac/stmmac_platform.cποΈ dwmac1000_validate_mcast_bins(9)dwmac1000_validate_ucast_entries(9)stmmac_axi_setup(9)stmmac_mtl_setup(9)stmmac_of_get_mdio(9)stmmac_mdio_setup(9)stmmac_probe_config_dt(9)devm_stmmac_probe_config_dt(9)stmmac_pltfr_get_irq_array(9)stmmac_pltfr_init(9)stmmac_pltfr_exit(9)stmmac_pltfr_probe(9)devm_stmmac_pltfr_probe(9)stmmac_pltfr_remove(9)
(go read all of them, they're literally the whole friend group π)
Okay that's the page!! π Signing off from the Kernel API Manual, source path ./drivers/net/ethernet/stmicro..., dated October 2026 β mwah, take care of yourself and your MAC modes ππ¦π
π¦ 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