bnx2x_get_emac_base(9)
π bnx2x_get_emac_base π
okay so bestie, welcome to the bnx2x_get_emac_base(9) page β yeah it's a kernel API manual, yeah we're doing this, and yeah you're gonna get it π
π NAME π
bnx2x_get_emac_base β retrive emac base address β¨ (that spelling is the original's, not mine, iykyk π)
πΈ SYNOPSIS πΈ
u32 bnx2x_get_emac_base (struct bnx2x *bp , u32 mdc_mdio_access , u8
port );
literally just one function, three args, and it hands you back a u32, periodt π
π¦ ARGUMENTS π¦
bpβ the driver handle, obvs. your main character struct pointer π«Άmdc_mdio_accessβ the access type, like which flavor of access we're doing here πportβ the port id, bestie. which port. yes it matters π
β DESCRIPTION β
okay so here's the vibe π₯ this function picks the MDC/MDIO access β and by "picks" i mean it goes through emac0 or emac1 β depend on the mdc_mdio_access, the port, and whether the port got swapped. the way that it's all interdependent?? iconic β¨
ngl every phy has a default access mode, and that default could also be overridden by nvram configuration π so there's two possible sources for this thing, fr fr.
this parameter β whether it's the default phy configuration OR the nvram overrun configuration β is passed here as mdc_mdio_access, and that's what selects the emac_base for the CL45 read/writes operations π
so like: access type in β emac_base out β CL45 read/writes get their base. slay, honestly π
π SEE ALSO π
the kernel file, go look at it, it's giving source of truth:
./drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
πΈ tiny reminder that this whole page is just the one function and the one file β no extra lore, no secret options, that's the whole menu bestie π
and that's the whole page!! π§ββοΈ this lil writeup is from the Kernel API Manual, dated October 2026, and the footer got cut off mid-path like ./drivers/net/ethernet/broadco... β so shoutout to whoever's reading this from the future, love u, bye bestie π«Άπβ¨
π¦ 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