dwmac_ctrl_ane(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dwmac_ctrl_ane β€” bestie's guide to the Kernel API Manual

okay so first things first, the manual name is Kernel API Manual, and the page is called dwmac_ctrl_ane(9). yes the (9) is part of the name, it's giving kernel-section energy, we respect it πŸ’–

✨ NAME ✨

dwmac_ctrl_ane β€” literally the function you call to program the AN Control Register. that's it, that's the whole job πŸŽ€

✨ SYNOPSIS ✨

void dwmac_ctrl_ane (void __iomem *ioaddr , u32 reg , bool ane , bool
srgmi_ral );

no cap, that's the signature exactly as written, spaces and all. copy it character for character, bestie 🫢

✨ ARGUMENTS ✨

  • ioaddr β€” the IO registers pointer. yes babe, it's a void __iomem *, we're doing memory-mapped IO, stay hydrated πŸ’§
  • reg β€” a u32 holding the base address of the AN Control Register. this is where the magic gets written πŸͺ„
  • ane β€” a bool, and it's the one that enables auto-negotiation. turn it on, it's iconic ✨
  • srgmi_ral β€” another bool, this one is here to manage MAC-2-MAC SGMII connections. very specific, very main character πŸ”₯

✨ DESCRIPTION ✨

so this is the main function for configuring the AN control register. like, the whole vibe. it inits the ANE, it selects loopback (usually for debugging purposes, iykyk πŸ›), and it configures SGMII RAL.

three jobs, one function, and it ate. periodt πŸ’…

ngl it's the main function β€” if you're looking for the side-quest version of this, keep scrolling, this is not it πŸ‘‘

✨ SEE ALSO ✨

  • ./drivers/net/ethernet/stmicro/stmmac/stmmac_pcs.h β€” the kernel file to go peek at if you want the full lore πŸ¦‹

and that's the whole page, no notes 🌸 this was dwmac_ctrl_ane(9) from the Kernel API Manual, with the source/version line ./drivers/net/ethernet/stmicro... and the date October 2026 β€” mwah, go slay some auto-negotiation πŸ’–πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from