STRUCT MIIC_OF_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸŽ€ 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 the conf_conv array
  • conf_to_string β€” string representations of the configuration values 🌸
  • conf_to_string_count β€” number of entries in the conf_to_string array
  • index_to_string β€” string representations of the index values ✨
  • index_to_string_count β€” number of entries in the index_to_string array
  • miic_port_start β€” MIIC port start number
  • miic_port_max β€” maximum MIIC supported πŸ”₯
  • sw_mode_mask β€” switch mode mask
  • reset_ids β€” reset names array
  • reset_count β€” number of entries in the reset_ids array
  • init_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 an enum 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