STRUCT MIIC(9)
β¨ 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β thestruct deviceassociated to the MII converter, i.e. which device this whole thing belongs to β¨lockβ aspinlock_tused 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 ofstruct reset_control_bulk_datasizedMIIC_MAX_NUM_RSTSπ₯of_dataβ a pointer to OF data. it's aconst struct miic_of_data *, so it's giving "look but don't touch" energy πlink_cfgβ the MIICPHY_LINKconfiguration, all wrapped up in astruct 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
- 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