ENUM AT91_PM_ETH(9)
π enum at91_pm_eth π
okay bestie, so this is a page straight outta the Kernel API Manual β like, the actual kernel docs, not the cute ones β and it's describing enum at91_pm_eth, which is basically just a lil' labeled list of Ethernet controller indexes. that's it. that's the whole vibe. it's giving "small but essential" and honestly? we stan a compact enum. π
β¨ NAME β¨
enum at91_pm_eth β Ethernet controller indexes π¦
like, the indexes. the little numbers that tell you which Ethernet controller is which. nothing more, nothing less, and she's thriving.
πΈ SYNOPSIS πΈ
enum at91_pm_eth {
AT91_PM_G_ETH ,
AT91_PM_E_ETH ,
AT91_PM_MAX_ETH
};
that's the whole thing, no cap β three constants, one enum, done. copy it exactly if you're typing it out, because the kernel does not do typos, and neither should you, bestie. π
π Constants π
okay so here's the actual cast of characters, one bullet each, no skipping:
AT91_PM_G_ETHβ the gigabit Ethernet controller index π₯ that's the fast one, the main character energy one.AT91_PM_E_ETHβ the megabit Ethernet controller index π the chill, more modest sibling. still valid! still iconic!AT91_PM_MAX_ETHβ the max index β literally just the maximum. the ceiling. the "how many are there" number. she's a boundary marker and she knows it.
bestie reminder: these are indexes, not full driver structs. don't go assigning them to random pointers and then act surprised. π
π«Ά SEE ALSO π«Ά
the whole friend group, all from the kernel file ./arch/arm/mach-at91/pm.c β go say hi:
struct at91_pm_bu(9)struct at91_pm_sfrbu_regs(9)enum at91_pm_eth_clk(9)struct at91_pm_quirk_eth(9)struct at91_pm_quirks(9)struct at91_soc_pm(9)enum at91_pm_iomaps(9)at91_pm_switch_ba_to_auto(9)
like, that's the entire group chat, and every single one is linked. no crumbs left behind. π
and that's the whole page, fr fr β this one came out of ./arch/arm/mach-at91, dated October 2026, and it's filed under enum at91_pm_eth(9) in the Kernel API Manual. mwah, go read the source, ily, bye πβ¨
π¦ 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