STRUCT MIIC_OF_DATA(9)
π NAME π
struct miic_of_data β the OF data for the MII converter, bestie. it's giving "everything the converter needs to know about itself" β¨
π SYNOPSIS π
okay so here's the whole struct, character for character, no cap:
struct miic_of_data {
struct modctrl_match *match_table;
u8 match_table_count;
u8 conf_conv_count;
const char * const *conf_to_string;
u8 conf_to_string_count;
const char * const *index_to_string;
u8 index_to_string_count;
u8 miic_port_start;
u8 miic_port_max;
u8 sw_mode_mask;
const char * const *reset_ids;
u8 reset_count;
bool init_unlock_lock_regs;
void (*miic_write)(struct miic *miic, int offset, u32 value);
enum miic_type type;
};
π¦ Members π¦
match_tableβ the matching table for convctrl configuration. like the guest list fr fr πmatch_table_countβ how many entries are in the matching table. (yes there's a count for everything, it's that kind of struct π)conf_conv_countβ number of entries in theconf_convarrayconf_to_stringβ string representations of the configuration values πΈconf_to_string_countβ number of entries in theconf_to_stringarrayindex_to_stringβ string representations of the index values β¨index_to_string_countβ number of entries in theindex_to_stringarraymiic_port_startβ MIIC port start numbermiic_port_maxβ maximum MIIC supported π₯sw_mode_maskβ switch mode maskreset_idsβ reset names arrayreset_countβ number of entries in thereset_idsarrayinit_unlock_lock_regsβ flag that says whether registers need to be unlocked before access. lowkey important π«Άmiic_writeβ function pointer to write a value to a MIIC register.void (*miic_write)(struct miic *miic, int offset, u32 value)β that's the whole signature, don't @ me πtypeβ type of MIIC, it's anenum miic_type
π SEE ALSO π
go read these next, iykyk:
- Kernel file
./drivers/net/pcs/pcs-rzn1-miic.c struct modctrl_match(9)struct miic_phy_link_cfg(9)struct miic(9)struct miic_port(9)
okay that's the whole page, you ate that π mwah π β this little gem lives in ./drivers/net/pcs, dated October 2026, and it's iconic, 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