STRUCT MIIC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

struct miic β€” the MII converter structure, and yes bestie, this is struct miic(9) straight out of the Kernel API Manual, so buckle up πŸŽ€

It's literally just a struct that holds everything the MII converter needs to know about itself. Lowkey iconic. πŸ’…


🌸 SYNOPSIS 🌸

okay so here's the whole vibe, character for character, don't touch anything:

struct miic {
    void __iomem *base;
    struct device *dev;
    spinlock_t lock;
    struct reset_control_bulk_data rsts[MIIC_MAX_NUM_RSTS];
    const struct miic_of_data *of_data;
    struct miic_phy_link_cfg link_cfg;
};

πŸ’… Members πŸ’…

not me listing every single one, because every single one matters 🫢

  • base β€” the base address of the MII converter. that's the address. the base one. you're welcome πŸ’–
  • dev β€” the struct device associated to the MII converter, i.e. which device this whole thing belongs to ✨
  • lock β€” a spinlock_t used for read-modify-write access. yes it's a lock, yes it protects the read-modify-write, no you can't skip it 😭
  • rsts β€” the reset controls for the MII converter, chilling in an array of struct reset_control_bulk_data sized MIIC_MAX_NUM_RSTS πŸ”₯
  • of_data β€” a pointer to OF data. it's a const struct miic_of_data *, so it's giving "look but don't touch" energy πŸ‘‘
  • link_cfg β€” the MIIC PHY_LINK configuration, all wrapped up in a struct miic_phy_link_cfg ⭐
fr fr, that's the entire struct. no hidden fields, no extra lore. ate and left no crumbs πŸ“

🌈 SEE ALSO 🌈

go read these next, bestie, they're all connected iykyk:

  • the kernel file ./drivers/net/pcs/pcs-rzn1-miic.c
  • struct modctrl_match(9)
  • struct miic_phy_link_cfg(9)
  • struct miic_of_data(9)
  • struct miic_port(9)

that's the whole page!! mwah πŸ’œ this one ships out of ./drivers/net/pcs and it's dated October 2026, so like… future icon behaviour, periodt πŸ§šβ€β™€οΈπŸ’–

πŸ“¦ where this page comes from